consciousness/poc-agent/src/tools
Kent Overstreet 45b7bba22a refactor: clean up tool dispatch and extract helpers
- Move working_stack tool to tools/working_stack.rs (was orphaned in agent.rs)
- Create control.rs for pause/switch_model/yield_to_user with Result<ToolOutput>
- Add ToolOutput::error() and ToolOutput::text() helper constructors
- Clean up dispatch() with Option<Result<ToolOutput>> pattern for rich tools
- Refactor memory.rs: extract cmd(), write_node(), supersede(), get_str(), get_f64()
- Merge run_rg() and run_grep() into unified run_search() in grep.rs
- Extract truncate_output() helper shared by bash, grep, glob tools

Net: -77 lines, better structure, less duplication
2026-03-21 15:18:53 -04:00
..
bash.rs refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
control.rs refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
edit.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
glob_tool.rs refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
grep.rs refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
journal.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
memory.rs refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
mod.rs refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
read.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
vision.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
working_stack.rs refactor: move working_stack tool to tools/working_stack.rs 2026-03-20 13:15:01 -04:00
write.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00