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
@@ -33,42 +33,43 @@ OpenCode paketi yüklediğinde plugin şu adımları uygular:
33
33
  3. efektif runtime flag ve agent ayarlarını oluşturur
34
34
  4. paketlenmiş agent ve command markdown dosyalarını aktif config'e derler
35
35
  5. host config içinde yoksa plugin'e ait MCP varsayılanlarını ekler
36
- 6. mümkünse `lead` ajanını varsayılan top-level ajan olarak tercih eder
37
- 7. telemetry, file lock, supervision, quality reminder ve ortak task board hook'larını açar
36
+ 6. mümkünse `planner` ajanını varsayılan top-level ajan olarak tercih eder
37
+ 7. telemetry, supervision, quality reminder ve ortak task board hook'larını açar
38
38
 
39
39
  ## 3. Normal Kullanım Akışı
40
40
 
41
- Normal kullanımda worker ajanları elle seçmeniz gerekmez. Sistem, top-level etkileşimin `lead`
42
- üzerinden gitmesi için tasarlanmıştır.
41
+ Normal kullanımda uzman ajanları elle seçmeniz gerekmez. Sistem, çoğu görev için top-level
42
+ etkileşimin `planner` üzerinden gitmesi için tasarlanmıştır. Yönün belirsiz olduğu keşif
43
+ çalışmalarında önce `brainstormer` ile başlayabilirsiniz.
43
44
 
44
- Tipik akış:
45
+ Tipik akışlar:
45
46
 
46
47
  ```text
47
- kullanici -> lead -> critic/planner/executor -> uzman alt ajanlar
48
+ kullanici -> planner -> executor -> uzman alt ajanlar
49
+ kullanici -> brainstormer -> (brief ile sonuçlanır) -> planner -> executor -> ...
48
50
  ```
49
51
 
50
52
  ### Temel routing rolleri
51
53
 
52
- | Agent | Rol |
53
- | ---------- | -------------------------------------------------------------------------- |
54
- | `lead` | Talebin tüm yaşam döngüsünü yönetir, route seçer ve sonuçları birleştirir. |
55
- | `critic` | İş başlamadan önce rota veya repo durumunu sorgular. |
56
- | `planner` | Büyük veya riskli işlerde kalıcı bir yürütme planı üretir. |
57
- | `executor` | Planı bounded worker görevlerine bölerek uygular ve sonuçları doğrular. |
54
+ | Agent | Rol |
55
+ | -------------- | -------------------------------------------------------------------------------------- |
56
+ | `brainstormer` | Planlama öncesi kullanıcıyla fikirleri keşfeder, planner'a hazır brief üretir. |
57
+ | `planner` | Talebi triage eder, route seçer, büyük işler için plan üretir, sonuçları inceler. |
58
+ | `executor` | Planı bounded uzman görevlerine bölerek uygular ve sonuçları doğrular. |
58
59
 
59
- ## 4. Triage Seviyeleri
60
+ ## 4. Triage Seviyeleri (Tier Modeli)
60
61
 
61
- `lead`, katmanlı bir routing modeli kullanır.
62
+ `planner`, katmanlı bir routing modeli kullanır.
62
63
 
63
- | Seviye | Anlamı | Tipik route |
64
- | -------- | -------------------------------------------------------------- | --------------------------------------- |
65
- | `Tier 0` | Küçük, açık, düşük riskli işler | `lead -> executor -> quick/worker` |
66
- | `Tier 1` | Kısa bir challenge turundan fayda gören bounded işler | `lead -> critic -> executor` |
67
- | `Tier 2` | Cross-cutting, riskli, belirsiz veya migration ağırlıklı işler | `lead -> critic -> planner -> executor` |
68
- | `Tier 3` | İnceleme ve repo-memory işleri | `lead -> critic` |
64
+ | Tier | Açıklama | Rota |
65
+ | -------- | ---------------------------------------------- | --------------------------------------------- |
66
+ | `Tier 0` | Küçük, açık işler | `planner -> executor -> coder` |
67
+ | `Tier 1` | Bounded işler | `planner -> executor -> coder/ui-coder/sec-coder` |
68
+ | `Tier 2` | Karmaşık çok modüllü işler | `planner -> auditor -> executor -> coders` |
69
+ | `Tier 3` | İnceleme | `planner` (inspeksiyon modu) |
69
70
 
