repoctx¶
Local repo intelligence for agents and reviewers¶
Prepared by: Oluwasegun Olumbe
Status: v1.3.1 — npm and MCP manifest versions are aligned; documentation and MCP surface are current with the v1.1/v1.2 capability set; ships eval, data-access, multi-domain code maps, and the v1.0 absorption (impact, pass, pass-pr, review)
Category: Practical AI governance for developers
Built and maintained by Oluwasegun Olumbe for teams that want context before code changes, review prompts before merge, and less guessing in agent workflows.
About repoctx
repoctx is a local-first context system. It inspects repositories, builds code maps, creates task-aware context packs, prepares PR review harnesses, and exposes the same workflow through an MCP server.
It keeps the legacy dev-context command as a deprecated alias (removed in v3.0.0) while making repoctx the canonical product name.
See the How It Works visual walkthrough — a layered diagram of the discover → index → context → gate flow.
:material-sparkles: What's New¶
v1.3.1 — release-readiness cleanup (2026-06-02)
npm package metadata, package-lock.json, MCP registry manifest versions, and public docs are aligned. The operating loop now treats repoctx impact as the canonical analyzer after absorbing the standalone impact-map work.
v1.3.0 — docs and MCP surface alignment (2026-06-02)
Documentation reflects the current repoctx eval, repoctx data-access, multi-language code maps, multi-domain tagging, and MCP tool surface, including find_backend_route and find_frontend_api_client.
v1.2.0 — multi-domain discoverability (2026-06-01)
Files in feature subdirs are now tagged under both their root domain and the feature name. components/livestream/RecordingsPanel.tsx matches both find_domain('components') and find_domain('livestream'). File records gain a domains: string[] field; find_domain, filterFiles, findFrontendApiClient, and context_pack scoring all read from the full set. Cache version bumped 3 → 4; existing .dev-context/index.json caches will rebuild on next access.
v1.1.0 — eval, data-access, and five new languages (2026-05-30)
repoctx evalruns a fixed task suite (repo_overview,code_map,harness,context_pack) on any target repo and reports tokens of repoctx output vs a deterministic naive-agent approximation.--jsonoutput is CI-friendly for regression gating.repoctx data-accessdetects inline SQL strings (any language) and Prisma ORM calls; aggregates by source, operation, table, and file. NewdataAccessfield on file records;context_packscoring boosts files that touch the DB by up to +15.- C#, Python, Java, Ruby, Rust code-map extractors join the existing TS/JS/Go support.
- Vendor-bundle filter drops
*.min.js,Bootstrap.js,jquery.js, etc. fromcontext_packscoring so they no longer surface as primary files.
See CHANGELOG.md for the full history.
Documentation Pack¶
| # | Document | Description | Status |
|---|---|---|---|
| 01 | Context Foundation | Repository inspection, maps, search, context packs, and harnesses | Active |
| 02 | MCP and Agents | MCP tools and agent-facing workflows | Active |
| 03 | Contributor Governance | Reviews, branch protection, CODEOWNERS, and contributor flow | Active |
| 04 | Release Readiness | SemVer, changelog discipline, CI, and release gates | Active |
| 05 | Trust-Layer Demo | repoctx plus PullPass as a repeatable review workflow | Active |
| 06 | Builder-Founder Loop | Session rhythm, evidence ledger, governance ladder, and next-action rule | Active |
What repoctx Provides¶
Current Capabilities
- Repository inspection with languages, scripts, entrypoints, and git state
- AST-backed JSON-first code maps for TypeScript, JavaScript, Go, C#, Python, Java, Ruby, and Rust
- Multi-domain file tagging so feature subdirs surface under both root and feature names
- Local discovery, indexing, catalog search, and workspace reports
- Task-aware context packs before agents plan or edit, with vendor-bundle filtering
- Data-access surface reports (inline SQL and Prisma) with per-file boosts in context-pack scoring
- Local-vs-naïve eval suite for measuring repoctx's token savings
- PR review context from git diffs and optional GitHub comments
- Go test-file detection for PullPass-style repositories
- MCP tools for repository context, search, maps, and review workflows
- Contributor-ready governance: CI, CODEOWNERS, templates, security, and release guidance
Context Flow¶
Quick Start¶
-
Context Before Change
Generate the map an agent or reviewer needs before touching the code.
-
Search Across Local Repos
Discover, index, catalog, and search local repositories without sending code to a hosted model.
-
PR Review Harness
Turn diffs into review prompts, risk flags, changed domains, and test hints.
-
Governance Ready
Pair repoctx with PullPass for a repeatable trust layer: context before change, validation before merge.
-
Public Demo Path
Show the workflow end to end: context pack, focused change, PR review context, PullPass gate, human merge.
-
Company Adoption Case Study
Package the trust layer for engineering leaders, platform teams, and AI governance reviewers.
-
Builder-Founder Operating Loop
Keep every coding-agent session tied to context, focused change, visible gates, human decisions, and durable evidence.