Skip to main content

Module agent_handlers

Module agent_handlers 

Source

Re-exports§

pub use input::register_agent_input_handlers;
pub use side_question::register as register_side_question_handlers;
pub use input::run_agent_turn;
pub use input::AgentTurnDeps;
pub use input::TurnRegistration;

Modules§

account_label 🔒
The account line of an agent in a list: the My Agents tile and the “Continue an existing agent” menu (SPEC_MY_AGENTS_TILES_AUTH_AND_HISTORY_2026_10_03.md §5.2).
bash_prefix 🔒
The Claude agent’s shell prefix: agentmux-bashwrap as the CLI’s CLAUDE_CODE_SHELL_PREFIX, which streams Bash output without the hook rewriting the call (docs/specs/SPEC_BASH_STREAMING_VIA_SHELL_PREFIX_2026_10_10.md).
bundle 🔒
container_turn 🔒
Getting a container agent’s container ready for a turn: the container is running, and the provider CLI is installed in it.
core 🔒
history 🔒
identity 🔒
identity_env 🔒
The agent’s identity variables in its spawn environment, beyond what input.rs’s split_agent_identity_env and carry_agent_uid_env set.
input 🔒
instance 🔒
session 🔒
side_question 🔒
Backend half of the /btw slash command — a faithful recreation of Claude Code CLI’s own native /btw: a fast, one-shot, tool-less answer that is aware of the current conversation (via a text prefix, not --resume), WITHOUT touching the asking pane’s persisted transcript and WITHOUT blocking/queuing behind that pane’s own live turn.
skills 🔒
template 🔒

Functions§

purge_identity_store_rows 🔒
Purge a deleted agent’s rows from the IDENTITY store — the second physical database, reachable only from this layer.
read_session_preview 🔒
Read the per-block output.state.json snapshot from filestore and extract a (preview, node_count) pair for the AgentPicker’s “Recent sessions” list.
register_agent_handlers