Getting Started

Coding agents spend a big part of every session just finding the right code. SourceIndex does that once: it indexes your repository and gives your agent a roadmap of the exact files and functions for each task.

Works best on an existing codebase. Not useful on a brand-new, empty project.

Want to see it first? Watch the demo.

What you'll need

  • Python 3.10 or newer
  • A repository you use with Claude Code or OpenCode
  • A SourceIndex API key (it starts with sk-si-) — apply for access here

Set up

pip install sourceindex cd /path/to/your/repository sourceindex init

init prompts for your API key, installs git hooks and a subagent, and scans your code — a few minutes, once per repository. It auto-detects Claude Code and OpenCode (and sets up both if it finds both). To choose explicitly:

sourceindex init claude # Claude Code only sourceindex init opencode # opencode only sourceindex init claude opencode # both

No CLAUDE.md or AGENTS.md yet? Run /init in your agent first. Re-running sourceindex init is always safe — it never duplicates anything.

Day-to-day

Nothing — open your repository in Claude Code or OpenCode as usual.

  • init registered SourceIndex as a subagent, so your coding agent — whichever one you use — invokes it automatically whenever it needs to find code. (In Claude Code, it stands in for the built-in Explore agent.)

Good to know

  • The index lives in your repository's .sourceindex/ folder — gitignored, encrypted, and safe to delete and rebuild at any time.
  • Around 40 languages, including Python, TypeScript and JavaScript, Rust, Go, C and C++, Java, Kotlin, C#, Ruby, PHP, and Swift.
  • To remove SourceIndex from a repository, run sourceindex deinit.

Feedback

We're early, and every bit helps — even “I can't tell if it's working” is useful. Write to [email protected].