/install taku-compact
\r \r
Taku Compact - Context-Control Habit\r
\r
Use /taku-compact to compress active work into a recoverable brief. It is a\r
bonus utility skill, not a seventh Taku phase.\r
\r
Rule labels: [IRON LAW] means a non-negotiable correctness constraint. [GUIDANCE] means a strong default that may adapt when context justifies it.\r
\r
Compact preserves current task state. Reflect preserves long-term learnings.\r
Never write .taku/learnings from this skill. You may list\r
reflect_candidates, but /taku-reflect is the only path that can promote them\r
after user approval. A reflect_candidates entry is not a recorded learning and\r
must never be worded as one.\r
\r
Host Boundary\r
\r This skill does not control the host transcript, context window, message\r slicing, archive behavior, or clear behavior. It creates a handoff brief from\r available evidence. Do not claim that tool calls, tool results, or transcript\r events were compacted.\r \r If a future host exposes transcript ranges, record them as retrieval hints only\r after verifying they are available. Otherwise use file, diff, command, log,\r prior-brief, and current-session anchors.\r \r
Mode Selection\r
\r
Accept an explicit mode when the user provides one:\r
\r
| Mode | Use When | Preserve First |\r
|------|----------|----------------|\r
| resume | The same agent or user will continue later | next step, open todos, blockers, recent decisions |\r
| handoff | Another agent or session needs to continue | background, scope, decisions, files, verification, next step |\r
| debug | Investigation or failed checks are in progress | symptoms, reproduction, evidence, failed hypotheses, next probe |\r
| review | A dirty diff or delivery review is next | diff intent, risk areas, test coverage, scope drift, blockers |\r
| design | Think/Plan/product discussion needs preserving | constraints, tradeoffs, confirmed decisions, open questions |\r
| research | Source reading or technical exploration needs preserving | sources, findings, confidence, unresolved questions, followups |\r
\r
If no mode is provided, infer it from the request and current state. Record\r
mode_selection_reason in the brief. Prefer handoff when multiple modes fit\r
and the user asked for general compacting.\r
\r
State Scan Contract\r
\r [IRON LAW] Run an evidence-first state scan before writing the brief. Do not summarize from\r memory first.\r \r
1. Durable Sources\r
\r Read or inspect these when present:\r \r
DESIGN.md\rPLAN.md\rREADME.md\rAGENTS.md\rCLAUDE.md\r.taku/context/current.md\r.taku/context/compact-*.md\r.taku/learnings/*.jsonlas approved context only\r \r Only include stable-layer details that affect the active task. If a durable\r source is missing or irrelevant, record that insource_coverage; do not treat\r it as a blocker.\r \r
2. Repo Evidence\r
\r Inspect git and file-system evidence when a repo is available:\r \r
git status --short\rgit diff --stat\rgit diff --name-only\r- relevant
git diffhunks for changed files\r git log -n 3 --oneline\r \r Changed files must come from git or the file system, not guesswork. A clean diff\r means no durable code changes were observed; it does not mean no progress\r occurred.\r \r
3. Session-Visible State\r
\r Treat visible conversation and tool outputs as first-class state:\r \r
- recent user decisions and corrections\r
- explicit constraints and preferences\r
- command results visible in this session\r
- tool output, agent findings, review findings, and debug observations\r
- design/research progress that has not been written to project files\r
\r
Mark conversation-derived claims as
userand command/tool-output claims as\rtool. Do not present them as file-backed project truth unless they were\r written to a durable artifact.\r \r
4. Source Tags and Confidence\r
\r Every important claim must carry one of these source categories:\r \r
file: project file, Taku context file, approved learning, or file-system inspection\rgit: status, diff, or commit history\rtool: command output or tool result visible in the session\ruser: explicit user statement, correction, or approval\rinferred: agent synthesis from other evidence\runknown: unavailable or unverified evidence\r \r Do not say tests passed unless actual command output or explicit user-provided\r evidence shows that.\r \r Includestate_confidencefor goal, changed files, verification, and next step\r usinghigh,medium,low, orunknown.\r \r
Brief Output\r
\r
Use references/compact-brief.md as the local brief scaffold. Fill every applicable\r
field. Remove irrelevant mode-specific sections, but keep unknowns,\r
retrieval_hints, and completeness_check.\r
\r
Default persistence:\r
\r
- Create
.taku/context/if needed.\r - Write the latest brief to
.taku/context/current.md.\r - Write the same brief to
.taku/context/compact-YYYYMMDD-HHMMSS.md.\r \r If files cannot or should not be written in the current host, output the brief in\r chat and markpersistence: chat_only.\r \r
Mode-Specific Requirements\r
\r
Resume\r
\r Include:\r \r
- the first concrete next action\r
- unresolved blockers\r
- open todos\r
- recent session context needed to avoid rework\r \r
Handoff\r
\r Include:\r \r
- background and current scope\r
- decisions and user constraints\r
- changed files or confirmation that none were observed\r
- verification state\r
- exact restart instructions for the next agent\r \r
Debug\r
\r Include:\r \r
- observed symptoms\r
- reproduction steps\r
- evidence collected\r
- failed hypotheses and why they failed\r
- next probe\r \r Never describe a fix as verified without evidence.\r \r
Review\r
\r Include:\r \r
- diff intent\r
- changed files\r
- risk areas\r
- test coverage observed\r
- scope drift check against
PLAN.mdor user intent when available\r - pre-ship blockers\r \r
Design\r
\r Include:\r \r
- user constraints\r
- options considered\r
- tradeoffs\r
- confirmed decisions\r
- open questions\r
- recommended next planning step\r \r
Research\r
\r Include:\r \r
- sources inspected\r
- key findings\r
- confidence by finding\r
- unresolved questions\r
- follow-up searches or files to inspect\r \r
Completeness Check\r
\r Before finishing, verify the brief includes:\r \r
- user constraints or
unknown\r - open todos or
none_observed\r - failed attempts or
none_observed\r - verification state with evidence or
not_established\r - changed files with sources or
none_observed\r - retrieval hints\r
- unknowns\r
- mode-specific required fields\r
- source tags for important claims\r \r If a required item is missing, fix the brief before presenting it.\r \r
Non-Goals\r
\r
- Do not edit implementation files.\r
- Do not update
PLAN.mdstatus.\r - Do not run formatters or codegen.\r
- Do not commit, push, or open a PR.\r
- Do not fix bugs.\r
- Do not write
.taku/learnings.\r - Do not add archive or clear semantics.\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install taku-compact - After installation, invoke the skill by name or use
/taku-compact - Provide required inputs per the skill's parameter spec and get structured output
What is Taku Compact?
Create a recoverable active-work brief for context-heavy coding, design, debugging, review, research, or handoff sessions. Multi-mode context-control habit w... It is an AI Agent Skill for Claude Code / OpenClaw, with 53 downloads so far.
How do I install Taku Compact?
Run "/install taku-compact" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Taku Compact free?
Yes, Taku Compact is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Taku Compact support?
Taku Compact is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Taku Compact?
It is built and maintained by KennyWu (@kkenny0); the current version is v1.0.0.