1. Executive Summary
Context Bank is an npm CLI, TypeScript library and Claude Code plugin
that keeps a project's agent memory as Markdown files under
.ai/, committed to git and named in AGENTS.md
so every coding agent reads the same contract. Notable: it inverts the
read-everything memory bank it grew out of. Two small files are read
each session, each decision is its own file and is searched rather than
preloaded, and a doctor command measures each file against
a character cap. Weak: every cap is advisory. Nothing refuses an
over-cap write, and compaction runs only when a person asks. It keeps
two named sections of active-context.md and moves
everything else to an archive that no session reads unless a live file
points there.
The code is small and careful where it touches files. Every read and
write passes a symlink guard that treats .git as outside
the repository, and the v2-to-v3 migration writes each decision, reads
it back, and only then deletes the source, with a test that injects the
verification failure.
The weak points are in the contract rather than the code:
- A cap is a measurement.
doctorreports an over-cap file and the session-start hook tells the agent to suggest/context-bank:compact(plugin/hooks/session-start.mjs:24-30).rules.mdandarchitecture.mdhave no compaction path at all. - A reversed decision is still a decision. Decision
files are never edited (
src/lib/contract.ts:35), so a reversal is a second file and both match a search, ordered only by the date in the file name. - Migration leaves the old contract behind in pointer
files. A v1 bank's
GEMINI.md,CONVENTIONS.mdand.github/copilot-instructions.mdkeep "After EVERY task, you MUST update" four files,story.mdamong them, aftermigrate, anddoctornever reads them. The repository's own copies of those three files are an instance.
Licence. MIT in LICENSE, copyright 2025
Kadir Esen, with "license": "MIT" in
package.json and
plugin/.claude-plugin/plugin.json and
license: MIT in the skill's frontmatter. No file
disagrees.
No marks. Section 9 names each of the seven and why it is withheld.
2. Mental Model
A memory is text in a file the contract tells the agent to
read. There is no record type, no status and no extraction
step. What an agent believes is whatever the files it opened say, and
the contract's job is to decide which files it opens.
AGENTS.md assigns each file a read policy and a role
(src/lib/contract.ts:27-38), and CAPS gives
each a character budget (:67-73):
rules.md: always read; stack and conventions; 12,000 characters.active-context.md: read when resuming; current work only; 8,000 characters or 80 lines.roadmap.md: read when planning; open work; 20,000 characters.architecture.md: read when structure matters; current shape, not a changelog; 40,000 characters..ai/story/: never preloaded; one decision per file, 4,000 characters each; searched when a past decision is needed..ai/archive/: never preloaded; read only when a live file points at it (plugin/skills/context-bank/SKILL.md:16-23).
Everything in a live file is treated as true. A thing stops being believed in three ways, and the tool records none of them:
- Edited away. The skill tells the agent to replace
stale lines in
active-context.mdrather than append (SKILL.md:31). Git keeps the old text. - Compacted out. A person runs
compactand the live file loses everything outside its kept sections, which survive in a dated archive copy. - Never, for a decision. The contract forbids editing an old decision. A reversal is a new file, and the old one is equally searchable. The only signal that one replaces the other is the date in the file name.
Who moves things: the agent writes every file with its own file
tools, the person approves compact and
migrate, and the CLI never runs unless one of them starts
it. Nothing runs in the background.
Diagram source
%% caption: a cap is checked at session start and enforced only when a person compacts; decisions are never rewritten, so a reversal sits beside what it reverses
flowchart TD
W["agent edits a live<br/>.ai/ file with its<br/>own file tools"]
W --> DOC{"doctor at startup:<br/>file over its<br/>character cap?"}
DOC -->|"no"| QUIET["hook stays silent"]
DOC -->|"yes"| NOTE["finding injected;<br/>agent told to<br/>suggest compact"]
NOTE --> ASK{"person runs<br/>compact, or<br/>approves it"}
ASK -->|"active-context"| AC["whole file copied<br/>to archive; live keeps<br/>Current Focus and<br/>Next Steps, 8 lines each"]
ASK -->|"roadmap"| RM["whole file copied<br/>to archive; live drops<br/>Completed, then cut<br/>at 80 lines"]
ASK -->|"rules or<br/>architecture"| HAND["no compaction;<br/>a hand rewrite"]
AC --> ARC["archive: never<br/>preloaded, read when<br/>a pointer says so"]
RM --> ARC
ARC ~~~ D
D["new decision"] --> DF["one file in .ai/story/,<br/>date and slug in<br/>the name, never edited"]
DF --> REV["a reversal is a<br/>second file; a search<br/>returns both,<br/>newest first"]3. Architecture
There is no server, database or index. The package is a Node CLI with
four commands (src/index.ts:20-56), a library entry
exporting the same logic (src/lib/index.ts:1-21), and a
templates/ directory that init copies. The
bank is the project's own .ai/ directory, committed with
everything else.
The Claude Code plugin lives in plugin/ and adds:
- A SessionStart hook on
startupthat runsnpx -y context-bank@3.0.3 doctorwith a 25-second timeout and injects onlyerrorandwarnlines, plus advice, asadditionalContext(plugin/hooks/hooks.json:3-14,plugin/hooks/session-start.mjs:7-39). - A model-invocable skill,
context-bank, carrying the read and write policy (plugin/skills/context-bank/SKILL.md). - Three user-only skills,
doctor,compactandinit, each markeddisable-model-invocation: true.
init --legacy-pointers also writes Cursor and Windsurf
rule files, a Copilot instructions file, CONVENTIONS.md for
Aider with an .aider.conf.yml entry, and
GEMINI.md with a .gemini/settings.json that
loads AGENTS.md, GEMINI.md and
.ai/rules.md as context
(src/lib/init-bank.ts:74-130).
Deployment and ergonomics
Nothing has to be running. npx context-bank init writes
the files. The plugin hook fetches the pinned CLI from npm on first use
and exits silently when it cannot (session-start.mjs:16).
No API key or model is involved, and it works offline once npx has
cached the package. Every file is plain Markdown in git, readable and
repairable by hand, which is the point of the design.
4. Essential Implementation Paths
- Contract text and caps.
V3_AGENTS_MD,V3_CLAUDE_MD,V3_RULES_PROTOCOLandCAPS(src/lib/contract.ts:27-73).isLegacyContractdetects the v1 every-task contract by two signature lines or any two legacy phrases beside a Context Bank marker (:75-115). - Decision write.
addDecisioncollapses whitespace in the title, checks the date and suffix, renders# Title,Date:and body, refuses over 4,000 characters, and creates the file with flagwx, adding-2,-3on collision (src/lib/decisions.ts:36-69). - Decision read.
readAlllists regular.mdfiles in.ai/story/, takes the date from the file name and the title from the first#line, and sorts newest first (:73-102).listDecisionsandsearchDecisionssit on it (:104-129). - Health check.
diagnosechecks forrules.mdandAGENTS.md, the v1 contract inAGENTS.mdand the four bank files, a Turkish placeholder marker (HENÜZ COMMIT YOK), each file's cap, a v2story.md, each decision's cap, and Cline leftovers (src/lib/doctor.ts:28-160). - Compaction.
compactBankhandlesactive-context.mdandroadmap.mdonly (src/lib/compact.ts:276-334), throughcompactActiveContext(:226-254) andcompactRoadmap(:256-274). - Migration.
migrateBankruns a symlink pre-flight on every target, imports a Cline bank, rewrites the contract inAGENTS.mdandCLAUDE.md, restores banners, splits the story, replaces owned pointer files, and strips the v2 merge drivers from.gitattributes(src/lib/migrate.ts:151-319).migrateStoryToV3does the split (src/lib/migrate-v3.ts:141-241). - Cline import.
importClineBankmaps six Cline files onto.ai/, copiesmemory-bank/to.ai/archive/cline-memory-bank/, and replaces a dedicated.clinerulesfile with a pointer (src/lib/cline.ts:79-139). - Path safety.
leavesRoot,assertNoSymlinkPath,readInRootandwriteInRoot(src/lib/scan.ts:43-79). - Injection. The SessionStart hook
(
plugin/hooks/session-start.mjs).
5. Memory Data Model
Decision file.
# <title>\n\nDate: <YYYY-MM-DD>\n\n<body>\n,
named
<date>-<slug>[-<suffix>][-<n>].md
(src/lib/decisions.ts:32-34, :57-61). The slug
strips diacritics and maps Turkish İ and ı
explicitly, and is truncated to 60 characters (:13-25). On
read the date comes from the file name, not the Date: line,
so a hand-renamed file reorders history (:87-88). A file
whose name does not parse gets an empty date and sorts last.
Live files. Free Markdown. The tool reads structure
only during compaction, by matching headings against
/current (work )?focus/i,
/next steps|^##\s+next$/i and /completed/i
(src/lib/compact.ts:227-228, :263).
Archive files.
active-context-<date>.md,
roadmap-completed-<date>.md and
<basename>-<date>.md for a contract file
migrate replaced, each with -2, -3 when the
name is taken (compact.ts:286-294,
migrate.ts:174-183).
Time. A decision carries one date, set by the
caller. addDecision defaults to today in UTC and takes any
date the caller passes (decisions.ts:45).
Migration uses the heading's date, an undated entry's nearest dated
neighbour, or 0000-00-00 for a story with no dated entry
(migrate-v3.ts:7, :201-212). Git holds the
only record time.
Scope. One bank per repository root. Nothing on a
file names a user, agent or branch. The suffix option
exists so that two branches recording the same decision on the same day
produce different file names (decisions.ts:49-51,
:57).
6. Retrieval Mechanics
Retrieval is reading files. The host loads AGENTS.md, or
CLAUDE.md, which imports it, and the agent opens what the
contract names for the task. With the legacy pointers, Gemini CLI loads
.ai/rules.md directly as a context file
(src/lib/init-bank.ts:126-129). Cursor and Windsurf get an
always-on rule naming the same files.
Decisions are found by search. The skill tells the agent to grep
(plugin/skills/context-bank/SKILL.md:22). The library's
searchDecisions lower-cases the query and keeps each file
whose whole text contains it as one contiguous string, newest file-name
date first. It adds files until a 16,000-byte budget is spent and skips,
but continues past, a match that would overflow it
(src/lib/decisions.ts:108-129). There is no ranking, no
tokenisation and no stemming: "postgres decision" matches nothing unless
those words are adjacent. Neither the CLI nor the plugin calls
searchDecisions; it is reachable only by importing the
package.
What reaches the model per session is bounded by convention. If the
files respect their caps, the always-read set is rules.md
at up to 12,000 characters, and active-context.md adds up
to 8,000 on resume. The README's before-and-after table, from four
private banks, measures tokens as characters divided by four. The files
are loaded once at session start and do not change under a session
unless the agent edits them, so they sit where a provider's prefix cache
can hold them.
The failure modes follow from the shape. A reversed decision and its
reversal both match. A decision phrased in other words is missed.
Material moved to the archive is invisible unless the agent follows an
Older notes: pointer, and each compaction keeps only the
newest pointer in the live file, so older archives are reachable only
through the chain of archive copies.
7. Write Mechanics
The agent writes. AGENTS.md says to update
active-context.md when the focus changed, add a decision
file only for "a decision a future agent cannot recover from git", and
keep rules.md small (src/lib/contract.ts:37).
The skill adds what never to write: transcripts, diffs, secrets,
duplicates, and changes that loosen rules.md without the
user asking (SKILL.md:37-43). These are instructions to the
model, and no code checks a write against them.
The library's addDecision is the one guarded writer. It
refuses an empty title, a malformed date or suffix, and a rendered file
over 4,000 characters. Its exclusive create cannot overwrite an existing
decision. An agent following the skill writes the file with its own
tools and gets none of that, and doctor reports an
oversized decision only at the next check
(src/lib/doctor.ts:105-120).
init writes templates only where files are missing, adds
a placeholder "Project inception" decision when .ai/story/
has none, and prepends
<!-- AI-CONTEXT: .ai/rules.md --> to an existing
README.md (src/lib/init-bank.ts:49-72).
What the cap does to old entries
compactBank acts on two files and only when one is over
its cap (src/lib/compact.ts:301-331):
active-context.md, over 8,000 characters or 80 lines. The whole file is copied to.ai/archive/active-context-<date>.mdbefore the live file is rewritten (:307-313). The new live file is a fixed header, theCurrent Focussection cut to 8 content lines and 4,000 characters, theNext Stepssection cut to 8 lines and 1,500 characters, and anOlder notes:pointer (:226-254). Any other section, such as a "Waiting on others" list, leaves the live file entirely. Paragraphs, list items and code fences are kept whole or cut at a sentence or word with a(continued in the archive)marker (:134-174). With neither heading present, the first 40 lines are kept.roadmap.md, over 20,000 characters. The whole file is copied to.ai/archive/roadmap-completed-<date>.md. The first section whose heading contains "completed" is removed, so a heading such as "Not completed" goes too, and if the rest is still over the cap it is cut to its first 80 lines. The live file then ends with a## Completedsection reading "Long completed lists live in" the archive (:256-274). Open items past line 80 are in the archive too, under a pointer that does not say so.
Nothing is deleted: the archive copy is written before the live file
and holds the original text. rules.md and
architecture.md are never compacted. doctor
tells the person to trim architecture.md by hand
(src/lib/doctor.ts:83-84). For an over-cap
rules.md, the hook's generic advice is "Do not preload
over-cap files" (plugin/hooks/session-start.mjs:30), which
covers the file the contract says to always read. Decisions are never
compacted.
Migration
migrateStoryToV3 splits .ai/story.md and
every .ai/archive/story-*.md into one decision per dated or
level-marked heading, ignoring headings inside code fences. A section
over the cap becomes (part n) files rather than being
truncated (src/lib/migrate-v3.ts:69-113,
:171-185). Every created file is read back and checked to
contain its body. Any failure removes every created file and leaves the
sources, and only after all pass are the sources deleted
(:216-231). A contract file migrate replaces wholesale is
first copied to the archive
(src/lib/migrate.ts:186-200).
Operational cost
Writes are ordinary file edits by the agent and are visible on the
next read. No model is called anywhere in the tree and nothing runs in
the background. doctor reads every decision file on each
session start, which is linear in the number of decisions and costs
nothing a person would notice at the hundreds the README reports.
Compaction and migration rewrite only the files they touch.
8. Agent Integration
The contract is the integration. Any agent that reads
AGENTS.md gets the same read and write policy, and Claude
Code reaches it through CLAUDE.md's @AGENTS.md
import (src/lib/contract.ts:40-44). The agent has no memory
tool: it reads and writes .ai/ with its general file tools,
so it can do anything to any file, and every rule about what it should
do is prose.
The plugin adds three things:
- Startup check. The hook runs only when
.ai/ormemory-bank/exists, and says nothing whendoctorfinds no warning or error. Otherwise it injects the finding lines and an advice text chosen by finding: migrate for a v2 story, migrate for a v1 or Cline contract, or suggest/context-bank:compact"never without approval" (plugin/hooks/session-start.mjs:8,:18-30). - The read policy as a skill. The model may load
context-bankitself. - User-only commands.
doctor,compactandinitcannot be invoked by the model as skills. Thecompactskill runs a dry run, asks, and only then writes (plugin/skills/compact/SKILL.md:7-10). The model-invocable skill also namesnpx -y context-bank@3.0.3 compactand asks for approval in prose (plugin/skills/context-bank/SKILL.md:48), so an agent with a shell can compact on its own.
The repository's own .claude/settings.json registers a
Stop hook that prints "update .ai/active-context.md,
roadmap.md, story.md and architecture.md if this task changed anything"
at every stop (.claude/settings.json:3-11). That is the
every-task, four-file instruction the v3 contract retired, and it names
story.md, which v3 removed. It is not in the published
package or the plugin.
Adapting it to another agent costs nothing: the files are Markdown and the contract is one paragraph.
9. Reliability, Safety, and Trust
The pointer files keep the v1 contract
The v1.1 templates for GEMINI.md,
CONVENTIONS.md and
.github/copilot-instructions.md carried "MANDATORY: Update
Context Files After Every Task" with four files and "Do NOT ask
permission". migrate rewrites those files only where they
contain the literal .ai/story.md
(src/lib/migrate.ts:295-302), and replaces wholesale only
the Cursor and Windsurf files it owns (:133,
:285-293). The v1 text names bare story.md, so
it is left as it was. diagnose reads AGENTS.md
and the four bank files and none of the pointer files
(src/lib/doctor.ts:40-89).
A migrated v1 bank with legacy pointers therefore reports healthy
while Copilot, Aider and Gemini CLI are told to update four files after
every task. Gemini CLI loads both contracts, since
.gemini/settings.json lists AGENTS.md and
GEMINI.md. The repository is its own example: its
GEMINI.md, CONVENTIONS.md and
.github/copilot-instructions.md carry the v1 block at the
pin, last changed on 17 June 2026, beside a v3
AGENTS.md.
Path safety is the strongest code
leavesRoot walks each path component and reports any
symlink that dangles, or whose real path is outside the repository or
inside its .git (src/lib/scan.ts:31-56). Reads
through such a path return absent, and writes throw.
migrate checks every fixed target before writing anything
(src/lib/migrate.ts:202-221). A cloned repository cannot
use .ai, AGENTS.md or README.md
links to make init or migrate write into
.git/hooks or outside the tree. The tests snapshot the
outside directory before and after.
Trust
There is none on content. rules.md is "the always-on
source of truth", and whatever a commit puts there is an instruction to
every agent on the branch. The review gate is the team's pull-request
process, outside the tool. The skill asks the agent not to write secrets
or personal data, and nothing checks.
Concurrency and merges
Two agents on two branches edit the same files and git merges them.
v2 installed merge=ours for active-context.md
and merge=union for story.md. v3's
migrate strips both
(src/lib/migrate.ts:135-149, :304-311), so a
conflicting active-context.md is now an ordinary merge
conflict. One decision per file removes the conflict the union driver
handled.
Supply chain
The plugin pins the CLI to 3.0.3, and a test checks
every reference in plugin/ against
package.json (tests/plugin.test.ts:43-51). The
package's four runtime dependencies are caret ranges
(package.json:49-54) and no
npm-shrinkwrap.json is published, so npx
resolves them afresh on first run.
Marks withheld
tombstone. Nothing records a rejected value. A reversed decision stays searchable beside its reversal, and nothing stops an agent re-asserting an edited-away line.trust_state. No file or decision carries a status.bitemporal. A decision has one caller-set date, the day it was made rather than an interval it holds for; git keeps record time. Nothing reads the two against each other.scope_enforced. The bank is the repository's directory, a physical partition with no key on a file and no predicate on a read.audit_log. Git history is the record of every change, and compaction's dated archive copies are pre-images of one operation. Neither is an append-only event record in the tool's own store.human_review. A person approvescompactandmigrate, which reshape files; no memory waits for a person before it takes effect. The agent writes live files directly, and a pull-request review happens after the write.negative_eval. The near miss istests/decisions.test.ts:151-162. A populatedlistDecisionscall returns the in-repository decision and excludes a symlinked file from outside the repository. It asserts a filesystem boundary on a listing, not that material stays out of a search. The search-side case intests/safety.test.ts:81-91runs over a bank with no in-repository decision, so it passes on an empty result. The compaction tests'not.toContainchecks assert what leaves the live file. That material is still retrievable from the archive, so it is not excluded from retrieval.
10. Tests, Evals, and Benchmarks
There are 120 Vitest cases in nine files. The tree has no CI
workflow; .github/ holds only the Copilot instructions.
None was run for this reading.
The migration tests are the strongest. One asserts every non-banner
line of a v2 story appears in the decision files, and that the source is
gone (tests/migrate.test.ts:88-126). One replaces
fs.readFile with a spy that returns garbage for decision
files, expects migration to throw, checks that story.md
survived and .ai/story/ is empty, then reruns cleanly
(:369-381). That is a negative control on the verification
step. Another checks each migrated chunk stays within the cap with its
header (:494-505).
The safety suite builds hostile layouts (.ai linked
outside, dangling links, AGENTS.md linked into
.git/hooks) and compares snapshots of the outside directory
before and after (tests/safety.test.ts:67-124,
:227-255).
Gaps:
- Roadmap compaction has no test.
tests/compact.test.tsnever mentionsroadmap, so the "completed" heading match, the 80-line cut and the pointer text are unexercised. - No compaction test compares the archive with the
original. The cases assert that the archive file exists, and
the overwrite case compares two archive copies with each other
(
tests/compact.test.ts:41-44,:60-83). "Nothing is deleted" rests on the order of two writes, not on an assertion. - The contract's effect is untested. Nothing measures whether an agent given v3 reads less or writes less. The README's token table comes from the author's own four banks, which are not in the tree, with tokens estimated as characters divided by four.
- No pointer-file legacy check. No test runs
diagnoseormigrateBankover a v1GEMINI.mdor Copilot file carrying the mandatory block.
No paper or benchmark is cited (searches recorded below).
11. For Your Own Build
Steal
- Give each memory file a read policy, not only a size. "Always", "when resuming", "when planning" and "never preload, search" is a small vocabulary that keeps the session-start cost a known number.
- One decision per file with an exclusive create and a branch suffix. It turns the append-only log that conflicts on every merge into files that never collide.
- Write, read back, then delete. When a migration reshapes the store, verify every new record before removing the source, roll back what you made on failure, and test it by injecting the failure.
- Treat
.gitas outside the repository in your path guard. A memory tool that writes into a cloned repository is a tool a hostile repository can aim at its own hooks. - Copy before you shrink. A compaction that writes the whole original to a dated file first can be undone by hand.
Avoid
- A cap with no refusal. Measured caps drift until someone runs the fix. If the budget matters, refuse the write, as Engramory's hook does for its index.
- Keeping sections by heading name. A compaction that keeps "Current Focus" and "Next Steps" drops whatever the team called its other sections, and the regex for "completed" also matches "not completed".
- A pointer that understates what moved. If the live file says only completed items were archived, a reader will not look there for open ones.
- A migration that upgrades the files it detects and not the files it installed. Every file an earlier version wrote is part of the contract, and the health check should read all of them.
- A development repository whose own hooks teach the retired contract. The maintainer's agents receive, at every stop, the instruction the product exists to remove.
Fit
This suits a team that already reviews everything in pull requests
and wants a memory any agent can read with no service and no lock-in.
The budget it assumes is a person who runs doctor, reads
its warnings and approves compactions. In return the bank stays small
and every change is a reviewable diff. It does not suit anyone who needs
the tool to decide what is true: there is no status, no supersession and
no correction beyond editing a file. A team that wants to search
hundreds of decisions by meaning should expect to build that on top. For
a bank migrated from v1, check the pointer files by hand.
12. Open Questions
- Do agents following the v3 contract in practice keep
active-context.mdunder 80 lines, or do banks reach the cap and wait for a person? - Is a stale
GEMINI.mdor Copilot file after migration seen in the field, and isdiagnosemeant to read them? - Is
searchDecisionsused by any tool outside this repository, given that neither the CLI nor the plugin calls it? - Was the open-items cut in
compactRoadmapintended to be reported as "completed lists"?
Appendix: File Index
- Contract and caps:
src/lib/contract.ts - Decisions:
src/lib/decisions.ts - Health check:
src/lib/doctor.ts,src/commands/doctor.ts - Compaction:
src/lib/compact.ts,src/commands/compact.ts - Migration:
src/lib/migrate.ts,src/lib/migrate-v3.ts,src/lib/cline.ts,src/commands/migrate.ts - Init and templates:
src/lib/init-bank.ts,templates/ - Path safety and versions:
src/lib/scan.ts,src/lib/version.ts - Surfaces:
src/index.ts,src/lib/index.ts,plugin/hooks/hooks.json,plugin/hooks/session-start.mjs,plugin/skills/*/SKILL.md - Repository's own configuration:
.claude/settings.json,GEMINI.md,CONVENTIONS.md,.github/copilot-instructions.md,.gemini/settings.json - Tests:
tests/decisions.test.ts,tests/compact.test.ts,tests/migrate.test.ts,tests/safety.test.ts,tests/doctor.test.ts,tests/plugin.test.ts
Recorded searches
Run from the repository root at the pinned commit with
/usr/bin/git grep.
- No CLI or plugin path adds, lists or searches
decisions.
git grep -n -E 'addDecision|searchDecisions|listDecisions' -- src/index.ts src/commands pluginreturns nothing; onsrc/libit matches the definitions, the export,initand the migration. - No status, trust or supersession field.
git grep -n -i -E 'status|trust|verified|confidence|supersed' -- srcreturns nothing;git grep -c -i severity -- srcmatches the doctor. - No validity time.
git grep -n -i -E 'valid_?(from|to|until)|expires?|ttl' -- srcreturns nothing. - No event log.
git grep -n -i -E 'appendFile|audit|journal|events?\.jsonl' -- srcreturns nothing;git grep -c writeFile -- srcmatches the two writers. - Compaction touches two files.
git grep -n -E 'rules\.md|architecture\.md' -- src/lib/compact.tsreturns nothing; the same search forroadmap\.md|active-context\.mdmatches. - The doctor reads no pointer file.
git grep -n -i -E 'GEMINI|copilot' -- src/lib/doctor.tsreturns nothing;AGENTSmatches. - Roadmap compaction is untested.
git grep -n -i roadmap -- tests/compact.test.tsreturns nothing; ontests/it matches the Cline, migrate, plugin and safety suites. - No compaction test reads an archive against its
source.
git grep -n -B2 'archive/active-context' -- tests/compact.test.tsreturnspathExistschecks, a dry-run list and the two reads of the overwrite case. - No CI workflow.
git ls-files .githubreturns only.github/copilot-instructions.md. - No shrinkwrap.
git ls-files | grep -i shrinkwrapreturns nothing. - No paper.
git grep -n -i -E 'arxiv|bibtex|@article|@misc|citation|doi\.org'returns nothing;git grep -c -i -E 'licen[sc]e' -- README.mdmatches. - No submodules.
.gitmodulesis absent.
History
2026-12-02 — 1c3ad1ee….
First reading at the pin, read at the user's request from the 2026-12-02
triage shortlist, from a full clone at the head of main,
read only. Screened: eight auto-run surfaces
(.claude-plugin/, .claude/settings.json with a
Stop echo, .cursor/rules/,
.gemini/settings.json with no mcpServers,
.github/copilot-instructions.md,
plugin/.claude-plugin/plugin.json, and
plugin/hooks/ with hooks.json registering one
SessionStart command), one build-time surface
(prepublishOnly: tsc), nothing inside the cooldown, one
manifest with floating ranges beside two lockfiles;
AGENTS.md, CLAUDE.md and
GEMINI.md read as data. Nothing was installed, built or
run, and the 120 test cases were not run. No marks (section 9).