consciousness/src/agent/tools
Kent Overstreet 2a84fb325d channels: find_daemon path walking, consistent pane_id, auto-start
find_daemon() replaces daemon_sock() — walks the dot-delimited channel
path from most-specific to least looking for a daemon socket, and
auto-starts via the supervisor if none is found. All channel tools
(recv, send, open, close) use the same resolution path.

Fix tmux daemon to use pane_id consistently for both pipe-pane and
send-keys (send-keys -t <label> doesn't work, needs the %N pane id).
Store label→pane_id mapping in State instead of bare label vec.

Gracefully handle missing tmux.json5 — start with empty pane list
since panes are added dynamically via the open RPC.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-04 19:22:49 -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 move working_stack code to correct file 2026-04-04 18:19:21 -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 tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
mod.rs api: extract collect_stream() from agent turn loop 2026-04-04 18:19:21 -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 tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00
working_stack.rs move working_stack code to correct file 2026-04-04 18:19:21 -04:00
write.rs tools: static string definitions, no runtime JSON construction 2026-04-04 18:19:21 -04:00