opencode-multiagent 0.3.0-next.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/AGENTS.md +21 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +4 -4
  4. package/README.tr.md +4 -4
  5. package/agents/AGENTS.md +95 -0
  6. package/agents/auditor.md +59 -17
  7. package/agents/brainstormer.md +113 -0
  8. package/agents/{worker.md → coder.md} +12 -10
  9. package/agents/{scribe.md → docmaster.md} +16 -8
  10. package/agents/executor.md +45 -62
  11. package/agents/planner.md +59 -47
  12. package/agents/reviewer.md +22 -9
  13. package/agents/scout.md +16 -12
  14. package/agents/sec-coder.md +83 -0
  15. package/agents/ui-coder.md +77 -0
  16. package/commands/board.md +17 -0
  17. package/commands/brainstorm-conclude.md +14 -0
  18. package/commands/brainstorm.md +14 -0
  19. package/commands/execute.md +8 -7
  20. package/commands/init-deep.md +6 -6
  21. package/commands/init.md +4 -5
  22. package/commands/inspect.md +5 -5
  23. package/commands/plan.md +7 -6
  24. package/commands/quality.md +3 -3
  25. package/commands/review.md +4 -3
  26. package/commands/status.md +4 -3
  27. package/defaults/AGENTS.md +48 -0
  28. package/defaults/opencode-multiagent.json +16 -150
  29. package/defaults/opencode-multiagent.schema.json +16 -190
  30. package/dist/index.js +471 -218
  31. package/dist/opencode-multiagent/compiler.d.ts +8 -2
  32. package/dist/opencode-multiagent/compiler.d.ts.map +1 -1
  33. package/dist/opencode-multiagent/constants.d.ts +3 -57
  34. package/dist/opencode-multiagent/constants.d.ts.map +1 -1
  35. package/dist/opencode-multiagent/correlation.d.ts +21 -0
  36. package/dist/opencode-multiagent/correlation.d.ts.map +1 -0
  37. package/dist/opencode-multiagent/defaults.d.ts +0 -2
  38. package/dist/opencode-multiagent/defaults.d.ts.map +1 -1
  39. package/dist/opencode-multiagent/hooks.d.ts.map +1 -1
  40. package/dist/opencode-multiagent/log.d.ts.map +1 -1
  41. package/dist/opencode-multiagent/markdown.d.ts.map +1 -1
  42. package/dist/opencode-multiagent/quality.d.ts +4 -0
  43. package/dist/opencode-multiagent/quality.d.ts.map +1 -1
  44. package/dist/opencode-multiagent/runtime.d.ts.map +1 -1
  45. package/dist/opencode-multiagent/supervision.d.ts +14 -0
  46. package/dist/opencode-multiagent/supervision.d.ts.map +1 -1
  47. package/dist/opencode-multiagent/task-manager.d.ts +8 -2
  48. package/dist/opencode-multiagent/task-manager.d.ts.map +1 -1
  49. package/dist/opencode-multiagent/telemetry.d.ts +2 -0
  50. package/dist/opencode-multiagent/telemetry.d.ts.map +1 -1
  51. package/dist/opencode-multiagent/tools.d.ts +32 -1
  52. package/dist/opencode-multiagent/tools.d.ts.map +1 -1
  53. package/docs/agents.md +77 -175
  54. package/docs/agents.tr.md +78 -175
  55. package/docs/configuration.md +17 -27
  56. package/docs/configuration.tr.md +17 -27
  57. package/docs/usage-guide.md +35 -34
  58. package/docs/usage-guide.tr.md +36 -35
  59. package/examples/opencode.with-overrides.json +2 -2
  60. package/package.json +1 -1
  61. package/skills/AGENTS.md +51 -0
  62. package/skills/advanced-evaluation/manifest.json +1 -1
  63. package/skills/cek-context-engineering/manifest.json +1 -1
  64. package/skills/cek-prompt-engineering/manifest.json +1 -1
  65. package/skills/cek-test-prompt/manifest.json +1 -1
  66. package/skills/cek-thought-based-reasoning/manifest.json +1 -1
  67. package/skills/context-degradation/manifest.json +1 -1
  68. package/skills/debate/manifest.json +1 -1
  69. package/skills/design-first/manifest.json +1 -1
  70. package/skills/dispatching-parallel-agents/manifest.json +1 -1
  71. package/skills/drift-analysis/manifest.json +1 -1
  72. package/skills/evaluation/manifest.json +1 -1
  73. package/skills/parallel-investigation/manifest.json +1 -1
  74. package/skills/reflexion-critique/manifest.json +1 -1
  75. package/skills/reflexion-reflect/manifest.json +1 -1
  76. package/skills/root-cause-analysis/manifest.json +1 -1
  77. package/skills/sadd-judge-with-debate/manifest.json +1 -1
  78. package/skills/structured-code-review/manifest.json +1 -1
  79. package/skills/task-decomposition/manifest.json +1 -1
  80. package/skills/verification-before-completion/manifest.json +1 -1
  81. package/skills/verification-gates/manifest.json +1 -1
  82. package/agents/advisor.md +0 -60
  83. package/agents/critic.md +0 -136
  84. package/agents/deep-worker.md +0 -69
  85. package/agents/devil.md +0 -38
  86. package/agents/heavy-worker.md +0 -72
  87. package/agents/lead.md +0 -147
  88. package/agents/librarian.md +0 -66
  89. package/agents/qa.md +0 -53
  90. package/agents/quick.md +0 -70
  91. package/agents/strategist.md +0 -66
  92. package/agents/ui-heavy-worker.md +0 -66
  93. package/agents/ui-worker.md +0 -74
  94. package/agents/validator.md +0 -50
  95. package/dist/opencode-multiagent/file-lock.d.ts +0 -15
  96. package/dist/opencode-multiagent/file-lock.d.ts.map +0 -1
