Expand description
Commands that act on the currently running zig/zag session.
The session’s process id is resolved from the ZAG_PROCESS_ID
environment variable injected by zag-agent when the process was
spawned. These commands are designed to be invoked by agents from
inside their own interactive session (e.g. an interactive consult
step calling zig self terminate to hand control back to the
workflow engine).
Constants§
- INTERACTIVE_
SELF_ TERMINATE_ INSTRUCTION - Instruction appended to interactive agents’ system prompts so they
know how to exit the session when they finish. Exposed for tests in
run_tests.rsand used fromrun::build_agent_config.
Functions§
- terminate
- Terminate the current running session (SIGTERM) by delegating to
zag-orch’s process registry. Resolves"self"viaZAG_PROCESS_ID; errors if that env var is not set.