Configure and use specialized agents for task-specific workflows and improved context management.Agents are specialized AI assistants that can be configured for specific tasks and workflows. They allow you to create focused tools with custom prompts, models, and tool access.
Use agents to create specialized workflows without making any code changes during analysis and planning phases.
@
mention.
Types
There are two types of agents in Gammacode; primary agents and subagents.Primary agents
Primary agents are the main assistants you interact with directly. You can cycle through them using the Tab key. These agents handle your main conversation and can access all configured tools.You can use the Tab key to switch between primary agents during a session.
Subagents
Subagents are specialized assistants that primary agents can invoke for specific tasks. You can also manually invoke them by @ mentioning them in your messages.Built-in agents
Gammacode comes with several built-in agents optimized for different workflows.Build
Mode:primary
Build is the default primary agent with all tools enabled. This is the standard agent for development work where you need full access to file operations and system commands.
Plan
Mode:primary
A restricted agent designed for planning and analysis. By default, all of the following are set to ask
:
file edits
: All writes, patches, and editsbash
: All bash commands
General
Mode:subagent
A general-purpose agent for researching complex questions, searching for code, and executing multi-step tasks. Use when searching for keywords or files and you’re not confident you’ll find the right match in the first few tries.
Usage
- For primary agents, use the Tab key to cycle through them during a session.
-
Subagents can be invoked:
- Automatically by primary agents for specialized tasks based on their descriptions
- Manually by @ mentioning a subagent in your message. For example:
- Navigation between sessions: When subagents create their own child sessions, you can navigate between the parent session and all child sessions using keyboard shortcuts.
Create agents
You can create new agents using the following command:- Ask where to save the agent; global or project-specific
- Description of what the agent should do
- Generate an appropriate system prompt and identifier
- Let you select which tools the agent can access
- Finally, create a markdown file with the agent configuration
Configure
You can customize the built-in agents or create your own through configuration. Agents can be configured using markdown files.Markdown configuration
Define agents using markdown files. Place them in:- Global:
~/.gammacode/agents/
- Per-project:
.gammacode/agent/
security-analyzer.md
creates a security-analyzer
agent.
The entire file content, including the detailed description with examples and the comprehensive system prompt, is automatically generated by Gammacode based on the description you provide during the
gammacode agent create
process.Configuration options
Description
Use thedescription
option to provide a detailed description of what the agent does and when to use it. Include specific examples with context, user input, assistant response, and commentary.
This is a required configuration option and supports YAML multi-line format with >-
.
Mode
Control the agent’s mode. Themode
option determines how the agent can be used:
primary
: Main agents you interact with directlysubagent
: Specialized agents invoked for specific tasksall
: Can be used as both primary and subagent (default)
Temperature
Control the randomness and creativity of responses. Lower values make responses more focused and deterministic, while higher values increase creativity. Temperature values typically range from 0.0 to 1.0:- 0.0-0.2: Very focused and deterministic responses, ideal for code analysis
- 0.3-0.5: Balanced responses, good for general development tasks
- 0.6-1.0: More creative responses, useful for brainstorming
Model
Override the default model for this agent. Useful for using different models optimized for different tasks.Tools and Permissions
Control which tools are available and their permission levels:allow
: Allow all operations without approvalask
: Prompt for approval before running the tooldeny
: Disable the tool
Use cases
Here are some common use cases for different agents:- Build agent: Full development work with all tools enabled
- Plan agent: Analysis and planning without making changes
- Review agent: Code review with read-only access
- Debug agent: Focused on investigation with bash and read tools enabled
- Security agent: Security analysis and vulnerability detection
- Docs agent: Documentation writing with file operations but no system commands
Examples
Code reviewer
Documentation agent
Security auditor
Best practices
- Provide clear descriptions: Since agent behavior is determined by the description, be specific about what the agent should do and when it should be used.
- Design focused agents: Create agents with single, clear responsibilities rather than trying to make one agent do everything.
- Use appropriate temperature: Lower temperatures (0.0-0.2) for analytical tasks, higher temperatures (0.6-1.0) for creative tasks.
- Limit tool access: Only grant tools that are necessary for the agent’s purpose to improve security and focus.
- Include examples: Use the example format with context, user input, assistant response, and commentary to help Gammacode understand when to use the agent.
- Version control: Check project agents into version control so your team can benefit from and improve them collaboratively.
Advanced usage
Chaining agents
For complex workflows, you can chain multiple agents:Dynamic agent selection
Gammacode intelligently selects agents based on context. Make yourdescription
fields specific and action-oriented for best results.
Agent collaboration
Agents can work together automatically based on their descriptions and the current context, creating powerful collaborative workflows.Performance considerations
- Context efficiency: Agents help preserve main context, enabling longer overall sessions
- Latency: Agents start with a clean slate each time and may add latency as they gather required context
- Tool access: Limiting tool access can improve both performance and security