feat: add compact session exploration tools

This commit is contained in:
2026-05-28 12:31:44 +09:00
parent c274e4a891
commit 12dd35cfb2
4 changed files with 345 additions and 7 deletions
+5 -4
View File
@@ -5,10 +5,11 @@ The conversation input is a bounded overview/index, not the full transcript. Tre
## Workflow
1. Read the provided overview/index and current TaskStore snapshot.
2. Use `read_file` to inspect referenced files before deciding what the next session needs. Prefer skimming over blind inclusion.
3. For files whose current contents are load-bearing for the active work, call `mark_read_required` to inject them into the next session. These count against the auto-read token budget — spend it deliberately.
4. For files the next session should know about but can fetch on demand, call `add_reference` to record the path without embedding contents.
5. Finish with `write_summary` carrying the final text. You may call it multiple times; only the last call is kept.
2. If the overview does not contain enough detail, use `search_session_log` to find relevant compact-target history items, then `read_session_items` to inspect only the needed range.
3. Use `read_file` to inspect referenced files before deciding what the next session needs. Prefer skimming over blind inclusion.
4. For files whose current contents are load-bearing for the active work, call `mark_read_required` to inject them into the next session. These count against the auto-read token budget — spend it deliberately.
5. For files the next session should know about but can fetch on demand, call `add_reference` to record the path without embedding contents.
6. Finish with `write_summary` carrying the final text. You may call it multiple times; only the last call is kept.
Stop nominating and close out with `write_summary` as soon as the auto-read budget is exhausted, when a compact worker budget warning arrives, or whenever further exploration would not change the next session's next step.