Traycer allows you to create custom CLI agent with custom arguments and permissions for any CLI-based coding agent. This powerful feature enables you to pass special flags and create platform-specific configurations tailored to your workflow.
Temporary file path containing the prompt content. Ideal for large prompts that exceed environment variable size limits.
Use commands like cat "$TRAYCER_PROMPT_TMP_FILE" (Bash) or Get-Content -Raw "$env:TRAYCER_PROMPT_TMP_FILE" (PowerShell) to read and pass the prompt content to the CLI agent at runtime.
The temporary file is automatically cleaned up by Traycer after 30 seconds.
System prompt to append to the CLI agent (environment variable set by Traycer at runtime). Use this with —append-system-prompt or equivalent flag to pass trusted instructions at the system level.
Custom CLI agents can be created in two different scopes:
User scope: Personal CLI agents that are available across all your projects. These are stored in the home directory under .traycer/cli-agents and travel with you.
Workspace scope: Project-specific CLI agents that are stored in your workspace root under .traycer/cli-agents. These are ideal for team-shared configurations or project-specific agent setups.
Can I pass dangerous or elevated permission flags?
Yes, you can pass any flags supported by your CLI agent, including --dangerous, --force, or other elevated permission flags. However, be cautious as these flags grant the agent more control over your system. Always understand what permissions you’re granting before using such flags.
How do I share custom CLI agents with my team?
You can share custom CLI agents with your team by creating them in Workspace scope. Workspace-scoped CLI agents are stored in your project’s workspace root under .traycer/cli-agents, which can be committed to your repository. When team members pull the latest changes, they’ll automatically have access to the shared custom CLI agents. This approach ensures consistent agent configurations across your entire team.
What's the difference between User and Workspace scope?
User scope CLI agents are stored in your personal settings and available across all projects. Workspace scope CLI agents are project-specific and stored in the workspace settings, making them ideal for team collaboration.
Can I edit an existing CLI agent?
Yes, you can modify any custom CLI agent by clicking on it within the Custom CLI Agents section of Traycer settings. This will open the file for editing.
What's the difference between Bash and PowerShell syntax for environment variables?
Bash (Linux/macOS/Git Bash) and PowerShell (Windows) use different syntax to reference environment variables:
Shell
Syntax
Example
Bash / Git Bash
"$VARIABLE_NAME"
claude "$TRAYCER_PROMPT"
PowerShell
"$env:VARIABLE_NAME"
claude "$env:TRAYCER_PROMPT"
Key differences:
Bash uses $ followed by the variable name directly (e.g., $TRAYCER_PROMPT)
PowerShell uses $env: prefix before the variable name (e.g., $env:TRAYCER_PROMPT)
Double quotes are recommended in both shells to handle prompts containing spaces or special characters
Choose the appropriate syntax based on which shell your CLI agent script will run in. Git Bash on Windows uses Bash syntax, not PowerShell syntax.
What happens if I don't include the $TRAYCER_PROMPT or $TRAYCER_PROMPT_TMP_FILE environment variable?
The CLI agent validation will fail because at least one of $TRAYCER_PROMPT or $TRAYCER_PROMPT_TMP_FILE must be referenced in your CLI agent template to pass the task instructions to the agent.
When should I use TRAYCER_PROMPT_TMP_FILE instead of TRAYCER_PROMPT?
TRAYCER_PROMPT is the recommended default for most use cases. Use TRAYCER_PROMPT_TMP_FILE when:
Dealing with very large prompts (multiple files, extensive context)
Both variables are always available. Use TRAYCER_PROMPT_TMP_FILE directly in your commands just like TRAYCER_PROMPT - no need for file reading commands.
How does TRAYCER_PROMPT_TMP_FILE work internally?
Traycer creates a temporary file containing the prompt content and sets TRAYCER_PROMPT_TMP_FILE to the file path. When you reference $TRAYCER_PROMPT_TMP_FILE in your template, you need to read the file content using commands like cat "$TRAYCER_PROMPT_TMP_FILE" (bash/sh) or Get-Content -Raw "$env:TRAYCER_PROMPT_TMP_FILE" (PowerShell). This approach bypasses environment variable size limits that can cause issues with very large prompts. The temporary file is automatically cleaned up by Traycer after 30 seconds.
Can I use custom CLI agents with YOLO Mode?
Yes, custom CLI agents work with YOLO Mode for automated execution.
Can I have multiple versions of the same agent?
Yes, you can create multiple custom CLI agents with different names that use the same underlying CLI tool. For example, you could have “Claude Verbose”, “Claude Dangerous”, and “Claude Standard” - each with different flags but all calling the same claude CLI agent.
What if the CLI tool isn't installed on my system?
Traycer does not install CLI agents for you. You must install the CLI tool separately before creating a custom CLI agent. We recommend testing the CLI command in your terminal first to ensure it works correctly before adding it to an agent.