Proposal: remove the subagent-checkpoint machinery (pre-task/post-task/post-todo) — likely unneeded
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- go, typescript
Direzione di ricerca
Inizia leggendo i percorsi lifecycle e strategy in cmd/entire/cli/lifecycle.go e cmd/entire/cli/strategy/, quindi esamina checkpoint/ephemeral.go, persistent.go, state.go e api/src/lib/checkpoint-payload-hydrator.ts. Verifica che i comandi product e live non consumino dati a livello di attività prima di decidere se sia possibile rimuovere gli hook cross-agent e i relativi test e documenti. Il lavoro è completato quando la decisione è implementata in modo coerente nei quattro agenti senza perdere la normale acquisizione dei checkpoint di Stop.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Proposal
Evaluate removing the subagent / task-checkpoint subsystem — the pre-task, post-task, and post-todo hooks and everything they feed. Investigation suggests it produces data that nothing consumes.
Raised as the deferred follow-up from #1806 (which repaired the Claude Code matchers so these hooks fire again). This issue is the "do we even want this granularity?" decision.
What this subsystem is
pre-task— snapshots untracked files before a subagent runs (baseline helper)post-task— on subagent finish, writes a task checkpoint to the shadow branch bundling the subagent's file diff + its own transcript (agent-<id>.jsonl) + attribution (subagent_type,task_description,agent_id,tool_use_id)post-todo— cuts incremental checkpoints during a long subagent run
Backed by shared machinery: handleLifecycleSubagentStart/End (cmd/entire/cli/lifecycle.go), SaveTaskStep / TaskStepContext (cmd/entire/cli/strategy/), task-checkpoint write paths (cmd/entire/cli/checkpoint/ephemeral.go, persistent.go), and pre-task state (cmd/entire/cli/state.go).
Why it looks unneeded
The product consumes session-level data only (checked in entire.io):
- Ingestion reads
full.jsonl/transcript.jsonlfor session index 0 (api/src/lib/checkpoint-payload-hydrator.ts). Subagent transcripts (agent-*.jsonl) are never read. is_task/tool_use_idare parsed intoSessionInfoonce (api/src/lib/github.ts:660-661) then never queried or displayed.subagent_type,task_description,is_incremental,incremental_sequence,agent_id,is_task_checkpoint→ 0 matches anywhere in the product. No UI renders subagents.
Local consumers are dead or cosmetic:
rewind(the one feature using subagent-boundary checkpoints) is deprecated and slated for removal.- Remaining use is
[Task]labels incheckpoint list/explain— navigational garnish.
Cross-agent: the machinery is shared by Claude Code, Cursor, Factory AI Droid, and Copilot CLI. On Claude Code it was dead (the #1806 matcher bug); on the other three it fires today but produces the same inert task checkpoints.
What we'd lose: nothing consumed
- Code the subagent writes is still captured by the
Stop/ turn checkpoint (whole-worktree). No code loss in the common single-worktree flow. - Subagent transcript, per-subagent rewind points, attribution, per-subagent tokens — none are read by the product or any live command.
One honest caveat: subagents in an isolated worktree aren't covered by Stop, and post-task was the only thing that would capture them. But that protection doesn't effectively exist today (hooks were broken/unconsumed), so removal doesn't regress vs current reality. If isolated-worktree subagent capture ever becomes a real requirement, it's a fresh, correctly-scoped feature.
Removal scope (if approved)
- Hook install + lifecycle parse across the 4 agents (
subagent-start/stop,pre-tool-use/post-tool-use, Claude matchers) - Shared dispatch cases (
SubagentStart/SubagentEndinlifecycle.go; subagent classification inhook_registry.go) - Strategy:
SaveTaskStep,TaskStepContext, task-checkpoint write paths incheckpoint/ephemeral.go+persistent.go pre-taskstate (state.go),post-todohandler- The deprecated
rewindtask-checkpoint branch (already going away) - Tests + docs across all four agents
Decision needed
Keep (bet on a future subagent-level product feature — the dead isTask parse suggests it was once intended) or remove (delete unconsumed cross-agent complexity).
If we're not going to surface subagent-level data in the product in the foreseeable future, the recommendation is remove.
/cc — deferred from #1806
- Lingua principale
- Go
- Stelle
- 5.1k
- Fork
- 475
- Merge medio
- 1g 17h
- PR unite (30g)
- 212
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di entireio/cli
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
entireio/cli#2416 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Stale `entire configure --agent` hints in investigate and review error messagesForse già presa @suhaanthayyil l’ha presa 54 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Codex last_assistant_message is parsed then discarded on Stop/SubagentStopForse già presa @Vishal202-rgb l’ha presa 44 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
entireio/cli#2064 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di entireio/cli
Issue simili
-
automation doc-healer documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
tsukumogami/tsuku#2804 ·
I maintainer di solito rispondono entro 1 giorno
-
Anthropic /v1/messages: only the last thinking block of an assistant message is keptForse già presa @Shayan12456 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
ollama/ollama#19415 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
raised-by:verifier
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
medici-finance/assay#5039 ·
I maintainer di solito rispondono entro 1 giorno
-
metax CheckHealth reads Status.Capacity, so unhealthy Metax-GPU nodes are never cleaned upForse già presa @barbierajput378-pixel l’ha presa oggi. Apertakind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Project-HAMi/HAMi#3343 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno