1.8 KiB
1.8 KiB
Cleanup Checklist
Phase 1: Delete ✅
agent/hooks.go— deleted (237 lines)agent/agent_config.go— removed HookCmds + Hooks fieldagent/runtime.go— removed Hooks fieldagent/build_runtime.go— removed hooks constructionagent/turn.go— removed 8 hook call sites + defaultTurnErroragent/loop.go— removed PreTool/PostTool/TurnError + classifyErroragent/agent.go+new.go— removed turnError field + assignmentbackend/noop.go— deletedbackend/oneshot.go:Route()— removed Route/RouteRequest/RouteResultcmd/ollie-9p/mount/— deleted entire directoryfs/spec.go+fs/handlers.go— removed /route file + handlerdata/tools/route.meta— deletedjustfile— removed route install linecmd/ollie-9p/main.go— removed mount referencesagent/commands.go:CompactionSnapshot()— removedagent/history.go:PreCompactionSnapshot()— removedtoolsrv/discover.go:ToolPrompt()+ReadTool()— removedtoolsrv/schema.go:ParseToolInfo()— deleted entire file
Phase 2: Strip down
detach/process.go— strip to ring buffer + pidenv/env.go— fix 27:1 scope mismatch, removeAll(), fixFormat()agent/compaction.go— replace hardcoded map with YAML config file
Phase 3: Optimize
agent/complete.go— extract into tool script, useGenerate()lib9p/+cmd/ollie-9p— ollie-9p imports and uses lib9p
Phase 4: Quick fixes
fs/spec.go— moveGID("agent")to root node- Namespace width — audit 23 agent-level files
Phase 5: Config/sidecar cleanup
- Remove
freeloaderrefs from agent JSONhooks.turnError - Remove beads shell one-liner from
default.json - Remove
hooksblocks from all 8 agent JSON files