一键导入
axec-input
Send input to a running axec session. Use when you need to execute code in a REPL, send commands to a shell, or interact with any running session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Send input to a running axec session. Use when you need to execute code in a REPL, send commands to a shell, or interact with any running session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Remove exited REPL sessions and their on-disk state. Use after killing REPL sessions or when finished with completed REPL jobs.
Send a script to a REPL session with completion-aware execution. Use when you need to execute code in a Python, Node, Bash, or Zsh REPL and reliably capture the full output without guessing timeouts.
Force-kill a running REPL session or all sessions. Use when you need to stop REPL processes managed by axrepl.
List known REPL sessions with their driver info. Use when you need to see which REPL sessions exist and their status.
Start a REPL session with driver-aware completion tracking. Use when you need to launch a Python, Node, Bash, or Zsh REPL that supports completion-aware input via axrepl input.
Interactively attach to a running axec session for direct terminal access. Use when you need full interactive control of a session (like tmux attach).
| name | axec-input |
| description | Send input to a running axec session. Use when you need to execute code in a REPL, send commands to a shell, or interact with any running session. |
| tools | Bash |
Send text input to a running session's stdin, optionally streaming output back with a timeout or stopword.
axec input [OPTIONS] <TEXT>
axec input [OPTIONS] - <<'EOF'
multi-line input here
EOF
| Option | Description |
|---|---|
--session UUID|NAME | Target session (defaults to latest if omitted) |
--timeout SECONDS | Stream output for N seconds after sending input |
--stopword REGEX | Stream output until regex matches |
--terminate | Kill the session after timeout/stopword triggers |
--json | Emit structured JSON response |
axec input --session py --timeout 3 "print(40 + 2)"
axec input --timeout 3 "print('hello')"
axec input --session py - <<'EOF'
x = 40
y = 2
print(x + y)
EOF
printf 'line1\nline2\n' | axec input --session shell -
axec input --session py --stopword 'ready|done' "run_job()"
axec input --session py --timeout 5 --terminate "long_task()"
--timeout or --stopword to capture the response — otherwise the command returns immediately with no output.--timeout when you know roughly how long the command takes.--stopword with a regex matching your expected output pattern (e.g., a prompt like >>> or a result pattern).-) for multi-line code blocks — remember the trailing newline is important for REPLs.--json for machine-parseable output when building automation.--session is omitted, the latest started session is used automatically.