Emacs build with nix
Find a file
charles@rumandcode.io c37f29584e feat: put agent-shell's session controls on the SPC a leader
agent-shell binds mode, model, thought level and the rest to C-c sequences in
agent-shell-mode-map. The same commands answer to SPC a here: m picks a session
mode from what the agent advertises over ACP and M rotates through them, v sets
the model, T the thought level, O anything else the agent exposes, x interrupts,
and F folds the whole buffer.

They have to be bound globally rather than in agent-shell-mode-map, because the
SPC block lives in evil's override keymap: key lookup stops at the first map
holding the SPC a prefix, so a per-mode entry under that prefix is never
reached. The commands guard themselves with derived-mode-p, so pressing them
outside a shell says so rather than doing something surprising.

Folding a single fragment is za and the whole buffer zA, in normal state, which
leaves TAB to agent-shell-next-item as upstream intends. The fold keymap itself
is a text property covering only the indicator and its label, so RET over a fold
otherwise falls through to shell-maker and submits.

Resuming keeps agent-shell-session-strategy at prompt, which lists earlier
sessions when a shell starts, and raises the restore verbosity to full so a
resumed shell replays the conversation instead of showing only its title.
2026-09-23 11:12:10 -04:00
.envrc feat: literate config with evil leader, tree-sitter, LSP and direnv 2026-09-16 14:44:52 -04:00
.gitignore feat: literate config with evil leader, tree-sitter, LSP and direnv 2026-09-16 14:44:52 -04:00
config.org feat: put agent-shell's session controls on the SPC a leader 2026-09-23 11:12:10 -04:00
flake.lock feat: add Terraform support 2026-09-17 11:57:15 -04:00
flake.nix agent shell 2026-09-21 15:39:59 -04:00