{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package explore\n\nPackage explore runs a fan-out of read-only \"reader\" sub-agents over a repository and synthesizes their findings into one answer. It is the parallel half of memcode's \"many readers, one serialized writer\" model: every explorer is read-only (read\\_file/ripgrep/git\\_diff, no edits or commands), so any number can run concurrently with no write contention. A final synthesis pass merges the per-scope findings.\n\n## Functions\n\n```go\nfunc Run(ctx context.Context, st store.Store, runner *llm.Runner, root, model, question string, concurrency int, out io.Writer) error\n```\nRun fans out read-only explorers across the repository's subsystems (each scoped to one), collects their findings, and prints a synthesized answer to out. The store and provider are shared; the SQLite WAL serializes the event writes the explorers emit.\n\n## Types\n\n```go\ntype Finding struct {\n\tScope  string\n\tAnswer string\n\tErr    error\n}\n```\nFinding is one explorer's answer for a scope.\n\n```go\nfunc FanOut(ctx context.Context, st store.Store, runner *llm.Runner, root, model, question string, scopes []string, concurrency int, progress Progress) []Finding\n```\nFanOut runs one read-only explorer per scope concurrently (capped by concurrency, 0 = the default), reporting lifecycle via progress (may be nil), and returns the findings. Each explorer is its own read-only session writing to io.Discard — its tool calls and narration never reach the user; only the orchestrator's progress + the final synthesis do. This is what keeps deep research QUIET.\n\n```go\ntype Progress func(scope string, done bool, err error)\n```\nProgress reports an explorer's lifecycle to a front-end (started/finished per scope), so the UI can show compact per-agent progress instead of every call.\n\n","path":"github.com/memcode-ai/memcode/internal/explore","name":"explore","synopsis":"Package explore runs a fan-out of read-only \"reader\" sub-agents over a repository and synthesizes their findings into one answer.","isRedistributable":true}