70
71
  Kullanıcı açısından pratik kural basittir: güçlü bir sebep yoksa görevi doğal şekilde tarif edin ve
71
- `lead` ajanının route seçmesine izin verin.
72
+ `planner` ajanının route seçmesine izin verin.
72
73
 
73
74
  ## 5. Ortak Task Board
74
75
 
@@ -78,7 +79,7 @@ Plugin üç ortak task aracı sunar:
78
79
  - `task_update`
79
80
  - `task_list`
80
81
 
81
- Bu araçlar ajan sistemi tarafından dahili olarak kullanılır; ancak log ve `.magent` çıktılarının
82
+ Bu araçlar ajan sistemi tarafından dahili olarak kullanılır; ancak log ve `.opencode` çıktılarının
82
83
  nasıl oluştuğunu anlamak için bilinmeleri faydalıdır.
83
84
 
84
85
  ### Task yaşam döngüsü
@@ -96,7 +97,7 @@ Olası task durumları:
96
97
 
97
98
  Bir proje kökü varsa task board şu dosyaya yazılır:
98
99
 
99
- - `.magent/tasks/taskboard.json`
100
+ - `.opencode/tasks/taskboard.json`
100
101
 
101
102
  Bu sayede çok adımlı yürütmeler oturum sonrasında da incelenebilir.
102
103
 
@@ -130,11 +131,11 @@ kullanın.
130
131
  ```json
131
132
  {
132
133
  "agentSettings": {
133
- "lead": {
134
- "steps": 650
134
+ "planner": {
135
+ "steps": 300
135
136
  },
136
137
  "reviewer": {
137
- "model": "openai/gpt-5.4"
138
+ "model": "anthropic/claude-opus-4-6"
138
139
  }
139
140
  }
140
141
  }
@@ -149,8 +150,8 @@ Belirli bir OpenCode alanını açıkça override etmek istediğinizde `opencode
149
150
  "$schema": "https://opencode.ai/config.json",
150
151
  "plugin": ["opencode-multiagent"],
151
152
  "agent": {
152
- "lead": {
153
- "steps": 650
153
+ "planner": {
154
+ "steps": 300
154
155
  }
155
156
  }
156
157
  }
@@ -198,13 +199,13 @@ Bunu açıkça etkinleştirmek için `opencode.json` kullanın:
198
199
 
199
200
  Sık görülen dosya ve dizinler:
200
201
 
201
- | Yol | Amaç |
202
- | ----------------------------------------------------- | --------------------------------------------------------- |
203
- | `~/.config/opencode/logs/opencode-multiagent.jsonl` | Observation ve telemetry logu |
204
- | `~/.config/opencode/plugins/opencode-multiagent.json` | Kullanıcı runtime override dosyası |
205
- | `.magent/tasks/taskboard.json` | Ortak task board verisi |
206
- | `.magent/plans/` | Planner ve scribe tarafından yazılan kalıcı planlar |
207
- | `.magent/exec/` | Büyük yürütmeler sırasında tutulan execution artifaktları |
202
+ | Yol | Amaç |
203
+ | ----------------------------------------------------- | -------------------------------------------------------------- |
204
+ | `~/.config/opencode/logs/opencode-multiagent.jsonl` | Observation ve telemetry logu |
205
+ | `~/.config/opencode/plugins/opencode-multiagent.json` | Kullanıcı runtime override dosyası |
206
+ | `.opencode/tasks/taskboard.json` | Ortak task board verisi |
207
+ | `.opencode/plans/` | `planner` ve `docmaster` tarafından yazılan kalıcı planlar |
208
+ | `.opencode/exec/` | Büyük yürütmeler sırasında tutulan execution artifaktları |
208
209
 
