Metadata-Version: 2.1
Name: quoin
Version: 0.105.0
Summary: Workflow state for stateless coding agents — structured persistence for Claude Code sessions
Project-URL: Homepage, https://github.com/FourthWiz/quoin
Project-URL: Source, https://github.com/FourthWiz/quoin
Project-URL: Issues, https://github.com/FourthWiz/quoin/issues
Author: IvGor
License: PolyForm Noncommercial 1.0.0
License-File: LICENSE
Classifier: License :: Other/Proprietary License
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: build; extra == 'dev'
Requires-Dist: jsonschema>=4.18; extra == 'dev'
Requires-Dist: pytest-timeout; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: pyyaml>=6.0; extra == 'dev'
Description-Content-Type: text/markdown

<p align="center">
  <img src="quoin/docs/images/quoin-hero.png" alt="Quoin" width="420">
</p>

# Quoin

**Workflow state for stateless coding agents.**

Quoin is a workflow-memory toolkit for coding agents. Its core value is the
artifact-centric workflow: plans, architecture notes, review artifacts, gates,
session handoff, lessons learned, and a cost ledger stored in predictable files
under `.workflow_artifacts/`.

Quoin now has two runtime paths:

- **Claude Code:** a Claude Code plugin (`quoin@quoin`) carrying the skills,
  scripts, hooks, memory files and workflow rules, installed by `quoin install`.
- **Codex:** a repo-local scaffold that generates `AGENTS.md` and points Codex
  at portable workflow contracts. It uses native Codex planning, approvals,
  sandboxing, repo-scoped instructions, and model/reasoning controls.

Quoin does not install global Codex commands, plugins, hooks, command files, or
runtime extensions.

