ach
Skill1 starsChanged 7 months agoMITView on GitHub
Formal public entry for Agent Continuity Harness. Use when Codex should keep long-running, drift-prone, cross-window, recovery-sensitive, or stateful collaboration coherent without asking the user to choose internal guard or continuity modes manually. Start in guard-mode by default; enter continuity-mode only when handoff, recovery, formal state, or cross-window continuation is needed.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Liberty91LTD/cti-skillstheir own version, first seen Sep 30, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Liberty91LTD/cti-skills★ 35same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 18 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Do not ask the user to choose between internal modules unless they explicitly ask about internals.
- Very specific: line 21
Start in guard-mode when the task has no formal state root, recovery dependency, migration, binding, or window handoff requirement.
- Distinctive: line 22
Use references/adg/guard.md for guard-mode behavior.
- Distinctive: line 24
Use references/cca/entry.md for continuity-mode startup.
- Very specific: line 31
Read the workspace .cca-bindings.json before assuming a state root.
- Distinctive: line 33
Create a new formal state root only when the task actually needs durable continuation and no valid root exists.
- Very specific: line 34
Keep current-goal, confirmed-constraints, pending-items, and decisions distinct.
- Distinctive: line 35
Treat unresolved assumptions as assumptions, not confirmed facts.
- Distinctive: line 37
Use assets/state-templates/ only as templates for new formal state roots.
- Very specific: line 43
Default startup reads only: system.md, the four state-core files (current-goal, confirmed-constraints, pending-items, decisions), and — …
- Very specific: line 44
Read at most ONE mother-doc in full per turn.
- Distinctive: line 45
Read a mother-doc only when the current decision actually hits its trigger.
- Distinctive: line 47
Use references/cca/outer.md for formal state write decisions, externalization gates, and state-effect rules — on demand, single-doc, …
- Distinctive: line 48
Use references/architecture-branch-map.md and references/design-constraints.md when changing ACH architecture branches, scoped design …
- Distinctive: line 52
When the user asks for current status, progress, what to do next, or to continue a bound task, recover from ACH state internally but answer …
- Very specific: line 56
When a formal state root is bound and the CLI is available, prefer ach status <task-key> --json as the mechanical source for this view …
- Distinctive: line 61
Default status answers should show only:
- Distinctive: line 69
Do not show formal state root mechanics, manifest details, supplemental document inventory, validator internals, or a full recovery-core …
- Distinctive: line 80
When the user asks to record, externalize, checkpoint, continue from, pause, or correct durable task state, route the state effect to the …
- Distinctive: line 85
Use this routing before editing state:
- Distinctive: line 104
After choosing the write target, close the write-to-use loop.
- Very specific: line 113
read path: if the edit changes what should be read next, update read order, current artifacts, current blockers, or the relevant read_when …
- Very specific: line 127
When a formal state root is bound and the CLI is available, use ach check-write <task-key> --json after durable state edits to mechanize …
- Distinctive: line 133
If an edit is useful only as cold evidence and should not affect current recovery or user-facing status, keep it out of the default read …
- Distinctive: line 137
Only create or expand supplemental layers when the corresponding complexity risk exists, such as branch conflict, current-route ambiguity, …
- Distinctive: line 149
Use these presets by default:
- Very specific: line 175
If no bound formal state root exists, remain in guard-mode unless durable continuation, recovery, or cross-window handoff is actually …
- Very specific: line 186
Use ach list for routine task discovery because it stays usable when old bindings are invalid.
- Very specific: line 196
Treat guard-mode and continuity-mode as internal operating modes.
- Very specific: line 197
Do not publish adg or cca as separate user choices in normal answers.
- Very specific: line 198
Do not create a second state protocol outside .cca-bindings.json and the formal state root.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Continuity Harness (ACH)
Agent Continuity Harness is the formal project name, with
agent-continuity-harness as the repository slug. Use ach as its short
invocation name.
ACH routes long-running AI collaboration through two internal modes:
guard-mode: lightweight drift control, boundary stabilization, and minimal readback for normal multi-turn work.continuity-mode: formal state, handoff, recovery, and cross-window continuation when chat history is no longer enough.
Do not ask the user to choose between internal modules unless they explicitly ask about internals.
Default Routing
- Start in
guard-modewhen the task has no formal state root, recovery dependency, migration, binding, or window handoff requirement. - Use references/adg/guard.md for guard-mode behavior.
- Enter
continuity-modewhen the task depends on formal state, recovery,.cca-bindings.json, state migration, or a cross-window handoff. - Use references/cca/entry.md for continuity-mode startup.
- Return to
guard-modewhen formal continuity is no longer needed and the preserved state is sufficient for future recovery.
Continuity Rules
When entering continuity-mode:
- Read the workspace
.cca-bindings.jsonbefore assuming a state root. - Reuse an existing valid formal state root when one exists.
- Create a new formal state root only when the task actually needs durable continuation and no valid root exists.
- Keep
current-goal,confirmed-constraints,pending-items, anddecisionsdistinct. - Treat unresolved assumptions as assumptions, not confirmed facts.
Use assets/state-templates/ only as templates for new formal state roots. The templates are not themselves live state.
Startup read budget (prevents stall on long-context endpoints)
Continuity-mode startup MUST go through the references/cca/system.md lightweight index first, not by loading mother-docs in full up front. Under this budget:
- Default startup reads only:
system.md, the four state-core files (current-goal,confirmed-constraints,pending-items,decisions), and — only when needed — the single active-layer doc. - Read at most ONE mother-doc in full per turn. Never chain-read
outer.md,inner.md, andsystem/*in the same turn; if more than one seems needed, read the highest-priority one, act, then read the next only if still required. - Read a mother-doc only when the current decision actually hits its trigger. After reading, keep only the minimal decision-relevant takeaway in context — do not restate long rule sections back into the conversation.
Use references/cca/outer.md for formal state write decisions, externalization gates, and state-effect rules — on demand, single-doc, minimal takeaway per the read budget above. Use references/architecture-branch-map.md and references/design-constraints.md when changing ACH architecture branches, scoped design constraints, or public-project positioning — same read budget applies.
User-Facing Status Rendering
When the user asks for current status, progress, what to do next, or to continue a bound task, recover from ACH state internally but answer in a user-facing status view by default.
When a formal state root is bound and the CLI is available, prefer
ach status <task-key> --json as the mechanical source for this view instead
of manually reconstructing current route, blockers, artifacts, and read order
from state files.
Default status answers should show only:
- current route or active mouth
- current usable state
- active rules or constraints that affect the next step
- current blockers or open decisions
- the next suggested action
Do not show formal state root mechanics, manifest details, supplemental document inventory, validator internals, or a full recovery-core dump unless the user explicitly asks for audit detail, handoff detail, internals, or the raw state view.
In Codex usage, the chat viewport is the user-facing status surface. CLI status output is a backend extraction payload for the skill, not the raw user-facing view.
State-Effect Router
When the user asks to record, externalize, checkpoint, continue from, pause, or correct durable task state, route the state effect to the smallest appropriate ACH state target. Do not ask the user to choose a file unless the state effect is ambiguous and cannot be inferred from the current state root.
Use this routing before editing state:
- route, mouth, current entry, or current valid artifacts changed: update
active-contextwhen present; updatecurrent-goalif the recovery core would otherwise become stale - confirmed active rule or constraint changed: update
confirmed-constraints; also updateactive-contextwhen it affects immediate recovery - branch tried, rejected, downgraded, or preserved as diagnostic: update
branch-attempt-ledgerwhen present, or reference the branch outcome fromdecisionswhen no supplemental layer is active - reusable chart, config, workbook output, script, generated table, or summary
created: update
artifact-provenance-indexwhen present - dependency, conflict, supersession, invalidation, inverted constraint, or
impact relation matters for future reasoning: update
state-relation-indexwhen present - ordinary unresolved next step or non-blocking follow-up: update
pending-items
After choosing the write target, close the write-to-use loop. A state write is not complete merely because content was added to a file; it is complete only when a future session can recover and use the intended effect from state.
For every durable state edit, check:
- current recovery: if the edit changes what should be treated as current,
update
active-contextor the four-file recovery core so compact recovery and user-facing status can see it - read path: if the edit changes what should be read next, update read order,
current artifacts, current blockers, or the relevant
read_whensurface - validity relations: if the edit changes old state validity, mark the old
item as
superseded,diagnostic,rejected, or with areplacement/relation instead of leaving competing states active - artifact linkage: if the edit creates or updates reusable artifacts, connect
depends_onandsource_pathswhen available and distinguish active evidence from diagnostic evidence - user-facing effect: if the user would expect this edit to affect "what is current", make sure the user-facing status answer would include the effect without relying on chat memory
- validation: run the affected task's ACH validation when practical; if validation cannot run, say so explicitly
When a formal state root is bound and the CLI is available, use
ach check-write <task-key> --json after durable state edits to mechanize this
closure check. Use ach add-supplemental and ach artifact add/check for
standard supplemental document and artifact-index maintenance instead of
manually editing manifest entries when those commands cover the needed change.
If an edit is useful only as cold evidence and should not affect current recovery or user-facing status, keep it out of the default read path and mark the condition under which it should be read.
Only create or expand supplemental layers when the corresponding complexity risk exists, such as branch conflict, current-route ambiguity, reusable artifacts, correction impact, inverted constraints, or cross-window recovery. For ordinary tasks, keep the four-file recovery core sufficient.
Intent Workflow Presets
ACH should feel like a default workflow, not a set of commands the user must assemble. When the user uses natural task-control language, translate the intent into the corresponding ACH workflow without asking them to name ACH internals or choose files.
Use these presets by default:
- continue, resume, next, or keep going on a bound task: resolve the binding,
run
ach preflight <task-key> --jsonorach resume <task-key> --jsonwhen practical, useach status <task-key> --jsonfor the current user-facing state view, read only the additionally required state files, then continue the work - record, externalize, checkpoint, remember, or lock this in: route the state
effect through
State-Effect Router, useach record <task-key>when the effect is a supported structured append, close the write-to-use loop, validate the affected task root when practical, then report only the user-visible effect - correct, revise, rollback an assumption, or self-check for drift: identify the changed assumption, scan affected constraints, routes, artifacts, and pending items, downgrade or supersede stale state, update the current recovery path, validate when practical, then continue from the corrected state
- pause, stop here, hand off, or prepare for next window: update current goal,
pending items, and
active-contextwhen present, ensure current artifacts and blockers are named, preferach pause <task-key>when practical, then provide a compact resume summary rather than a raw state dump - status, progress, what next, or where are we: recover from ACH state
internally, prefer
ach status <task-key> --jsonwhen available, and render the user-facing status view; do not expose manifest, validator, or supplemental-document mechanics by default
If no bound formal state root exists, remain in guard-mode unless durable
continuation, recovery, or cross-window handoff is actually needed. Create or
bind a formal state root only when the workflow would otherwise depend on chat
memory.
CLI commands are verifier and recovery tools inside these workflows, not the user-facing workflow itself. Prefer executing the needed ACH commands directly over instructing the user to run them. If a CLI command fails or is unavailable, fall back to reading and editing the formal state root directly, and say which mechanical check could not be automated.
Use ach list for routine task discovery because it stays usable when old
bindings are invalid. Use ach health when the goal is strict workspace
health. Use ach repair <task-key> --safe only for mechanical state-root
repairs; never use it to rewrite user intent, design conclusions, or
project-domain content.
Public Boundary
- Present Agent Continuity Harness as the formal project identity and
achas the invocation shorthand. - Treat
guard-modeandcontinuity-modeas internal operating modes. - Do not publish
adgorccaas separate user choices in normal answers. - Do not create a second state protocol outside
.cca-bindings.jsonand the formal state root. - Capability packs may extend ACH, but they must not rewrite routing or state-root rules.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

