Adding a Custom Agent
Click Add Agent
At the bottom of the agent list, click Add Agent. You can pick from unused presets or choose Custom to start from scratch.
Resume Support
If your custom agent supports session resume, you can configure it:- Check AI Agent to enable the resume section
- Check Supports session resume
- Enter the Resume command with
{{sessionId}}as a placeholder
my-agent --continue SESSION_ID:
Session ID Capture
For resume to work, Termix needs to know the session ID. There are two ways this can happen:- Telemetry — If your agent supports OpenTelemetry, enable telemetry in the agent settings. Termix will capture the session ID from OTLP log attributes.
-
Output matching — Termix can match a regex pattern against the agent’s terminal output to find the session ID. The built-in presets use patterns like UUID format (
[0-9a-f]{8}-...-[0-9a-f]{12}). You can set a custom pattern in the agent configuration.
Plain Shell Sessions
The built-in Shell option launches a plain terminal (/bin/zsh) with no agent features. This is useful for running quick commands, checking git status, or anything else you’d normally do in a terminal.
Shell sessions don’t have telemetry, resume, or status detection — they’re just regular terminals inside Termix.