Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dikini/rarag

Repository files navigation

rarag

policy-checks

Repository-assistance RAG for local Rust codebases. rarag provides a daemon, CLI, and MCP server for symbol-centered context retrieval, examples, and bounded blast-radius queries.

Status

  • prototype

Stability note:

  • Behavior, APIs, and persisted formats may change until the project is stable.
  • Before first release, backward compatibility is out of scope unless a spec or plan explicitly requires it.

User/Ops Quickstart

Start here:

  • docs/ops/quickstart.md

The quickstart covers:

  • starting in one project
  • working across two or more projects
  • working with git worktrees

Fast path from repo checkout:

mkdir -p ~/.config/rarag
cp examples/rarag.example.toml ~/.config/rarag/rarag.toml
cargo install --path crates/rarag --path crates/raragd --path crates/rarag-mcp --locked
raragd serve

In a second terminal:

rarag index build --worktree "$PWD"
rarag query --worktree "$PWD" --mode understand-symbol --text "snapshot store"
rarag-mcp --list-tools

Codex MCP setup:

  • docs/integrations/codex.md

Operations:

  • INSTALL.md
  • docs/ops/systemd-user.md
  • docs/ops/lancedb-runtime.md
  • docs/ops/optimization-rollout.md
  • examples/eval/README.md
  • docs/plans/template-eval-rubric.md
  • docs/plans/offline-optimization-workflow.md

Repository Layout

  • crates/rarag-core: shared config, snapshot, chunking, indexing, retrieval, reranking
  • crates/raragd: local Unix-socket daemon runtime
  • crates/rarag: CLI client
  • crates/rarag-mcp: local MCP-compatible Unix-socket server
  • docs/: specs, plans, ops docs, integration docs, templates
  • examples/: non-secret config examples
  • scripts/: bootstrap and verification helpers

Contributor Workflow

  1. Update/create spec in docs/specs/ for non-trivial behavior changes.
  2. Create/update an implementation plan in docs/plans/.
  3. Run fast feedback after relevant edit batches: scripts/check-fast-feedback.sh
  4. Update CHANGELOG.md for task-completion work.
  5. Use Conventional Commits and install hooks: scripts/install-hooks.sh
  6. For prompt/skill or retrieval optimization changes, run fixture replay and document results using:
    • docs/plans/template-eval-rubric.md
    • docs/plans/optimization-metrics-rubric.md
    • docs/templates/examples/rarag-optimization-proposal.md

Security

  • Do not commit secrets.
  • Use least-privilege credentials and local env files.
  • Treat MCP inputs and provider responses as untrusted input.

Dependency note:

  • CDLA-Permissive-2.0 in dependency scans currently comes from webpki-roots, which is pulled in by reqwest with rustls TLS support for HTTPS provider calls.
  • Task Registry ID: 2026-03-08-dependency-refresh tracks periodic dependency refresh and remaining temporary advisory ignore cleanup as upstream crates migrate.

License

GPL-3.0-or-later (LICENSE)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors