amit1992KO

Counterfoil — AI skill for Claude Code

AI community

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

[![ci](https://github.com/amit1992KO/counterfoil/actions/workflows/ci.yml/badge.svg)](https://github.com/amit1992KO/counterfoil/actions/workflows/ci.yml) [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)

**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.

![Synthetic 0.8.0 Workspace start preview with project, Work, loadout, and a normalized digest field](docs/images/tui/17-work-session-start.svg)

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