How gen-verse/discoveryrsi works
DiscoveryRSI is a model-agnostic research-hypothesis harness. A user runs a local demo, a manifest-driven campaign, or a GEO/GO domain demo; campaigns generate candidates, critique and select them recursively, and append episodes to a replay file. The harness supplies model adapters, role instructions, manifests, and tool descriptions. Domain adapters turn user-supplied pathway or target records into candidates. The README also describes compiled Harbor tasks, model training, and DFM-Bench, but these are not implemented in the sampled runtime, so they are not mapped as repository components.
Main entry points: harness.py Campaign harness · cli.py CLI commands · go_domains.py GEO/GO adapters · core.py Hypothesis loop
Components 12
Entry and domains
- CLI commands
src/discovery_rsi/cli.py - GEO/GO adapters
src/discovery_rsi/go_domains.py
Campaign orchestration
- Campaign harness
src/discovery_rsi/harness.py - Research manifest
src/discovery_rsi/manifest.py - Role loader
src/discovery_rsi/plugin.py - Tool registry
src/discovery_rsi/tools.py
Research loop
- Hypothesis loop
src/discovery_rsi/core.py - Episode replay
src/discovery_rsi/core.py
Model integrations
- Model adapters
src/discovery_rsi/providers.py
Other components
- Researcher
- Model endpoint or CLI
- User-supplied records
Connections 13
- Researcher → CLI commands: runs
README.md - CLI commands → Campaign harness: starts campaign
src/discovery_rsi/cli.py - CLI commands → Research manifest: loads
src/discovery_rsi/cli.py - Campaign harness → Research manifest: reads
src/discovery_rsi/harness.py - Campaign harness → Role loader: loads roles
src/discovery_rsi/harness.py - Campaign harness → Tool registry: describes tools
src/discovery_rsi/harness.py - Campaign harness → Model adapters: requests completions
src/discovery_rsi/harness.py - Model adapters → Model endpoint or CLI: sends prompts
src/discovery_rsi/providers.py - Campaign harness → Hypothesis loop: runs iterations
src/discovery_rsi/harness.py - Hypothesis loop → Episode replay: appends episodes
src/discovery_rsi/core.py - Researcher → User-supplied records: supplies
README.md - CLI commands → GEO/GO adapters: builds candidates
src/discovery_rsi/cli.py - GEO/GO adapters → User-supplied records: reads records
src/discovery_rsi/go_domains.py