From 9d66b80709805ebc361f3162b6683874fdfb8333 Mon Sep 17 00:00:00 2001 From: justsisyphus Date: Mon, 26 Jan 2026 14:23:05 +0900 Subject: [PATCH] feat(hooks): add active working context section to compaction summary Include files, code in progress, external references, and state/variables in compaction summary for seamless continuation after context compaction. --- src/hooks/compaction-context-injector/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/hooks/compaction-context-injector/index.ts b/src/hooks/compaction-context-injector/index.ts index ee262ab7..f25c4726 100644 --- a/src/hooks/compaction-context-injector/index.ts +++ b/src/hooks/compaction-context-injector/index.ts @@ -33,7 +33,13 @@ When summarizing this session, you MUST include the following sections in your s - Pending items from the original request - Follow-up tasks identified during the work -## 5. MUST NOT Do (Critical Constraints) +## 5. Active Working Context (For Seamless Continuation) +- **Files**: Paths of files currently being edited or frequently referenced +- **Code in Progress**: Key code snippets, function signatures, or data structures under active development +- **External References**: Documentation URLs, library APIs, or external resources being consulted +- **State & Variables**: Important variable names, configuration values, or runtime state relevant to ongoing work + +## 6. MUST NOT Do (Critical Constraints) - Things that were explicitly forbidden - Approaches that failed and should not be retried - User's explicit restrictions or preferences