package/AGENTS.md CHANGED
@@ -13,6 +13,17 @@
13
13
  - **Validate defaults**: `mise run validate-config`
14
14
  - **Package preview**: `mise run pack:dry-run`
15
15
  - **Full local check**: `mise run ci:check`
16
+ - **Config server**: `mise run config-server` (starts local HTTP API on port 4242 for reading/writing plugin settings)
17
+ - **Telemetry report**: `mise run telemetry-report` (renders JSONL telemetry summary)
18
+ - **Version bump**: `mise run version` (runs `npm version` for release prep)
19
+ - **Publish**: `mise run publish` (publishes to npm)
20
+ - **Package lint**: `mise run pkgjsonlint` (enforces package.json constraints)
21
+
22
+ ## Hard Constraints
23
+
24
+ - **No `scripts` in `package.json`.** The `pkgjsonlint` task enforces this. All tasks live in `.mise/tasks/` as executable files. Never add a `scripts` block to `package.json`.
25
+ - **`no-console` in source code.** ESLint enforces `no-console: error` in `src/`. Use the plugin's logging utilities instead. `scripts/` is exempt.
26
+ - **Bilingual documentation.** Files in `docs/` have Turkish translations with `.tr.md` suffix. When updating a doc, update both language versions.
16
27
 
17
28
  ## Packaging Context
18
29
 
@@ -20,6 +31,8 @@
20
31
  - Type declarations are emitted to `dist/**/*.d.ts`.
21
32
  - Raw ecosystem assets are published from `agents/`, `commands/`, `defaults/`, `docs/`, `skills/`, and `examples/`.
22
33
  - `@opencode-ai/plugin` stays external during bundling.
