consciousness/src/agent/tools
Kent Overstreet 1776222b07 Fix tool permissions: remove global fallback in dispatch_with_agent
When an agent context is present, only dispatch tools in the agent's
tool list. The global fallback was bypassing per-agent tool
restrictions — a subconscious agent could call bash, edit, or any
tool even if its .agent file only allowed memory tools.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-08 19:19:05 -04:00
..
bash.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
channels.rs channels: find_daemon path walking, consistent pane_id, auto-start 2026-04-04 19:22:49 -04:00
control.rs WIP: Agent/AgentState — 36 errors remaining, all .lock() → .state.lock() or .context.lock() 2026-04-08 15:40:36 -04:00
edit.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
glob.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
grep.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
memory.rs WIP: Agent/AgentState — 36 errors remaining, all .lock() → .state.lock() or .context.lock() 2026-04-08 15:40:36 -04:00
mod.rs Fix tool permissions: remove global fallback in dispatch_with_agent 2026-04-08 19:19:05 -04:00
read.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
vision.rs tools: control tools set agent state directly, simplify ToolOutput 2026-04-04 18:19:21 -04:00
web.rs Kill reqwest — minimal HTTP client on raw hyper + tokio-rustls 2026-04-07 12:50:40 -04:00
write.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00