Skip to main content

Interactive Mode

Interactive mode is the default when you run svantic with no subcommand. It starts a conversational REPL that connects to the Svantic mesh, registers as an A2A agent, and streams responses with full tool-call visibility.

Starting a Session

Run the CLI with credentials configured:
The terminal authenticates with the mesh, registers itself as an agent, initializes a session via the gateway, and presents a prompt. Override defaults at startup:

Connecting to the Mesh

The terminal authenticates automatically using SVANTIC_CLIENT_ID and SVANTIC_CLIENT_SECRET. These exchange for a JWT via the mesh auth endpoint. Using CLI flags instead of environment variables:
If credentials are missing, the terminal prints an error and exits. See Environment and Config for all auth options.

Sending Messages

Type at the prompt and press Enter. The terminal builds an A2A message, streams it to the backend, and renders the response as it arrives. Markdown is rendered inline. Multi-turn conversations are automatic — the session maintains full context across messages.

Tool Calls

When an agent invokes a tool, the terminal displays it in real time:
Hidden internal tools are suppressed by default. Use --verbose or /verbose to see all tool call and result JSON.

Approvals

Some tools require user approval before execution. When requested, the terminal prompts with options:
  • Approve — allow this single invocation
  • Approve for session — allow all future calls to this tool in this session
  • Approve permanently — allow across all sessions
  • Deny — reject the invocation
Review active approvals with /approvals.

Session Management

Resume a session

Or during a session:

Reset a session

This creates a new session and clears conversation history.

Slash Commands

Type @ to open a file picker and attach a file to your next message.

Verbose Mode

Enable verbose mode to see full JSON for tool calls, results, and thinking:
Or toggle during a session:
Output on stderr:

Terminal Agent Capabilities

The terminal registers as a first-class agent on the mesh. Other agents can invoke:
  • terminal_prompt_user — display a question and wait for text response
  • terminal_request_approval — ask user to approve or deny an action
  • terminal_display_message — show an informational message
  • forge_propose_tools — propose tools from a description
  • forge_generate_tools — generate tool specs via AI

File Attachments

Attach files with /attach or the @ shortcut:
Upload standalone artifacts:

MCP Servers

Connect to Model Context Protocol servers:

Example Session