What is a Default Agent?
When you make a request to Blocks, you can either:-
Use the default agent (implicit):
-
Specify a particular agent (explicit):
Setting Your Default Agent
Open Blocks Dashboard
Navigate to Blocks Dashboard and sign in
Prerequisites: Configure Agents First
Before you can set a default agent, you must configure at least one agent with an API key:Configure Claude Code
Configure Claude Code
- Get an Anthropic API key
- Go to Dashboard → Agents → Claude Code
- Enter your API key or subscription
Configure Codex
Configure Codex
- Get an OpenAI API key
- Go to Dashboard → Agents → Codex
- Enter your API key or subscription
Configure OpenCode
Configure OpenCode
- Get an Anthropic API key or OpenAI API key
- Go to Dashboard → Agents → OpenCode
- Enter your API key for your chosen provider
Experimental agents: Gemini CLI, Cursor CLI, and Sisyphus cannot be set as default agents. These agents must be invoked explicitly using slash commands (
/gemini, /cursor, /sisyphus).Best Practices
Configure Multiple Agents
Even if you have a default, configure multiple agents:- Gives you flexibility for different tasks
- Lets you fall back if one agent has issues
- Allows experimentation with different approaches
Review and Adjust
Periodically review your default agent choice:- Has your workflow changed?
- Are you frequently overriding the default?
- Would a different agent serve you better?
Team Consistency
For team workspaces, consider:- Discussing a team default
- Documenting when to use which agent
- Sharing best practices for agent selection
Use Slash Commands Liberally
Don’t hesitate to override your default:- Use the best agent for each specific task
- The default is for convenience, not a constraint
- Experiment with different agents
Common Questions
Can I have different defaults for GitHub vs Slack?
Can I have different defaults for GitHub vs Slack?
No, the default agent is set per workspace, not per platform. However, you can always use slash commands to specify which agent to use on any platform.
What happens if my default agent's API key or subscription expires?
What happens if my default agent's API key or subscription expires?
Blocks will return an error. You’ll need to either:
- Update the API key or subscription for that agent
- Change your default to a different configured agent
- Use slash commands to specify a working agent
Do I need to configure all agents?
Do I need to configure all agents?
No, you only need to configure at least one agent. However, configuring multiple agents gives you more flexibility and options. Note that some agents (Gemini CLI, Cursor CLI, Sisyphus) cannot be set as default.
Can I set Gemini CLI, Cursor CLI, or Sisyphus as my default?
Can I set Gemini CLI, Cursor CLI, or Sisyphus as my default?
No, these agents cannot be set as default. You must use slash commands (
/gemini, /cursor, /sisyphus) to invoke them explicitly. OpenCode is experimental but can be set as default.