209
210
  ## 10. Geliştirme Akışı
210
211
 
@@ -12,8 +12,8 @@
12
12
  }
13
13
  },
14
14
  "agent": {
15
- "lead": {
16
- "steps": 650
15
+ "planner": {
16
+ "steps": 300
17
17
  }
18
18
  }
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-multiagent",
3
- "version": "0.3.0-next.1",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "description": "Multi-agent orchestration plugin for OpenCode",
6
6
  "license": "MIT",
@@ -0,0 +1,51 @@
1
+ # skills/
2
+
3
+ Bundled skill definitions for the multi-agent system. Each skill is a reusable prompt injection loaded by agents at runtime.
4
+
5
+ ## Directory Convention
6
+
7
+ Each skill is a subdirectory containing exactly two files:
8
+
9
+ - `manifest.json` — metadata and routing configuration
10
+ - `SKILL.md` — the skill content injected into agent context
11
+
12
+ No other files should be added to a skill directory.
13
+
14
+ ## manifest.json Schema
15
+
16
+ | Field | Type | Required | Description |
17
+ | -------------------- | -------- | -------- | -------------------------------------------------------------------- |
18
+ | `name` | string | yes | Skill identifier, must match the directory name |
19
+ | `version` | string | yes | Semver version |
20
+ | `description` | string | yes | One-line description of what the skill provides |
21
+ | `triggers` | string[] | yes | Phrases that activate this skill (used for matching) |
22
+ | `applicable_agents` | string[] | yes | Which agents may use this skill (must match agent permission blocks) |
23
+ | `max_context_tokens` | number | yes | Token budget for injection — keep as low as practical |
24
+ | `entry_file` | string | yes | Always `"SKILL.md"` |
25
+
26
+ ## Naming Prefixes
27
+
28
+ | Prefix | Domain | Examples |
29
+ | ------------ | -------------------------------- | -------------------------------------------- |
30
+ | `cek-` | Context and prompt engineering | `cek-context-engineering`, `cek-test-prompt` |
31
+ | `sadd-` | Structured agent debate/decision | `sadd-judge-with-debate` |
32
+ | `reflexion-` | Reflection and critique patterns | `reflexion-reflect`, `reflexion-critique` |
33
+ | (none) | General-purpose skills | `executing-plans`, `task-decomposition` |
34
+
35
+ ## applicable_agents Coupling
36
+
37
+ The `applicable_agents` array must match the `skill:` permission block in the corresponding agent definition files (`agents/*.md`). If an agent is listed in `applicable_agents` but does not have `skill: <skill-name>: allow` in its permission block, the skill will not be loadable by that agent.
38
+
39
+ ## Skill Resolution Order
40
+
41
+ At runtime, skills are resolved from multiple sources in this order:
42
+
43
+ 1. `${plugin_root}/skills` — bundled skills (this directory)
44
+ 2. `~/.agents/skills` — user global skills
45
+ 3. `~/skills` — user local skills
46
+
47
+ Later sources can override earlier ones by using the same directory name.
48
+
49
+ ## skill_injection Flag
50
+
51
+ The `skill_injection` flag in plugin settings controls whether skills are dynamically injected into agent prompts. It is currently `false` by default (reserved for future use). Skills are still loadable via the `skill` tool regardless of this flag.
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Advanced evaluation workflows for comparative and bias-aware judgment tasks",
5
5
  "triggers": ["advanced evaluation", "compare outputs", "pairwise", "position bias", "judge"],
6
- "applicable_agents": ["librarian"],
6
+ "applicable_agents": ["scout"],
7
7
  "max_context_tokens": 2200,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -9,7 +9,7 @@
9
9
  "lost in middle",
10
10
  "context design"
11
11
  ],
12
- "applicable_agents": ["critic"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2600,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -9,7 +9,7 @@
9
9
  "rewrite prompt",
10
10
  "instruction design"
11
11
  ],
