OMP Role Tool Configuration
When using spawn_subagent (single or batch mode) to dispatch sub-agents,
set the corresponding allowed_tools and skills parameters based on the
sub-agent's role.
Canonical source of truth in code:
plugins/bundle/omp_workflows/shared/constants.py
(ROLE_ALLOWED_TOOLS, ROLE_SKILLS, TOOL_* names) and
shared/role_prompts.py (ROLE_PROMPTS, build_worker_prompt,
format_spawn_call). Tool strings must match registered ToolRegistry
names — do not invent aliases.
Role Definitions
executor (Code Executor)
- allowed_tools: null (inherits all tools)
- skills: null (inherits all skills)
- Boundary: Implement features, run quality checks. Follow existing patterns.
architect (System Architect)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"write_file", "ast_search", "execute_shell_command"]
- skills: []
- Boundary: Design interfaces and module boundaries, diagnose complex issues. No implementation code.
analyst (Requirements Analyst)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"write_file", "execute_shell_command"]
- skills: []
- Boundary: Extract requirements, identify constraints, define acceptance criteria. No code.
critic (Plan/Design Critic)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"ast_search"]
- skills: []
- Boundary: Review plans and designs, challenge assumptions. No plans, no code.
security-reviewer (Security Reviewer)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"execute_shell_command", "ast_search"]
- skills: []
- Boundary: Identify vulnerabilities, injection vectors, auth weaknesses. No file modifications.
code-reviewer (Code Reviewer)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"execute_shell_command", "ast_search"]
- skills: []
- Boundary: Review code quality, maintainability, convention adherence. No file modifications.
qa-tester (QA Tester)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"execute_shell_command"]
- skills: []
- Boundary: Interactive CLI/service testing — start services and verify behavior.
planner (Strategic Planner)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"write_file", "ast_search"]
- skills: []
- Boundary: Create implementation plans, define task breakdown and dependencies. No implementation code.
explore (Code Explorer)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"ast_search"]
- skills: []
- Boundary: Read-only exploration. Map codebase structure and dependencies.
debugger (Debugging Expert)
- allowed_tools: null (inherits all tools)
- skills: []
- Boundary: Root cause analysis, fix build/test failures. No new features.
verifier (Adversarial Verifier)
- allowed_tools: ["read_file", "grep_search", "glob_search",
"execute_shell_command", "ast_search"]
- skills: []
- Boundary: Verification only — no file modifications. Physical isolation via read-only tool set.
Usage
spawn_subagent(
task="<role identity from ROLE_PROMPTS>\n\n## Task\n<task description>",
allowed_tools=<ROLE_ALLOWED_TOOLS[role] or omit if null>,
skills=<ROLE_SKILLS[role] or omit if null>,
fork=True, # if worktree isolation needed
background=True, # if background execution needed
)
When allowed_tools or skills is null, omit the parameter (uses default None).
For batch mode, pass task="" and put per-item role config in each batch dict.
1---2name: omp-roles3description: OMP Role Tool Configuration4---5# OMP Role Tool Configuration67When using spawn_subagent (single or batch mode) to dispatch sub-agents,8set the corresponding allowed_tools and skills parameters based on the9sub-agent's role.1011**Canonical source of truth in code:**12`plugins/bundle/omp_workflows/shared/constants.py`13(`ROLE_ALLOWED_TOOLS`, `ROLE_SKILLS`, `TOOL_*` names) and14`shared/role_prompts.py` (`ROLE_PROMPTS`, `build_worker_prompt`,15`format_spawn_call`). Tool strings must match registered ToolRegistry16names — do not invent aliases.1718## Role Definitions1920### executor (Code Executor)21- **allowed_tools**: null (inherits all tools)22- **skills**: null (inherits all skills)23- **Boundary**: Implement features, run quality checks. Follow existing patterns.2425### architect (System Architect)26- **allowed_tools**: ["read_file", "grep_search", "glob_search",27 "write_file", "ast_search", "execute_shell_command"]28- **skills**: []29- **Boundary**: Design interfaces and module boundaries, diagnose complex issues. No implementation code.3031### analyst (Requirements Analyst)32- **allowed_tools**: ["read_file", "grep_search", "glob_search",33 "write_file", "execute_shell_command"]34- **skills**: []35- **Boundary**: Extract requirements, identify constraints, define acceptance criteria. No code.3637### critic (Plan/Design Critic)38- **allowed_tools**: ["read_file", "grep_search", "glob_search",39 "ast_search"]40- **skills**: []41- **Boundary**: Review plans and designs, challenge assumptions. No plans, no code.4243### security-reviewer (Security Reviewer)44- **allowed_tools**: ["read_file", "grep_search", "glob_search",45 "execute_shell_command", "ast_search"]46- **skills**: []47- **Boundary**: Identify vulnerabilities, injection vectors, auth weaknesses. No file modifications.4849### code-reviewer (Code Reviewer)50- **allowed_tools**: ["read_file", "grep_search", "glob_search",51 "execute_shell_command", "ast_search"]52- **skills**: []53- **Boundary**: Review code quality, maintainability, convention adherence. No file modifications.5455### qa-tester (QA Tester)56- **allowed_tools**: ["read_file", "grep_search", "glob_search",57 "execute_shell_command"]58- **skills**: []59- **Boundary**: Interactive CLI/service testing — start services and verify behavior.6061### planner (Strategic Planner)62- **allowed_tools**: ["read_file", "grep_search", "glob_search",63 "write_file", "ast_search"]64- **skills**: []65- **Boundary**: Create implementation plans, define task breakdown and dependencies. No implementation code.6667### explore (Code Explorer)68- **allowed_tools**: ["read_file", "grep_search", "glob_search",69 "ast_search"]70- **skills**: []71- **Boundary**: Read-only exploration. Map codebase structure and dependencies.7273### debugger (Debugging Expert)74- **allowed_tools**: null (inherits all tools)75- **skills**: []76- **Boundary**: Root cause analysis, fix build/test failures. No new features.7778### verifier (Adversarial Verifier)79- **allowed_tools**: ["read_file", "grep_search", "glob_search",80 "execute_shell_command", "ast_search"]81- **skills**: []82- **Boundary**: Verification only — no file modifications. Physical isolation via read-only tool set.8384## Usage8586```text87spawn_subagent(88 task="<role identity from ROLE_PROMPTS>\n\n## Task\n<task description>",89 allowed_tools=<ROLE_ALLOWED_TOOLS[role] or omit if null>,90 skills=<ROLE_SKILLS[role] or omit if null>,91 fork=True, # if worktree isolation needed92 background=True, # if background execution needed93)94```9596When allowed_tools or skills is null, omit the parameter (uses default None).97For batch mode, pass `task=""` and put per-item role config in each batch dict.