As a user, I want slash commands available at any prompt, so that I can use /shell or other commands when the agent asks me a question.
SYNOPSIS
Enable slash command processing at every Terminal#ask call, not just the main REPL.
DESCRIPTION
Currently, slash commands like /shell only work at the main agent prompt.
When the agent asks a question (e.g., via the interview tool), the user
cannot access these commands.
Example scenario:
- Agent asks: “Should I commit this to git?”
- User types
/shell - User drops into shell, runs
git commit -m "fix bug", exits - Shell history/output is captured and returned as the answer
- Agent knows the user committed the changes
Behavior:
- All
Terminal#askcalls should process slash commands /shellcaptures command history and output from the subshell- Result is returned as the “answer” to the prompt
- Other commands (
/help,/context, etc.) work contextually
SEE ALSO
- lib/elelem/terminal.rb -
askmethod - lib/elelem/commands.rb - Slash command registry
- lib/elelem/agent.rb - REPL command processing
Tasks
- TBD (filled in design mode)
Acceptance Criteria
- Slash commands recognized at any
Terminal#askprompt -
/shelldrops user into interactive shell - Shell session output/history captured on exit
- Captured output returned as the prompt answer
-
/helpshows available commands at any prompt - Tab completion works for slash commands at any prompt
- Regular text input still works normally