Non-interactive mode: aish -p "<prompt>" and stdin pipe
#4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Inspired by Claude Code's
claude -pand pipe support (tail app.log | claude -p "any anomalies?").What: Add
-p/--prompt <text>flag for one-shot mode (no REPL); print broker reply and exit. Detect non-tty stdin and feed it as additional context (typically prepended to the user prompt as a fenced block).Why: Composability. Lets aish be one stage in a Unix pipeline rather than only an interactive shell. Big ergonomics for ad-hoc analysis ("explain this stack trace"), CI use, and scripting.
Where it lands: Phase 1. Touches
main.lua(arg parsing, mode branch). Norepl.luainvolvement in-pmode.Source: https://code.claude.com/docs/en/overview (CLI / Unix philosophy section)