Skip to main content
Prefix any command with ! to run it immediately and share the output with Ona Agent. The output becomes part of the conversation context, so the agent can reference it in responses.
!git status
!npm test
!cat src/config.js
Terminal showing bash commands executed with the ! prefix, displaying command output inline in the conversation

When to use ! commands

Use ! when you want to share specific output with the agent:
  • Share errors for debugging: !npm test then ask “why is this failing?”
  • Provide context: !cat package.json before asking about dependencies
  • Verify state: !git branch before asking about branching strategy
For complex multi-step operations, code changes, or analysis - ask the agent directly and let it run commands as needed.

Execution details

  • Commands run in your environment’s working directory
  • Both stdout and stderr are captured
  • Commands have access to your environment variables
  • Press ESC to cancel long-running commands