claude-context-auto-handoff 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
8
8
  "plugins": [
9
9
  {
10
10
  "name": "claude-context-handoff",
11
- "version": "1.0.6",
11
+ "version": "1.0.7",
12
12
  "displayName": "Context Auto-Handoff",
13
13
  "description": "Automatically saves session context and generates handoff manifests before Claude compacts or stops.",
14
14
  "source": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-context-handoff",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Automatically saves session context and generates handoff manifests before Claude compacts or stops.",
5
5
  "author": {
6
6
  "name": "Ethualo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-context-auto-handoff",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A Claude Code plugin to automate session handoffs before context compaction.",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
@@ -16,9 +16,9 @@ Write all field values using telegraphese — drop articles, pronouns, polite wo
16
16
 
17
17
  ## Steps
18
18
 
19
- 1. Delegate the entire save to a cheap model — Haiku — via the `Agent` tool with `model: "haiku"`, `subagent_type: "general-purpose"`, `run_in_background: false`. Do NOT ask it to return the drafted content to the main session; the draft can be 3k-6k tokens and round-tripping it through the (usually pricier) main-session model wastes those tokens twice. Instead, instruct the agent to do everything itself:
19
+ 1. Determine the project root as an absolute path (the directory containing `.claude`) BEFORE spawning the agent. Delegate the entire save to a cheap model — Haiku — via the `Agent` tool with `model: "haiku"`, `subagent_type: "general-purpose"`, `run_in_background: false`. Do NOT ask it to return the drafted content to the main session; the draft can be 3k-6k tokens and round-tripping it through the (usually pricier) main-session model wastes those tokens twice. Instead, instruct the agent to do everything itself:
20
20
  - Read the conversation context it's given and draft the fields below per the Content Generation Rules above.
21
- - Call `generate_handoff_manifest` itself with the drafted fields:
21
+ - Call `generate_handoff_manifest` itself with the drafted fields, ALWAYS including `workingDirectory` set to the absolute project root path determined above. The subagent runs with a different cwd (its own scratchpad), so omitting `workingDirectory` writes the handoff to the wrong location — pass it explicitly every time, never rely on the tool's default.
22
22
  - `summary`, `nextSteps` — required
23
23
  - `taskDescription`, `currentStatus`, `keyDecisions`, `failedApproaches`, `modifiedFiles`, `implicitRules` — recommended
24
24
  - `blockers` — optional