39 lines
1.8 KiB
Markdown
39 lines
1.8 KiB
Markdown
# Cleanup Checklist
|
|
|
|
## Phase 1: Delete ✅
|
|
- [x] `agent/hooks.go` — deleted (237 lines)
|
|
- [x] `agent/agent_config.go` — removed HookCmds + Hooks field
|
|
- [x] `agent/runtime.go` — removed Hooks field
|
|
- [x] `agent/build_runtime.go` — removed hooks construction
|
|
- [x] `agent/turn.go` — removed 8 hook call sites + defaultTurnError
|
|
- [x] `agent/loop.go` — removed PreTool/PostTool/TurnError + classifyError
|
|
- [x] `agent/agent.go` + `new.go` — removed turnError field + assignment
|
|
- [x] `backend/noop.go` — deleted
|
|
- [x] `backend/oneshot.go:Route()` — removed Route/RouteRequest/RouteResult
|
|
- [x] `cmd/ollie-9p/mount/` — deleted entire directory
|
|
- [x] `fs/spec.go` + `fs/handlers.go` — removed /route file + handler
|
|
- [x] `data/tools/route.meta` — deleted
|
|
- [x] `justfile` — removed route install line
|
|
- [x] `cmd/ollie-9p/main.go` — removed mount references
|
|
- [x] `agent/commands.go:CompactionSnapshot()` — removed
|
|
- [x] `agent/history.go:PreCompactionSnapshot()` — removed
|
|
- [x] `toolsrv/discover.go:ToolPrompt()` + `ReadTool()` — removed
|
|
- [x] `toolsrv/schema.go:ParseToolInfo()` — deleted entire file
|
|
|
|
## Phase 2: Strip down
|
|
- [ ] `detach/process.go` — strip to ring buffer + pid
|
|
- [ ] `env/env.go` — fix 27:1 scope mismatch, remove `All()`, fix `Format()`
|
|
- [ ] `agent/compaction.go` — replace hardcoded map with YAML config file
|
|
|
|
## Phase 3: Optimize
|
|
- [ ] `agent/complete.go` — extract into tool script, use `Generate()`
|
|
- [ ] `lib9p/` + `cmd/ollie-9p` — ollie-9p imports and uses lib9p
|
|
|
|
## Phase 4: Quick fixes
|
|
- [ ] `fs/spec.go` — move `GID("agent")` to root node
|
|
- [ ] Namespace width — audit 23 agent-level files
|
|
|
|
## Phase 5: Config/sidecar cleanup
|
|
- [ ] Remove `freeloader` refs from agent JSON `hooks.turnError`
|
|
- [ ] Remove beads shell one-liner from `default.json`
|
|
- [ ] Remove `hooks` blocks from all 8 agent JSON files |