The problem
When an AI coding agent says a task is done, the claim is only as good as whatever backs it. I wanted one local surface where an agent or a person can run a check and get back a record of what actually ran, with the input and output hashed and each record chained to the one before it.
Sage Kernel is that surface: a stdio MCP server, usable from any MCP-capable client. It is my own project, not a client engagement.
Constraints
- The product surface is a terminal MCP server over stdio (ADR 0002); there is no GUI to maintain.
- The deep analysis engines target JavaScript and TypeScript; other languages get profile detection and repository meta-checks (the README says so up front).
- Tools that change state are labelled by risk, and two require an approval before they run.
- Runtime dependencies stay small: five in package.json.
Architecture
Each record stores the hash of its input and output and the hash of the previous record. Editing any field breaks its own hash; editing and re-hashing it breaks the next record link. An optional head anchor catches truncation. The ledger source states that without a secret key (SAGE_LEDGER_KEY) it is tamper-evident against accidents, not tamper-proof against someone who can rewrite the files.
What shipped
- 140 MCP tools across project profiling, review, security, testing, workflows, jobs, approvals and proof.
- A proof ledger with canonical JSON hashing, a hash chain, optional HMAC seal and head anchor.
- 4 ADRs recording the hard-to-reverse decisions, such as the stdio-only surface and the enforced coverage floor.
- An in-browser explorer on this site that reads the real tool catalog and re-implements the hash-chain check so you can tamper with a record.
Evidence and receipts
Owned
MIT licensed. Tool catalog at apps/mcp-server/tools.json, ledger at packages/proof/ledger.mjs.
Simulated
Search the 140 tools, fill a schema-generated form, run a simulated call, then tamper with its proof record.
What I would do differently
- Publish a recorded session from a real MCP client next to the simulator, so the difference between simulated and real output is visible side by side.
- Move the public repo workflows off GitHub-hosted runners, or document why they stay, so the CI setup matches my other repos.
- Report the executed test count from a CI run instead of a static count of test declarations.
Honest limitations
01 Input
Next step
Bring an AI feature or workflow that has to keep working. We scope the first verifiable step on a 15-minute call, and I give an honest answer on fit either way.
Book a 15-minute call Not sure what you need? Answer 3 questions