CLI Commands
Triggerfish provides a CLI for managing your agent, daemon, channels, and sessions. This page covers every available command and in-chat shortcut.
Core Commands
triggerfish dive
Run the interactive setup wizard. This is the first command you run after installation and can be re-run at any time to reconfigure.
bash
triggerfish diveThe wizard walks through 8 steps: LLM provider, agent name/personality, channel setup, optional plugins, Google Workspace connection, GitHub connection, search provider, and daemon installation. See Quick Start for a full walkthrough.
triggerfish chat
Start an interactive chat session in your terminal. This is the default command when you run triggerfish with no arguments.
bash
triggerfish chatThe chat interface features:
- Full-width input bar at the bottom of the terminal
- Streaming responses with real-time token display
- Compact tool call display (toggle with Ctrl+O)
- Input history (persisted across sessions)
- ESC to interrupt a running response
- Conversation compaction to manage long sessions
From authenticated owner chat, use /goal register <JSON> to register a goal for the current chat session. The JSON fields are goal, policy (automatic or operator), and criteria. Each criterion contains an id, description, tool name, and resultSha256 for the exact expected tool response. The agent reports a criterion with goal_report. Triggerfish checks the evidence against the saved tool response from the same session. /goal status shows open criteria, satisfied criteria, and saved citations. Once an operator-policy goal is awaiting confirmation, use the returned confirmation fields with /goal confirm <requestId> <decisionSha256>. Triggerfish rechecks the exact cited evidence before recording that decision. The initial legacy registration also accepts bare /goal confirm.
A registered goal and its evidence survive gateway restart. Register a successor to a completed goal with a new UUID requestId. To revise an incomplete goal, use /goal revise <JSON> with a new requestId and the current expectedRequestId. Use /goal history to find earlier registrations and /goal status <requestId> to read the exact saved decision.
Scheduled and delegated goals are configured in triggerfish.yaml under scheduler.goal_completion and delegated_goal_completion. Each entry has a unique scope, a goal, a policy, and a list of criteria. Criteria use id, description, tool, and result_sha256. Scheduled criteria also name the kind (cron, trigger, or webhook) and source_id (the job ID, trigger, or the configured webhook source). Delegated criteria choose subagent or team as the kind. Use a new scope when changing a registered goal or a criterion.
Use /goal scheduler list or /goal delegated list to find configured scopes visible at your current classification. Pass the returned nextAfterScope as the next list argument when there is another page. Use /goal scheduler status <scope> or /goal delegated status <scope> in authenticated owner chat to inspect the saved evidence. For an operator-policy goal, pass the returned digest to /goal scheduler confirm <scope> <decisionSha256> or /goal delegated confirm <scope> <decisionSha256>. Confirmation rechecks the exact cited evidence and refuses a changed decision. A completed receipt can be reopened at its original classification after evidence retention. Previously saved evidence without a classification requires a Restricted session for historical readback. Pending ordinary transcript evidence can be reconfirmed from an exact todo_read receipt that retains the source identity, classification, and empty argument set. Older citations and transcript tools without an approved reauthorization adapter appear as inaccessible for pending confirmation. Refresh an older checklist criterion by having the configured source produce a new matching receipt. Ordinary cron goals and recoverable cron, trigger, and webhook goals can use an exact read_committed_observation receipt for a configured Sentinel workflow observation. A recoverable worker cites the original committed batch slot through scheduled_goal_report. The scheduler source, case, run, revision, grant, and repository access must still be current at confirmation. An owner-admitted recoverable subagent or team delivery with an exact workflow observation grant can use the same receipt through delegated_goal_report. Team confirmation also checks the current member, team role, and original delivery admission. Recoverable agents can use the same proof path for an exact graph fact, finding, or remediation recheck granted by Sentinel. Graph-only sources require no GitHub credential. Imported findings and rechecks still require the access and control checks of their original source. Supported typed execution receipts can also serve as exact evidence for the corresponding configured criterion.
The owner chat agent can use managed_goal_state to list visible configured scopes or read one exact scheduled or delegated decision. Confirmations remain explicit operator commands.
An operator-policy scheduled goal can cite a completed run's retained github_actions get_run result after archive and restore. Use /goal scheduler cite <JSON> with scope, criterion, runId, and ordinal. The criterion must match the scheduled source and the SHA-256 of the canonical approved attempt result. Citation and confirmation both check current GitHub access and source policy.
Use /goal delegated cite <JSON> with the same fields for an operator-policy subagent criterion. The restored run must retain the current owner's parent-session binding and the deterministic child-session identity from delegated recovery.
For a team criterion, include teamId in the citation. The completed run must come from an owner-authorized /recover-team delivery whose saved owner, team, member, and delivery ID still match the archived trace. Team delivery traces publish after successful completion. A resumed delivery can include an approved result saved before interruption with its original timestamp, after current tool and source policy authorize reuse.
A trusted team delivery can read one committed Sentinel observation with read_committed_observation. Configure sentinel.team_observation_reads with owner_session_id, team_id, member_session_id, delivery_id, and the exact case, run_id, revision, and observation_id. The delivery needs an INTERNAL or higher ceiling and output destination. The grant applies to that delivery's private checkpoint. Resume checks the current grant, team membership, evidence access, and root tool policy.
Use a worker-graph-fact: ID as the observation_id to grant a committed graph relationship to a team delivery or durable subagent. The read preserves the source assignment, tool step, revision, and result digest. It requires the referenced case revision to be current and the case's operating constraints to permit evidence review of the relationship's asset scope. These grants can run without GitHub credentials.
With agent_recovery.scheduler: true, a graph fact grant can also target a specific cron job, the configured trigger, or a verified webhook source through sentinel.scheduled_observation_reads. When only graph fact grants are configured, recovery is limited to their sources. Other jobs, triggers, and webhooks keep their normal dispatch.
An exact worker-recheck: ID can grant a verified remediation recheck and its original finding when both checks are backed by the same kind of evidence. Supported sources include local graph evidence, retained GitHub execution receipts, and retained Sentinel GitHub workflow checks. The recheck must still match the current case revision, permitted asset, and current control evidence. For GitHub-backed records, each read or resume rechecks current source access and tool policy before returning the original and recheck provenance with their observed outcomes.
Resume an interrupted request
Enable recovery for specific GitHub repositories in triggerfish.yaml. scheduler: true also enables recovery for admitted scheduled runs.
yaml
agent_recovery:
github_repositories: ["example-org/example-repo"]
github_repository_status: true
github_pull_status: true
github_release_status: true
github_branch_protection: true
github_branch_names:
example-org/example-repo: ["main"]
scheduler: true
team: trueIn owner chat, submit /recover <execution-uuid> <request> for an ordinary agent or /recover-subagent <execution-uuid> <request> for a delegated agent. After a disconnect or restart, send the same UUID and exact text to resume that execution. A completed UUID remains terminal.
github_repository_status: true also allows recovery and exact trace retrieval for github_repos get against those repositories. The saved record contains only the repository name, immutable ID, and visibility. Retrieval requires current repository access and authorization for the original tool operation.
With github_pull_status: true, the same recovery and trace retrieval apply to github_pulls get. The saved projection contains the pull request number, state, mergeability, and exact repository identity. Retrieval rechecks the original tool policy and current repository and Pull Requests access.
With github_release_status: true, github_repos list_releases can persist published release IDs, publication times, and prerelease flags. Reopening checks the same repository identity and current Contents access. Drafts, release notes, and asset links are excluded from the saved payload.
With github_branch_protection: true, github_repos list_branches can persist protected and unprotected counts for the exact returned page. The projection binds to the immutable repository identity. Set github_branch_names to retain the exact protection status of explicitly approved names that appear in the page. Other names are omitted. Reopening requires current Contents access and continuing approval of all names in the saved result.
When team recovery is enabled, use /recover-team <delivery-uuid> <team-uuid> <member-session-uuid> <request>. Eligible members are created with an explicit classification ceiling after recovery is enabled. Recovery checks the original sender, current membership, and saved execution context before restoring a delivery.
An accepted signed webhook can return an executionId. An operator can re-supply the exact body to POST /recovery/webhooks/<executionId> on the local gateway with its bearer token. The public webhook URL still applies signature freshness and replay protection. The recovery route checks the original admission and current source credentials. It stores a digest of the body.
The supported replayable operation is GitHub Actions list_runs for an approved repository. Recovery records contain selected run IDs, statuses, and conclusions. Triggerfish rechecks repository access, Actions read permission, and policy before restoring them. Credentials stay in the keychain. A batch interrupted before its result was saved remains pending for reconciliation, so restarting does not repeat a possible external change.
triggerfish run
Start the gateway server in the foreground. Useful for development and debugging.
bash
triggerfish runThe gateway manages WebSocket connections, channel adapters, the policy engine, and session state. In production, use triggerfish start to run as a daemon instead.
triggerfish start
Install and start Triggerfish as a background daemon using your OS service manager.
bash
triggerfish start| Platform | Service Manager |
|---|---|
| macOS | launchd |
| Linux | systemd |
| Windows | Windows Service / Task Scheduler |
The daemon starts automatically on login and keeps your agent running in the background.
triggerfish stop
Stop the running daemon.
bash
triggerfish stoptriggerfish status
Check whether the daemon is currently running and display basic status information.
bash
triggerfish statusExample output:
Triggerfish daemon is running
PID: 12345
Uptime: 3d 2h 15m
Channels: 3 active (CLI, Telegram, Slack)
Sessions: 2 activetriggerfish logs
View the daemon log output.
bash
# Show recent logs
triggerfish logs
# Stream logs in real time
triggerfish logs --tailtriggerfish patrol
Run a health check of your Triggerfish installation.
bash
triggerfish patrolExample output:
Triggerfish Health Check
Gateway running (PID 12345, uptime 3d 2h)
LLM provider connected (Anthropic, Claude Sonnet 4.5)
3 channels active (CLI, Telegram, Slack)
Policy engine loaded (12 rules, 3 custom)
5 skills installed (2 bundled, 1 managed, 2 workspace)
Secrets stored securely (macOS Keychain)
2 cron jobs scheduled
Webhook endpoints configured (2 active)
Overall: HEALTHYPatrol checks:
- Gateway process status and uptime
- LLM provider connectivity
- Channel adapter health
- Policy engine rule loading
- Installed skills
- Secrets storage
- Cron job scheduling
- Webhook endpoint configuration
- Exposed port detection
triggerfish config
Manage your configuration file. Uses dotted paths into triggerfish.yaml.
bash
# Set any config value
triggerfish config set <key> <value>
# Read any config value
triggerfish config get <key>
# Validate config syntax and structure
triggerfish config validate
# Add a channel interactively
triggerfish config add-channel [type]Examples:
bash
triggerfish config set models.primary.provider anthropic
triggerfish config set models.primary.model claude-sonnet-4-5
triggerfish config set web.search.provider brave
triggerfish config set web.search.api_key sk-abc123
triggerfish config set scheduler.trigger.enabled true
triggerfish config get models.primary.model
triggerfish config add-channel telegramtriggerfish config migrate-secrets
Migrate plaintext credentials from triggerfish.yaml to the OS keychain.
bash
triggerfish config migrate-secretsThis scans your configuration for plaintext API keys, tokens, and passwords, stores them in the OS keychain, and replaces the plaintext values with secret: references. A backup of the original file is created before any changes.
See Secrets Management for details.
triggerfish connect
Connect an external service to Triggerfish.
bash
triggerfish connect google # Google Workspace (OAuth2 flow)
triggerfish connect github # GitHub (Personal Access Token)Google Workspace -- Starts the OAuth2 flow. Prompts for your Google Cloud OAuth Client ID and Client Secret, opens a browser for authorization, and stores tokens securely in the OS keychain. See Google Workspace for full setup instructions including how to create credentials.
GitHub -- Walks you through creating a fine-grained Personal Access Token, validates it against the GitHub API, and stores it in the OS keychain. See GitHub for details.
triggerfish disconnect
Remove authentication for an external service.
bash
triggerfish disconnect google # Remove Google tokens
triggerfish disconnect github # Remove GitHub tokenRemoves all stored tokens from the keychain. You can reconnect at any time.
triggerfish healthcheck
Run a quick connectivity check against the configured LLM provider. Returns success if the provider responds, or an error with details.
bash
triggerfish healthchecktriggerfish release-notes
Display release notes for the current or a specified version.
bash
triggerfish release-notes
triggerfish release-notes v0.5.0triggerfish update
Check for available updates and install them.
bash
triggerfish updatetriggerfish version
Display the current Triggerfish version.
bash
triggerfish versionSkill Commands
Manage skills from The Reef marketplace and your local workspace.
bash
triggerfish skill search "calendar" # Search The Reef for skills
triggerfish skill install google-cal # Install a skill
triggerfish skill list # List installed skills
triggerfish skill update --all # Update all installed skills
triggerfish skill publish # Publish a skill to The Reef
triggerfish skill create # Scaffold a new skillPlugin Commands
Manage plugins from The Reef marketplace and your local filesystem. Plugins can also be managed by the agent at runtime using the built-in plugin_install, plugin_reload, plugin_scan, and plugin_list tools.
bash
triggerfish plugin search "weather" # Search The Reef for plugins
triggerfish plugin install weather # Install a plugin from The Reef
triggerfish plugin update # Check installed plugins for updates
triggerfish plugin publish ./my-plugin # Prepare a plugin for Reef publishing
triggerfish plugin scan ./my-plugin # Run security scanner on a plugin
triggerfish plugin list # List locally installed pluginsSession Commands
Inspect and manage active sessions.
bash
triggerfish session list # List active sessions
triggerfish session history # View session transcript
triggerfish session spawn # Create a background sessionBuoy Commands 🚧 Coming Soon
Manage companion device connections. Buoy is not yet available.
bash
triggerfish buoys list # List connected buoys
triggerfish buoys pair # Pair a new buoy deviceIn-Chat Commands
These commands are available during an interactive chat session (via triggerfish chat or any connected channel). They are owner-only.
| Command | Description |
|---|---|
/help | Show available in-chat commands |
/status | Display session status: model, token count, cost, taint level |
/reset | Reset session taint and conversation history |
/compact | Compress conversation history using LLM summarization |
/model <name> | Switch the LLM model for the current session |
/skill install <name> | Install a skill from The Reef |
/cron list | List scheduled cron jobs |
Set owner_context_compaction: true in the gateway configuration to let the owner chat agent request compaction during a turn. The checkpoint summarizes prior conversation and keeps the active request and completed tool exchanges available to the current turn. Saved source messages are retained under the existing history policy.
Keyboard Shortcuts
These shortcuts work in the CLI chat interface:
| Shortcut | Action |
|---|---|
| ESC | Interrupt the current LLM response |
| Ctrl+V | Paste image from clipboard (see Image and Vision) |
| Ctrl+O | Toggle compact/expanded tool call display |
| Ctrl+C | Exit the chat session |
| Up/Down | Navigate input history |
The ESC interrupt sends an abort signal through the entire chain -- from
the orchestrator through to the LLM provider. The response stops cleanly and you can continue the conversation. :::
Debug Output
Triggerfish includes detailed debug logging for diagnosing LLM provider issues, tool call parsing, and agent loop behavior. Enable it by setting the TRIGGERFISH_DEBUG environment variable to 1.
The preferred way to control log verbosity is through
triggerfish.yaml:
yaml
logging:
level: verbose # quiet, normal, verbose, or debugThe TRIGGERFISH_DEBUG=1 environment variable is still supported for backward compatibility. See Structured Logging for full details. :::
Foreground Mode
bash
TRIGGERFISH_DEBUG=1 triggerfish runOr for a chat session:
bash
TRIGGERFISH_DEBUG=1 triggerfish chatDaemon Mode (systemd)
Add the environment variable to your systemd service unit:
bash
systemctl --user edit triggerfish.serviceAdd under [Service]:
ini
[Service]
Environment=TRIGGERFISH_DEBUG=1Then restart:
bash
systemctl --user daemon-reload
triggerfish stop && triggerfish startView debug output with:
bash
journalctl --user -u triggerfish.service -fWhat Gets Logged
When debug mode is enabled, the following is written to stderr:
| Component | Log Prefix | Details |
|---|---|---|
| Orchestrator | [orch] | Each iteration: system prompt length, history entry count, message roles/sizes, parsed tool call count, final response text |
| OpenRouter | [openrouter] | Full request payload (model, message count, tool count), raw response body, content length, finish reason, token usage |
| Other providers | [provider] | Request/response summaries (varies by provider) |
Example debug output:
[orch] iter1 sysPrompt=4521chars history=3 entries
[orch] [0] system 4521chars
[orch] [1] user 42chars
[orch] [2] assistant 0chars
[orch] iter1 raw: <tool_call>{"name":"web_search","arguments":{"query":"best fish tacos austin"}}...
[orch] iter1 parsedCalls: 1
[openrouter] request: model=openrouter/aurora-alpha messages=5 tools=12
[openrouter] response: content=1284chars finish=stop tokens=342Debug output includes full LLM request and response payloads. Do not
leave it enabled in production as it may log sensitive conversation content to stderr/journal. :::
Quick Reference
bash
# Setup and management
triggerfish dive # Setup wizard
triggerfish start # Start daemon
triggerfish stop # Stop daemon
triggerfish status # Check status
triggerfish logs --tail # Stream logs
triggerfish patrol # Health check
triggerfish config set <k> <v> # Set config value
triggerfish config get <key> # Read config value
triggerfish config add-channel # Add a channel
triggerfish config migrate-secrets # Migrate secrets to keychain
triggerfish update # Check for updates
triggerfish version # Show version
# Daily use
triggerfish chat # Interactive chat
triggerfish run # Foreground mode
# Skills
triggerfish skill search # Search The Reef
triggerfish skill install # Install skill
triggerfish skill list # List installed
triggerfish skill create # Create new skill
# Plugins
triggerfish plugin search # Search The Reef
triggerfish plugin install # Install plugin
triggerfish plugin update # Check for updates
triggerfish plugin scan # Security scan
triggerfish plugin list # List installed
# Sessions
triggerfish session list # List sessions
triggerfish session history # View transcript