Skip to main content

Configuration

Agent Terminal is configured via environment variables. No config file is required for the default setup.

Core variables

VariablePurposeDefault
BRAIN_BASE_URLAgent Brain base URLunset (disabled)
HARNESS_BASE_URLAgent Harness base URLunset (disabled)
TERMINAL_DB_PATHSQLite history database path~/.agent-terminal/history.db
HARNESS_TOKENBearer token for Harness authunset

Pre-send guard

The guard is implemented in src/preSendGuard.ts and evaluated through POST /api/guard/evaluate. It asks Brain for reusable candidates and rewrite suggestions, then returns one of reuse_answer, rewrite_prompt, send_original, or surface_chooser. It does not silently block a provider request, and it fails open when Brain is unavailable.

Wispr integration

To enable voice transcript ingestion from Agent Wispr:

  1. Enable the Terminal integration toggle in Agent Wispr Settings
  2. The Wispr app can POST transcripts to POST /api/wispr/ingest on the terminal backend
  3. Transcripts appear in the Transcripts tab for review before sending

◆Guard is immutable at runtime

The pre-send guard cannot be disabled or bypassed at runtime. Modify src/preSendGuard.ts in source and rebuild to change guard behavior.