tea-rags 1.51.2 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +303 -138
- package/benchmarks/bench-model-ab.mjs +407 -0
- package/build/bootstrap/factory.d.ts.map +1 -1
- package/build/bootstrap/factory.js +19 -15
- package/build/bootstrap/factory.js.map +1 -1
- package/build/bootstrap/project-ingest-factory.d.ts +7 -3
- package/build/bootstrap/project-ingest-factory.d.ts.map +1 -1
- package/build/bootstrap/project-ingest-factory.js +2 -2
- package/build/bootstrap/project-ingest-factory.js.map +1 -1
- package/build/cli/commands/update.d.ts +2 -0
- package/build/cli/commands/update.d.ts.map +1 -1
- package/build/cli/commands/update.js +9 -1
- package/build/cli/commands/update.js.map +1 -1
- package/build/cli/plugin-sync/index.d.ts +4 -1
- package/build/cli/plugin-sync/index.d.ts.map +1 -1
- package/build/cli/plugin-sync/index.js +9 -18
- package/build/cli/plugin-sync/index.js.map +1 -1
- package/build/cli/plugin-sync/types.d.ts +8 -1
- package/build/cli/plugin-sync/types.d.ts.map +1 -1
- package/build/cli/plugin-sync/types.js +24 -0
- package/build/cli/plugin-sync/types.js.map +1 -1
- package/build/cli/plugin-sync/zcode.d.ts +46 -0
- package/build/cli/plugin-sync/zcode.d.ts.map +1 -0
- package/build/cli/plugin-sync/zcode.js +163 -0
- package/build/cli/plugin-sync/zcode.js.map +1 -0
- package/build/core/adapters/vcs/git/adapter.d.ts +8 -1
- package/build/core/adapters/vcs/git/adapter.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/adapter.js.map +1 -1
- package/build/core/adapters/vcs/git/es-git/adapter.d.ts +4 -1
- package/build/core/adapters/vcs/git/es-git/adapter.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/es-git/adapter.js +2 -2
- package/build/core/adapters/vcs/git/es-git/adapter.js.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/adapter.d.ts +4 -1
- package/build/core/adapters/vcs/git/git-cli/adapter.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/adapter.js +2 -2
- package/build/core/adapters/vcs/git/git-cli/adapter.js.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/history.d.ts +4 -1
- package/build/core/adapters/vcs/git/git-cli/history.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/history.js +9 -2
- package/build/core/adapters/vcs/git/git-cli/history.js.map +1 -1
- package/build/core/api/internal/app-factory.d.ts +1 -1
- package/build/core/api/internal/app-factory.d.ts.map +1 -1
- package/build/core/api/internal/app-factory.js +3 -2
- package/build/core/api/internal/app-factory.js.map +1 -1
- package/build/core/api/internal/composition.d.ts +1 -1
- package/build/core/api/internal/composition.d.ts.map +1 -1
- package/build/core/api/internal/composition.js +7 -1
- package/build/core/api/internal/composition.js.map +1 -1
- package/build/core/api/internal/facades/explore-facade.d.ts +1 -1
- package/build/core/api/internal/facades/explore-facade.d.ts.map +1 -1
- package/build/core/api/internal/infra/working-tree-graph-read.d.ts +22 -0
- package/build/core/api/internal/infra/working-tree-graph-read.d.ts.map +1 -1
- package/build/core/api/internal/infra/working-tree-graph-read.js +75 -1
- package/build/core/api/internal/infra/working-tree-graph-read.js.map +1 -1
- package/build/core/api/internal/migration-parser.d.ts.map +1 -1
- package/build/core/api/internal/migration-parser.js +4 -1
- package/build/core/api/internal/migration-parser.js.map +1 -1
- package/build/core/api/internal/ops/explore-ops.d.ts +7 -2
- package/build/core/api/internal/ops/explore-ops.d.ts.map +1 -1
- package/build/core/api/internal/ops/explore-ops.js +98 -63
- package/build/core/api/internal/ops/explore-ops.js.map +1 -1
- package/build/core/api/internal/ops/indexing-ops.js +1 -0
- package/build/core/api/internal/ops/indexing-ops.js.map +1 -1
- package/build/core/api/public/dto/ingest.d.ts +8 -0
- package/build/core/api/public/dto/ingest.d.ts.map +1 -1
- package/build/core/api/tools/code/register-index-tools.d.ts.map +1 -1
- package/build/core/api/tools/code/register-index-tools.js +2 -0
- package/build/core/api/tools/code/register-index-tools.js.map +1 -1
- package/build/core/contracts/types/language.d.ts +8 -0
- package/build/core/contracts/types/language.d.ts.map +1 -1
- package/build/core/contracts/types/language.js.map +1 -1
- package/build/core/contracts/types/provider.d.ts +17 -0
- package/build/core/contracts/types/provider.d.ts.map +1 -1
- package/build/core/domains/explore/index.d.ts +2 -0
- package/build/core/domains/explore/index.d.ts.map +1 -1
- package/build/core/domains/explore/index.js +2 -0
- package/build/core/domains/explore/index.js.map +1 -1
- package/build/core/domains/explore/resolver-batch.d.ts +45 -0
- package/build/core/domains/explore/resolver-batch.d.ts.map +1 -0
- package/build/core/domains/explore/resolver-batch.js +175 -0
- package/build/core/domains/explore/resolver-batch.js.map +1 -0
- package/build/core/domains/explore/working-tree/tree-graph-marker.d.ts +0 -27
- package/build/core/domains/explore/working-tree/tree-graph-marker.d.ts.map +1 -1
- package/build/core/domains/explore/working-tree/tree-graph-marker.js +15 -1
- package/build/core/domains/explore/working-tree/tree-graph-marker.js.map +1 -1
- package/build/core/domains/ingest/errors/ingest-errors.d.ts.map +1 -1
- package/build/core/domains/ingest/errors/ingest-errors.js +4 -2
- package/build/core/domains/ingest/errors/ingest-errors.js.map +1 -1
- package/build/core/domains/ingest/operations/reindexing.d.ts +17 -0
- package/build/core/domains/ingest/operations/reindexing.d.ts.map +1 -1
- package/build/core/domains/ingest/operations/reindexing.js +45 -1
- package/build/core/domains/ingest/operations/reindexing.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunk-point-payload.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/chunk-point-payload.js +4 -1
- package/build/core/domains/ingest/pipeline/chunk-point-payload.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/infra/worker.js +3 -0
- package/build/core/domains/ingest/pipeline/chunker/infra/worker.js.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/backfiller.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/backfiller.js +16 -0
- package/build/core/domains/ingest/pipeline/enrichment/backfiller.js.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/completion-runner.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/completion-runner.js +4 -1
- package/build/core/domains/ingest/pipeline/enrichment/completion-runner.js.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/file-phase.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/file-phase.js +11 -0
- package/build/core/domains/ingest/pipeline/enrichment/file-phase.js.map +1 -1
- package/build/core/domains/ingest/pipeline/file-ingestor.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/file-ingestor.js +10 -6
- package/build/core/domains/ingest/pipeline/file-ingestor.js.map +1 -1
- package/build/core/domains/ingest/pipeline/status-module.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/status-module.js +3 -8
- package/build/core/domains/ingest/pipeline/status-module.js.map +1 -1
- package/build/core/domains/ingest/sync/index-holes.d.ts +40 -0
- package/build/core/domains/ingest/sync/index-holes.d.ts.map +1 -0
- package/build/core/domains/ingest/sync/index-holes.js +50 -0
- package/build/core/domains/ingest/sync/index-holes.js.map +1 -0
- package/build/core/domains/ingest/sync/index.d.ts +1 -0
- package/build/core/domains/ingest/sync/index.d.ts.map +1 -1
- package/build/core/domains/ingest/sync/index.js +1 -0
- package/build/core/domains/ingest/sync/index.js.map +1 -1
- package/build/core/domains/language/capability/readme.d.ts +1 -1
- package/build/core/domains/language/capability/readme.js +2 -2
- package/build/core/domains/language/errors.d.ts +13 -1
- package/build/core/domains/language/errors.d.ts.map +1 -1
- package/build/core/domains/language/errors.js +18 -0
- package/build/core/domains/language/errors.js.map +1 -1
- package/build/core/domains/language/factory.d.ts +41 -10
- package/build/core/domains/language/factory.d.ts.map +1 -1
- package/build/core/domains/language/factory.js +87 -85
- package/build/core/domains/language/factory.js.map +1 -1
- package/build/core/domains/language/index.d.ts +2 -5
- package/build/core/domains/language/index.d.ts.map +1 -1
- package/build/core/domains/language/index.js +9 -5
- package/build/core/domains/language/index.js.map +1 -1
- package/build/core/domains/language/provider-sources.d.ts +56 -0
- package/build/core/domains/language/provider-sources.d.ts.map +1 -0
- package/build/core/domains/language/provider-sources.js +156 -0
- package/build/core/domains/language/provider-sources.js.map +1 -0
- package/build/core/domains/language/ruby/capability.d.ts.map +1 -1
- package/build/core/domains/language/ruby/capability.js +6 -1
- package/build/core/domains/language/ruby/capability.js.map +1 -1
- package/build/core/domains/language/ruby/chunking/rspec-scope-chunker.d.ts.map +1 -1
- package/build/core/domains/language/ruby/chunking/rspec-scope-chunker.js +4 -1
- package/build/core/domains/language/ruby/chunking/rspec-scope-chunker.js.map +1 -1
- package/build/core/domains/language/rust/capability.js +1 -1
- package/build/core/domains/language/rust/capability.js.map +1 -1
- package/build/core/domains/language/typescript/capability.js +1 -1
- package/build/core/domains/language/typescript/capability.js.map +1 -1
- package/build/core/domains/trajectory/codegraph/factory.d.ts.map +1 -1
- package/build/core/domains/trajectory/codegraph/factory.js +3 -0
- package/build/core/domains/trajectory/codegraph/factory.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/blame-store.d.ts +5 -1
- package/build/core/domains/trajectory/git/infra/blame-store.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/blame-store.js +62 -8
- package/build/core/domains/trajectory/git/infra/blame-store.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.d.ts +38 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.d.ts.map +1 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.js +105 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.js.map +1 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime.d.ts +24 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-lifetime.js +55 -1
- package/build/core/domains/trajectory/git/infra/file-lifetime.js.map +1 -1
- package/build/core/domains/trajectory/git/provider.d.ts +15 -1
- package/build/core/domains/trajectory/git/provider.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/provider.js +61 -8
- package/build/core/domains/trajectory/git/provider.js.map +1 -1
- package/build/core/types.d.ts +8 -0
- package/build/core/types.d.ts.map +1 -1
- package/build/mcp/resources/generated/agent-context.d.ts.map +1 -1
- package/build/mcp/resources/generated/agent-context.js +1 -1
- package/build/mcp/resources/generated/agent-context.js.map +1 -1
- package/build/typecheck-tests.tsbuildinfo +1 -0
- package/harness/cursor/README.md +4 -1
- package/harness/cursor/dinopowers/.cursor-plugin/plugin.json +3 -2
- package/harness/cursor/dinopowers/icon.png +0 -0
- package/harness/cursor/dinopowers/skills/dino-brainstorming/SKILL.md +14 -12
- package/harness/cursor/dinopowers/skills/dino-executing-plans/SKILL.md +7 -3
- package/harness/cursor/dinopowers/skills/dino-finishing-a-development-branch/SKILL.md +3 -3
- package/harness/cursor/dinopowers/skills/dino-receiving-code-review/SKILL.md +4 -4
- package/harness/cursor/dinopowers/skills/dino-requesting-code-review/SKILL.md +3 -3
- package/harness/cursor/dinopowers/skills/dino-systematic-debugging/SKILL.md +12 -12
- package/harness/cursor/dinopowers/skills/dino-test-driven-development/SKILL.md +6 -3
- package/harness/cursor/dinopowers/skills/dino-verification-before-completion/SKILL.md +3 -3
- package/harness/cursor/dinopowers/skills/dino-writing-plans/SKILL.md +7 -3
- package/harness/cursor/dinopowers/skills/dino-writing-skills/SKILL.md +4 -4
- package/harness/cursor/tea-rags/.cursor-plugin/plugin.json +3 -2
- package/harness/cursor/tea-rags/icon.png +0 -0
- package/harness/cursor/tea-rags/rules/tea-rags-core.mdc +12 -8
- package/harness/cursor/tea-rags/scripts/check-build-fresh.sh +1 -0
- package/harness/cursor/tea-rags/scripts/reread-ledger.mjs +6 -3
- package/harness/cursor/tea-rags/skills/analytics-rerank/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/architecture-diagnostics/SKILL.md +7 -7
- package/harness/cursor/tea-rags/skills/bug-hunt/SKILL.md +9 -9
- package/harness/cursor/tea-rags/skills/data-driven-generation/SKILL.md +6 -4
- package/harness/cursor/tea-rags/skills/explore/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/extract-project-patterns/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/filter-building/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/force-reindex/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/index/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/mr-review/SKILL.md +5 -3
- package/harness/cursor/tea-rags/skills/pattern-search/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/refactoring-planning/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/refactoring-scan/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/report-issue/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/risk-assessment/SKILL.md +4 -4
- package/harness/cursor/tea-rags/skills/test-first/SKILL.md +4 -4
- package/harness/cursor/tea-rags/skills/tests-as-context/SKILL.md +3 -3
- package/harness/cursor/tea-rags-setup/.cursor-plugin/plugin.json +3 -2
- package/harness/cursor/tea-rags-setup/icon.png +0 -0
- package/harness/cursor/tea-rags-setup/scripts/detect.mjs +4 -0
- package/harness/cursor/tea-rags-setup/skills/install/SKILL.md +17 -9
- package/harness/cursor/tea-rags-setup/skills/tune/SKILL.md +3 -3
- package/harness/zcode/MANUAL-TEST.md +43 -0
- package/harness/zcode/README.md +141 -0
- package/harness/zcode/dinopowers/.zcode-plugin/plugin.json +10 -0
- package/harness/zcode/dinopowers/CHAINING.md +56 -0
- package/harness/zcode/dinopowers/FRESHNESS.md +33 -0
- package/harness/zcode/dinopowers/hooks/hooks.json +30 -0
- package/harness/zcode/dinopowers/icon.png +0 -0
- package/harness/zcode/dinopowers/scripts/main-session-routing.sh +41 -0
- package/harness/zcode/dinopowers/scripts/main-session-routing.txt +24 -0
- package/harness/zcode/dinopowers/scripts/wrapper-routing-agent.sh +19 -0
- package/harness/zcode/dinopowers/scripts/wrapper-routing.txt +25 -0
- package/harness/zcode/dinopowers/skills/dino-brainstorming/SKILL.md +286 -0
- package/harness/zcode/dinopowers/skills/dino-executing-plans/SKILL.md +375 -0
- package/harness/zcode/dinopowers/skills/dino-finishing-a-development-branch/SKILL.md +186 -0
- package/harness/zcode/dinopowers/skills/dino-receiving-code-review/SKILL.md +275 -0
- package/harness/zcode/dinopowers/skills/dino-receiving-code-review/references/call-route.md +53 -0
- package/harness/zcode/dinopowers/skills/dino-requesting-code-review/SKILL.md +260 -0
- package/harness/zcode/dinopowers/skills/dino-systematic-debugging/SKILL.md +358 -0
- package/harness/zcode/dinopowers/skills/dino-systematic-debugging/references/red-flags.md +47 -0
- package/harness/zcode/dinopowers/skills/dino-systematic-debugging/references/trace-chain.md +36 -0
- package/harness/zcode/dinopowers/skills/dino-test-driven-development/SKILL.md +263 -0
- package/harness/zcode/dinopowers/skills/dino-verification-before-completion/SKILL.md +268 -0
- package/harness/zcode/dinopowers/skills/dino-writing-plans/SKILL.md +332 -0
- package/harness/zcode/dinopowers/skills/dino-writing-skills/SKILL.md +134 -0
- package/harness/zcode/marketplace.json +32 -0
- package/harness/zcode/tea-rags/.mcp.json +9 -0
- package/harness/zcode/tea-rags/.zcode-plugin/plugin.json +11 -0
- package/harness/zcode/tea-rags/hooks/hooks.json +129 -0
- package/harness/zcode/tea-rags/icon.png +0 -0
- package/harness/zcode/tea-rags/repair/README.md +38 -0
- package/harness/zcode/tea-rags/repair/cycles.md +36 -0
- package/harness/zcode/tea-rags/repair/facadeContract.md +32 -0
- package/harness/zcode/tea-rags/repair/hubLike.md +72 -0
- package/harness/zcode/tea-rags/repair/layeringBackEdge.md +64 -0
- package/harness/zcode/tea-rags/repair/leakingAbstraction.md +58 -0
- package/harness/zcode/tea-rags/repair/mainSequence.md +48 -0
- package/harness/zcode/tea-rags/repair/silentCoupling.md +43 -0
- package/harness/zcode/tea-rags/repair/splitCandidates.md +37 -0
- package/harness/zcode/tea-rags/repair/stableDependencies.md +76 -0
- package/harness/zcode/tea-rags/rules/core.md +146 -0
- package/harness/zcode/tea-rags/rules/references/axis-splitting.md +50 -0
- package/harness/zcode/tea-rags/rules/references/report-follow-up.md +36 -0
- package/harness/zcode/tea-rags/rules/references/runtime-introspection.md +138 -0
- package/harness/zcode/tea-rags/rules/references/signal-interpretation.md +545 -0
- package/harness/zcode/tea-rags/scripts/check-build-fresh.sh +24 -0
- package/harness/zcode/tea-rags/scripts/cleanup-clone.sh +12 -0
- package/harness/zcode/tea-rags/scripts/cleanup-worktree-clone.sh +48 -0
- package/harness/zcode/tea-rags/scripts/inject-rules.sh +120 -0
- package/harness/zcode/tea-rags/scripts/reread-ledger.mjs +1610 -0
- package/harness/zcode/tea-rags/scripts/search-drift.sh +212 -0
- package/harness/zcode/tea-rags/scripts/session-digest.sh +33 -0
- package/harness/zcode/tea-rags/scripts/session-rules.sh +20 -0
- package/harness/zcode/tea-rags/scripts/standard-zone.ere +1 -0
- package/harness/zcode/tea-rags/scripts/subagent-block.txt +32 -0
- package/harness/zcode/tea-rags/scripts/subagent-context.sh +31 -0
- package/harness/zcode/tea-rags/scripts/turn-routing.sh +82 -0
- package/harness/zcode/tea-rags/scripts/turn-routing.txt +6 -0
- package/harness/zcode/tea-rags/skills/analytics-rerank/SKILL.md +276 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/SKILL.md +261 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/anti-patterns.md +55 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-1-report.md +106 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3b-leaking-abstraction.md +46 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3c-silent-coupling.md +55 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3c2-shotgun-surgery.md +93 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3d-main-sequence.md +29 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3d2-hub-like.md +26 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3d3-propagation-cost.md +26 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3e-layering.md +29 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3f-layer-map.md +24 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3g-dependency-norms.md +70 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3h-diff-time.md +37 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3i-remedy-simulation.md +36 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-4-exclusions.md +55 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/SKILL.md +282 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/references/call-path.md +97 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/references/probes.md +69 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/references/triage.md +56 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/SKILL.md +430 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/references/step-5-style.md +118 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/references/step-6-generate.md +66 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/references/step-7-verify.md +210 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/conservative.md +19 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/defensive.md +24 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/stabilization.md +21 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/standard.md +13 -0
- package/harness/zcode/tea-rags/skills/explore/SKILL.md +112 -0
- package/harness/zcode/tea-rags/skills/explore/references/architecture-pattern.md +63 -0
- package/harness/zcode/tea-rags/skills/explore/references/cycle-pattern.md +43 -0
- package/harness/zcode/tea-rags/skills/explore/references/entry-point-pattern.md +48 -0
- package/harness/zcode/tea-rags/skills/explore/references/exemplar-pattern.md +46 -0
- package/harness/zcode/tea-rags/skills/explore/references/explain-pattern.md +33 -0
- package/harness/zcode/tea-rags/skills/explore/references/explore-flow.md +89 -0
- package/harness/zcode/tea-rags/skills/explore/references/naming-pattern.md +15 -0
- package/harness/zcode/tea-rags/skills/explore/references/pre-gen-pattern.md +97 -0
- package/harness/zcode/tea-rags/skills/explore/references/trace-pattern.md +20 -0
- package/harness/zcode/tea-rags/skills/explore/references/usage-pattern.md +75 -0
- package/harness/zcode/tea-rags/skills/extract-project-patterns/SKILL.md +149 -0
- package/harness/zcode/tea-rags/skills/filter-building/SKILL.md +359 -0
- package/harness/zcode/tea-rags/skills/force-reindex/SKILL.md +76 -0
- package/harness/zcode/tea-rags/skills/index/SKILL.md +87 -0
- package/harness/zcode/tea-rags/skills/mr-review/SKILL.md +217 -0
- package/harness/zcode/tea-rags/skills/mr-review/references/delivery-contract.md +160 -0
- package/harness/zcode/tea-rags/skills/mr-review/references/dimension-playbook.md +237 -0
- package/harness/zcode/tea-rags/skills/pattern-search/SKILL.md +178 -0
- package/harness/zcode/tea-rags/skills/refactoring-planning/SKILL.md +193 -0
- package/harness/zcode/tea-rags/skills/refactoring-scan/SKILL.md +150 -0
- package/harness/zcode/tea-rags/skills/report-issue/SKILL.md +95 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/SKILL.md +622 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/references/anti-patterns.md +77 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/references/classification-tiers.md +28 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/references/enrich.md +213 -0
- package/harness/zcode/tea-rags/skills/test-first/SKILL.md +112 -0
- package/harness/zcode/tea-rags/skills/tests-as-context/SKILL.md +357 -0
- package/harness/zcode/tea-rags-setup/.zcode-plugin/plugin.json +9 -0
- package/harness/zcode/tea-rags-setup/icon.png +0 -0
- package/harness/zcode/tea-rags-setup/scripts/contextignore.mjs +107 -0
- package/harness/zcode/tea-rags-setup/scripts/detect.mjs +98 -0
- package/harness/zcode/tea-rags-setup/scripts/profile.mjs +110 -0
- package/harness/zcode/tea-rags-setup/skills/install/SKILL.md +216 -0
- package/harness/zcode/tea-rags-setup/skills/tune/SKILL.md +80 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://artk0de.github.io/TeaRAGs-MCP/">
|
|
3
|
-
<img src="public/logo.png" alt="TeaRAGs logo">
|
|
3
|
+
<img src="public/logo-readme.png" alt="TeaRAGs logo" width="540">
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<strong>Codebase Intelligence layer for AI coding agents</strong><br>
|
|
11
|
-
<sub>Trajectory Enrichment-Aware RAG · served over MCP ·
|
|
11
|
+
<sub>Trajectory Enrichment-Aware RAG · served over MCP · local by default</sub>
|
|
12
12
|
</p>
|
|
13
13
|
|
|
14
14
|
<p align="center">
|
|
@@ -22,19 +22,139 @@
|
|
|
22
22
|
|
|
23
23
|
---
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
**🧠 Your codebase grows faster than your team can understand it.**
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
Even experienced developers know only parts of a large system. AI agents face
|
|
28
|
+
the same problem: finding similar code is easier than knowing whether it is a
|
|
29
|
+
good example or what a change might affect.
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
**🔬 TeaRAGs is a microscope for your codebase.** It gives coding agents
|
|
32
|
+
semantic search, a code graph, Git history, and architecture and naming signals
|
|
33
|
+
over MCP — helping them find relevant code, investigate risks, and prepare
|
|
34
|
+
changes for review. Fully local by default; cloud embeddings are optional.
|
|
35
|
+
|
|
36
|
+
## 🚀 Quick Start
|
|
37
|
+
|
|
38
|
+
We recommend Node.js 24+. With Node.js and [Ollama](https://ollama.com)
|
|
39
|
+
installed:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install -g tea-rags
|
|
43
|
+
ollama pull unclemusclez/jina-embeddings-v2-base-code:latest
|
|
44
|
+
tea-rags index-codebase /path/to/repo --name myrepo
|
|
45
|
+
tea-rags prime /path/to/repo
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[Connect your agent](#-installation): setup instructions for Claude Code, Codex,
|
|
49
|
+
Cursor, ZCode, and other MCP clients are below. Qdrant downloads and starts
|
|
50
|
+
automatically on first use. For cloud embeddings or an alternative local
|
|
51
|
+
provider, see the
|
|
52
|
+
[installation guide](https://artk0de.github.io/TeaRAGs-MCP/quickstart/installation).
|
|
53
|
+
|
|
54
|
+
Then ask your agent:
|
|
55
|
+
|
|
56
|
+
- _"How does auth work in this project?"_
|
|
57
|
+
- _"Find stable examples of retry logic I can reuse."_
|
|
58
|
+
- _"What might be affected if I change the payment module?"_
|
|
59
|
+
|
|
60
|
+
## 🔬 A closer look
|
|
61
|
+
|
|
62
|
+
Even experienced developers know a system unevenly: their own modules well,
|
|
63
|
+
neighboring ones less well, and the rest only in broad strokes. Much of a
|
|
64
|
+
project's established practice lives in the code itself. Every change means
|
|
65
|
+
rebuilding context: finding the implementation, tracing dependencies, comparing
|
|
66
|
+
approaches, studying past fixes, and finding people who know the area.
|
|
67
|
+
|
|
68
|
+
Even human review can miss the problem. Code may look reasonable locally while
|
|
69
|
+
introducing an unwanted dependency, duplicating an existing mechanism, or
|
|
70
|
+
repeating a fragile approach. AI coding agents face the same limitation: finding
|
|
71
|
+
similar code is much easier than knowing whether to use it as a model.
|
|
72
|
+
|
|
73
|
+
**🔬 TeaRAGs is a microscope for your codebase, helping your agent examine it
|
|
74
|
+
from different angles.** This local **Codebase Intelligence layer**, queried
|
|
75
|
+
over MCP, combines semantic and graph indexes with Git history: what code does,
|
|
76
|
+
how it connects, how it has changed, where risks concentrate, and who knows it
|
|
77
|
+
best. Architecture detectors and project vocabulary analysis help surface
|
|
78
|
+
structural problems and inconsistencies that are easy to miss when reading
|
|
79
|
+
isolated files.
|
|
80
|
+
|
|
81
|
+
**🔍 Search by meaning, then navigate by relationships.**
|
|
82
|
+
[Semantic indexing](https://arxiv.org/abs/1909.09436) helps locate
|
|
83
|
+
implementations from a description of the task, even before you know method
|
|
84
|
+
names or the project's terminology.
|
|
85
|
+
[Graph indexing](https://docs.joern.io/code-property-graph/) lets you
|
|
86
|
+
investigate structural relationships: who calls the code, which dependencies
|
|
87
|
+
surround it, and which components execution passes through.
|
|
88
|
+
|
|
89
|
+
TeaRAGs retains the benefits of both approaches. An agent can start with a
|
|
90
|
+
natural-language question, find the relevant code, and follow its connections.
|
|
91
|
+
Git signals add another perspective: how that code has evolved and where to
|
|
92
|
+
exercise caution.
|
|
93
|
+
|
|
94
|
+
These signals are inferred from observed code and change history. They help
|
|
95
|
+
agents investigate established practices and make decisions; explicit team rules
|
|
96
|
+
and agent instructions retain priority.
|
|
97
|
+
|
|
98
|
+
This removes much of the routine investigation. Instead of searching through
|
|
99
|
+
files one after another, the agent gets the symbols, relationships, and evidence
|
|
100
|
+
needed for a specific question. Developers have fewer details to keep in their
|
|
101
|
+
heads, fewer search steps to direct manually, and less information to assemble
|
|
102
|
+
by hand.
|
|
103
|
+
|
|
104
|
+
The benefits extend beyond search:
|
|
105
|
+
|
|
106
|
+
- **🎯 Better-informed decisions.** Fix history, dependencies, and potential
|
|
107
|
+
impact help agents choose an implementation, assess risk, and decide how much
|
|
108
|
+
verification a change needs.
|
|
109
|
+
- **👥 More targeted review.** Authorship and ownership analysis help
|
|
110
|
+
automatically identify reviewer candidates familiar with the affected code and
|
|
111
|
+
highlight areas that need their attention.
|
|
112
|
+
- **📉 Less unnecessary context.** Reading the relevant symbols and
|
|
113
|
+
relationships reduces input tokens and intermediate search steps. Compact,
|
|
114
|
+
relevant context leaves fewer distractions. This aligns with
|
|
115
|
+
[context rot research](https://www.trychroma.com/research/context-rot), which
|
|
116
|
+
shows declining model reliability as context grows, and may make tasks easier
|
|
117
|
+
for less capable models.
|
|
118
|
+
- **♻️ More purposeful refactoring.** Detectors help locate structural problems
|
|
119
|
+
and decide where to invest effort. Better structure can reduce the
|
|
120
|
+
investigation and cost of subsequent changes, paying back the initial
|
|
121
|
+
investment.
|
|
122
|
+
|
|
123
|
+
**🧩 Especially useful for less capable models.** In our observations, giving
|
|
124
|
+
these models more relevant code and explicit relationships helps them make
|
|
125
|
+
better use of their capabilities. Frontier models often produce comparable code
|
|
126
|
+
quality with or without TeaRAGs; for them, the benefit is more about the time
|
|
127
|
+
spent finding and assembling context. Semantic search has generally saved
|
|
128
|
+
investigation time in our sessions, although we have not consistently observed
|
|
129
|
+
that speed advantage in Codex. The benefit depends on the model and agent
|
|
130
|
+
harness, not just the search engine.
|
|
131
|
+
|
|
132
|
+
### 📊 Refactoring TeaRAGs with TeaRAGs
|
|
133
|
+
|
|
134
|
+
In TeaRAGs' own development, we measured Claude Code agents before and after a
|
|
135
|
+
program of structural refactoring. This compares development before and after
|
|
136
|
+
structural improvements, rather than search with and without TeaRAGs:
|
|
137
|
+
|
|
138
|
+
| Metric per feature | Before refactoring | After | Change |
|
|
139
|
+
| -------------------- | -----------------: | -----: | -----: |
|
|
140
|
+
| Median elapsed time | 68 min | 17 min | −75% |
|
|
141
|
+
| Agent steps | 117 | 68 | −42% |
|
|
142
|
+
| Context processed | 23.3M tokens | 12.7M | −45% |
|
|
143
|
+
| Weighted token cost¹ | 4.5M | 1.8M | −60% |
|
|
144
|
+
|
|
145
|
+
¹ `input + 2 × cache_write + 0.1 × cache_read + 5 × output`. This is an
|
|
146
|
+
aggregate cost metric, not a separate measurement of output tokens.
|
|
147
|
+
|
|
148
|
+
These are observations from real development tasks using the same model, not a
|
|
149
|
+
controlled A/B experiment. The working process did not change substantially. The
|
|
150
|
+
`review_changes` check was added after refactoring, so the reductions already
|
|
151
|
+
include its additional overhead.
|
|
152
|
+
|
|
153
|
+
**💡 You do not need to keep the whole system in your head. You need to see what
|
|
154
|
+
matters for the change in front of you.**
|
|
155
|
+
|
|
156
|
+
_Your code should be as powerful as a T-rex, not a collection of dinosaur
|
|
157
|
+
remains. 🦖_
|
|
38
158
|
|
|
39
159
|
<p align="center">
|
|
40
160
|
<img src="public/five-layers.png" alt="Five layers behind one MCP interface: Semantic index, Codegraph, Trajectory, Architecture, Lexicon. The first three read the code, the last two judge its borders and names; every result comes back as a dossier">
|
|
@@ -44,90 +164,65 @@ The first three layers and why an agent needs all of them at once are laid out
|
|
|
44
164
|
in [Codebase Intelligence для агента](https://habr.com/ru/articles/1084028/)
|
|
45
165
|
(Habr, in Russian).
|
|
46
166
|
|
|
47
|
-
TeaRAGs also ships agent skills that know which layer a task needs. The agent
|
|
48
|
-
stops guessing which code is safe to copy, what is critical, and what a change
|
|
49
|
-
will break — it reads the dossier instead.
|
|
50
|
-
|
|
51
167
|
📖 **[Documentation](https://artk0de.github.io/TeaRAGs-MCP/)** · 🏁
|
|
52
168
|
**[15-minute quickstart](https://artk0de.github.io/TeaRAGs-MCP/quickstart/installation)**
|
|
53
169
|
· 🧠
|
|
54
170
|
**[Core concepts](https://artk0de.github.io/TeaRAGs-MCP/introduction/core-concepts)**
|
|
55
171
|
|
|
56
|
-
## 👀 See
|
|
172
|
+
## 👀 See What Changes the Decision
|
|
57
173
|
|
|
58
|
-
|
|
59
|
-
|
|
174
|
+
Finding code is the beginning. The useful question is what the evidence changes
|
|
175
|
+
about the next step. These independent examples use real TeaRAGs responses from
|
|
176
|
+
its own repository, trimmed. The decisions below illustrate how an agent can use
|
|
177
|
+
that evidence; they are not a recorded implementation session.
|
|
60
178
|
|
|
61
|
-
### 1.
|
|
179
|
+
### 1. 🧬 The closest match may be the wrong example
|
|
62
180
|
|
|
63
|
-
|
|
181
|
+
**Question:** “Which retry implementation should I reuse?”
|
|
64
182
|
|
|
65
|
-
Similarity
|
|
66
|
-
|
|
183
|
+
Similarity puts `OllamaEmbeddings#retryWithBackoff` first. Its history gives the
|
|
184
|
+
agent a reason to look beyond that first result:
|
|
67
185
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
| Callers | 2 | 1 |
|
|
186
|
+
| Evidence | First semantic match: `OllamaEmbeddings#retryWithBackoff` | Second match: `DeletionRetryHelper#execute` |
|
|
187
|
+
| ----------------------------- | --------------------------------------------------------: | ------------------------------------------: |
|
|
188
|
+
| Commits to the file | 28 | 1 |
|
|
189
|
+
| Share classified as bug fixes | 54% · 🔴 concerning | 0% · 🟢 healthy |
|
|
190
|
+
| Last changed | 2 days ago | 86 days ago |
|
|
191
|
+
| Callers | 2 | 1 |
|
|
75
192
|
|
|
76
|
-
|
|
77
|
-
|
|
193
|
+
**Decision:** investigate why the closest match keeps being fixed before copying
|
|
194
|
+
it, and compare the quieter helper's approach. One commit and no recorded fixes
|
|
195
|
+
are limited evidence, not a guarantee of quality.
|
|
78
196
|
|
|
79
197
|
<details>
|
|
80
|
-
<summary>
|
|
198
|
+
<summary>Query and how to read the signals</summary>
|
|
81
199
|
|
|
82
|
-
|
|
83
|
-
{
|
|
84
|
-
"symbolId": "OllamaEmbeddings#retryWithBackoff",
|
|
85
|
-
"relativePath": "src/core/adapters/embeddings/ollama.ts",
|
|
86
|
-
"startLine": 290,
|
|
87
|
-
"endLine": 378,
|
|
88
|
-
"preset": "hotspots",
|
|
89
|
-
"git": {
|
|
90
|
-
"file": {
|
|
91
|
-
"commitCount": 28,
|
|
92
|
-
"ageDays": { "value": 2, "label": "recent" },
|
|
93
|
-
"bugFixRate": { "value": 54, "label": "concerning" },
|
|
94
|
-
"relativeChurn": { "value": 2.55, "label": "normal" }
|
|
95
|
-
},
|
|
96
|
-
"chunk": {
|
|
97
|
-
"commitCount": { "value": 11, "label": "extreme" },
|
|
98
|
-
"relativeChurn": { "value": 9.09, "label": "high" }
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"codegraph": { "symbols": { "chunk": { "fanIn": 2, "fanOut": 6 } } }
|
|
102
|
-
}
|
|
103
|
-
```
|
|
200
|
+
`semantic_search { query: "retry a failed request with exponential backoff", rerank: "hotspots" }`
|
|
104
201
|
|
|
105
|
-
|
|
106
|
-
|
|
202
|
+
The semantic match locates candidates; Git history gives another axis for
|
|
203
|
+
comparison. Labels are computed from this repository's own distributions.
|
|
204
|
+
Bug-fix classification is a history heuristic, not a count of defects in the
|
|
205
|
+
current implementation.
|
|
107
206
|
|
|
108
207
|
</details>
|
|
109
208
|
|
|
110
|
-
### 2.
|
|
209
|
+
### 2. 🕸️ A local edit can reach far beyond the file
|
|
111
210
|
|
|
112
|
-
|
|
211
|
+
**Question:** “What needs verification before I change this write method?”
|
|
113
212
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
213
|
+
`QdrantManager#addPointsWithSparse` has **10 call sites across 8 files**. Its
|
|
214
|
+
file has a **transitive impact of 47 files**. Callers span ingestion, API
|
|
215
|
+
operations, schema management, and migrations.
|
|
117
216
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
| 2 | `QdrantManager#addPointsWithSparseOptimized` | file with 45 commits, relative churn 8.09 · 🔴 _high_, 4 authors |
|
|
122
|
-
| 3 | `PointsAccumulator#flushBatch` | one author owns 100% of the live lines · 🟠 _deep-silo_, 158 days untouched |
|
|
217
|
+
**Decision:** include those entry points in the verification plan rather than
|
|
218
|
+
judge the change by the size of the method. Transitive impact identifies
|
|
219
|
+
potential exposure; it does not mean all 47 files will break.
|
|
123
220
|
|
|
124
|
-
|
|
221
|
+
<details>
|
|
222
|
+
<summary>Query and call sites</summary>
|
|
125
223
|
|
|
126
224
|
`get_callers { symbolId: "QdrantManager#addPointsWithSparse" }`
|
|
127
225
|
|
|
128
|
-
Ten exact call sites across eight files — method fan-in 10 · _central_, file
|
|
129
|
-
transitive impact 47 · _regional_:
|
|
130
|
-
|
|
131
226
|
```text
|
|
132
227
|
ChunkPipeline#createBatchHandler ingest/pipeline/chunk-pipeline.ts
|
|
133
228
|
createQdrantPipeline ingest/pipeline/pipeline-manager.ts
|
|
@@ -140,16 +235,92 @@ SparseStoreAdapter#rebuildSparseVectors maintenance/migration/adapters/sparse-
|
|
|
140
235
|
SparseStoreAdapter#storeSparseVersion maintenance/migration/adapters/sparse-store-adapter.ts
|
|
141
236
|
```
|
|
142
237
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
238
|
+
`trace_path` can follow A→B call paths; risk ranking helps decide which steps
|
|
239
|
+
deserve closer investigation. Ownership signals help identify reviewer
|
|
240
|
+
candidates familiar with the affected areas.
|
|
241
|
+
|
|
242
|
+
</details>
|
|
243
|
+
|
|
244
|
+
### 3. 🔗 No graph edge does not mean independent changes
|
|
245
|
+
|
|
246
|
+
**Question:** “Why do these two resolvers keep changing together?”
|
|
247
|
+
|
|
248
|
+
The Go and Java resolvers changed together in **5 sessions**. Every Java change
|
|
249
|
+
in that sample came with a Go change (**lift 86.5**), despite no import or call
|
|
250
|
+
connecting them.
|
|
251
|
+
|
|
252
|
+
**Decision:** investigate a shared convention or duplicated responsibility
|
|
253
|
+
before changing either resolver in isolation. Check whether the other needs a
|
|
254
|
+
matching update, or whether common behavior belongs in the language kernel.
|
|
255
|
+
Co-change is a lead for investigation, not proof of a missing abstraction.
|
|
256
|
+
|
|
257
|
+
<details>
|
|
258
|
+
<summary>Where the evidence comes from</summary>
|
|
259
|
+
|
|
260
|
+
`get_architecture_report` combines structural relationships with change history.
|
|
261
|
+
Its silent-coupling detector surfaces co-change that has no corresponding graph
|
|
262
|
+
edge. A call graph alone would not reveal this relationship.
|
|
263
|
+
|
|
264
|
+
</details>
|
|
265
|
+
|
|
266
|
+
### 4. 🔤 A reasonable name can introduce a second vocabulary
|
|
267
|
+
|
|
268
|
+
**Question:** “Does this new name speak the project's language?”
|
|
269
|
+
|
|
270
|
+
| Draft | Evidence from the project | Review result |
|
|
271
|
+
| ---------------------------- | ------------------------------------------------------------------------------------ | --------------------------------- |
|
|
272
|
+
| `const meta: GitFileSignals` | Values of this type are named after `assembleFileSignals` | **MISFIT** → `fileSignals` |
|
|
273
|
+
| `type SignalStatistics` | Existing term `stats` has semantic similarity 0.93, above the chance-corrected floor | **NEW_TERM**, alternative `stats` |
|
|
274
|
+
|
|
275
|
+
**Decision:** prefer the established name when it describes the same role or
|
|
276
|
+
concept. The agent gets evidence for a naming discussion instead of adding
|
|
277
|
+
another plausible synonym. Explicit team naming rules retain priority.
|
|
278
|
+
|
|
279
|
+
<details>
|
|
280
|
+
<summary>Review query and evidence isolation</summary>
|
|
281
|
+
|
|
282
|
+
`review_changes { changes: { base: "main" }, sections: ["naming"] }`
|
|
283
|
+
|
|
284
|
+
The vocabulary is inferred from the project's call graph. Only declarations on
|
|
285
|
+
added lines are judged, and changed files are excluded from the evidence so a
|
|
286
|
+
diff cannot establish its own convention. `get_ontology_report` can audit the
|
|
287
|
+
wider vocabulary for synonyms, homonyms, and outliers.
|
|
288
|
+
|
|
289
|
+
</details>
|
|
290
|
+
|
|
291
|
+
### 5. 🏛️ A working import can still cross the wrong boundary
|
|
292
|
+
|
|
293
|
+
**Question:** “Does this change fit how the component is used?”
|
|
294
|
+
|
|
295
|
+
`bootstrap/factory.ts` reaches past the `bootstrap/config` facade into
|
|
296
|
+
`env-snapshot.ts` for **3 names the facade does not export**. Meanwhile, **7 of
|
|
297
|
+
9 importers** use the facade.
|
|
298
|
+
|
|
299
|
+
**Decision:** examine whether the factory should use the facade or whether the
|
|
300
|
+
facade's contract needs an intentional change. A valid import and passing local
|
|
301
|
+
tests do not answer that architectural question.
|
|
302
|
+
|
|
303
|
+
<details>
|
|
304
|
+
<summary>Detector and interpretation</summary>
|
|
305
|
+
|
|
306
|
+
`get_architecture_report` identifies the bypass using import edges and observed
|
|
307
|
+
facade adoption. This is an inferred boundary to investigate; an explicit
|
|
308
|
+
architectural rule or an intentional exception can take precedence.
|
|
309
|
+
|
|
310
|
+
</details>
|
|
311
|
+
|
|
312
|
+
**The microscope changes what the agent checks, copies, names, and asks a human
|
|
313
|
+
to verify — with evidence attached to each decision.**
|
|
146
314
|
|
|
147
315
|
## ❓ What It Answers
|
|
148
316
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
317
|
+
<details>
|
|
318
|
+
<summary>Explore questions, evidence, and agent workflows</summary>
|
|
319
|
+
|
|
320
|
+
Ask in plain language. **The plugin routes tasks to relevant skills, tools and
|
|
321
|
+
rerank presets** — it ships a decision table that maps intent to the right call,
|
|
322
|
+
so nobody has to know a preset name. Other MCP clients get the same routing
|
|
323
|
+
guide as an MCP resource (`tea-rags://schema/search-guide`).
|
|
153
324
|
|
|
154
325
|
One question per layer, most distinctive first. Every number is a real response
|
|
155
326
|
on TeaRAGs' own repository.
|
|
@@ -207,7 +378,8 @@ Similarity finds all four; history decides. `proven` ranks long-lived,
|
|
|
207
378
|
low-bug-rate, multi-author code first, and every result carries its dossier —
|
|
208
379
|
commits, bug-fix share, age, owners — labelled against this repository's own
|
|
209
380
|
percentiles. The closest match by text is often the one fixed every sprint; see
|
|
210
|
-
[
|
|
381
|
+
[retry comparison](#1--the-closest-match-may-be-the-wrong-example) for a real
|
|
382
|
+
pair.
|
|
211
383
|
|
|
212
384
|
### 4. 🕸️ _"How does a request get from the API to the card charge, and which step is riskiest?"_
|
|
213
385
|
|
|
@@ -216,8 +388,8 @@ percentiles. The closest match by text is often the one fixed every sprint; see
|
|
|
216
388
|
Every call path between the two symbols, resolved from the call graph rather
|
|
217
389
|
than guessed from names, with each step ranked by how risky it is to touch. An
|
|
218
390
|
ambiguous call is reported as ambiguous, never picked at random. See
|
|
219
|
-
[
|
|
220
|
-
real write path.
|
|
391
|
+
[impact example](#2--a-local-edit-can-reach-far-beyond-the-file) for the ten
|
|
392
|
+
call sites of a real write path.
|
|
221
393
|
|
|
222
394
|
### 5. 🔍 _"Where do we charge a bill with a saved card?"_ — when the code says `invoice`
|
|
223
395
|
|
|
@@ -279,6 +451,8 @@ The right column shows what runs under the hood.
|
|
|
279
451
|
|
|
280
452
|
</details>
|
|
281
453
|
|
|
454
|
+
</details>
|
|
455
|
+
|
|
282
456
|
## ✨ Features
|
|
283
457
|
|
|
284
458
|
- 📈 **Git- and codegraph-aware ranking** — 23 rerank presets blend churn,
|
|
@@ -286,8 +460,8 @@ The right column shows what runs under the hood.
|
|
|
286
460
|
(`proven`, `hotspots`, `techDebt`, `blastRadius`, `criticalPath`, …), plus 12
|
|
287
461
|
filter presets
|
|
288
462
|
- 🕸️ **Call graph** — callers, callees, cycles and A→B paths (`get_callers`,
|
|
289
|
-
`get_callees`, `find_cycles`, `trace_path`)
|
|
290
|
-
|
|
463
|
+
`get_callees`, `find_cycles`, `trace_path`) with resolution depth varying by
|
|
464
|
+
language and driver availability — see [Language Support](#language-support)
|
|
291
465
|
- 🏛️ **Architecture report** — Stable Dependencies at component level, imports
|
|
292
466
|
that leak past an adopted facade, files that change together with no edge
|
|
293
467
|
between them, and distance from the main sequence (`get_architecture_report`)
|
|
@@ -295,23 +469,20 @@ The right column shows what runs under the hood.
|
|
|
295
469
|
off the project vocabulary, co-change partners the change left untouched,
|
|
296
470
|
per-file cohesion, and new edges that break architecture boundaries
|
|
297
471
|
(`review_changes`)
|
|
298
|
-
-
|
|
299
|
-
|
|
300
|
-
review
|
|
301
|
-
audit of synonyms, homonyms and outliers (`get_ontology_report`)
|
|
302
|
-
- 🧠 **Agent skills** — the plugin routes every question to the right tools and
|
|
303
|
-
presets on its own; 15 ready-made workflows (`explore`, `bug-hunt`,
|
|
304
|
-
`risk-assessment`, `data-driven-generation`, `mr-review`, …) plus
|
|
472
|
+
- 🧠 **Agent skills** — the plugin routes tasks to relevant tools and presets;
|
|
473
|
+
15 ready-made workflows (`explore`, `bug-hunt`, `risk-assessment`,
|
|
474
|
+
`data-driven-generation`, `mr-review`, …) plus
|
|
305
475
|
[`dinopowers`](https://artk0de.github.io/TeaRAGs-MCP/usage/skills/#dinopowers--wrappers-over-superpowers),
|
|
306
476
|
10 wrappers that feed index signals into
|
|
307
477
|
[`superpowers`](https://github.com/obra/superpowers)
|
|
308
|
-
- 🔒 **
|
|
309
|
-
Ollama — on the laptop or on any machine in your network,
|
|
310
|
-
an automatic fallback (see
|
|
311
|
-
OpenAI, Cohere and Voyage
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
478
|
+
- 🔒 **Fully local by default** — embedded Qdrant and DuckDB, no Docker;
|
|
479
|
+
embeddings through Ollama — on the laptop or on any machine in your network,
|
|
480
|
+
with the laptop as an automatic fallback (see
|
|
481
|
+
[Embedding providers](#embedding-providers)) — with OpenAI, Cohere and Voyage
|
|
482
|
+
optional
|
|
483
|
+
- 🔄 **Incremental updates & worktree support** — incremental reindex,
|
|
484
|
+
auto-update on a target branch, per-worktree index clones, and a drift report
|
|
485
|
+
that names the exact command to run
|
|
315
486
|
- 🏢 **Built for enterprise monorepos** — AST chunking for 12 languages,
|
|
316
487
|
parallel pipelines, validated on a 3.5M-line production monolith
|
|
317
488
|
|
|
@@ -334,8 +505,8 @@ Disk taken by real indexes (turbo quantization, dense + sparse vectors):
|
|
|
334
505
|
| Production monolith (Ruby + TypeScript) | **3.3M lines of Ruby + TypeScript, tests included + 162K lines of docs** · ~34k files · 175k chunks | 2.0 GB | ~460 MB |
|
|
335
506
|
| TeaRAGs itself (TypeScript) | 686K LoC + 290K lines of docs · ~3.5k files · 45k chunks | 1.2 GB | 40 MB |
|
|
336
507
|
|
|
337
|
-
|
|
338
|
-
|
|
508
|
+
These are measured examples, not a sizing formula. Storage depends on chunk
|
|
509
|
+
count, embedding dimensions, quantization, and graph density.
|
|
339
510
|
|
|
340
511
|
Pull the code-embedding model:
|
|
341
512
|
|
|
@@ -343,10 +514,10 @@ Pull the code-embedding model:
|
|
|
343
514
|
ollama pull unclemusclez/jina-embeddings-v2-base-code:latest
|
|
344
515
|
```
|
|
345
516
|
|
|
346
|
-
The repository is a plugin marketplace for Claude Code, Codex and
|
|
347
|
-
harness gets `tea-rags` (MCP server, skills, session hooks) and
|
|
348
|
-
(wrappers over [superpowers](https://github.com/obra/superpowers) —
|
|
349
|
-
superpowers first).
|
|
517
|
+
The repository is a plugin marketplace for Claude Code, Codex, Cursor and ZCode.
|
|
518
|
+
Each harness gets `tea-rags` (MCP server, skills, session hooks) and
|
|
519
|
+
`dinopowers` (wrappers over [superpowers](https://github.com/obra/superpowers) —
|
|
520
|
+
install superpowers first).
|
|
350
521
|
|
|
351
522
|
<details>
|
|
352
523
|
<summary><b>Claude Code</b> — plugins plus a setup wizard</summary>
|
|
@@ -398,6 +569,27 @@ yet verified). Details: [`harness/cursor/README.md`](harness/cursor/README.md).
|
|
|
398
569
|
|
|
399
570
|
</details>
|
|
400
571
|
|
|
572
|
+
<details>
|
|
573
|
+
<summary><b>ZCode</b></summary>
|
|
574
|
+
|
|
575
|
+
```bash
|
|
576
|
+
npm install -g tea-rags
|
|
577
|
+
zcode plugins marketplace add "$(npm root -g)/tea-rags/harness/zcode"
|
|
578
|
+
zcode plugins install tea-rags-setup@tea-rags
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
Then run the `tea-rags-setup:install` skill in a ZCode session — the wizard
|
|
582
|
+
detects the zcode host and finishes the setup (tea-rags plugin + MCP server,
|
|
583
|
+
project registration, first index). Manual alternative:
|
|
584
|
+
`zcode plugins install tea-rags@tea-rags` (+ `dinopowers@tea-rags`); the plugin
|
|
585
|
+
carries its own MCP server and hooks on ZCode's seven events (no SubagentStart —
|
|
586
|
+
the subagent search block rides a PreToolUse(Agent) hook). `tea-rags update`
|
|
587
|
+
keeps the installed plugins at the client's release through this marketplace. A
|
|
588
|
+
workspace server override lives in `.zcode/config.json` → `mcp.servers`.
|
|
589
|
+
Details: [`harness/zcode/README.md`](harness/zcode/README.md).
|
|
590
|
+
|
|
591
|
+
</details>
|
|
592
|
+
|
|
401
593
|
<details>
|
|
402
594
|
<summary><b>Any other MCP client</b> (Roo Code, Continue, …)</summary>
|
|
403
595
|
|
|
@@ -426,34 +618,6 @@ Voyage), an external Qdrant, and the built-in ONNX provider (beta) are covered
|
|
|
426
618
|
in the
|
|
427
619
|
[installation guide](https://artk0de.github.io/TeaRAGs-MCP/quickstart/installation).
|
|
428
620
|
|
|
429
|
-
### 🕸️ The call graph
|
|
430
|
-
|
|
431
|
-
The call graph is **on by default**. To index a project without it, set
|
|
432
|
-
`CODEGRAPH_ENABLED=false` for that run, or pin it on an indexed project:
|
|
433
|
-
|
|
434
|
-
```bash
|
|
435
|
-
tea-rags projects set-env --name <alias> CODEGRAPH_ENABLED=false
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
The flag is recorded per project, so later runs from the CLI, the MCP server or
|
|
439
|
-
auto-update keep each project's choice. Projects indexed while the call graph
|
|
440
|
-
was opt-in keep the state they were indexed with; turn it on for one with
|
|
441
|
-
`CODEGRAPH_ENABLED=true` in the same command. Details:
|
|
442
|
-
[Codegraph Enrichments](https://artk0de.github.io/TeaRAGs-MCP/usage/advanced/codegraph-enrichments).
|
|
443
|
-
|
|
444
|
-
## 🚀 Quick Start
|
|
445
|
-
|
|
446
|
-
```bash
|
|
447
|
-
tea-rags index-codebase /path/to/repo --name myrepo # first index: register + index
|
|
448
|
-
tea-rags prime /path/to/repo # index state, drift, signal thresholds
|
|
449
|
-
```
|
|
450
|
-
|
|
451
|
-
In Claude Code, `/tea-rags:index` does the same. Then ask your agent:
|
|
452
|
-
|
|
453
|
-
- _"How does auth work in this project?"_
|
|
454
|
-
- _"Find stable examples of retry logic I can copy."_
|
|
455
|
-
- _"What breaks if I change the payment module?"_
|
|
456
|
-
|
|
457
621
|
## 🤔 Why TeaRAGs?
|
|
458
622
|
|
|
459
623
|
| | `grep` / `ripgrep` | Embedding search | **TeaRAGs** |
|
|
@@ -462,7 +626,7 @@ In Claude Code, `/tea-rags:index` does the same. Then ask your agent:
|
|
|
462
626
|
| **Knows history** | — | — | Churn, bug fixes, owners, age |
|
|
463
627
|
| **Knows callers** | — | — | Fan-in, transitive impact, call paths |
|
|
464
628
|
| **Ranks for the task** | — | Similarity only | 23 presets — see [What It Answers](#-what-it-answers) |
|
|
465
|
-
| **Cost on a large monorepo** | Many agent turns | One query |
|
|
629
|
+
| **Cost on a large monorepo** | Many agent turns | One query | Targeted queries with code, graph and history |
|
|
466
630
|
|
|
467
631
|
### 🆚 Compared to other tools
|
|
468
632
|
|
|
@@ -591,7 +755,7 @@ your own corpus.
|
|
|
591
755
|
|
|
592
756
|
<!-- BEGIN lang-compat -->
|
|
593
757
|
|
|
594
|
-
##
|
|
758
|
+
## Language Support
|
|
595
759
|
|
|
596
760
|
<!-- markdownlint-disable MD033 -->
|
|
597
761
|
<details>
|
|
@@ -608,12 +772,12 @@ Rows are ordered by overall capability, richest support first.
|
|
|
608
772
|
|
|
609
773
|
| Language | AST chunking | Test chunking | Codegraph |
|
|
610
774
|
| ----------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
611
|
-
| **_TypeScript_** | 🌔 **full** · tree-sitter (comment attachment, method-body splitting, describe/it scopes) | 🌖 **high** · testScopeChunker (describe/it scopes, one addressable chunk per example; in-source blocks marked isTest and pruned from the codegraph) |
|
|
775
|
+
| **_TypeScript_** | 🌔 **full** · tree-sitter (comment attachment, method-body splitting, describe/it scopes) | 🌖 **high** · testScopeChunker (describe/it scopes, one addressable chunk per example; in-source blocks marked isTest and pruned from the codegraph) | 🌕 **maximum** — 14-strategy chain (10 tree-sitter + 4 ts.Program/typeChecker) + cone dispatch + typeChecker-backed union-receiver fan-out |
|
|
776
|
+
| **_Rust_** | 🌔 **full** · tree-sitter (named-item extraction, #[cfg(test)] / #[test] scopes) | 🌖 **high** · attribute-AST test scope chunking (#[cfg(test)] with all/any/not evaluation, #[test]-family attributes); inline tests marked isTest and pruned from the codegraph | 🌕 **maximum** — 10-strategy (rustc call-site driver first); trait dispatch; return/field chains (Self, generics, assoc-fn heads, aliases); call-result locals; crate impls |
|
|
612
777
|
| **_JavaScript_** | 🌔 **full** · tree-sitter (assignment chunking, describe/it scopes, module/class split) | 🌖 **high** · testScopeChunker (describe/it scopes, one addressable chunk per example; in-source blocks marked isTest and pruned from the codegraph) | 🌖 **high** — 6-strategy; CommonJS/ESM require resolution (dynamic gaps) |
|
|
613
778
|
| **_Ruby_** | 🌔 **full** · tree-sitter (RSpec block grouping, comment attachment, spec scope splitting, method-body splitting) | 🌖 **high** · RSpec scope chunker (one chunk per example, ancestor setup injected) | untyped 🌖 **high** · YARD 🌕 **maximum** · RBS/Sorbet 🌑 **TBD** — 15-strategy chain + 4 dispatch components + 20-grammar DSL catalogue + YARD type-source + db/schema.rb column accessors |
|
|
614
779
|
| **_Swift_** | 🌔 **full** · tree-sitter | 🌖 **high** · XCTest + swift-testing recognition (test cases, setUp/tearDown, @Test/@Suite) plus Quick/Nimble DSL scope chunking (per-scenario chunks with ancestor beforeEach spliced in) | 🌖 **high** — 10-strategy chain + superclass dispatch + field and return-type receiver typing + nested-type and module-value receivers; no import narrowing |
|
|
615
780
|
| **_Python_** | 🌔 **full** · tree-sitter | 🌓 **medium** · generic AST | 🌖 **high** — 10-strategy chain + C3 MRO + cone/union/callable-param/dict-table dispatch + re-export-aware imports + inferred return types + gated framework vocabularies |
|
|
616
|
-
| **_Rust_** | 🌔 **full** · tree-sitter (named-item extraction, #[cfg(test)] / #[test] scopes) | 🌖 **high** · attribute-AST test scope chunking (#[cfg(test)] with all/any/not evaluation, #[test]-family attributes); inline tests marked isTest and pruned from the codegraph | 🌗 **moderate** — 10-strategy (rustc call-site driver first); trait dispatch; return/field chains (Self, generics, assoc-fn heads, aliases); call-result locals; crate impls |
|
|
617
781
|
| **_Go_** | 🌔 **full** · tree-sitter (func/type split) | 🌓 **medium** · generic AST | 🌗 **moderate** — 7-pass chain + scope-aware typed locals + struct-field chains + embedding promotion + go.mod module-path imports; no interface dispatch |
|
|
618
782
|
| **_Java_** | 🌔 **full** · tree-sitter | 🌓 **medium** · generic AST | 🌗 **moderate** — 6-strategy + java.lang stdlib whitelist + overload disambiguation |
|
|
619
783
|
| **_PHP_** | 🌔 **full** · tree-sitter | 🌓 **medium** · generic AST | 🌗 **moderate** — same-file $this members, typed locals, same-file and imported scoped calls, same-file functions, unique global functions, use-to-file edges |
|
|
@@ -635,7 +799,7 @@ or syntax-blind fallback. Internal revisions only route index rebuilds.
|
|
|
635
799
|
|
|
636
800
|
| Language | Language / toolchain policy | Grammar package version | Internal revisions (chunking / walker / codegraphSchema) | Evidence and limits |
|
|
637
801
|
| ---------- | --------------------------- | ---------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
638
|
-
| ruby | grammar-bounded | tree-sitter-ruby@0.23.1 |
|
|
802
|
+
| ruby | grammar-bounded | tree-sitter-ruby@0.23.1 | 4 / 11 / 2 | Installed grammar and project fixtures bound Ruby syntax; no Ruby/MRI release range or runtime conformance certified · tests/core/domains/language/capability/version-policy.test.ts |
|
|
639
803
|
| typescript | grammar-bounded | tree-sitter-typescript@0.23.2 | 4 / 17 / 2 | Installed TypeScript/TSX grammar and project fixtures bound syntax; TypeScript compiler package version does not certify a language release range · tests/core/domains/language/capability/version-policy.test.ts |
|
|
640
804
|
| javascript | grammar-bounded | tree-sitter-javascript@0.25.0 | 4 / 6 / 2 | Installed JavaScript/JSX grammar and project fixtures bound syntax; no ECMAScript edition or Node/browser runtime range certified · tests/core/domains/language/capability/version-policy.test.ts |
|
|
641
805
|
| python | grammar-bounded | tree-sitter-python@0.25.0 | 1 / 12 / 2 | Installed grammar and project fixtures bound Python syntax; no Python/CPython release range or runtime conformance certified · tests/core/domains/language/capability/version-policy.test.ts |
|
|
@@ -664,6 +828,7 @@ decides how much of the tooling on top of the MCP server you get.
|
|
|
664
828
|
| **Claude Code** | ✅ stdio | ✅ plus the plugin's routing rules | ✅ plugins | ✅ `/tea-rags-setup:install` |
|
|
665
829
|
| **Codex CLI** | ✅ stdio | ✅ plus the plugin's core skill and hooks | ✅ plugins (`$name` skills) | — manual install |
|
|
666
830
|
| **Cursor** | ✅ stdio | ✅ plus the plugin's sessionStart digest | ✅ plugins (`/name` skills) | — manual install |
|
|
831
|
+
| **ZCode** | ✅ stdio | ✅ plus the plugin's SessionStart hooks | ✅ plugins (`tea-rags:name` skills) | ✅ `tea-rags-setup:install` |
|
|
667
832
|
| **Other stdio clients** (Roo Code, Continue, …) | ✅ `tea-rags server` | ✅ where the client reads MCP resources | — | — manual install |
|
|
668
833
|
| **HTTP clients** | ✅ `tea-rags server --http` (Streamable HTTP, port 3000) | ✅ where the client reads MCP resources | — | — manual install |
|
|
669
834
|
|
|
@@ -761,7 +926,7 @@ is incremental — only changed files are re-embedded.
|
|
|
761
926
|
graph of varying depth: TypeScript, JavaScript, Ruby, Python, Swift, Go, Java,
|
|
762
927
|
Rust, Bash, Objective-C, PHP, and Kotlin. Markdown is chunked by heading and
|
|
763
928
|
YAML by key path; SQL and JSON fall back to plain character chunks. Per-language
|
|
764
|
-
depth is in [
|
|
929
|
+
depth is in [Language Support](#language-support).
|
|
765
930
|
|
|
766
931
|
**How accurate are the git signals?** They are read from your real history; the
|
|
767
932
|
one heuristic is bug-fix detection. A commit counts as a bug fix when its
|