agent-context-kit
AGENTS.md15 starsChanged 3 months agoMITView on GitHub
AgentContextKit (ackit, TypeScript + Node.js + npm) ships as the scoped npm package @cynrath/agent-context-kit (CLI binary ackit). The repository's own docs are the single source of truth for agents. - package.json is authoritative for the source-checkout package version. - The latest immutable npm/GitHub Release is authoritative for the published stable version. - Historical versioned documents (docs/v0.2.0/**, old ADRs, CHANGELOG history, completed task records) are historical and not current governance. - This file must stay version-agnostic: it never names a current…
- Installs packages
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- ackit-context-optimizationSkill
- ackit-policy-authoringSkill
- ackit-scan-and-fixSkill
- ackit-workflowSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
18 rules. About 1 is common, 12 are distinctive, and 5 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Always prohibited: force-push, rebase, history rewrite, tag movement/deletion, workflow dispatch, deployments.
- Distinctive: line 52
Do not stop, pause, defer, or hand off while any task in the active todo list / task graph is incomplete.
- Distinctive: line 53
Never propose "continue later", "next session", or partial wrap-up while open tasks remain.
- Distinctive: line 55
Only a real external blocker may stop execution.
- Very specific: line 85
Never compose multiline --body inline.
- Very specific: line 88
Never commit generated junk: .ackit/, artifacts/, dist/, node_modules/, coverage, reports, prompt packs, context exports, packed tarballs.
- Common: line 93
No secret values or absolute local paths in any generated artifact or terminal output (REQ-GOV-004/005).
- Distinctive: line 122
When a request clearly requires multiple dependent tasks:
- Distinctive: line 126
create every planned task,
- Distinctive: line 129
run task validation/doctor,
- Distinctive: line 130
only then begin implementation.
- Very specific: line 150
If mandatory validation is blocked: status != completed.
- Distinctive: line 154
Do not tick acceptance criteria because code appears to implement the requirement.
- Very specific: line 164
Do not make tests/typecheck/lint pass by weakening the gate.
- Very specific: line 184
Do not claim faster, less DOM pressure, lower layout cost, better responsiveness without measured evidence.
- Distinctive: line 188
If task-first or evidence rules were violated: document the violation, create corrective work, fix the process, continue forward.
- Distinctive: line 192
Before a task is marked complete:
- Distinctive: line 207
Never reverse this sequence.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — AgentContextKit
AgentContextKit (ackit, TypeScript + Node.js + npm) ships as the scoped npm
package @cynrath/agent-context-kit (CLI binary ackit). The repository's own
docs are the single source of truth for agents.
Version truth (authoritative — do not hard-code a release number here)
package.jsonis authoritative for the source-checkout package version.- The latest immutable npm/GitHub Release is authoritative for the published stable version.
- Historical versioned documents (
docs/v0.2.0/**, old ADRs, CHANGELOG history, completed task records) are historical and not current governance. - This file must stay version-agnostic: it never names a current release number.
Controlled-release governance
Release actions are user-authorized, not agent-authorized:
masterpush/merge, npm publish, tag creation/movement, and GitHub Releases may be performed only inside a task that carries explicit user authorization for that exact action. Absent that authorization in the active task, they are prohibited — do not infer it from past tasks or this document.- Always prohibited: force-push, rebase, history rewrite, tag movement/deletion, workflow dispatch, deployments.
- The frozen legacy .NET line stays immutable everywhere: published NuGet
versions/tags/releases (
1.0.0-rc.1, earlier alphas) are untouchable; no NuGet or .NET release pipeline exists or may be created for vNext. - The old global .NET
ackittool must not be used as a validation tool; all verification uses the repository-built CLI (see below).
Canonical entry points (read in this order)
AGENTS.md,CLAUDE.md,.github/copilot-instructions.md— current governance (this file is authoritative)- The current active task under
docs/tasks/active/ - Current product docs:
docs/reference/,docs/concepts/,docs/guides/,docs/architecture/— current behavior contracts docs/decisions/— architecture decisions (baseline reused; release-wave ADRs describe the release that introduced them)docs/v0.2.0/— v0.2.0 historical contract (history only, not current governance)docs/rebuild/— historical vNext Goal-2 evidence, preserved verbatim (not active)
ACKit-first / task-first / docs-first workflow
- New work requires a task doc created with the repository's own tool:
node dist/cli/index.js task "<title>". Never invent task IDs. - Exactly one active checklist item at a time:
[ ]pending,[~]active,[x]completed+verified,[!]blocked. - Complete a task only with real evidence recorded in its Completion notes; then a focused Conventional Commit; then immediately continue with the next dependency-ready task.
Continuous Execution Hard Rule (explicit user mandate)
There is no such thing as "next session" for open work. This is a HARD RULE:
- Do not stop, pause, defer, or hand off while any task in the active todo list / task graph is incomplete.
- Never propose "continue later", "next session", or partial wrap-up while open tasks remain.
- Work task-by-task through the dependency graph continuously; after each completed+committed task, immediately start the next dependency-ready task.
- Only a real external blocker may stop execution; report it and stop only on that blocker.
Validation commands (repository-built CLI only)
pnpm install --frozen-lockfile
pnpm lint
pnpm format:check
pnpm typecheck
pnpm gen:schemas # when config/schema surface changed
pnpm build
pnpm test
pnpm smoke:cli
pnpm run smoke:package # real-tarball isolated consumer smoke
node .\dist\cli\index.js config check
node .\dist\cli\index.js doctor
node .\dist\cli\index.js task doctor
node .\dist\cli\index.js skills validate
node .\dist\cli\index.js instructions
node .\dist\cli\index.js scan --ci
git diff --checkGit discipline
- Canonical development branch is
master. Changes land via pull request with exact-head required CI green — direct pushes are rejected by branch protection. - PR/release bodies must avoid shell interpolation corruption: write a UTF-8
body file, pass
node scripts/check-text-hygiene.mjs <file>, then usegh pr create/edit --body-file <file>(releases:--notes-file <file>). Never compose multiline--bodyinline. - The
rebuild/ackit-vnextbranch is retired and preserved as historical evidence only; do not push to it. - Everything else follows Controlled-release governance above.
- Never commit generated junk:
.ackit/,artifacts/,dist/,node_modules/, coverage, reports, prompt packs, context exports, packed tarballs.
Safety
- Offline-first product: no network calls, telemetry, or uploads in product code (REQ-GOV-001/002).
- No secret values or absolute local paths in any generated artifact or terminal output (REQ-GOV-004/005).
- User files are never overwritten without explicit intent flags (REQ-GOV-008).
- Out-of-scope list is binding: no LLM APIs, vector DB, RAG, untrusted plugin execution, cloud services (REQ-GOV-009).
Hard Rules — Task-first, Evidence, and Quality Gates (generalized from corrective work; violation = NO-GO)
These rules generalize durable lessons from multi-task corrective work. They apply to any non-trivial feature, bug fix, migration, architecture change, security change, or release work — not only browser work.
Rule 1 — TASK-FIRST IS MANDATORY
For any non-trivial change: no implementation code may be written before the corresponding ACKit task file exists and is fully planned.
The task must contain, before implementation begins:
- Purpose
- Scope
- Out of scope
- Dependencies
- Affected files / expected areas
- Acceptance criteria
- Test steps
- Security considerations where applicable
- Risks
- Rollback plan
A title-only or placeholder task does not satisfy this rule.
Rule 2 — PLAN THE COMPLETE TASK CHAIN FIRST
When a request clearly requires multiple dependent tasks:
- inspect the repository,
- determine the entire task breakdown,
- create every planned task,
- fully populate every task,
- verify dependencies,
- run task validation/doctor,
- only then begin implementation.
Rule 3 — TASK PLAN MUST PRECEDE IMPLEMENTATION IN GIT HISTORY
For substantial feature work, the task plan must be committed before the implementation it governs.
Preferred sequence:
commit 1 — docs/tasks + ADR/spec/threat model required before implementation
commit 2+ — implementation
later commit — tests/evidence/task completionRule 4 — NEVER FALSELY COMPLETE A TASK
A task may only be marked completed when every required acceptance criterion has actually passed.
Phrases that indicate NOT complete: pending, deferred, next round, not tested, not verified, blocked, TODO, manual test required, will add later — unless explicitly out of scope before implementation began.
If mandatory validation is blocked: status != completed.
Rule 5 — EVIDENCE MUST MATCH REALITY
Do not tick acceptance criteria because code appears to implement the requirement. Evidence must come from the required validation mechanism:
- unit behavior → unit/contract test
- browser/platform behavior → real browser/platform verification (not static inspection)
- CI requirement → successful CI run
- performance claim → benchmark/trace
- cross-platform requirement → actual required platform matrix
Rule 6 — NO QUALITY-GATE BYPASS
Do not make tests/typecheck/lint pass by weakening the gate. Prohibited unless explicitly approved and technically justified:
// @ts-nocheck
// @ts-ignore
broad @ts-expect-error
strict: false
noImplicitAny: false
eslint/biome global ignore disabling
skip tests / remove assertions / turn failures into warningsFix the underlying defect. A green gate obtained by disabling the gate is not evidence.
Rule 7 — STRICT TYPESCRIPT WHERE APPLICABLE
New TypeScript subsystems should preserve strict: true and noImplicitAny: true unless an accepted ADR explicitly states otherwise. Prefer real API types (e.g., @types/chrome, @types/node) over any and keep unavoidable boundaries narrow and documented.
Rule 8 — PERFORMANCE CLAIMS REQUIRE MEASUREMENTS
Do not claim faster, less DOM pressure, lower layout cost, better responsiveness without measured evidence. Record where available: input counts, output counts, timing breakdown (scripting/style/layout/paint), heap/memory, trace config, browser/version, fixture size. Distinguish synthetic vs live-site measurements.
Rule 9 — DO NOT HIDE PROCESS VIOLATIONS
If task-first or evidence rules were violated: document the violation, create corrective work, fix the process, continue forward. Do not rewrite git history merely to make it appear that the correct process happened.
Rule 10 — COMPLETION ORDER
Before a task is marked complete:
implementation
→ focused tests
→ full affected test suite
→ lint/format/typecheck/build
→ security/offline gates
→ required runtime/manual checks
→ evidence recorded
→ acceptance criteria checked
→ task completion notes
→ status completedNever reverse this sequence.
Rule 11 — FINAL FEATURE GO GATE
A multi-task feature cannot receive final GO while any child task has: missing acceptance evidence, pending tests, deferred mandatory scope, TODOs, disabled quality gates, unresolved security findings, failed live verification, or missing CI evidence.
Legacy v1 notes
The C#/.NET implementation was removed from this branch (TASK-0267). Historical v1 evidence lives in git history and docs/tasks/archive/; the published v1 NuGet line (1.0.0-rc.1) is immutable legacy. Do not reference deleted v1 scripts (scripts/check-package-metadata.ps1, verify-release.ps1, .codex/*) — they no longer exist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

