consciousness/poc-agent
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
..
.claude Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
paper Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
src refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
tests Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
.gitignore Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
Cargo.lock Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
Cargo.toml tui: fix scroll by using Paragraph::line_count() 2026-03-20 12:16:35 -04:00
POC.md Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
scratch.md Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00