Counterfoil — AI skill for Claude Code
Keeps AI coding work tied to the right project and records exactly what context each model launch was given.
How to install Counterfoil
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open amit1992KO/counterfoil and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Counterfoil does
Keeps AI coding work tied to the right project and records exactly what context each model launch was given. One durable runtime per project; Claude Code, Codex and Gemini CLI sessions run inside it with a receipt. Early (v0.8), built and used by one person.
Alternatives in AI
- Qwen Audio Agent — A realtime voice runtime that keeps Agents talking, working, and present 2.3k ★
- Agor — Orchestrate Claude Code, Codex, and Gemini sessions on a multiplayer canvas 1.2k ★
- Iai Personal Memory Engine — A cyber brain for your AI 866 ★
README
Counterfoil
[](https://github.com/amit1992KO/counterfoil/actions/workflows/ci.yml) [](LICENSE) 
**Durable projects, disposable model sessions, and a receipt for everything in between.**
Counterfoil is a terminal tool that sits in front of Claude Code, Codex and Gemini CLI. It keeps one durable runtime per project, treats every model launch as a temporary invocation inside it, and writes an exact-byte receipt of what that launch was given.
A counterfoil is the stub an issuer keeps after handing over a receipt. That is the whole claim: Counterfoil records what was supplied to a model. It never claims the model read it.

The problem
Most agent tools inject context and forget what they injected. Sessions blur across projects. "The model saw it" is asserted, never proven.
What it does
| Projects outlive sessions | One durable runtime per project and per Evergreen entity. A Claude or Codex launch is a temporary invocation inside it. |
| Every launch has a receipt | The exact bytes supplied to that launch. Runtime projections also record what was left out, and why. |
| Nothing starts by accident | Opening the Workspace starts no provider. A managed start is a digest-pinned preview, applied only after fresh validation; a changed source or checkout refuses a stale apply. |
| Native stays native | Authentication, tools, permissions and session history stay with the provider's own CLI. Counterfoil does not recreate them. |
| Finishing is checked | Provider exit is not finish. A managed work session ends through a checked integration candidate, with exact retry and recov |
Related Skills
Experience Ledger
An experience ledger that runs inside your AI agent — journals your work daily, turning chats and projects int
Omarchy Crew Chief Entry
Crew Chief: which of your AI coding agent sessions is blocked on you, right now. Harness agnostic across Claud
Aki
📍 Aki — show your AI agent exactly what to fix. Point at anything on your Mac and Claude Code, Codex or any a
Apprentice
An agent that links clinical trial investigators to their sites from messy records, using a small open model (
Canopus
Canopus keeps long-running AI coding agents locked on their goal: frozen acceptance envelopes, deterministic c
N2n Memory
Project-local MCP memory server for AI coding agents. Knowledge graph stored in .mcp/ inside each repo — isola
Related Agents
Runtime Observer.Agent
Use when Architrave needs runtime/product truth: health, logs, versions, deployed digests, app launch, or drif
Protocol Researcher
Verifies facts about vendor agent CLIs, SDKs, protocols and terms (Claude Code, Codex, Gemini CLI, OpenCode, A
Cloudflare Builder
Cloudflare edge-runtime builder — Workers, Wrangler config/deploy, bindings + storage (KV, D1, R2, Queues, Vec