Workflow state for stateless coding agents — structured persistence for Claude Code sessions
Project description
Quoin
Workflow state for stateless coding agents.
A workflow memory toolkit for Claude Code that structures your coding agent workflow using lightweight persistence files — so every session starts informed and every decision is tracked.
What is Quoin?
Quoin gives Claude Code a disciplined engineering partner: planning, architecture review, quality gates, cost discipline, and institutional memory — across sessions, tasks, and team members.
Without Quoin, each Claude session starts cold. With Quoin, sessions share accumulated knowledge through structured artifacts: plans, critic reviews, session state, lessons learned, and a cost ledger.
Why Quoin?
- Cost discipline — §0 model dispatch preamble routes each skill to the right tier (Haiku/Sonnet/Opus).
/cost_snapshotshows live spend.ccusagefallback tracks every session. - Planning rigor —
/thorough_planruns a plan→critic→revise convergence loop before a single line of code is written. - Audit trail — every phase produces a structured artifact:
architecture.md,current-plan.md,critic-response-N.md,review-N.md,cost-ledger.md. - Six stages of foundation — stages 1–6 of the Quoin foundation hardened the system: §0 dispatch preamble (1), ccusage fallback (2), stage-subfolder path resolution (3), architect Phase 4 critic loop (4), native Haiku summarizer (5), and this rebrand + QUICKSTART relocation (6).
Install
Via pip (recommended):
pip install quoin
quoin install
From source:
git clone https://github.com/FourthWiz/quoin
cd quoin
bash quoin/install.sh
Note: GitHub auto-redirects from the old
FourthWiz/claude_dev_workflowURL — existing clones continue to work.
For full setup instructions see quoin/SETUP.md. For the command reference see quoin/QUICKSTART.md.
30-Second Start
/init_workflow ← one-time project bootstrap
/architect ← design the solution
/thorough_plan ← converge on a plan with critic review
/implement ← write the code (explicit — you decide when)
/review ← verify implementation against the plan
/end_of_task ← push the branch (explicit — you decide when to ship)
Skills
Planning & Architecture
| Command | Model | What it does |
|---|---|---|
/architect |
Opus | Deep architectural analysis; internal Phase 4 critic loop |
/plan |
Opus | Detailed implementation plan (single-pass) |
/thorough_plan |
Opus | Triages task size; runs plan→critic→revise convergence loop |
/critic |
Opus | Reviews a plan for gaps, risks, integration issues |
/revise |
Opus | Revises plan from critic feedback (strict/Large mode) |
/revise-fast |
Sonnet | Revises plan from critic feedback (Medium mode, cost-efficient) |
Implementation & Review
| Command | Model | What it does |
|---|---|---|
/implement |
Sonnet | Writes code from the plan (explicit command only) |
/review |
Opus | Verifies implementation against the plan; production-ready check |
/gate |
Sonnet | Automated quality checkpoint between phases; requires your approval |
/rollback |
Sonnet | Safely undoes an implementation phase or specific tasks |
Session Lifecycle
| Command | Model | What it does |
|---|---|---|
/init_workflow |
Opus | One-time project bootstrap — creates .workflow_artifacts/, runs /discover |
/discover |
Opus | Scans all repos; maps architecture, dependencies, git log |
/start_of_day |
Haiku | Morning briefing — restores context from daily cache |
/end_of_day |
Haiku | Saves session state; promotes insights to daily cache |
/end_of_task |
Sonnet | Pushes branch, captures lessons, marks task complete (explicit only) |
Utilities
| Command | Model | What it does |
|---|---|---|
/run |
Opus | End-to-end pipeline orchestrator; pauses at each gate |
/cost_snapshot |
Haiku | Live cost: today, lifetime, per-task breakdown |
/triage |
Haiku | Routes your request to the right skill |
/weekly_review |
Haiku | Aggregates the week's progress into a structured review |
/capture_insight |
Haiku | Logs a pattern or gotcha to the daily scratchpad |
/expand <path> |
Sonnet | Re-renders a terse workflow artifact in readable English |
Architecture
Each Claude session is stateless by nature. Quoin bridges sessions using structured file artifacts under .workflow_artifacts/. Skills read these files at startup (session bootstrap) and write them on completion — so the next session, whether in 5 minutes or 5 days, picks up exactly where you left off.
For full rules, model assignments, artifact formats, and cost-tracking conventions, see quoin/CLAUDE.md.
Cost & Model Discipline
Every Quoin skill declares a model tier (haiku, sonnet, opus). When invoked from a session running on a more expensive model, the skill self-dispatches via the Agent tool to its declared tier (§0 model dispatch preamble).
- Fails gracefully: if dispatch is unavailable, the skill proceeds at the current tier with a one-line warning — never aborts your invocation.
- Tracked: every session appends a row to
cost-ledger.md./cost_snapshotreads it live.ccusageis the fallback if the ledger is unavailable. - Three artifact tiers: Tier 1 (always English — CLAUDE.md, reviews, architectures), Tier 2 (English + side-file), Tier 3 (terse; use
/expandto read).
Typical Flows
Large feature (full pipeline):
/discover → /architect → /thorough_plan large: ... → /implement → /review → /end_of_task
Medium task (default):
/thorough_plan add caching layer → /implement → /review → /end_of_task
Small bug fix:
/thorough_plan small: fix null pointer in auth handler → /implement → /review → /end_of_task
Start / end of day:
/start_of_day ← morning: restores context, checks git state
/end_of_day ← evening: saves state, consolidates insights
Documentation
quoin/QUICKSTART.md— command reference table (21 skills)quoin/CLAUDE.md— full workflow rules, model assignments, artifact formats
Contributing
Bug reports and PRs welcome. The workflow is its own guinea pig — all Quoin development uses Quoin.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quoin-0.2.0.tar.gz.
File metadata
- Download URL: quoin-0.2.0.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e855a03782460c3809a4ebaad848db48b1bc4ef410d88c85c29afabb39eef6a4
|
|
| MD5 |
6405f4f06a687b23e431e664b793e13d
|
|
| BLAKE2b-256 |
9434118863e7c5d467ddc9a7aff9829c955da5a7a9a95b3f127712f62713c800
|
File details
Details for the file quoin-0.2.0-py3-none-any.whl.
File metadata
- Download URL: quoin-0.2.0-py3-none-any.whl
- Upload date:
- Size: 281.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3fe054d09a52cf2270769e75be1c3120b7f32a546bda3ee920e302c08977966b
|
|
| MD5 |
48bfc1ff68fc0ea066120e5c41360e41
|
|
| BLAKE2b-256 |
07876201ee1f52bc1624b627b5ea15612963353c29e1bd625da76f1613d13724
|