12
- "applicable_agents": ["critic"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2200,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -9,7 +9,7 @@
9
9
  "prompt behavior",
10
10
  "red green prompt"
11
11
  ],
12
- "applicable_agents": ["critic"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2400,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -9,7 +9,7 @@
9
9
  "tree of thoughts",
10
10
  "reasoning"
11
11
  ],
12
- "applicable_agents": ["critic"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2600,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -9,7 +9,7 @@
9
9
  "context confusion",
10
10
  "attention pattern"
11
11
  ],
12
- "applicable_agents": ["strategist"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2200,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Structured debate templates for stress-testing positions and solutions",
5
5
  "triggers": ["debate", "argue", "stress test", "devils advocate", "counter argument"],
6
- "applicable_agents": ["critic", "strategist", "librarian"],
6
+ "applicable_agents": ["planner", "scout"],
7
7
  "max_context_tokens": 2200,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Design the approach before implementation starts",
5
5
  "triggers": ["design", "architecture", "plan", "schema", "api", "interface"],
6
- "applicable_agents": ["planner", "strategist", "heavy-worker", "deep-worker", "advisor"],
6
+ "applicable_agents": ["planner", "sec-coder"],
7
7
  "max_context_tokens": 1500,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -9,7 +9,7 @@
9
9
  "independent subtasks",
10
10
  "parallelize"
11
11
  ],
12
- "applicable_agents": ["critic", "strategist"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 1800,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Analyze plan drift between documented intent and repository reality",
5
5
  "triggers": ["drift", "reality check", "plan drift", "implementation gap", "roadmap alignment"],
6
- "applicable_agents": ["planner", "auditor", "strategist"],
6
+ "applicable_agents": ["planner", "auditor"],
7
7
  "max_context_tokens": 2000,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Lightweight evaluation framework for judgments and comparisons",
5
5
  "triggers": ["evaluate", "assess", "judge", "compare", "rate"],
6
- "applicable_agents": ["reviewer", "librarian"],
6
+ "applicable_agents": ["reviewer", "scout"],
7
7
  "max_context_tokens": 1500,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -9,7 +9,7 @@
9
9
  "incident",
10
10
  "simultaneous debug"
11
11
  ],
12
- "applicable_agents": ["critic", "strategist"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2200,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -9,7 +9,7 @@
9
9
  "judge with debate",
10
10
  "consensus"
11
11
  ],
12
- "applicable_agents": ["critic"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2400,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Self-reflection workflow for iterating on previous outputs and plans",
5
5
  "triggers": ["reflect", "self refine", "iterate", "improve previous answer", "reflection"],
6
- "applicable_agents": ["critic"],
6
+ "applicable_agents": ["planner"],
7
7
  "max_context_tokens": 2400,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Trace failures to the real cause before changing code",
5
5
  "triggers": ["debug", "error", "fix", "issue", "root cause", "investigate"],
6
- "applicable_agents": ["deep-worker", "advisor", "librarian"],
6
+ "applicable_agents": ["sec-coder", "planner", "scout"],
7
7
  "max_context_tokens": 1500,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -9,7 +9,7 @@
9
9
  "consensus judge",
10
10
  "llm judge"
11
11
  ],
12
- "applicable_agents": ["critic"],
12
+ "applicable_agents": ["planner"],
13
13
  "max_context_tokens": 2200,
14
14
  "entry_file": "SKILL.md"
15
15
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Structured checklist for local code review passes",
5
5
  "triggers": ["review", "code review", "check code", "examine"],
6
- "applicable_agents": ["critic", "reviewer", "auditor"],
6
+ "applicable_agents": ["planner", "reviewer", "auditor"],
7
7
  "max_context_tokens": 2000,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Break larger requests into clear executable subtasks",
5
5
  "triggers": ["decompose", "break down", "split", "tasks", "planning", "subtasks"],