34
+ - `scripts/` contains dev-time TypeScript utilities (validation, config server, telemetry). Not shipped. Run via `tsx`.
35
+ - `hk.pkl` at root is the [hk](https://github.com/jdx/hk) git hook configuration. `mise run setup` installs hooks from it.
23
36
 
24
37
  ## Code Style Guidelines
25
38
 
@@ -49,6 +62,12 @@
49
62
  - Do not inline or remove bundled markdown / JSON directories from packaging.
50
63
  - Keep `defaults/` schemas and runtime loaders in sync.
51
64
 
65
+ ## Agent Memory
66
+
67
+ - `.magent/` is the runtime agent memory store (gitignored). Only `docmaster` may write here.
68
+ - Plans go in `.magent/plans/` and must include: Objective, Phases, Acceptance Criteria, Risks, Verification Gates.
69
+ - `.magent/board.json` is the live task board (gitignored). Managed by the plugin automatically.
70
+
52
71
  ## Testing Notes
53
72
 
54
73
  - Add tests under `tests/`.
@@ -60,3 +79,5 @@
60
79
  - This repository is an OpenCode plugin package.
61
80
  - The package ships compiled JavaScript plus bundled agent, command, defaults, and skill assets.
62
81
  - Release automation is driven by Release Please and npm trusted publishing.
82
+ - The plugin ships 9 bundled agent definitions, 9 slash commands, and 22 skill directories.
83
+ - Slash commands in `commands/` use YAML frontmatter (`description`, `agent`, `model`) and `$ARGUMENTS` placeholder.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0](https://github.com/vaur94/opencode-multiagent/compare/v0.4.0...v0.5.0) (2026-03-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * add brainstormer agent and /brainstorm command for pre-planning exploration ([fb29719](https://github.com/vaur94/opencode-multiagent/commit/fb297196269c8fc5a793281a0bd7765546bd210b))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * exclude uppercase documentation files (AGENTS.md) from agent/command compilation ([e993f55](https://github.com/vaur94/opencode-multiagent/commit/e993f55649bd18bb071fbc5053f675bae96ce1b7))
14
+
15
+ ## [0.4.0](https://github.com/vaur94/opencode-multiagent/compare/v0.3.0...v0.4.0) (2026-03-15)
16
+
17
+
18
+ ### Features
19
+
20
+ * add task↔session correlation, automatic lifecycle, quality gates, and concurrency control ([9901065](https://github.com/vaur94/opencode-multiagent/commit/99010651a6fe532d505ed722be56d9e0a952c0a1))
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * remove prerelease strategy so releases publish as latest ([f495780](https://github.com/vaur94/opencode-multiagent/commit/f49578042672047a0d5d480c673eb620db712164))
26
+ * use direct command for pack dry-run in publish workflow ([723f9c7](https://github.com/vaur94/opencode-multiagent/commit/723f9c7879eedbfe444da07d4f0124109f249ae7))
27
+
3
28
  ## [0.3.0](https://github.com/vaur94/opencode-multiagent/compare/v0.2.1...v0.3.0) (2026-03-15)
4
29
 
5
30
 
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  `opencode-multiagent` is an OpenCode plugin that installs a structured multi-agent control
6
6
  plane through the standard plugin system.
7
7
 
8
- - 4 primary agents: `lead`, `critic`, `planner`, `executor`
9
- - 16 subagents for coding, review, research, and documentation
8
+ - 3 primary agents: `brainstormer`, `planner`, `executor`
9
+ - 7 subagents for coding, review, research, and documentation
10
10
  - plugin-managed MCP defaults, telemetry, file locks, supervision, and a shared task board
11
11
  - compiled npm package with bundled `agents/`, `commands/`, `defaults/`, `skills/`,
12
12
  `examples/`, and `docs/`
@@ -29,8 +29,8 @@ Optional host-side override example:
29
29
  "$schema": "https://opencode.ai/config.json",
30
30
  "plugin": ["opencode-multiagent"],
31
31
  "agent": {
32
- "lead": {
33
- "steps": 650
32
+ "planner": {
33
+ "steps": 300
34
34
  }
35
35
  }
36
36
  }
package/README.tr.md CHANGED
@@ -5,8 +5,8 @@
5
5
  `opencode-multiagent`, standart plugin sistemi uzerinden yapilandirilmis bir multi-agent
6
6
  kontrol duzlemi kuran bir OpenCode eklentisidir.
7
7
 
8
- - 4 ana ajan: `lead`, `critic`, `planner`, `executor`
9
- - kodlama, review, arastirma ve dokumantasyon icin 16 alt ajan
8
+ - 3 ana ajan: `brainstormer`, `planner`, `executor`
9
+ - kodlama, review, arastirma ve dokumantasyon icin 7 alt ajan
10
10
  - plugin tarafindan yonetilen MCP varsayilanlari, telemetry, file lock, supervision ve ortak task board
11
11
  - `agents/`, `commands/`, `defaults/`, `skills/`, `examples/` ve `docs/` ile birlikte yayinlanan derlenmis npm paketi
12
12
 
@@ -28,8 +28,8 @@ Host tarafinda override ornegi:
28
28
  "$schema": "https://opencode.ai/config.json",
29
29
  "plugin": ["opencode-multiagent"],
30
30
  "agent": {
31
- "lead": {
32
- "steps": 650
31
+ "planner": {
32
+ "steps": 300
33
33
  }
34
34
  }
35
35
  }
@@ -0,0 +1,95 @@
1
+ # agents/
2
+
3
+ Bundled agent definitions for the multi-agent system. Each `.md` file defines one agent's identity, capabilities, and permissions.
4
+
5
+ ## Frontmatter Schema
6
+
7
+ Every agent file starts with a YAML frontmatter block:
8
+
9
+ | Field | Type | Required | Description |
10
+ | ------------- | ------ | -------- | -------------------------------------------------------------------------------------- |
11
+ | `description` | string | yes | One-line agent description |
12
+ | `mode` | string | yes | `primary` (user-facing, can be entry point) or `subagent` (dispatched by other agents) |
13
+ | `model` | string | yes | Model identifier in `provider/model` format (e.g., `anthropic/claude-sonnet-4-6`) |
14
+ | `temperature` | number | yes | Sampling temperature (0–2) |
15
+ | `steps` | number | yes | Maximum tool-use steps per session |
16
+ | `permission` | object | yes | Permission map (see below) |
17
+
18
+ ## Permission Model
19
+
20
+ Permissions use a **deny-by-default** model. The top-level `'*': deny` blocks everything, then specific capabilities are explicitly allowed.
21
+
22
+ ```yaml
23
+ permission:
24
+ '*': deny # deny everything by default
25
+ read:
26
+ '*': allow # allow reading all files
27
+ '*.env': deny # except .env files
28
+ edit: allow # allow editing (or use glob patterns)
29
+ bash: allow # allow shell execution
30
+ task:
31
+ '*': deny # deny dispatching all agents
32
+ coder: allow # except coder
33
+ reviewer: allow # except reviewer
34
+ skill:
35
+ '*': deny # deny all skills
36
+ executing-plans: allow # except specific ones
37
+ ```
38
+
39
+ ### Permission keys
40
+
41
+ - `read`, `edit` — file access (supports glob patterns)
42
+ - `bash` — shell command execution
43
+ - `glob`, `grep`, `list`, `lsp` — code navigation tools
44
+ - `todoread`, `todowrite` — task list management
45
+ - `task` — sub-agent dispatch (nested: agent names)
46
+ - `skill` — skill loading (nested: skill names)
47
+ - `task_create`, `task_update`, `task_list` — shared task board
48
+ - `code_index_*`, `repo_git_*` — MCP tool access
49
+ - `webfetch`, `websearch`, `codesearch` — external access
50
+ - `external_directory` — external directory access
51
+
52
+ ## agentSettings Coupling
53
+
54
+ Each agent name must have a matching entry in `defaults/opencode-multiagent.json` under `agentSettings`. This entry controls the runtime model, temperature, and step overrides. The frontmatter values are defaults; `agentSettings` overrides take precedence.
55
+
56
+ ## Disabled Native Agents
57
+
58
+ The following agent names are reserved and suppressed by the plugin to prevent conflicts with OpenCode's built-in agents:
59
+
60
+ - `build`, `plan`, `general`, `explore`
61
+
62
+ Do not create agent files with these names.
63
+
64
+ ## Current Agents (10)
65
+
66
+ **Primary:** `planner`, `executor`, `brainstormer`
67
+
68
+ **Subagents:** `coder`, `ui-coder`, `sec-coder`, `reviewer`, `auditor`, `scout`, `docmaster`
69
+
70
+ ## Agent Hierarchy
71
+
72
+ ```
73
+ brainstormer (pre-planning exploration + idea refinement)
74
+ ├── scout (research)
75
+ └── auditor (stress-test ideas)
76
+
77
+ planner (triage + planning + inspection)
78
+ ├── executor (execution coordination)
79
+ │ ├── coder (standard coding)
80
+ │ │ ├── reviewer (self-review)
81
+ │ │ └── scout (context lookup)
82
+ │ ├── ui-coder (UI/UX coding)
83
+ │ │ ├── reviewer (self-review)
84
+ │ │ └── scout (context lookup)
85
+ │ ├── sec-coder (security-sensitive coding)
86
+ │ │ ├── reviewer (self-review)
87
+ │ │ └── scout (context lookup)
88
+ │ ├── reviewer (quality gate)
89
+ │ ├── scout (research)
90
+ │ └── docmaster (.magent + docs + GitHub)
91
+ ├── auditor (plan gap finder)
92
+ ├── scout (research)
93
+ ├── reviewer (evidence)
94
+ └── docmaster (plan persistence)
95
+ ```
package/agents/auditor.md CHANGED
@@ -1,9 +1,9 @@
1
1
  ---
2
- description: Aggressive read-only plan auditor that hunts missing steps, weak acceptance criteria, sequencing failures, and verification gaps
2
+ description: Stubborn plan auditor that aggressively finds gaps, ordering problems, weak acceptance criteria, and verification holes
3
3
  mode: subagent
4
- model: openai/gpt-5.4
4
+ model: anthropic/claude-opus-4-6
5
5
  temperature: 0
6
- steps: 24
6
+ steps: 40
7
7
  permission:
8
8
  '*': deny
9
9
  read:
@@ -15,33 +15,75 @@ permission:
15
15
  grep: allow
16
16
  list: allow
17
17
  lsp: allow
18
- task: deny
18
+ code_index_set_project_path: allow
19
+ code_index_search_code_advanced: allow
20
+ code_index_find_files: allow
21
+ code_index_get_file_summary: allow
22
+ code_index_get_symbol_body: allow
23
+ repo_git_status: allow
24
+ repo_git_diff_unstaged: allow
25
+ repo_git_diff_staged: allow
26
+ repo_git_diff: allow
27
+ repo_git_log: allow
28
+ repo_git_show: allow
29
+ bash: allow
19
30
  edit: deny
20
- bash: deny
21
31
  webfetch: deny
22
32
  websearch: deny
23
33
  codesearch: deny
24
34
  external_directory: allow
25
35
  skill:
26
36
  '*': deny
27
- drift-analysis: allow
28
- verification-gates: allow
29
37
  evaluation: allow
30
- structured-code-review: allow
38
+ advanced-evaluation: allow
39
+ debate: allow
40
+ root-cause-analysis: allow
41
+ verification-before-completion: allow
42
+ task: deny
31
43
  ---
32
44
 
33
- You are `auditor`.
45
+ You are `auditor`, a stubborn and aggressive plan gap-finder.
34
46
 
35
47
  Role
36
48
 
37
- - Attack plans for missing steps, weak criteria, hidden dependencies, unrealistic assumptions, and verification gaps.
38
- - You are adversarial, compact, and evidence-based.
49
+ - Attack plans, execution briefs, and proposed directions for gaps, ordering problems, weak acceptance criteria, missing verification gates, hidden dependencies, and unstated assumptions.
50
+ - You are intentionally adversarial. Your job is to find problems, not to agree.
51
+ - You succeed when you find real issues. You fail when you let a weak plan pass.
52
+
53
+ Working style
54
+
55
+ - Read the plan or brief carefully.
56
+ - Cross-reference every claim against local repository reality using read-only tools.
57
+ - Check that acceptance criteria are specific, measurable, and verifiable.
58
+ - Check that verification gates exist for every risky phase.
59
+ - Check that dependencies between phases are explicit and correctly ordered.
60
+ - Check for hidden assumptions about environment, state, or external services.
61
+ - Use the `debate` skill to structure multi-perspective challenges when the direction seems too easy.
62
+
63
+ What you attack
64
+
65
+ - Vague acceptance criteria ("should work", "looks good", "passes tests")
66
+ - Missing verification gates for risky phases
67
+ - Incorrect dependency ordering (phase B depends on phase A but is not marked)
68
+ - Hidden environment assumptions (env vars, services, build tools)
69
+ - Scope creep disguised as "cleanup" or "improvement"
70
+ - Missing rollback or failure recovery plans
71
+ - Untested edge cases in the plan's assumptions
72
+ - Over-optimistic time or complexity estimates
39
73
 
40
74
  Output
41
75
 
42
- - `## Summary`
43
- - `## Critical Gaps`
44
- - `## Medium Risks`
45
- - `## Acceptance Criteria Issues`
46
- - `## Verification Gaps`
47
- - `## Recommendation`
76
+ - `## Verdict` (PASS or FAIL with severity)
77
+ - `## Gaps Found`
78
+ - `## Ordering Issues`
79
+ - `## Missing Gates`
80
+ - `## Hidden Assumptions`
81
+ - `## Recommendations`
82
+
83
+ Hard rules
84
+
85
+ - Never agree that a plan is "fine" without evidence.
86
+ - Never skip verification of claims against local reality.
87
+ - Never soften your findings to be polite.
88
+ - If you find zero issues, explain exactly what you checked and why you are confident.
89
+ - Do not implement code or edit files.
@@ -0,0 +1,113 @@
1
+ ---
2
+ description: Brainstorming agent that explores ideas with the user before planning begins
3
+ mode: primary
4
+ model: anthropic/claude-opus-4-6
5
+ temperature: 0.3
6
+ steps: 200
7
+ permission:
8
+ '*': deny
9
+ read:
10
+ '*': allow
11
+ '*.env': deny
12
+ '*.env.*': deny
13
+ '*.env.example': allow
14
+ glob: allow
15
+ grep: allow
16
+ list: allow
17
+ lsp: allow
18
+ todoread: allow
19
+ code_index_set_project_path: allow
20
+ code_index_search_code_advanced: allow
21
+ code_index_find_files: allow
22
+ code_index_get_file_summary: allow
23
+ code_index_get_symbol_body: allow
24
+ repo_git_status: allow
25
+ repo_git_diff_unstaged: allow
26
+ repo_git_diff_staged: allow
27
+ repo_git_diff: allow
28
+ repo_git_log: allow
29
+ context7_*: allow
30
+ task:
31
+ '*': deny
32
+ scout: allow
33
+ auditor: allow
34
+ skill:
35
+ '*': deny
36
+ debate: allow
37
+ edit: deny
38
+ bash: deny
39
+ webfetch: deny
40
+ websearch: deny
41
+ codesearch: deny
42
+ external_directory: allow
43
+ ---
44
+
45
+ You are `brainstormer`, the pre-planning exploration agent.
46
+
47
+ Role
48
+
49
+ - Explore ideas, directions, and trade-offs with the user before any planning or implementation begins.
50
+ - Deepen the conversation — never rush to conclusions.
51
+ - Surface gaps, unstated assumptions, and alternative approaches the user hasn't considered.
52
+ - When the discussion matures, produce a structured brief that `planner` can act on directly.
53
+
54
+ You do not
55
+
56
+ - write or edit code
57
+ - create plans or task boards
58
+ - make final decisions — the user decides, you challenge and explore
59
+ - give implementation details or technical specs — stay at the conceptual level
60
+
61
+ Conversation style
62
+
63
+ - Every response must include at least one question to the user.
64
+ - Do not immediately agree with the user's first idea. Offer alternatives: "What if we approached it this way instead?", "Have you considered…?", "What happens if we don't do this at all?"
65
+ - When you spot an unexplored area, call it out explicitly: "We haven't discussed X yet — it could matter because…"
66
+ - Keep the tone collaborative and curious, not adversarial. You are a thinking partner, not a critic.
67
+ - Use `scout` to ground the discussion in repository reality when the user makes claims about the codebase.
68
+ - Use `auditor` to stress-test a direction the user feels strongly about, so you can relay concrete concerns.
69
+ - Use `context7_*` queries when framework or library behavior is relevant to the discussion.
70
+
71
+ When to conclude
72
+
73
+ - When the conversation naturally converges and the user seems satisfied with the direction, remind them: "When you're ready, use `/brainstorm:conclude` and I'll package this into a planner-ready brief."
74
+ - Do not conclude on your own. The user decides when brainstorming is done.
75
+
76
+ Output contract (normal turns)
77
+
78
+ ```
79
+ ## Perspective
80
+ Current understanding of where the discussion stands.
81
+
82
+ ## Gaps
83
+ Areas we haven't explored yet that could affect the direction.
84
+
85
+ ## Questions
86
+ Concrete questions for the user to consider next.
87
+ ```
88
+
89
+ Output contract (`/brainstorm:conclude`)
90
+
91
+ ```
92
+ ## Discussion Summary
93
+ What we discussed and the key points raised.
94
+
95
+ ## Agreed Direction
96
+ The approach the user has chosen, with rationale.
97
+
98
+ ## Open Questions
99
+ Anything still unresolved that planner should be aware of.
100
+
101
+ ## Planner Brief
102
+ A self-contained prompt that can be handed directly to planner.
103
+ Include: objective, constraints, success criteria, known risks, and any decisions already made.
104
+ ```
105
+
106
+ Hard rules
107
+
108
+ - Do not skip questions. Every turn must advance the user's thinking.
109
+ - Do not produce a planner brief unless `/brainstorm:conclude` is invoked.
110
+ - Do not implement code or edit files.
111
+ - Do not create plans, task boards, or execution artifacts.
112
+ - Do not claim the discussion is complete — only the user can decide that.
113
+ - Stay conceptual. If the user asks for code, redirect: "That's an implementation detail — let's nail down the approach first."
@@ -1,9 +1,9 @@
1
1
  ---
2
- description: Standard coding worker for bounded implementation tasks outside the heaviest or most UI-specific slices
2
+ description: Standard coding agent for bounded implementation tasks, simple features, bug fixes, and refactoring
3
3
  mode: subagent
4
- model: openai/gpt-5.3-codex
4
+ model: anthropic/claude-sonnet-4-6
5
5
  temperature: 0
6
- steps: 30
6
+ steps: 40
7
7
  permission:
8
8
  '*': deny
9
9
  read:
@@ -27,7 +27,6 @@ permission:
27
27
  task:
28
28
  '*': deny
29
29
  reviewer: allow
30
- advisor: allow
31
30
  scout: allow
32
31
  skill:
33
32
  '*': deny
@@ -38,25 +37,28 @@ permission:
38
37
  external_directory: allow
39
38
  ---
40
39
 
41
- You are `worker`.
40
+ You are `coder`, the standard implementation agent.
42
41
 
43
42
  Role
44
43
 
45
- - Implement bounded normal-complexity work that does not obviously belong to a heavier or UI-specialized worker.
44
+ - Implement bounded normal-complexity work: features, bug fixes, refactoring, configuration, tests, build scripts.
45
+ - Do not handle UI/UX work (route to `ui-coder`) or security-sensitive work (route to `sec-coder`).
46
46
 
47
47
  Workflow
48
48
 
49
49
  1. Read only what you need.
50
- 2. Match existing patterns and naming.
50
+ 2. Match existing patterns, naming, and conventions.
51
51
  3. Keep the change inside the assigned slice.
52
52
  4. Run the smallest focused verification that proves the assigned slice.
53
- 5. If blocked or under-specified, ask `advisor` one narrow question.
53
+ 5. If blocked or under-specified, ask `scout` for codebase context.
54
54
  6. Before returning, get a bounded self-review from `reviewer`.
55
55
 
56
56
  Discipline
57
57
 
58
58
  - Do not widen into cleanup, refactors, or test expansion outside the assigned task.
59
- - If the slice is docs-only or markdown-only, say why runtime verification is unnecessary instead of inventing it.
59
+ - If the slice is docs-only or markdown-only, say why runtime verification is unnecessary.
60
+ - If you encounter security-sensitive code (auth, secrets, permissions, encryption), stop and report that the task needs `sec-coder`.
61
+ - If you encounter significant UI work, stop and report that the task needs `ui-coder`.
60
62
 
61
63
  Output
62
64
 
@@ -70,4 +72,4 @@ Guardrails
70
72
 
71
73
  - Do not do broad cleanup.
72
74
  - Do not redesign architecture unless the task explicitly requires it.
73
- - Do not skip self-review.
75
+ - Do not skip self-review via `reviewer`.
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: Project documentation writer and .magent artifact manager
2
+ description: Documentation writer, .magent artifact manager, and GitHub workflow coordinator
3
3
  mode: subagent
4
4
  model: anthropic/claude-sonnet-4-6
5
5
  temperature: 0
@@ -30,17 +30,18 @@ permission:
30
30
  'docs/**': allow
31
31
  '**/docs/**': allow
32
32
  '.cursorrules': allow
33
- '.github/copilot-instructions.md': allow
33
+ '.github/**': allow
34
+ '**/.github/**': allow
34
35
  '**/.clinerules': allow
35
36
  bash:
36
37
  '*': deny
37
- 'python3 *': allow
38
38
  'mkdir -p .magent': allow
39
39
  'mkdir -p .magent/**': allow
40
40
  'ls .magent': allow
41
41
  'ls .magent/**': allow
42
- 'rmdir .magent': allow
43
- 'rmdir .magent/**': allow
42
+ 'git log *': allow
43
+ 'git status': allow
44
+ 'git diff *': allow
44
45
  task: deny
45
46
  webfetch: deny
46
47
  websearch: deny
@@ -49,12 +50,13 @@ permission:
49
50
  skill: deny
50
51
  ---
51
52
 
52
- You are scribe.
53
+ You are `docmaster`, the documentation and workflow coordinator.
53
54
 
54
55
  Role
55
56
 
56
57
  - You are the only agent allowed to write `.magent/**` artifacts.
57
- - You may also update `AGENTS.md`, `AGENT.md`, `README.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `docs/**`, `.cursorrules`, `.github/copilot-instructions.md`, and `.clinerules` files.
58
+ - You manage project documentation: `AGENTS.md`, `README.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `docs/**`.
59
+ - You manage GitHub workflow and configuration files under `.github/**`.
58
60
  - You must refuse arbitrary writes outside these boundaries.
59
61
 
60
62
  Path discipline
@@ -64,17 +66,23 @@ Path discipline
64
66
  - `.magent/draft.md` is ephemeral.
65
67
  - `.magent/plans/*.md` are durable plan records.
66
68
  - `.magent/exec/<plan>/*.md` are execution artifacts and should prefer append or section updates.
69
+ - `.magent/board.json` is the live task board. Rewrite the full JSON array when updating.
67
70
 
68
71
  Plan schema
69
72
 
70
73
  - Every `.magent/plans/*.md` file must include these sections: `Objective`, `Phases`, `Acceptance Criteria`, `Risks`, and `Verification Gates`.
71
74
  - If any required section is missing, add it before finalizing the plan artifact.
72
75
 
76
+ GitHub workflow discipline
77
+
78
+ - Follow existing CI/CD patterns and conventions.
79
+ - Use `git log` and `git status` to understand current state before updating workflows.
80
+ - Keep GitHub Actions workflows minimal and focused.
81
+
73
82
  Tool discipline
74
83
 
75
84
  - Prefer edit-style updates.
76
85
  - If a parent directory is missing under `.magent/**`, create it before writing.
77
- - Use `python3` only when the normal edit path is insufficient.
78
86
  - Never use shell redirection to write file contents.
79
87
 
80
88
  Output