You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: delete a node from the DAG (agentenv delete + ctl + MCP)
Adds node deletion (previously you could only create nodes):
- dag.Repo.Delete splices a node out, re-parenting its children to its parent
so descendants survive; drops tags pointing at it.
- repo.Delete: refuses to delete the current HEAD (would orphan the live work
tree — checkout elsewhere first) or the only node; persists metadata then
removes the snapshot dir. Safe even when children hardlink-share the deleted
node's files (shared inodes stay alive — same reason gc is safe).
- Surfaces as 'agentenv delete <node>', the daemon 'delete' op (ctl + bare
command auto-routes), and the agentenv__delete MCP tool so Claude Code can
prune dead-end explorations itself.
Verified: deleting a middle node re-parents children; checkout of a survivor
still reads its content (hardlinks intact); the deleted snapshot dir is gone;
deleting HEAD is refused.
Description: "Delete a node from the history (accepts node id, ID prefix, or tag). Its children re-parent to its parent, so descendants survive. Refuses to delete the current HEAD (check out another node first) or the only node. Use to prune dead-end explorations.",
0 commit comments