**Moved out:** the OpenCode adapter and workctl now live in
[`quoin-opencode`](https://github.com/FourthWiz/quoin-opencode), and the cockpit
tools (Agentdesk, the Stream Deck panel, the VS Code extension, the dashboard and
the context-tracker mod) in [`quoin-cockpit`](https://github.com/FourthWiz/quoin-cockpit).
The pipeline as it was before the split stays installable from the `legacy` tag.

## Why Quoin?

- **Persistent workflow state:** sessions share structured artifacts instead of
  restarting from memory alone.
- **Planning rigor:** architecture, planning, review, and gate phases have
  explicit artifact contracts.
- **Runtime portability:** shared workflow semantics live in `quoin/core/`,
  while Claude and Codex behavior is isolated in adapter directories.
- **Session continuity:** both runtime paths preserve handoff state under
  `.workflow_artifacts/memory/sessions/`.
- **Cost discipline:** Claude has live cost tooling; Codex writes portable cost
  rows with unavailable telemetry marked honestly as `not_available`.

## Install

Install the package:

```bash
pip install quoin
```

Install or update the Claude Code plugin:

```bash
quoin install --runtime claude
quoin doctor --runtime claude
```

Quoin ships as a Claude Code plugin. `quoin install` stages the plugin from the
installed package (or from your checkout, for an editable install) under
`~/.local/share/quoin/plugin`, registers that folder as the `quoin`
marketplace, and installs or updates `quoin@quoin` through the `claude` CLI.
Skills are then named `/quoin:<skill>`, and the short workflow rules reach every
session through the plugin's SessionStart hook instead of `~/.claude/CLAUDE.md`.
Restart Claude Code after an install or update.

**Add-ons.** Some tools live in their own packages and repositories: the
cockpit (Stream Deck panel, Agentdesk, dashboard, context-tracker pane) and,
later, OpenCode support. `quoin install` asks whether to add each one; a yes
pip-installs its package into the same environment and runs its own install.
`quoin addons` lists them, `quoin addons install cockpit` adds one later,
`--with-addon NAME[=SPEC]` chooses one without asking (SPEC is any pip
requirement, such as a git URL), and `--no-addons` skips the question.

An earlier file-by-file install is removed on the way: every file its manifest
lists goes unless you edited it, quoin's hook stanzas leave `settings.json`
(other hooks stay), and the marked rules block leaves `~/.claude/CLAUDE.md`
(your own lines stay). The last pre-plugin version stays installable from the
`legacy` tag.

When `--scope` is not specified, the installer **prompts interactively** for
user or project scope. In non-interactive environments (CI, pipes), it defaults
to user scope without prompting.

`quoin install` and bare `quoin` remain backward-compatible aliases for the
Claude install path.

### Installing from a source checkout

`bash quoin/install.sh` needs a Python that meets `requires-python` in
`pyproject.toml` (3.10 or newer). It looks at `QUOIN_PYTHON` first, then every
directory on `PATH` in order (any `python3.N`), then the usual Homebrew,
python.org, pyenv, uv, asdf, mise, conda (root and named environments, including
`/opt` and `~/opt` installs and the Homebrew cask), Linuxbrew and MacPorts locations, and finally
`uv python find`. `bash quoin/install.sh --print-python` prints the interpreter
it would use without installing; set `QUOIN_PYTHON=/path/to/python3` to choose
one yourself. A `.venv` synced from another computer usually has a dangling
interpreter link: recreate it on this machine, or point `QUOIN_PYTHON` at a
local interpreter. The affected-area test runner reports such a venv by name.

### Auto-resume and the install record

`quoin install` records the interpreter and source tree it ran from
(`quoin-runtime.json`, in the staged plugin folder), so an
autonomous run's detached hand-off can relaunch the exact CLI you meant to
run instead of guessing via `PATH`. Run `quoin install` with whichever
interpreter or tool you actually use day to day — for a `uv tool install`
or `pipx install` setup, that means running that tool's own `quoin
install`, not a system Python's. Re-run `quoin install` after every
upgrade, recreated virtualenv, or Python version change; a stale record
makes hand-offs refuse rather than run the wrong code. `quoin doctor`
checks the record and names the exact fix when it's missing or stale.

### Claude install scope: user vs project

**User scope (default)** — the plugin loads in every Claude Code session on the
machine, including sessions started inside a repository below a multi-repo
project folder.

```bash
quoin install --runtime claude --scope user   # explicit user scope, no prompt
```

**Project scope** — the plugin is enabled in `<project>/.claude/settings.json`
and loads only in sessions started in that folder, not in sessions started
inside a repository below it.

```bash
quoin install --runtime claude --scope project          # explicit project, no prompt
quoin install --runtime claude --scope project:/path    # explicit project root
```

Pass `--scope` explicitly to skip the interactive prompt (useful in scripts and CI).

Generate the Codex repo-local scaffold:

```bash
quoin install --runtime codex --project-root .
quoin install --runtime codex --project-root . --check
quoin doctor --runtime codex --project-root . --smoke
```

The Codex install path writes `AGENTS.md` in the selected project root. The
`--check` form verifies that `AGENTS.md` is up to date without writing files.
The doctor command verifies repo-local readiness; `--smoke` also runs the
deterministic Codex workflow smoke test.

Equivalent Codex setup command:

```bash
quoin codex init --project-root .
quoin codex init --project-root . --check
```

From a source checkout (prompts for scope interactively):

```bash
git clone https://github.com/FourthWiz/quoin
cd quoin
bash quoin/install.sh                        # prompts: user or project scope?
bash quoin/install.sh --scope user           # user scope, no prompt
bash quoin/install.sh --scope project        # project, no prompt
```

GitHub redirects the old `FourthWiz/claude_dev_workflow` URL to this repository.

### Task record

Every session keeps its own record without a skill being invoked:

- A session that only reads and searches leaves nothing.
- The first edit on a task branch (any branch but `main`, `master`, `develop`,
  `trunk` or the remote's default) opens `.workflow_artifacts/<branch>/brief.md`,
  with the request as typed, the sessions and the repositories touched, and
  `journal.md` beside it, which gains one line per turn: the files edited and
  the first line of the answer. The session is titled with the task name, so
  `claude --resume` lists it by name, and a resumed session is pointed at the brief.
- An edit on `main` or outside a repository keeps a provisional journal under
  `.workflow_artifacts/.capture/`, deleted after seven days, and turns into a task
  when a branch is created.
- `/quoin-task <name>` records the session as a task now; `/quoin-skip` turns the
  record off for the session.
- `python3 ~/.local/share/quoin/plugin/core/scripts/task_record.py status` lists
  open tasks.

Where mods cannot load, the plugin's settings hooks keep the same brief and
journal; only the task name (taken from the branch) and the two commands differ.

#### One session per checkout

Before a session's first edit in a checkout, the plugin claims that checkout
for it. A single session is never interrupted. If another live Claude Code
session already holds the checkout, an interactive session asks whether to
move to a worktree or continue there; a headless run moves without asking.
Moving runs `EnterWorktree` for the session and applies the edit to the
worktree's copy, so the other session's files are never touched. Claims go
away when a session ends, and a claim left by a killed session stops counting
once its process is gone. `python3 ~/.local/share/quoin/plugin/core/scripts/run_isolation.py status`
lists a checkout's claims. This needs mods; without them sessions are not
claimed.

#### Inbox and task status

Sessions are asked one question, whether they showed a reusable lesson or a
standing rule for `CLAUDE.md` or `.claude/rules/`: over the conversation when
it compacts or opens a PR, and, for sessions that ended without it (closed,
killed or read-only, five prompts or more), over their transcript at the next
session start on a small model. Answers land in
`.workflow_artifacts/memory/inbox.md`, skipping anything already there or in
`lessons-learned.md`. Nothing takes effect until you accept it: `/quoin-inbox`
opens a pane where `a` accepts (appending to `lessons-learned.md` or the named
instruction file) and `x` rejects.

A task follows its PRs. `gh pr create` records the PR and moves the task to
review once every repository it touched has one; at session start the plugin
checks, in the background, whether those PRs have merged and archives the task
and releases its claims. `/quoin-done` closes a task that ends without a PR,
and a task with no PR and no activity for seven days shows as stale. Each
`git commit` also runs the discovery check that marks the project map out of
date when the structure changed.

#### Interface graph and rules

`/discover` records where one repository provides something another uses: a
package another repository depends on, an HTTP route another repository calls,
a schema file another repository reads, or an event topic another repository
subscribes to. The graph is the `interfaces` section of
`.workflow_artifacts/discovery-map.json` (schema version 2), and
`dependencies-map.md` is generated from it. For each interface the plugin
writes a path-scoped rule under `.claude/rules/quoin-interface-*.md`, so a
session editing a provider file is told which consumers to check. The rules are
regenerated in the background at session start after a commit changes the
project's structure.

`python3 ~/.local/share/quoin/plugin/core/scripts/impact.py --diff main...HEAD`
lists the repositories and interfaces a change touches and the consumer
repositories to check.

#### Cross-repository changes

A change that spans repositories runs as a staged `/run` (route r2). Its stage
list comes from the interface graph (`impact.py --plan`): the repositories the
task changes plus the consumers of the interfaces they provide, providers
first, all on one branch name. Stages that hit an r1 signal get their own
review; after the last stage, `/quoin:review-cross` reviews the whole change
once, focused on consumers of changed interfaces, and writes findings by
`repo/path:line` with a fix for each. `/pr` then opens one PR per repository
and links them to each other. `/quoin:review-cross <branch>` also works by
hand on any branch that exists in several repositories.

#### Unattended runs

`quoin run --autonomous <task>` runs a staged task with nobody watching: each
stage still marked ⏳ in `.workflow_artifacts/<task>/architecture.md` becomes
one headless `claude -p "/goal ..."` session whose condition is the stage's
acceptance checks, its commit on the task branch, its ✅ mark, and printed
`affected_tests.py` output as evidence. `--model`, `--max-budget-usd` (per
stage) and `--dry-run` are available; each session is logged to
`goal-run.log` in the task folder. A stage left unfinished stops the run
(exit 1). Rerunning continues at the first unfinished stage.

From inside a session, `/quoin:run-unattended <task>` starts the same run in
the background and returns at once, and the staged `/quoin:run` offers it when
you confirm a stage plan (recommended for three or more stages). Sessions it
starts share the checkout the launching session handed over rather than moving
to a worktree, and commit on the plan's `Branch:`.

Claude Code does not document a pause-and-resume for a headless `/goal`
session at a usage limit, so the run stops there with exit code 75 and the
stage still unfinished; rerun it after the limit resets. For overnight runs
that must wait out a limit by themselves, keep using the supervisor from the
`legacy` tag (`pip install "git+https://github.com/FourthWiz/quoin@legacy"`).

## Runtime Support

| Runtime | Setup command | Scope | Implemented behavior |
|---------|---------------|-------|----------------------|
| Claude Code | `quoin install --runtime claude` | Claude Code plugin, user scope | Skills, scripts, hooks, memory files, short `CLAUDE.md` core rules (full rules in `memory/workflow-catalog.md`), slash-command workflow |
| Codex, OpenCode | `quoin install --runtime codex --project-root .` | `<project>/.agents/skills/` | The kept skills as a plain Agent Skills folder, with the scripts and guides they call |

The portable core is shared. Runtime-specific mechanics are adapter-owned:

- Claude adapter files live under `quoin/adapters/claude/`; `quoin/` is the
  plugin root (`quoin/.claude-plugin/plugin.json`).
- Codex and OpenCode get the kept skills as a plain Agent Skills folder
  (`build_agent_skills.py`); there is no Codex-specific adapter.

## Codex and OpenCode

Codex reads Agent Skills from a project's `.agents/skills/` (OpenCode reads the
same format). Write quoin's kept skills there:

```bash
pip install quoin
quoin install --runtime codex --project-root .    # writes .agents/skills/
quoin doctor --runtime codex --project-root .     # checks every skill is there
quoin skills build --out <any folder>             # the same folder anywhere else
```

Each skill keeps its name in the standard's form (`init_workflow` becomes
`init-workflow`) and only `name` and `description` in its frontmatter; the
scripts and guides the skills call go into `quoin-support/` beside them.

## Claude Quickstart

After installing the Claude adapter:

```text
/init_workflow   one-time project bootstrap
/run <task>      scope triage, implement, verify, local commit (+review or stages when needed)
/pr              push the branch and open a pull request
```

`/run hard: <task>` runs the full discover/specify/architect/plan/critic/gate
chain instead; use it only for work that really needs that rigor.

Claude-specific command behavior, model assignments, hook behavior, and
cost-capture plumbing are documented in `quoin/CLAUDE.md`; the plugin's SessionStart hook adds only the short core rules (`quoin/CLAUDE.slim.md`), with every section kept in the plugin's `memory/workflow-catalog.md`.

## Claude Skills

These slash commands are Claude adapter commands. Codex uses the same portable
workflow intent through natural-language phase requests and repo-local docs.

### Planning And Architecture

| Command | Model | What it does |
|---------|-------|-------------|
| `/architect` | Opus | Deep architectural analysis; internal critic loop |
| `/plan` | Opus | Detailed implementation plan |
| `/thorough_plan` | Opus | Triages task size; runs plan -> critic -> revise convergence |
| `/critic` | Opus | Reviews a plan for gaps, risks, and integration issues |
| `/revise` | Opus | Revises plan from critic feedback in strict/large mode |
| `/revise-fast` | Sonnet | Revises plan from critic feedback in medium mode |

### Implementation And Review

| Command | Model | What it does |
|---------|-------|-------------|
| `/implement` | Sonnet | Writes code from the plan |
| `/review` | Opus | Verifies implementation against the plan |
| `/gate` | Sonnet | Automated quality checkpoint between phases; requires approval |
| `/rollback` | Sonnet | Safely undoes an implementation phase or specific tasks |
| `/pr` | Sonnet | Full pull-request lifecycle: optional version bump, push, create PR, wait for merge, switch branch |

### Session Lifecycle

| Command | Model | What it does |
|---------|-------|-------------|
| `/init_workflow` | Opus | One-time project bootstrap; creates `.workflow_artifacts/` and runs discovery |
| `/discover` | Opus | Scans repos; maps architecture, dependencies, and git history |
| `/start_of_day` | Haiku | Morning briefing from daily/session memory |
| `/end_of_day` | Sonnet | Saves session state, dedupes and promotes insights; auto-invokes /sleep |
| `/end_of_task` | Sonnet | Pushes branch, captures lessons, and finalizes task state |
| `/continue_work` | Sonnet | Resume context from a prior session using the recent-sessions index |
| `/sleep` | Sonnet | Memory consolidation: promotes insights to lessons-learned, archives stale entries |

### Utilities

| Command | Model | What it does |
|---------|-------|-------------|
| `/run` | Opus | Default pipeline: scope triage picks one class: r0 plain (implement on Opus, verify, local commit), r1 risky (+ one review), r2 multi-part (+ a short stage plan), r3 needs design (heavy pipeline, opt-in only) |
| `/run_hard` | Opus | Full heavy pipeline orchestrator (`/run hard:`); pauses at gates |
| `/cost_snapshot` | Haiku | Live Claude cost: today, lifetime, and per-task breakdown |
| `/triage` | Haiku | Routes the request to the right workflow phase |
| `/weekly_review` | Haiku | Aggregates weekly progress into a structured review |
| `/capture_insight` | Haiku | Logs a pattern or discovery to daily insights |
| `/expand <path>` | Sonnet | Re-renders a terse workflow artifact in readable English |
| `/status` | Haiku | Renders the workflow pipeline graph with the active phase marked (read-only) |
| `/cleanup` | Sonnet | Trash-moves stale sentinels and old checkpoints into recoverable archive; standalone runs also offer a confirmed task-folder bookkeeping pass |
| `/repo_cleanup` | Opus | Whole-repo pass: removes redundant comments under a removal-only proof, trims tests only on coverage and mutation evidence |
| `/next-steps` | Haiku | Append-only queue for future work items (`add` / `list` / `done N`) |

## Open models

`quoin open` runs Claude Code on an open model through a gateway, with plain
environment variables and no router. The default profile is Qwen3 Coder through
OpenRouter:

```bash
export OPENROUTER_API_KEY=sk-or-...
quoin open setup      # copies the pack, writes ~/.config/quoin/open.json
quoin open probe      # model list, one message, one tool call
quoin open            # starts claude on the profile; extra arguments pass through
quoin open remove     # deletes the pack and the profile
```

The profile sets `ANTHROPIC_BASE_URL`, the gateway key and the tier-alias
variables, so `model: sonnet` in a skill resolves to the model you chose, and
sets the auto-compact window to the model's context (Claude Code does not know
it). Edit `open.json` for another model or gateway. The pack adds two skills,
`/quoin-open:plan` (plan first, then work the plan with tests) and
`/quoin-open:review`, and is loaded only in `quoin open` sessions through
`--plugin-dir`; Claude Code's settings and the default quoin plugin are not
changed, and the capture layer records these sessions like any other. Pass
absolute paths in prompts that name files: some open models call the file
tools with relative ones.

`quoin/docs/native-coverage.md` is the running list of what Claude Code now
covers natively; check it monthly against the changelog and run one task with
`quoin open`.

## Open-model routing (opt-in)

Quoin can route Claude Code through [claude-code-router](https://github.com/musistudio/claude-code-router)
to use open models from OpenRouter (DeepSeek V4.1, GLM-5.3, and others) when your
Anthropic quota is low. This is fully opt-in — `quoin install` is unchanged.

### Setup

```bash
export OPENROUTER_API_KEY=sk-or-...   # your OpenRouter key
quoin router setup                    # install CCR + scaffold config
```

This installs `claude-code-router` globally (requires Node 22 or newer) and scaffolds
`~/.claude-code-router/config.json` with an OpenRouter provider and a tier routing
map. Any existing config is backed up with a timestamp before changes are applied.

Check the result:

```bash
quoin router status    # installed? config present? proxy running? key set?
quoin doctor           # includes a one-line CCR probe
```

### Launch modes

| Mode | Command | When to use |
|------|---------|-------------|
| Open models via CCR (v2) | `ccr code` | Quota exhausted, cost-sensitive work |
| Open models via CCR (v3) | `ccr default-claude-code` | Same, on CCR v3 — profile exists but routes nothing until configured in `ccr ui` |
| Native Anthropic | `claude` | Normal use, full quoin skill fidelity |

On CCR v2, `ccr code` auto-starts the local proxy and launches the real `claude`
binary in your terminal — quoin's slash commands and skills work normally. CCR v3
has no `code` subcommand; `ccr default-claude-code` selects its profile, but that
profile routes nothing until you configure its models in `ccr ui`.

**Sanity-check:** inside an open-model session, type `/help`. The quoin skill list
should resolve. If it does not, run `quoin doctor` and file an issue.

> **Note:** the model shown in the Claude Code header will still say "Sonnet 4.6" (or
> whatever your default Claude model is). This is expected — CCR routes requests
> transparently at the HTTP layer, below what the Claude Code UI can see. The actual
> model invoked is the one CCR maps to (e.g. DeepSeek V4 for default requests).

### Switching back

Run `claude` directly (not `ccr code` / `ccr default-claude-code`) to use native
Anthropic models. No config changes needed — the CCR config is left intact so you
can flip back by running `ccr code` (v2) or `ccr default-claude-code` (v3) again.

### Model defaults

The tier → model mapping is seeded to `~/.config/quoin/models.json` on first setup.
Edit it any time, or use the `quoin models` command (see below). Re-running
`quoin router setup` re-applies the current `models.json` to the CCR Router
config — it does not reset it.

### quoin models

View and manage the tier → open-model mapping:

```bash
quoin models                  # show current mapping and active launch mode
quoin models set <tier> <slug>  # update one tier's slug
quoin models preset open      # restore all three defaults at once
quoin models reset            # document native-launch; back up CCR config (non-destructive)
quoin models reset --native   # identical to reset (explicit-intent spelling)
```

**Tiers:** `haiku`, `sonnet`, `opus`

**Friendly aliases** (expand to the corresponding default slug):

| Alias | Slug |
|-------|------|
| `flash` | `z-ai/glm-5.3-flash` |
| `pro` | `deepseek/deepseek-v4.1-flash` |
| `glm` | `z-ai/glm-5.3` |

Examples:

```bash
quoin models set opus glm          # set opus → z-ai/glm-5.3 (alias)
quoin models set sonnet pro        # set sonnet → deepseek/deepseek-v4.1-flash (alias)
quoin models set haiku anthropic/claude-3-haiku  # any OpenRouter slug
```

**Slug validation is advisory:** known slugs are accepted silently; unknown-but-plausible
slugs (containing a `/`) are accepted with a warning; only structurally malformed input
is rejected. You can always edit `~/.config/quoin/models.json` directly.

**Secret rule:** `quoin models` never reads or writes `OPENROUTER_API_KEY`. The key lives
only in the CCR config authored by `quoin router setup`. `set` and `preset` update the
provider's `models` list in-place, leaving `api_key` byte-unchanged.

**reset is non-destructive:** `quoin models reset` backs up the CCR config and prints
native-launch instructions, but leaves the Router keys, provider block, and `models.json`
intact. Run `ccr code` (v2) or `ccr default-claude-code` (v3) again to switch back
to open models with no re-setup required.

## Architecture

![Quoin architecture](quoin/docs/images/quoin-architecture.png)

Quoin separates portable workflow contracts from runtime adapters:

- `quoin/core/workflow/` defines shared rules, task layout, session state, cost
  ledger shape, and skill metadata.
- `quoin/core/skills/` defines runtime-neutral skill intent.
- `quoin/core/scripts/` contains portable helper implementations.
- `quoin/adapters/claude/` contains Claude-specific skill bodies and runtime
  assumptions.
- `quoin/adapters/codex/` contains Codex-facing repo-local instructions,
  procedures, readiness checks, handoff validation, and cost-event tooling.

The project root containing `AGENTS.md` is the Quoin project root for Codex.
Codex writes `.workflow_artifacts/` there even when the code being edited lives
in a nested subdirectory.

## Cost And Effort

Claude and Codex expose different runtime mechanics, so Quoin keeps cost and
effort handling honest:

- Claude skills declare Haiku/Sonnet/Opus model tiers and can self-dispatch
  through Claude's Agent/Skill behavior.
- Claude cost tooling can read Claude session logs and `ccusage` output.
- Codex adapter docs use runtime-neutral effort labels:
  `low`, `medium`, `high`, `max`, and `unknown`.
- Codex cost rows do not infer token counts or dollars from another runtime.
  Unavailable telemetry is recorded as `not_available`.

For runtime-neutral effort vocabulary, see
[`quoin/docs/effort-levels.md`](quoin/docs/effort-levels.md).

## Documentation

- [`quoin/QUICKSTART.md`](quoin/QUICKSTART.md) - Claude command reference table
- [`quoin/CLAUDE.md`](quoin/CLAUDE.md) - Claude workflow rules, model assignments, artifacts, and cost conventions
- [`quoin/adapters/codex/setup.md`](quoin/adapters/codex/setup.md) - Codex repo-local setup and readiness
- [`quoin/adapters/codex/workflow.md`](quoin/adapters/codex/workflow.md) - Codex workflow execution guide
- [`quoin/adapters/codex/handoff.md`](quoin/adapters/codex/handoff.md) - Codex session handoff contract
- [`quoin/adapters/codex/cost.md`](quoin/adapters/codex/cost.md) - Codex cost event behavior
- [`quoin/docs/runtime-portability.md`](quoin/docs/runtime-portability.md) - portable core and runtime adapter boundary
- [`quoin/docs/runtime-portability-status.md`](quoin/docs/runtime-portability-status.md) - current migration status by runtime
- [`quoin/docs/runtime-parity-matrix.md`](quoin/docs/runtime-parity-matrix.md) - evidence-based runtime parity matrix
- [`quoin/docs/effort-levels.md`](quoin/docs/effort-levels.md) - runtime-neutral effort vocabulary

## Boundaries

Quoin intentionally does not:

- install global Codex commands or plugins
- guess Codex local runtime paths
- duplicate Codex approvals or sandboxing
- claim live Codex hooks
- translate Claude slash commands into Codex command files
- infer Codex token or dollar telemetry from Claude tooling

Future runtime integrations should add explicit adapter contracts instead of
copying Claude-specific behavior into the portable core.

## Contributing

Bug reports and PRs welcome. Quoin development uses Quoin itself: keep changes
artifact-aware, runtime boundaries explicit, and documentation honest about what
is implemented versus planned.

## License

[PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0/) — source-available, noncommercial use only.
