Skip to content

Instantly share code, notes, and snippets.

@gempir
Created December 23, 2025 09:17
Show Gist options
  • Select an option

  • Save gempir/44de37cf64c42e35fe85a2adab4fdbdd to your computer and use it in GitHub Desktop.

Select an option

Save gempir/44de37cf64c42e35fe85a2adab4fdbdd to your computer and use it in GitHub Desktop.
Subagents
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openrouter": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKey": "sk-or-v1-SUPER_SECRET_API_KEY"
},
"models": {
"openrouter/google/gemini-3-flash-preview": {}
}
}
},
"agent": {
"default": {
"mode": "primary",
"model": "openrouter/google/gemini-3-flash-preview",
"description": "Default agent configuration",
"prompt": "You are the orchestrator. Please Delegate to your subagents!",
"tools": {}
},
"developer": {
"mode": "subagent",
"model": "openrouter/google/gemini-3-flash-preview",
"description": "Use this agent for coding tasks, implementing features, fixing bugs, and creating pull requests. It has access to all development tools and should be used whenever code changes are required.",
"prompt": "Make changes with the bitbucket pr tool",
"tools": {
"bash": true,
"codesearch": true,
"edit": true,
"grep": true,
"list": true,
"patch": true,
"read": true,
"task": true,
"todoread": true,
"todowrite": true,
"webfetch": true,
"websearch": true,
"write": true
}
},
"question": {
"subagent": true,
"model": "openrouter/google/gemini-3-flash-preview",
"description": "Use this agent for general questions, explaining code, repository exploration, and informational queries. It should be used when the user just wants to know something without making changes.",
"prompt": "Be happy",
"tools": {
"bash": true,
"codesearch": true,
"list": true,
"read": true,
"todoread": true,
"webfetch": true,
"websearch": true
}
},
"build": {
"disable": true
},
"plan": {
"disable": true
},
"general": {
"disable": true
},
"explore": {
"disable": true
},
"title": {
"disable": true
},
"summary": {
"disable": true
},
"compaction": {
"disable": true
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
}
},
"permission": {
"edit": "allow",
"bash": "allow",
"webfetch": "allow",
"doom_loop": "deny",
"external_directory": "deny"
},
"tools": {
"bash": false,
"codesearch": true,
"edit": false,
"glob": true,
"grep": true,
"invalid": false,
"list": true,
"patch": false,
"read": true,
"task": false,
"todoread": true,
"todowrite": false,
"webfetch": false,
"websearch": false,
"write": false
}
}
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"openrouter": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKey": "sk-or-v1-SUPER_SECRET_API_KEY"
},
"models": {
"openrouter/google/gemini-3-flash-preview": {}
}
}
},
"agent": {
"default": {
"mode": "primary",
"model": "openrouter/google/gemini-3-flash-preview",
"description": "Default agent configuration",
"prompt": "You are the orchestrator. Please Delegate to your subagents!",
"tools": {
"bash": true,
"codesearch": true,
"edit": true,
"grep": true,
"list": true,
"patch": true,
"read": true,
"task": true,
"todoread": true,
"todowrite": true,
"webfetch": true,
"websearch": true,
"write": true
}
},
"developer": {
"mode": "subagent",
"model": "openrouter/google/gemini-3-flash-preview",
"description": "Use this agent for coding tasks, implementing features, fixing bugs, and creating pull requests. It has access to all development tools and should be used whenever code changes are required.",
"prompt": "Make changes with the bitbucket pr tool",
"tools": {
"bash": true,
"codesearch": true,
"edit": true,
"grep": true,
"list": true,
"patch": true,
"read": true,
"task": true,
"todoread": true,
"todowrite": true,
"webfetch": true,
"websearch": true,
"write": true
}
},
"question": {
"subagent": true,
"model": "openrouter/google/gemini-3-flash-preview",
"description": "Use this agent for general questions, explaining code, repository exploration, and informational queries. It should be used when the user just wants to know something without making changes.",
"prompt": "Be happy",
"tools": {
"bash": true,
"codesearch": true,
"list": true,
"read": true,
"todoread": true,
"webfetch": true,
"websearch": true
}
},
"build": {
"disable": true
},
"plan": {
"disable": true
},
"general": {
"disable": true
},
"explore": {
"disable": true
},
"title": {
"disable": true
},
"summary": {
"disable": true
},
"compaction": {
"disable": true
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
}
},
"permission": {
"edit": "allow",
"bash": "allow",
"webfetch": "allow",
"doom_loop": "deny",
"external_directory": "deny"
},
"tools": {
"bash": false,
"codesearch": true,
"edit": false,
"glob": true,
"grep": true,
"invalid": false,
"list": true,
"patch": false,
"read": true,
"task": false,
"todoread": true,
"todowrite": false,
"webfetch": false,
"websearch": false,
"write": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment