consciousness/poc-agent/src
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
..
api api: use debug formatting for reqwest errors to show full cause chain 2026-03-21 12:19:40 -04:00
tools refactor: clean up tool dispatch and extract helpers 2026-03-21 15:18:53 -04:00
agent.rs cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00
cli.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
config.rs cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00
dmn.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
journal.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
lib.rs Add lib target to poc-agent, make poc-memory depend on it 2026-03-18 22:56:48 -04:00
log.rs cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00
main.rs tui: fix scroll by using Paragraph::line_count() 2026-03-20 12:16:35 -04:00
observe.rs Move poc-agent into workspace, improve agent prompts 2026-03-18 22:45:01 -04:00
tui.rs tui: fix scroll by using Paragraph::line_count() 2026-03-20 12:16:35 -04:00
types.rs cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00
ui_channel.rs cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00