Coordinate Reasoning
Manage internal coordination of a long task by treating context as signals with freshness and decay — so coherent behavior emerges from simple local rules.
When to Use
- Complex tasks where multiple sub-tasks must coordinate (multi-file edits, refactors)
- Context has grown long and freshness is uncertain
- After context compression when information may be lost
- Sub-task outputs need to feed into each other cleanly
- Earlier reasoning must be carried forward without degradation
Procedure
Step 1 — Classify the coordination problem
- Foraging (scattered search → share findings, avoid duplicate work) — most debugging
- Consensus (competing paths → independent evaluation) — most design decisions
- Construction (incremental build → consistency, ordering) — most implementation
- Defense (quality under pressure → monitor, correct fast)
- Division of labor (sub-tasks with dependencies → ordering, handoff, integration)
Pick the dominant type for the current phase; it can change as the task progresses.
Step 2 — Treat context as signals with decay
Decay rates: user's explicit instruction = slow (re-read after >30 msgs or compression); file contents = moderate (re-read if possibly modified or >15 msgs); own earlier reasoning = fast (re-derive); inferred facts = very fast (verify); MEMORY.md/CLAUDE.md = very slow (stable). Also keep inhibition signals — note failed tool calls, abandoned approaches, and user corrections so you don't repeat them.
Step 3 — Apply local protocols
- Safety: before using a fact, check when it was last verified; re-verify if below threshold
- Response: when the user corrects something, update all downstream reasoning that depended on it
- Deposit: after a sub-task, summarize its output in 1-2 sentences for the next sub-task
- Exploration: if stuck >3 actions, try a different tool/file/framing
- Inhibition: before an approach, check if it was already tried and what is different now
Keep it light — default to Safety + Deposit; add others only when problems emerge.
Step 4 — Calibrate freshness (active audit)
List facts established >N messages ago; for each note source, age, and status (Fresh/Stale/Unknown/Lost). Check for compression losses and drift between early plans and current execution. Re-verify the 2-3 facts the most downstream work depends on.
Step 5 — Test emergent coherence
Check: do sub-task outputs feed cleanly into each other? Are tool calls non-redundant? Is direction still aligned with the request? If one key assumption is wrong, how much cascades (high cascade = fragile)? Fix the point of divergence, then re-verify downstream outputs.
Validation
Common Pitfalls
- Over-engineering signals — start with Safety + Deposit.
- Trusting stale context — when in doubt, re-read.
- Ignoring inhibition signals (blind retries are not persistence).
- No deposits, forcing later re-derivation.
- Assuming coherence without testing the integration.
Related
- manage-memory, manage-token-budget — companion agent-hygiene skills
- build-consensus — for the Consensus coordination type
1---2name: coordinate-reasoning3description: "Use during long or complex agent tasks where sub-tasks must coordinate, the context has grown long, information freshness is uncertain, or after context compression — track which facts are fresh vs stale, apply lightweight local protocols, audit staleness, and test that sub-task outputs combine coherently. Triggers: long context, stale information, context compression, multi-step task, sub-task coordination, information decay, re-read before relying."4version: 1.0.05license: MIT6tags: [coordination, context-management, information-decay, agent-reasoning, freshness, multi-step, stigmergy]7source: https://github.com/pjt222/agent-almanac/tree/main/skills/coordinate-reasoning8derived_from: awesomeclaude9metadata:10 source: https://skillmd.com/skills/aashutosh396/coordinate-reasoning11---1213# Coordinate Reasoning1415Manage internal coordination of a long task by treating context as signals with freshness and decay — so coherent behavior emerges from simple local rules.1617## When to Use1819- Complex tasks where multiple sub-tasks must coordinate (multi-file edits, refactors)20- Context has grown long and freshness is uncertain21- After context compression when information may be lost22- Sub-task outputs need to feed into each other cleanly23- Earlier reasoning must be carried forward without degradation2425## Procedure2627### Step 1 — Classify the coordination problem28- Foraging (scattered search → share findings, avoid duplicate work) — most debugging29- Consensus (competing paths → independent evaluation) — most design decisions30- Construction (incremental build → consistency, ordering) — most implementation31- Defense (quality under pressure → monitor, correct fast)32- Division of labor (sub-tasks with dependencies → ordering, handoff, integration)33Pick the dominant type for the current phase; it can change as the task progresses.3435### Step 2 — Treat context as signals with decay36Decay rates: user's explicit instruction = slow (re-read after >30 msgs or compression); file contents = moderate (re-read if possibly modified or >15 msgs); own earlier reasoning = fast (re-derive); inferred facts = very fast (verify); MEMORY.md/CLAUDE.md = very slow (stable). Also keep inhibition signals — note failed tool calls, abandoned approaches, and user corrections so you don't repeat them.3738### Step 3 — Apply local protocols39- Safety: before using a fact, check when it was last verified; re-verify if below threshold40- Response: when the user corrects something, update all downstream reasoning that depended on it41- Deposit: after a sub-task, summarize its output in 1-2 sentences for the next sub-task42- Exploration: if stuck >3 actions, try a different tool/file/framing43- Inhibition: before an approach, check if it was already tried and what is different now44Keep it light — default to Safety + Deposit; add others only when problems emerge.4546### Step 4 — Calibrate freshness (active audit)47List facts established >N messages ago; for each note source, age, and status (Fresh/Stale/Unknown/Lost). Check for compression losses and drift between early plans and current execution. Re-verify the 2-3 facts the most downstream work depends on.4849### Step 5 — Test emergent coherence50Check: do sub-task outputs feed cleanly into each other? Are tool calls non-redundant? Is direction still aligned with the request? If one key assumption is wrong, how much cascades (high cascade = fragile)? Fix the point of divergence, then re-verify downstream outputs.5152## Validation5354- [ ] Coordination problem classified by type55- [ ] Decay rates considered for relied-upon facts56- [ ] Safety + Deposit protocols applied57- [ ] Freshness audit run (stale items found or freshness confirmed with evidence)58- [ ] Coherence tested across sub-tasks59- [ ] Inhibition signals respected (no blind retries)6061## Common Pitfalls6263- Over-engineering signals — start with Safety + Deposit.64- Trusting stale context — when in doubt, re-read.65- Ignoring inhibition signals (blind retries are not persistence).66- No deposits, forcing later re-derivation.67- Assuming coherence without testing the integration.6869## Related7071- manage-memory, manage-token-budget — companion agent-hygiene skills72- build-consensus — for the Consensus coordination type