6
- "applicable_agents": ["planner", "advisor"],
6
+ "applicable_agents": ["planner"],
7
7
  "max_context_tokens": 1500,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Verification checklist before claiming work complete",
5
5
  "triggers": ["verify", "complete", "done", "finish", "check", "validation"],
6
- "applicable_agents": ["worker", "heavy-worker", "deep-worker", "ui-worker", "ui-heavy-worker"],
6
+ "applicable_agents": ["coder", "ui-coder", "sec-coder"],
7
7
  "max_context_tokens": 2000,
8
8
  "entry_file": "SKILL.md"
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "Verification gates and acceptance checkpoints between risky phases",
5
5
  "triggers": ["verification gate", "quality gate", "milestone check", "approval step", "go no go"],
6
- "applicable_agents": ["planner", "auditor", "strategist"],
6
+ "applicable_agents": ["planner", "auditor"],
7
7
  "max_context_tokens": 1800,
8
8
  "entry_file": "SKILL.md"
9
9
  }
package/agents/advisor.md DELETED
@@ -1,60 +0,0 @@
1
- ---
2
- description: Read-only coding advisor for workers that are blocked, low-confidence, or choosing between implementation paths
3
- mode: subagent
4
- model: openai/gpt-5.4
5
- temperature: 0
6
- steps: 20
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
- todowrite: allow
20
- code_index_set_project_path: allow
21
- code_index_search_code_advanced: allow
22
- code_index_find_files: allow
23
- code_index_get_file_summary: allow
24
- code_index_get_symbol_body: allow
25
- repo_git_status: allow
26
- repo_git_diff: allow
27
- task: deny
28
- skill:
29
- '*': deny
30
- task-decomposition: allow
31
- root-cause-analysis: allow
32
- design-first: allow
33
- edit: deny
34
- bash: allow
35
- webfetch: deny
36
- websearch: deny
37
- codesearch: deny
38
- external_directory: allow
39
- ---
40
-
41
- You are `advisor`.
42
-
43
- Role
44
-
45
- - Help workers when they are stuck, low-confidence, or choosing between implementation paths.
46
- - Inspect local code and return direction without editing.
47
- - Prefer the narrowest answer that unblocks the worker's assigned task.
48
-
49
- Caller contract
50
-
51
- - Provide the task, the blocker, and the most relevant files or symbols.
52
- - Ask one focused question.
53
-
54
- Output
55
-
56
- - `## Bottom Line`
57
- - `## Diagnosis`
58
- - `## Recommended Next Edits`
59
- - `## Checks`
60
- - `## Uncertainty`
package/agents/critic.md DELETED
@@ -1,136 +0,0 @@
1
- ---
2
- description: Primary challenge and inspection agent that pressure-tests routes or inspects repo memory when dispatched by lead or opened directly
3
- mode: primary
4
- model: openai/gpt-5.4
5
- temperature: 0
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
- todowrite: allow
20
- code_index_set_project_path: allow
21
- code_index_search_code_advanced: allow
22
- code_index_find_files: allow
23
- code_index_get_file_summary: allow
24
- code_index_get_symbol_body: allow
25
- repo_git_status: allow
26
- repo_git_diff_unstaged: allow
27
- repo_git_diff_staged: allow
28
- repo_git_diff: allow
29
- repo_git_log: allow
30
- repo_git_show: allow
31
- task:
32
- '*': deny
33
- scribe: allow
34
- librarian: allow
35
- reviewer: allow
36
- devil: allow
37
- strategist: allow
38
- scout: allow
39
- skill:
40
- '*': deny
41
- cek-prompt-engineering: allow
42
- cek-context-engineering: allow
43
- cek-test-prompt: allow
44
- cek-thought-based-reasoning: allow
45
- reflexion-reflect: allow
46
- reflexion-critique: allow
47
- sadd-judge-with-debate: allow
48
- debate: allow
49
- evaluation: allow
50
- advanced-evaluation: allow
51
- verification-before-completion: allow
52
- handoff-protocols: allow
53
- root-cause-analysis: allow
54
- parallel-investigation: allow
55
- dispatching-parallel-agents: allow
56
- edit:
57
- '*': deny
58
- '.magent/**': allow
59
- '**/.magent/**': allow
60
- bash: allow
61
- webfetch: deny
62
- websearch: deny
63
- codesearch: deny
64
- external_directory: allow
65
- ---
66
-
67
- You are `critic`.
68
-
69
- Modes
70
-
71
- - `challenge mode`: pressure-test a proposed route, execution brief, or planning direction before the work moves forward.
72
- - `inspection mode`: inspect repository memory, `.magent` state, `AGENTS.md` needs, and initialization requests such as `/inspect`, `/status`, `/init`, and `/init-deep`.
73
-
74
- Mode selection
75
-
76
- - If the request matches `/init`, `/init-deep`, `/inspect`, `/status`, or explicitly asks about repository memory, `AGENTS.md`, `.magent` state, workflow guidance, or initialization, enter `inspection mode`.
77
- - Everything else enters `challenge mode`.
78
- - Never mix the two modes in one response.
79
-
80
- Shared operating rules
81
-
82
- - Speak in the same language as the caller.
83
- - Inspect local reality first with local tools, local MCP tools, and `scout` before trusting assumptions.
84
- - When two evidence tracks are independent, gather them in parallel.
85
- - Use `reviewer` for bounded local second opinions.
86
- - Use `librarian` only when external docs, public examples, or version behavior matter.
87
- - Delegate every durable write to `scribe`.
88
-
89
- Challenge mode
90
-
91
- - You do not implement code.
92
- - You do not edit files yourself.
93
- - You do not start plan execution in this session.
94
-
95
- Challenge workflow
96
-
97
- 1. Understand the proposed route, brief, or plan direction.
98
- 2. Inspect local reality with `read`, `glob`, `grep`, `list`, `lsp`, `repo_git_*`, `code_index_*`, and `scout`.
99
- 3. Use `reviewer` for bounded local evidence when a second pass would sharpen the judgment.
100
- 4. Use `librarian` only when the answer depends on external behavior not provable from the repo.
101
- 5. Pressure-test your own recommendation with `devil` before finalizing.
102
- 6. Use `strategist` only when routing, sequencing, or risk framing still feels weak.
103
- 7. Say whether the current brief is strong enough for `executor`, needs `planner`, or needs user clarification.
104
-
105
- Challenge output contract
106
-
107
- - `## Challenge Result`
108
- - `## Key Risks`
109
- - `## Recommendation`
110
- - `## Evidence`
111
- - `## Uncertainty`
112
-
113
- Inspection mode
114
-
115
- - Enter inspection mode when the request is about repository memory, `.magent`, `AGENTS.md`, workflow guidance, or initialization commands.
116
- - Respect the caller's requested depth. Bounded init stays at root-level signals and obvious convention files. Deep init walks major directories, build surfaces, and existing guidance files.
117
- - Inspect `AGENTS.md`, `AGENT.md`, `.magent/plans/*.md`, `.magent/exec/**`, workflow docs, command files, and build or test entry points when relevant.
118
- - Decide whether one root `AGENTS.md` is enough or whether directory-scoped guidance is warranted.
119
- - If updates are needed, delegate precise write instructions to `scribe`.
120
- - If nothing needs changing, say so clearly and stop.
121
-
122
- Inspection output contract
123
-
124
- - `## Analysis`
125
- - `## Decision`
126
- - `## Delegation`
127
- - `## Result`
128
-
129
- Hard rules
130
-
131
- - Never implement code.
132
- - Never edit files yourself.
133
- - Never finalize challenge advice without using `devil` at least once.
134
- - Never emit old `PLANNER_READY` or `EXECUTOR_READY` handoff tokens.
135
- - Never invent conventions, commands, or workflow state that are not backed by evidence.
136
- - If the user explicitly asks to preserve your routing brief under `.magent/**`, delegate that write to `scribe`.