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.
- package/AGENTS.md +21 -0
- package/CHANGELOG.md +25 -0
- package/README.md +4 -4
- package/README.tr.md +4 -4
- package/agents/AGENTS.md +95 -0
- package/agents/auditor.md +59 -17
- package/agents/brainstormer.md +113 -0
- package/agents/{worker.md → coder.md} +12 -10
- package/agents/{scribe.md → docmaster.md} +16 -8
- package/agents/executor.md +45 -62
- package/agents/planner.md +59 -47
- package/agents/reviewer.md +22 -9
- package/agents/scout.md +16 -12
- package/agents/sec-coder.md +83 -0
- package/agents/ui-coder.md +77 -0
- package/commands/board.md +17 -0
- package/commands/brainstorm-conclude.md +14 -0
- package/commands/brainstorm.md +14 -0
- package/commands/execute.md +8 -7
- package/commands/init-deep.md +6 -6
- package/commands/init.md +4 -5
- package/commands/inspect.md +5 -5
- package/commands/plan.md +7 -6
- package/commands/quality.md +3 -3
- package/commands/review.md +4 -3
- package/commands/status.md +4 -3
- package/defaults/AGENTS.md +48 -0
- package/defaults/opencode-multiagent.json +16 -150
- package/defaults/opencode-multiagent.schema.json +16 -190
- package/dist/index.js +471 -218
- package/dist/opencode-multiagent/compiler.d.ts +8 -2
- package/dist/opencode-multiagent/compiler.d.ts.map +1 -1
- package/dist/opencode-multiagent/constants.d.ts +3 -57
- package/dist/opencode-multiagent/constants.d.ts.map +1 -1
- package/dist/opencode-multiagent/correlation.d.ts +21 -0
- package/dist/opencode-multiagent/correlation.d.ts.map +1 -0
- package/dist/opencode-multiagent/defaults.d.ts +0 -2
- package/dist/opencode-multiagent/defaults.d.ts.map +1 -1
- package/dist/opencode-multiagent/hooks.d.ts.map +1 -1
- package/dist/opencode-multiagent/log.d.ts.map +1 -1
- package/dist/opencode-multiagent/markdown.d.ts.map +1 -1
- package/dist/opencode-multiagent/quality.d.ts +4 -0
- package/dist/opencode-multiagent/quality.d.ts.map +1 -1
- package/dist/opencode-multiagent/runtime.d.ts.map +1 -1
- package/dist/opencode-multiagent/supervision.d.ts +14 -0
- package/dist/opencode-multiagent/supervision.d.ts.map +1 -1
- package/dist/opencode-multiagent/task-manager.d.ts +8 -2
- package/dist/opencode-multiagent/task-manager.d.ts.map +1 -1
- package/dist/opencode-multiagent/telemetry.d.ts +2 -0
- package/dist/opencode-multiagent/telemetry.d.ts.map +1 -1
- package/dist/opencode-multiagent/tools.d.ts +32 -1
- package/dist/opencode-multiagent/tools.d.ts.map +1 -1
- package/docs/agents.md +77 -175
- package/docs/agents.tr.md +78 -175
- package/docs/configuration.md +17 -27
- package/docs/configuration.tr.md +17 -27
- package/docs/usage-guide.md +35 -34
- package/docs/usage-guide.tr.md +36 -35
- package/examples/opencode.with-overrides.json +2 -2
- package/package.json +1 -1
- package/skills/AGENTS.md +51 -0
- package/skills/advanced-evaluation/manifest.json +1 -1
- package/skills/cek-context-engineering/manifest.json +1 -1
- package/skills/cek-prompt-engineering/manifest.json +1 -1
- package/skills/cek-test-prompt/manifest.json +1 -1
- package/skills/cek-thought-based-reasoning/manifest.json +1 -1
- package/skills/context-degradation/manifest.json +1 -1
- package/skills/debate/manifest.json +1 -1
- package/skills/design-first/manifest.json +1 -1
- package/skills/dispatching-parallel-agents/manifest.json +1 -1
- package/skills/drift-analysis/manifest.json +1 -1
- package/skills/evaluation/manifest.json +1 -1
- package/skills/parallel-investigation/manifest.json +1 -1
- package/skills/reflexion-critique/manifest.json +1 -1
- package/skills/reflexion-reflect/manifest.json +1 -1
- package/skills/root-cause-analysis/manifest.json +1 -1
- package/skills/sadd-judge-with-debate/manifest.json +1 -1
- package/skills/structured-code-review/manifest.json +1 -1
- package/skills/task-decomposition/manifest.json +1 -1
- package/skills/verification-before-completion/manifest.json +1 -1
- package/skills/verification-gates/manifest.json +1 -1
- package/agents/advisor.md +0 -60
- package/agents/critic.md +0 -136
- package/agents/deep-worker.md +0 -69
- package/agents/devil.md +0 -38
- package/agents/heavy-worker.md +0 -72
- package/agents/lead.md +0 -147
- package/agents/librarian.md +0 -66
- package/agents/qa.md +0 -53
- package/agents/quick.md +0 -70
- package/agents/strategist.md +0 -66
- package/agents/ui-heavy-worker.md +0 -66
- package/agents/ui-worker.md +0 -74
- package/agents/validator.md +0 -50
- package/dist/opencode-multiagent/file-lock.d.ts +0 -15
- package/dist/opencode-multiagent/file-lock.d.ts.map +0 -1
package/docs/usage-guide.tr.md
CHANGED
|
@@ -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 `
|
|
37
|
-
7. telemetry,
|
|
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
|
|
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
|
|
45
|
+
Tipik akışlar:
|
|
45
46
|
|
|
46
47
|
```text
|
|
47
|
-
kullanici ->
|
|
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
|
|
53
|
-
|
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
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
|
-
`
|
|
62
|
+
`planner`, katmanlı bir routing modeli kullanır.
|
|
62
63
|
|
|
63
|
-
|
|
|
64
|
-
| -------- |
|
|
65
|
-
| `Tier 0` | Küçük, açık
|
|
66
|
-
| `Tier 1` |
|
|
67
|
-
| `Tier 2` |
|
|
68
|
-
| `Tier 3` | İnceleme
|
|
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
|
-
`
|
|
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 `.
|
|
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
|
-
- `.
|
|
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
|
-
"
|
|
134
|
-
"steps":
|
|
134
|
+
"planner": {
|
|
135
|
+
"steps": 300
|
|
135
136
|
},
|
|
136
137
|
"reviewer": {
|
|
137
|
-
"model": "
|
|
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
|
-
"
|
|
153
|
-
"steps":
|
|
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
|
-
| `.
|
|
206
|
-
| `.
|
|
207
|
-
| `.
|
|
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
|
|
package/package.json
CHANGED
package/skills/AGENTS.md
ADDED
|
@@ -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": ["
|
|
6
|
+
"applicable_agents": ["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": "Structured debate templates for stress-testing positions and solutions",
|
|
5
5
|
"triggers": ["debate", "argue", "stress test", "devils advocate", "counter argument"],
|
|
6
|
-
"applicable_agents": ["
|
|
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", "
|
|
6
|
+
"applicable_agents": ["planner", "sec-coder"],
|
|
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": "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"
|
|
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", "
|
|
6
|
+
"applicable_agents": ["reviewer", "scout"],
|
|
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": "Self-reflection workflow for iterating on previous outputs and plans",
|
|
5
5
|
"triggers": ["reflect", "self refine", "iterate", "improve previous answer", "reflection"],
|
|
6
|
-
"applicable_agents": ["
|
|
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": ["
|
|
6
|
+
"applicable_agents": ["sec-coder", "planner", "scout"],
|
|
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": "Structured checklist for local code review passes",
|
|
5
5
|
"triggers": ["review", "code review", "check code", "examine"],
|
|
6
|
-
"applicable_agents": ["
|
|
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"
|
|
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": ["
|
|
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"
|
|
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`.
|