Stop paying agents to rediscover your repo.
.knowledge gives Codex, Claude Code, OpenCode and custom agents a local control plane for the repository: one first-read routing bundle, trust and freshness status, repair queue, scoped local search, source-of-truth rules and a Visual Inspector.
Synthetic SaaS-shape fixture: 14 orientation files → 1 routing bundle, ~22% less first-orientation context.
Fewer repeated repo crawls. Fewer stale-summary mistakes. Fewer wrong-file loops.
Different agents, same repo, shared project memory — without forcing them into one chat thread.
- One first-read routing bundle
- Trust and freshness status
- Repair queue
- Local search scopes
- Source-of-truth order
- Multi-agent workflow for Codex, Claude Code, OpenCode and custom agents
- Visual Inspector
- Local-first, no telemetry
- No required cloud
For a fresh archive, first-time setup starts with:
Read `.knowledge/Quick-Start.md` and execute it for this repository.Manual first-time setup:
node .knowledge/tools/install-agent-integrations.js
node .knowledge/tools/flow.js importAfter setup, the first operational file an agent reads is:
.knowledge/maintenance/routing_bundle.json- Routes agents to the right modules and files.
- Tracks trust levels and freshness.
- Marks stale or suspect knowledge instead of silently trusting it.
- Stores module cards, decisions, evidence, wiki notes, and handoff state.
- Builds a local search index and typed wiki graph.
- Generates doctor reports, metrics, PR summaries, and Mermaid flow diagrams.
- Provides GitHub Action templates and agent integrations.
- Supports optional external memory as a bridge, not a source of truth.
.knowledge includes official template packs for common project shapes:
templates/official/nextjs-saas
templates/official/python-fastapi
templates/official/node-monorepo
templates/official/supabase
templates/official/ai-agent-runtimeList and apply templates:
node .knowledge/tools/apply-template.js --list
node .knowledge/tools/apply-template.js nextjs-saasTemplates are advisory. They add review hints, wiki notes, and repair queue items, but they do not claim that a project has already been verified.
Build the static inspector:
node .knowledge/tools/build-visual-inspector.jsOpen:
.knowledge/inspector/index.htmlIt shows health, trust buckets, modules, repair queue, stale items, critical files, wiki graph, applied templates, and external-memory state. Use it for screenshots, demos, onboarding, and debugging.
The bundled Visual Inspector is local, static and free.
For teams that need interactive graphs, advanced filters, repair queue views, PR impact, policy overlays and multi-repo dashboards, join the Pro2Pilot Inspector waitlist:
https://pro2pilot.com/inspector/
Practical recipes live in:
.knowledge/docs/cookbook/Current recipes cover new project setup, existing-project migration, agent handoff, wiki graph maintenance, PR review, and external memory.
These numbers come from a synthetic SaaS fixture and a few small synthetic repos, on a single local machine. They are order-of-magnitude results from one local token estimator (max(ceil(words*1.33), ceil(chars/4))). They are not production benchmarks, they are not tokenizer-verified, and they are not a guarantee of behavior on your repo.
On the synthetic SaaS-shape fixture, .knowledge reduced the orientation path from 14 files to one routing bundle. On tiny synthetic repos, the routing bundle has fixed structural cost and the percentage may go negative — this is reported honestly, not hidden.
Doctor scores in smoke scenarios ranged healthy 90–93 depending on scenario. Remaining deductions are intentional low-trust / suspect-module warnings from heuristic ingest; source-backed evidence is required before trust is raised.
- A no-
.knowledgeagent has to open multiple manifests and crawl source folders to identify domain areas. The routing bundle replaces that for the agent's first read. - On the SaaS fixture,
14 files → 1 routing bundleis the headline change. Token counts are estimates, not exact. - Doctor and wiki-lint scores reflect structural health of
.knowledge, not correctness of the user's code.
- They do not prove a uniform speedup across all repos. Tiny repos may show overhead because the routing bundle has fixed structure cost.
- They are not equivalent to a real tokenizer count. Production tokenizers will differ.
- They are not a guarantee of agent behaviour — agents may still ignore routing if instructed to read source directly.
Benchmark methodology is summarized in:
.knowledge/docs/metrics-benchmarks.mdRegenerate project-specific numbers with:
node .knowledge/tools/flow.js release --no-colorcurrent code
> current tests
> .knowledge/evidence/*.json
> .knowledge/modules/*.json
> .knowledge/decisions.json
> .knowledge/wiki/*.md
> .knowledge/sessions/*
> external retrieved memoryCode beats summaries. Tests beat prose. External memory is retrieved context only.
Extract the archive into the repository root so it creates:
.knowledge/Then give the agent:
Read `.knowledge/Quick-Start.md` and execute it for this repository.Manual setup:
node .knowledge/tools/install-agent-integrations.js
node .knowledge/tools/flow.js importBefore flow import, project runtime files such as project_index.json,
freshness.json, and maintenance/routing_bundle.json may not exist yet.
That is expected for the public install archive. After flow import,
maintenance/routing_bundle.json becomes the first operational read.
Release/readiness check:
node .knowledge/tools/flow.js releasenode .knowledge/tools/doctor.js
node .knowledge/tools/flow.js scan
node .knowledge/tools/flow.js lint
node .knowledge/tools/flow.js import
node .knowledge/tools/flow.js release
node .knowledge/tools/flow.js release --no-color
node .knowledge/tools/check-updates.js # manual update check
node .knowledge/tools/search-knowledge.js "query"
node .knowledge/tools/search-knowledge.js "query" --scope=templates
node .knowledge/tools/search-knowledge.js "query" --scope=cookbook
node .knowledge/tools/search-knowledge.js "query" --scope=all
node .knowledge/tools/collect-metrics.js
node .knowledge/tools/build-visual-inspector.js
node .knowledge/tools/serve-inspector.jsSee:
.knowledge/docs/cookbook/The cookbook is the practical recipe layer for .knowledge. It is a set of short operational playbooks that tell an agent exactly when to use a workflow, which files to read first, which commands to run, which artifacts to update, and what to verify before trusting the result.
node .knowledge/tools/render-graph-execution.jsOutputs Mermaid diagrams to:
.knowledge/maintenance/graphs/knowledge-flow.mmd
.knowledge/maintenance/graphs/maintenance-flow.mmd
.knowledge/maintenance/graphs/agent-handoff-flow.mmdTemplates live in:
.knowledge/github-action-templates/These templates are inactive until copied to .github/workflows/. Start with knowledge-health.yml.
Generate a PR-facing summary:
node .knowledge/tools/generate-pr-summary.jsOutput:
.knowledge/maintenance/pr_summary.mdThe inspector is optional. .knowledge works without it.
node .knowledge/tools/build-visual-inspector.js
node .knowledge/tools/serve-inspector.jsDetails: .knowledge/docs/inspector.md.
node .knowledge/tools/collect-metrics.jsOutputs:
.knowledge/metrics/baseline.json
.knowledge/metrics/README.md.knowledge/docs/migration.md.knowledge/flows/*.md.knowledge/tools/flow.js
.knowledge does not run a background updater and does not send telemetry. Update checks are disabled by default.
Check manually:
node .knowledge/tools/check-updates.jsEnable optional weekly advisory checks during doctor / flow:
node .knowledge/tools/check-updates.js --enable --interval=7dChange the interval:
node .knowledge/tools/check-updates.js --interval=14dDisable update checks:
node .knowledge/tools/check-updates.js --disableUpdate checks only query GitHub Releases for the official pro2pilot/knowledge repository. They never upload repository content, never auto-update files, and never overwrite project knowledge records.
Pinecone is optional and disabled by default. It can be used as a cold archive bridge in two modes:
Pinecone Local → local emulator / CI / experiments
Pinecone Cloud → managed vector databaseCheck local readiness:
node .knowledge/tools/external-memory-status.jsExternal retrieved chunks never override source code, tests, evidence, or decisions.
Run when you want to refresh public-facing local artifacts:
node .knowledge/tools/flow.js releaseThe open-core .knowledge distribution in this archive is licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.
This Apache-2.0 license applies to the contents shipped in this .knowledge archive unless a file explicitly states otherwise.
