ACKit — AgentContextKit
✨ Demo (30 seconds)
bash# 1 — onboard (dry-run, writes nothing) $ ackit init --dry-run ✔ plan: AGENTS.md shim + 4 built-in skills # 2 — score readiness (explainable, no LLM) $ ackit readiness Readiness 88/100 ██████████████████░░ (threshold 80 — pass) Instructions 90/100 Security 90/100 Context Efficiency 70/100 # 3 — graph + optimize $ ackit instructions --explain codex/AGENTS.md → claude/CLAUDE.md (provenance: frontmatter applyTo) $ ackit optimize --explain --json | jq .suggestions[0].tokenWasteEstimate 42 # 4 — provider-aware pack & dashboard $ ackit pack --profile codex --max-tokens 50000 | head -5 # ACKit Context Pack — 12 files, 34210 tokens $ ackit dashboard --port 0 --open # localhost-only, CSP, live polling → http://127.0.0.1:54321
🔐 Trust flow (60 seconds)
bash$ ackit task complete TASK-0007 completion gate blocked: MISSING_VERIFIER_VERDICT: profile 'standard' requires an independent verdict (run 'ackit verification bundle' + record) $ ackit evidence verify TASK-0007 --criterion AC-001 --type test --ref "pnpm vitest run (green)" $ ackit verification bundle TASK-0007 --format json --out .ackit/reviews/bundle.json $ ackit verification record TASK-0007 --verdict .ackit/reviews/verdict.yaml --bundle .ackit/reviews/bundle.json TASK-0007: verdict VR-0001 registered (PASS) $ ackit status TASK-0007 blockers: (none — completion eligible) - verdict VR-0001 (PASS): fresh; independent $ ackit task complete TASK-0007 TASK-0007: completed $ ackit checkpoint export TASK-0007 --format json --out .ackit/reviews/handoff.json # ... second process, zero shared memory ... $ ackit checkpoint import .ackit/reviews/handoff.json TASK-0007: handoff CP-0001 fresh (bundle 9f2c…); resume context renders
Stale state blocks with VERDICT-STATE-STALE (naming what changed);
a fresh bundle + verdict restores eligibility. The full flow runs as a
test (tests/e2e/trust-flow-demo.test.ts) and is walked through in
docs/guides/demo-trust-flow.md —
offline, no API key.
🧭 Table of Contents
- Why ACKit?
- Features at a glance
- Install
- Quickstart
- CLI Overview
- Configuration
- Architecture
- GitHub Action
- VS Code
- Docs
- Development
- Versioning
❓ Why
| Before | With ACKit |
|---|---|
| Convention-based — nothing is verified | Deterministic local analysis with stable JSON/SARIF contracts |
| Cloud-coupled — code leaves the machine | Offline-by-construction — zero network in product code |
| Secrets leak into prompts/logs | Redacted at construction — evidence never contains plaintext secrets |
One AGENTS.md for all providers | Provider-aware — Codex/Claude/Copilot/Gemini/generic, includeScopes/applyTo |
| “It worked on my machine” | Machine-checkable gates — ackit scan --ci, ackit readiness --strict |
This repository dogfoods itself: it was built by following the same
docs/taskstask system it ships.
What ACKit is not: an autonomous coding agent, a model runtime, a browser automation framework, an agent router, or a cloud orchestration service. ACKit is the deterministic, offline-first engineering layer those agents share — repository context, explicit intent, structured tasks, plan discipline, evidence-backed completion, resumability, independent verification, policy enforcement, drift detection, and provider interoperability. Model execution and autonomous coding stay with your chosen agent (Codex, Claude Code, OpenCode, Copilot, Gemini, Cursor, Cline, any MCP-capable agent).
🎁 Features at a glance
📦 Install
Requires Node ≥ 22.
bash# global (recommended) npm install --global @cynrath/agent-context-kit ackit --version # 0.5.2 # one-shot, pinned npx --yes @cynrath/agent-context-kit@0.5.2 --version npx --yes @cynrath/agent-context-kit@0.5.2 --help # from source pnpm install --frozen-lockfile && pnpm build node dist/cli/index.js --help
🚀 Quickstart
bashackit init --dry-run # plan shims + 4 built-in skills (writes nothing) ackit scan --ci # gate: exit 1 at/over threshold (medium) ackit readiness # 0–100, N/A renormalization, --strict/--fail-below ackit instructions --explain # graph v2 with provenance ackit optimize --explain # 8-class advisor, waste estimates ackit pack --profile codex --max-tokens 50000 # provider-aware, budgeted ackit diagnostics --json | jq .profile ackit dashboard --port 0 --open # localhost-only
Every command supports
--jsonand--help. Full tour →docs/guides/getting-started.md
🖥️ CLI Overview
Details: docs/reference/cli.md · Exit codes: docs/reference/exit-codes.md · Schemas: docs/reference/schemas.md
0 ok · 1 threshold/new-findings · 2 usage/config · 3 environment · 4 security boundary · 5 internal. See docs/reference/exit-codes.md.
⚙️ Configuration
Optional root ackit.yml (strict, additive — v1 still valid):
yamlschemaVersion: 1 scan: severityThreshold: medium limits: maxFiles: 50000 context: maxTokens: 80000 policy: extends: [] rulePacks: [] # declarative packs (local or node_modules) readiness: weights: { instructions: 25, security: 25, contextEfficiency: 20, taskHygiene: 10, skills: 10, policy: 10 } strictThreshold: 80 profile: codex # codex|claude|copilot|gemini|generic profiles: extend: [] # repo-relative custom profiles
Validate: ackit config check · Schema: schemas/ackit.schema.json · Reference: docs/reference/config.md
🏗️ Architecture
- Single door to filesystem — one containment engine
- Redaction before reporters — findings constructed already-safe
- Determinism — same repo+config → byte-identical JSON/fingerprints
- Offline-by-construction — no network in product code
Trust chain (v0.5)
Task/intent/workflow → evidence → bound verification → verdict
independence/freshness → status → handoff/resume →
CLI/SDK/MCP/Action/VS Code. Details: docs/guides/demo-trust-flow.md ·
docs/concepts/evidence-verification.md ·
docs/concepts/checkpoints.md.
More: docs/architecture/overview.md
🤖 GitHub Action
Official Cynrath/agent-context-kit@v0.5.2 (SHA-pinned for high-assurance):
yamlpermissions: contents: read jobs: ackit: runs-on: ubuntu-latest steps: - uses: actions/checkout@f548e57e544e1ff5a4c46bf1e1b8685f8e4a348a - uses: Cynrath/agent-context-kit@v0.5.2 with: command: scan args: "--json" fail-threshold: high upload-sarif: "false" # optional: upload SARIF via github/codeql-action/upload-sarif@v3 # optional: upload findings via actions/upload-artifact@v4
Inputs command/args/fail-threshold/upload-sarif, outputs findings-json/sarif-path, annotations/SARIF 2.1.0/job summary, least-privilege. Guide: docs/guides/ci.md · Action: action.yml
👀 Watch / Dashboard & Diagnostics
bashackit scan --watch # debounced 400ms, incremental cache, SIGINT → exit 0 ackit dashboard --port 0 --open # localhost-only, CSP, XSS-escaped, live polling ackit report serve ./report.html --port 0 ackit diagnostics --json | jq .profile ackit diagnostics bundle --out ./ackit-diag.zip --redact-check
Guides: docs/guides/watch-dashboard.md · Reference: docs/reference/diagnostics.md
🔌 SDK
jsimport { scanRepository, scoreRepository, buildInstructionGraph } from "@cynrath/agent-context-kit"; const result = await scanRepository({ canonicalPath: process.cwd() }); console.log(result.findings.length); // cancellable const ac = new AbortController(); setTimeout(() => ac.abort(), 10); await scanRepository({ canonicalPath: "." }, { signal: ac.signal });
ESM-only, sideEffects:false, AbortSignal cancellable, no process.exit. Reference: docs/reference/sdk.md · Example: examples/sdk-consumer.mjs
🧩 VS Code
ACKit is available on the VS Code Marketplace as
Cynrath.ackit-vscode.
From source:
bashpnpm --filter vscode build vsce package # → ackit-vscode-0.5.2.vsix
Features: readiness tree, Problems ACKITxxx, graph “instructions for current file”, tasks/policy/optimize, palette Refresh/Show Graph/Optimize/Diagnostics, file watcher debounced, no telemetry.
Guide: docs/guides/vscode.md
📚 Docs
| Area | Link |
|---|---|
| Architecture | docs/architecture/overview.md |
| Concepts | instruction-graph · context-budget · provider-profiles · readiness · workflows · intent · checkpoints · evidence-verification |
| Guides | getting-started · readiness · optimize · provider-profiles · instruction-graph · rule-packs · ci · watch-dashboard · diagnostics · sdk · vscode · monorepo · workflow-adoption · workflow-example · demo-trust-flow |
| Reference | cli · config · rules · readiness · profile · rule-pack · instruction-graph · diagnostics · sdk · exit-codes · mcp · schemas · drift · policy · status · provider-surfaces |
| Decisions | docs/decisions/ · v0.2.0: docs/v0.2.0/ · ADR-0025..0028: workflow/evidence/checkpoint/policy-v2 |
| Tasks | docs/tasks/active |
🔌 MCP Setup
json{ "mcpServers": { "ackit": { "command": "ackit", "args": ["mcp", "serve"] } } }
Reference: docs/reference/mcp.md
🛠️ Requirements & Development
Requirements: Node ≥ 22 · pnpm 11 (development) · git optional (incremental features)
Development:
bashpnpm install --frozen-lockfile pnpm lint && pnpm format:check && pnpm typecheck pnpm build && pnpm test && pnpm smoke:cli pnpm run smoke:package # pack → temp install → CLI smoke
See CONTRIBUTING.md for the docs-first workflow.
🔖 Versioning
Development: 0.5.2 on master · Latest stable: 0.5.2 · Changelog · Releases · latest → 0.5.2 via OIDC Trusted Publishing with provenance. Stable pointer: release-state.json. Legacy .NET/NuGet 1.0.0-rc.1 at 258918b is frozen.
📄 License
MIT — LICENSE




