Skip to content
PhilipJohnBasilePublic

About

Local code retrieval for AI coding agents. Rust CLI and MCP server with indexing, compact context, and reproducible evaluation tools.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

CallSieve

A local code search tool that helps coding agents find the right files before they start reading a repository. Written in Rust, with a CLI and an MCP server.

CI Release MIT license

Try it

Install the released CLI on macOS with Homebrew:

brew install philipjohnbasile/callsieve/callsieve
callsieve demo /path/to/your/repo --task "find where login is handled"

Or build from a fresh checkout with Rust 1.96+:

git clone https://github.com/PhilipJohnBasile/callsieve.git
cd callsieve
cargo build --locked
./target/debug/callsieve demo . --task "where is the repository index built?"

The demo indexes the chosen repository locally and produces a compact context packet with relevant files and snippets. It writes its index under that repository's .callsieve/ directory. No API key is required.

How it works

flowchart LR
    A[Repository] --> B[Local index]
    C[Task] --> D[Rank relevant code]
    B --> D
    D --> E[Files, symbols and snippets]
    E --> F[Coding agent]
Loading

The default path ranks symbols, paths, imports, tests, and keywords without calling an AI model. The returned text still uses context tokens when the agent reads it. Optional embeddings and LSP enrichment can add information to that baseline.

I built CallSieve to make repository exploration repeatable across different coding agents. The CLI and MCP interfaces share the retrieval layer; hooks and trace reports help check whether an agent actually used the selected context.

Use it in a workflow

callsieve index /path/to/repo
callsieve agent-context /path/to/repo "trace the login session handler"
callsieve mcp-config /path/to/repo --format json

For editor setup, daemon mode, hooks, and the full command list, see the reference. The current release is v0.5.0; development on main can move ahead of a release.

Evidence and limitations

Public benchmarks contain dataset manifests and result files. Evaluation notes explain the measured subsets and configurations. Retrieval accuracy, estimated context reduction, and observed whole-session token savings are different measures; a retrieval result alone does not establish a reduction in API cost.

Deterministic retrieval can miss vague queries and dynamic relationships. Language support ranges from richer parsers to lightweight heuristics. Use the relevant benchmark and your own repository to decide whether the results are useful.

Development

cargo fmt --check
cargo clippy --all-targets -- -D warnings
cargo test --locked

Verification notes · Contributing · Change log · Issues

License

MIT. The local engine is open source; commercial support is optional.

About

Local code retrieval for AI coding agents. Rust CLI and MCP server with indexing, compact context, and reproducible evaluation tools.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages