opencode-multiagent 0.2.1 → 0.4.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 +83 -0
- package/CHANGELOG.md +31 -0
- package/CONTRIBUTING.md +36 -0
- package/README.md +44 -168
- package/README.tr.md +84 -0
- package/RELEASE.md +68 -0
- package/agents/AGENTS.md +91 -0
- package/agents/auditor.md +67 -23
- package/agents/{worker.md → coder.md} +24 -17
- package/agents/docmaster.md +91 -0
- package/agents/executor.md +63 -79
- package/agents/planner.md +78 -58
- package/agents/reviewer.md +31 -15
- package/agents/scout.md +25 -17
- package/agents/sec-coder.md +83 -0
- package/agents/ui-coder.md +77 -0
- package/commands/board.md +17 -0
- package/commands/execute.md +9 -7
- package/commands/init-deep.md +7 -6
- package/commands/init.md +5 -5
- package/commands/inspect.md +6 -5
- package/commands/plan.md +8 -6
- package/commands/quality.md +4 -3
- package/commands/review.md +5 -3
- package/commands/status.md +5 -3
- package/defaults/AGENTS.md +48 -0
- package/defaults/opencode-multiagent.json +180 -0
- package/defaults/opencode-multiagent.schema.json +265 -0
- package/dist/control-plane.d.ts +4 -0
- package/dist/control-plane.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1916 -0
- package/dist/opencode-multiagent/compiler.d.ts +25 -0
- package/dist/opencode-multiagent/compiler.d.ts.map +1 -0
- package/dist/opencode-multiagent/constants.d.ts +128 -0
- package/dist/opencode-multiagent/constants.d.ts.map +1 -0
- 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 +10 -0
- package/dist/opencode-multiagent/defaults.d.ts.map +1 -0
- package/dist/opencode-multiagent/hooks.d.ts +62 -0
- package/dist/opencode-multiagent/hooks.d.ts.map +1 -0
- package/dist/opencode-multiagent/log.d.ts +2 -0
- package/dist/opencode-multiagent/log.d.ts.map +1 -0
- package/dist/opencode-multiagent/markdown.d.ts +8 -0
- package/dist/opencode-multiagent/markdown.d.ts.map +1 -0
- package/dist/opencode-multiagent/mcp.d.ts +3 -0
- package/dist/opencode-multiagent/mcp.d.ts.map +1 -0
- package/dist/opencode-multiagent/policy.d.ts +5 -0
- package/dist/opencode-multiagent/policy.d.ts.map +1 -0
- package/dist/opencode-multiagent/quality.d.ts +18 -0
- package/dist/opencode-multiagent/quality.d.ts.map +1 -0
- package/dist/opencode-multiagent/runtime.d.ts +7 -0
- package/dist/opencode-multiagent/runtime.d.ts.map +1 -0
- package/dist/opencode-multiagent/session-tracker.d.ts +32 -0
- package/dist/opencode-multiagent/session-tracker.d.ts.map +1 -0
- package/dist/opencode-multiagent/skills.d.ts +17 -0
- package/dist/opencode-multiagent/skills.d.ts.map +1 -0
- package/dist/opencode-multiagent/supervision.d.ts +26 -0
- package/dist/opencode-multiagent/supervision.d.ts.map +1 -0
- package/dist/opencode-multiagent/task-manager.d.ts +54 -0
- package/dist/opencode-multiagent/task-manager.d.ts.map +1 -0
- package/dist/opencode-multiagent/telemetry.d.ts +28 -0
- package/dist/opencode-multiagent/telemetry.d.ts.map +1 -0
- package/dist/opencode-multiagent/tools.d.ts +87 -0
- package/dist/opencode-multiagent/tools.d.ts.map +1 -0
- package/dist/opencode-multiagent/types.d.ts +36 -0
- package/dist/opencode-multiagent/types.d.ts.map +1 -0
- package/dist/opencode-multiagent/utils.d.ts +9 -0
- package/dist/opencode-multiagent/utils.d.ts.map +1 -0
- package/docs/agents.md +148 -0
- package/docs/agents.tr.md +149 -0
- package/docs/configuration.md +244 -0
- package/docs/configuration.tr.md +244 -0
- package/docs/usage-guide.md +224 -0
- package/docs/usage-guide.tr.md +225 -0
- package/examples/opencode.with-overrides.json +3 -7
- package/package.json +23 -13
- package/skills/AGENTS.md +51 -0
- package/skills/advanced-evaluation/SKILL.md +37 -21
- package/skills/advanced-evaluation/manifest.json +2 -13
- package/skills/cek-context-engineering/SKILL.md +159 -87
- package/skills/cek-context-engineering/manifest.json +1 -3
- package/skills/cek-prompt-engineering/SKILL.md +13 -10
- package/skills/cek-prompt-engineering/manifest.json +1 -3
- package/skills/cek-test-prompt/SKILL.md +38 -28
- package/skills/cek-test-prompt/manifest.json +1 -3
- package/skills/cek-thought-based-reasoning/SKILL.md +75 -21
- package/skills/cek-thought-based-reasoning/manifest.json +1 -3
- package/skills/context-degradation/SKILL.md +14 -13
- package/skills/context-degradation/manifest.json +1 -3
- package/skills/debate/SKILL.md +23 -78
- package/skills/debate/manifest.json +2 -12
- package/skills/design-first/manifest.json +2 -13
- package/skills/dispatching-parallel-agents/SKILL.md +14 -3
- package/skills/dispatching-parallel-agents/manifest.json +1 -4
- package/skills/drift-analysis/SKILL.md +50 -29
- package/skills/drift-analysis/manifest.json +2 -12
- package/skills/evaluation/manifest.json +2 -12
- package/skills/executing-plans/SKILL.md +15 -8
- package/skills/executing-plans/manifest.json +1 -3
- package/skills/handoff-protocols/manifest.json +2 -12
- package/skills/parallel-investigation/SKILL.md +25 -12
- package/skills/parallel-investigation/manifest.json +1 -4
- package/skills/reflexion-critique/SKILL.md +21 -10
- package/skills/reflexion-critique/manifest.json +1 -3
- package/skills/reflexion-reflect/SKILL.md +36 -34
- package/skills/reflexion-reflect/manifest.json +2 -10
- package/skills/root-cause-analysis/manifest.json +2 -13
- package/skills/sadd-judge-with-debate/SKILL.md +50 -26
- package/skills/sadd-judge-with-debate/manifest.json +1 -3
- package/skills/structured-code-review/manifest.json +2 -11
- package/skills/task-decomposition/manifest.json +2 -13
- package/skills/verification-before-completion/manifest.json +2 -15
- package/skills/verification-gates/SKILL.md +27 -19
- package/skills/verification-gates/manifest.json +2 -12
- package/agents/advisor.md +0 -57
- package/agents/critic.md +0 -127
- package/agents/deep-worker.md +0 -65
- package/agents/devil.md +0 -36
- package/agents/heavy-worker.md +0 -68
- package/agents/lead.md +0 -155
- package/agents/librarian.md +0 -62
- package/agents/qa.md +0 -50
- package/agents/quick.md +0 -65
- package/agents/scribe.md +0 -78
- package/agents/strategist.md +0 -63
- package/agents/ui-heavy-worker.md +0 -62
- package/agents/ui-worker.md +0 -69
- package/agents/validator.md +0 -47
- package/defaults/agent-settings.json +0 -102
- package/defaults/agent-settings.schema.json +0 -25
- package/defaults/flags.json +0 -35
- package/defaults/flags.schema.json +0 -119
- package/defaults/mcp-defaults.json +0 -47
- package/defaults/mcp-defaults.schema.json +0 -38
- package/defaults/profiles.json +0 -53
- package/defaults/profiles.schema.json +0 -60
- package/defaults/team-profiles.json +0 -83
- package/src/control-plane.ts +0 -21
- package/src/index.ts +0 -8
- package/src/opencode-multiagent/compiler.ts +0 -168
- package/src/opencode-multiagent/constants.ts +0 -178
- package/src/opencode-multiagent/file-lock.ts +0 -90
- package/src/opencode-multiagent/hooks.ts +0 -599
- package/src/opencode-multiagent/log.ts +0 -12
- package/src/opencode-multiagent/mailbox.ts +0 -287
- package/src/opencode-multiagent/markdown.ts +0 -99
- package/src/opencode-multiagent/mcp.ts +0 -35
- package/src/opencode-multiagent/policy.ts +0 -67
- package/src/opencode-multiagent/quality.ts +0 -140
- package/src/opencode-multiagent/runtime.ts +0 -55
- package/src/opencode-multiagent/skills.ts +0 -144
- package/src/opencode-multiagent/supervision.ts +0 -156
- package/src/opencode-multiagent/task-manager.ts +0 -148
- package/src/opencode-multiagent/team-manager.ts +0 -219
- package/src/opencode-multiagent/team-tools.ts +0 -359
- package/src/opencode-multiagent/telemetry.ts +0 -124
- package/src/opencode-multiagent/utils.ts +0 -54
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types used across the opencode-multiagent plugin.
|
|
3
|
+
* Centralizes type definitions to avoid duplication and inconsistency.
|
|
4
|
+
*/
|
|
5
|
+
/** A generic record with unknown values — the safe default for untyped data. */
|
|
6
|
+
export type GenericRecord = Record<string, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Minimal client interface for injecting prompts into sessions.
|
|
9
|
+
* Matches the subset of the SDK client used by supervision, quality, and hooks.
|
|
10
|
+
*/
|
|
11
|
+
export type PromptClient = {
|
|
12
|
+
session?: {
|
|
13
|
+
prompt?: (options: {
|
|
14
|
+
path: {
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
body?: {
|
|
18
|
+
parts: Array<{
|
|
19
|
+
type: string;
|
|
20
|
+
text: string;
|
|
21
|
+
}>;
|
|
22
|
+
noReply?: boolean;
|
|
23
|
+
};
|
|
24
|
+
}) => Promise<unknown>;
|
|
25
|
+
/** Fallback prompt method — some SDK versions expose this instead of `prompt`. */
|
|
26
|
+
promptAsync?: (options: {
|
|
27
|
+
sessionID: string;
|
|
28
|
+
noReply?: boolean;
|
|
29
|
+
parts: Array<{
|
|
30
|
+
type: string;
|
|
31
|
+
text: string;
|
|
32
|
+
}>;
|
|
33
|
+
}) => Promise<unknown>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/opencode-multiagent/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gFAAgF;AAChF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE;YACjB,IAAI,EAAE;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE,CAAC;YACrB,IAAI,CAAC,EAAE;gBAAE,KAAK,EAAE,KAAK,CAAC;oBAAE,IAAI,EAAE,MAAM,CAAC;oBAAC,IAAI,EAAE,MAAM,CAAA;iBAAE,CAAC,CAAC;gBAAC,OAAO,CAAC,EAAE,OAAO,CAAA;aAAE,CAAC;SAC5E,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;QACvB,kFAAkF;QAClF,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE;YACtB,SAAS,EAAE,MAAM,CAAC;YAClB,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,KAAK,EAAE,KAAK,CAAC;gBAAE,IAAI,EAAE,MAAM,CAAC;gBAAC,IAAI,EAAE,MAAM,CAAA;aAAE,CAAC,CAAC;SAC9C,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;KACxB,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const compact: <T extends Record<string, unknown>>(value: T) => Partial<T>;
|
|
2
|
+
export declare const clip: (value: unknown, size?: number) => string | undefined;
|
|
3
|
+
export declare const text: (parts: unknown) => string;
|
|
4
|
+
export declare const label: (value: unknown, keys?: string[]) => string | undefined;
|
|
5
|
+
export declare const own: (value: unknown, key: string) => boolean;
|
|
6
|
+
export declare const clone: <T>(value: T) => T;
|
|
7
|
+
export declare const readJSON: <T>(path: string, fallback: T) => Promise<T>;
|
|
8
|
+
export declare const merge: <T>(base: T, extra: unknown) => T;
|
|
9
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/opencode-multiagent/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,KAAG,OAAO,CAAC,CAAC,CACmB,CAAC;AAEnG,eAAO,MAAM,IAAI,GAAI,OAAO,OAAO,EAAE,aAAU,KAAG,MAAM,GAAG,SAI1D,CAAC;AAIF,eAAO,MAAM,IAAI,GAAI,OAAO,OAAO,KAAG,MAS9B,CAAC;AAET,eAAO,MAAM,KAAK,GAChB,OAAO,OAAO,EACd,eAA8C,KAC7C,MAAM,GAAG,SAQX,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,OAAO,OAAO,EAAE,KAAK,MAAM,KAAG,OACkB,CAAC;AAErE,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,CAGnC,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAU,CAAC,EAAE,MAAM,MAAM,EAAE,UAAU,CAAC,KAAG,OAAO,CAAC,CAAC,CAMtE,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,OAAO,KAAG,CAqBlD,CAAC"}
|
package/docs/agents.md
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
> Language: **English** | [Turkish](agents.tr.md)
|
|
2
|
+
>
|
|
3
|
+
> Back: [README](../README.md)
|
|
4
|
+
|
|
5
|
+
# Agent Reference
|
|
6
|
+
|
|
7
|
+
`opencode-multiagent` ships 9 bundled agents:
|
|
8
|
+
|
|
9
|
+
- 2 primary agents
|
|
10
|
+
- 7 subagents
|
|
11
|
+
|
|
12
|
+
All bundled agents currently default to `temperature: 0`.
|
|
13
|
+
|
|
14
|
+
## System Shape
|
|
15
|
+
|
|
16
|
+
The system is intentionally layered:
|
|
17
|
+
|
|
18
|
+
- `planner` owns user-facing triage, planning, challenge, and inspection
|
|
19
|
+
- `executor` turns an approved plan into bounded subagent execution
|
|
20
|
+
- specialized subagents handle coding, review, research, and documentation slices
|
|
21
|
+
|
|
22
|
+
## High-Level Hierarchy
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
planner (triage + planning + inspection)
|
|
26
|
+
├── executor (execution coordination)
|
|
27
|
+
│ ├── coder (standard coding) -> reviewer, scout
|
|
28
|
+
│ ├── ui-coder (UI/UX coding) -> reviewer, scout
|
|
29
|
+
│ ├── sec-coder (security coding) -> reviewer, scout
|
|
30
|
+
│ ├── reviewer (quality gate)
|
|
31
|
+
│ ├── scout (research)
|
|
32
|
+
│ └── docmaster (.magent + docs + GitHub)
|
|
33
|
+
├── auditor (plan gap finder)
|
|
34
|
+
├── scout (research)
|
|
35
|
+
├── reviewer (evidence)
|
|
36
|
+
└── docmaster (plan persistence)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Primary Agents
|
|
40
|
+
|
|
41
|
+
### `planner`
|
|
42
|
+
|
|
43
|
+
- Mode: `primary`
|
|
44
|
+
- Default model: `anthropic/claude-opus-4-6`
|
|
45
|
+
- Steps: `200`
|
|
46
|
+
- Purpose: triage, planning, challenge, and inspection
|
|
47
|
+
- Best for: deciding the lightest safe route, writing durable execution plans, challenging assumptions, inspecting repository state without implementing changes, and integrating results for the user
|
|
48
|
+
|
|
49
|
+
### `executor`
|
|
50
|
+
|
|
51
|
+
- Mode: `primary`
|
|
52
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
53
|
+
- Steps: `200`
|
|
54
|
+
- Purpose: execution orchestration
|
|
55
|
+
- Best for: running an approved plan by dispatching bounded coding tasks, coordinating reviewer and scout passes, and enforcing quality gates
|
|
56
|
+
|
|
57
|
+
## Coding Agents
|
|
58
|
+
|
|
59
|
+
### `coder`
|
|
60
|
+
|
|
61
|
+
- Mode: `subagent`
|
|
62
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
63
|
+
- Steps: `40`
|
|
64
|
+
- Purpose: standard coding work
|
|
65
|
+
- Use when: the task is a bounded, non-UI, non-security-sensitive implementation slice
|
|
66
|
+
|
|
67
|
+
### `ui-coder`
|
|
68
|
+
|
|
69
|
+
- Mode: `subagent`
|
|
70
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
71
|
+
- Steps: `40`
|
|
72
|
+
- Purpose: UI and UX work
|
|
73
|
+
- Use when: the work is mainly components, view-local state, layout, accessibility, or responsive behavior
|
|
74
|
+
|
|
75
|
+
### `sec-coder`
|
|
76
|
+
|
|
77
|
+
- Mode: `subagent`
|
|
78
|
+
- Default model: `anthropic/claude-opus-4-6`
|
|
79
|
+
- Steps: `60`
|
|
80
|
+
- Purpose: security-sensitive work
|
|
81
|
+
- Use when: the change touches authentication, authorization, cryptography, secrets handling, or other high-risk runtime behavior
|
|
82
|
+
|
|
83
|
+
## Quality Agents
|
|
84
|
+
|
|
85
|
+
### `reviewer`
|
|
86
|
+
|
|
87
|
+
- Mode: `subagent`
|
|
88
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
89
|
+
- Steps: `30`
|
|
90
|
+
- Purpose: code review, QA, and validation
|
|
91
|
+
- Best for: reviewing code changes, running build and test evidence, and issuing an acceptance verdict before work is reported as done
|
|
92
|
+
|
|
93
|
+
### `auditor`
|
|
94
|
+
|
|
95
|
+
- Mode: `subagent`
|
|
96
|
+
- Default model: `anthropic/claude-opus-4-6`
|
|
97
|
+
- Steps: `40`
|
|
98
|
+
- Purpose: stubborn plan gap finder
|
|
99
|
+
- Best for: finding missing steps, weak acceptance criteria, sequencing failures, and verification gaps before execution starts
|
|
100
|
+
|
|
101
|
+
## Research Agent
|
|
102
|
+
|
|
103
|
+
### `scout`
|
|
104
|
+
|
|
105
|
+
- Mode: `subagent`
|
|
106
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
107
|
+
- Steps: `30`
|
|
108
|
+
- Purpose: file discovery and external research
|
|
109
|
+
- Best for: repository mapping, symbol tracing, codebase structure questions, git-aware local exploration, and live documentation or API lookup
|
|
110
|
+
|
|
111
|
+
## Documentation Agent
|
|
112
|
+
|
|
113
|
+
### `docmaster`
|
|
114
|
+
|
|
115
|
+
- Mode: `subagent`
|
|
116
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
117
|
+
- Steps: `30`
|
|
118
|
+
- Purpose: documentation writer and `.magent` artifact manager
|
|
119
|
+
- Best for: writing or updating `README.md`, `AGENTS.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `docs/**`, `.magent/**` artifacts, and GitHub workflow files
|
|
120
|
+
|
|
121
|
+
## Agent Categories at a Glance
|
|
122
|
+
|
|
123
|
+
| Category | Agents |
|
|
124
|
+
| --------------------- | --------------------------------- |
|
|
125
|
+
| Primary orchestration | `planner`, `executor` |
|
|
126
|
+
| Coding | `coder`, `ui-coder`, `sec-coder` |
|
|
127
|
+
| Quality | `reviewer`, `auditor` |
|
|
128
|
+
| Research | `scout` |
|
|
129
|
+
| Documentation | `docmaster` |
|
|
130
|
+
|
|
131
|
+
## Summary Table
|
|
132
|
+
|
|
133
|
+
| Agent | Category | Mode | Model | Steps | Primary use |
|
|
134
|
+
| ----------- | ------------- | ---------- | ----------------------------- | ----- | ---------------------------------------- |
|
|
135
|
+
| `planner` | Primary | `primary` | `anthropic/claude-opus-4-6` | `200` | Triage, planning, challenge, inspection |
|
|
136
|
+
| `executor` | Primary | `primary` | `anthropic/claude-sonnet-4-6` | `200` | Execution orchestration |
|
|
137
|
+
| `coder` | Coding | `subagent` | `anthropic/claude-sonnet-4-6` | `40` | Standard bounded coding work |
|
|
138
|
+
| `ui-coder` | Coding | `subagent` | `anthropic/claude-sonnet-4-6` | `40` | UI and UX work |
|
|
139
|
+
| `sec-coder` | Coding | `subagent` | `anthropic/claude-opus-4-6` | `60` | Security-sensitive implementation |
|
|
140
|
+
| `reviewer` | Quality | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Code review, QA, and validation |
|
|
141
|
+
| `auditor` | Quality | `subagent` | `anthropic/claude-opus-4-6` | `40` | Plan gap finding before execution |
|
|
142
|
+
| `scout` | Research | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | File discovery and external research |
|
|
143
|
+
| `docmaster` | Documentation | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Docs and `.magent` writing |
|
|
144
|
+
|
|
145
|
+
## Related Docs
|
|
146
|
+
|
|
147
|
+
- [Configuration Reference](configuration.md)
|
|
148
|
+
- [Usage Guide](usage-guide.md)
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
> Dil: [English](agents.md) | **Türkçe**
|
|
2
|
+
>
|
|
3
|
+
> Geri: [README](../README.tr.md)
|
|
4
|
+
|
|
5
|
+
# Ajan Referansı
|
|
6
|
+
|
|
7
|
+
`opencode-multiagent`, 9 paketlenmiş ajan ile gelir:
|
|
8
|
+
|
|
9
|
+
- 2 ana ajan
|
|
10
|
+
- 7 alt ajan
|
|
11
|
+
|
|
12
|
+
Paketlenmiş tüm ajanlar şu anda varsayılan olarak `temperature: 0` kullanır.
|
|
13
|
+
|
|
14
|
+
## Sistem Yapısı
|
|
15
|
+
|
|
16
|
+
Sistem katmanlı olacak şekilde tasarlanmıştır:
|
|
17
|
+
|
|
18
|
+
- `planner` kullanıcıya dönük triage, planlama, challenge ve inspeksiyon işlemlerini yönetir
|
|
19
|
+
- `executor` planı bounded uzman görevlerine dönüştürür ve yürütmeyi koordine eder
|
|
20
|
+
- uzman alt ajanlar kodlama, review, araştırma ve dokümantasyon işlerini üstlenir
|
|
21
|
+
|
|
22
|
+
## Yüksek Seviye Hiyerarşi
|
|
23
|
+
|
|
24
|
+
```text
|
|
25
|
+
kullanici
|
|
26
|
+
-> planner (triage + planlama + inspeksiyon)
|
|
27
|
+
-> executor (yürütme koordinasyonu)
|
|
28
|
+
-> coder (standart kodlama) -> reviewer, scout
|
|
29
|
+
-> ui-coder (UI/UX kodlama) -> reviewer, scout
|
|
30
|
+
-> sec-coder (güvenlik kodlama) -> reviewer, scout
|
|
31
|
+
-> reviewer (kalite kapısı)
|
|
32
|
+
-> scout (araştırma)
|
|
33
|
+
-> docmaster (.magent + doküman + GitHub)
|
|
34
|
+
-> auditor (plan açığı bulucu)
|
|
35
|
+
-> scout (araştırma)
|
|
36
|
+
-> reviewer (kanıt)
|
|
37
|
+
-> docmaster (plan kalıcılığı)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Ana Ajanlar
|
|
41
|
+
|
|
42
|
+
### `planner`
|
|
43
|
+
|
|
44
|
+
- Mod: `primary`
|
|
45
|
+
- Varsayılan model: `anthropic/claude-opus-4-6`
|
|
46
|
+
- Steps: `200`
|
|
47
|
+
- Amaç: triage, planlama, challenge ve inspeksiyon
|
|
48
|
+
- En uygun kullanım: route seçimi, iş delegasyonu, büyük işlerde kalıcı ve yürütmeye hazır plan üretmek, repo durumunu incelemek
|
|
49
|
+
|
|
50
|
+
### `executor`
|
|
51
|
+
|
|
52
|
+
- Mod: `primary`
|
|
53
|
+
- Varsayılan model: `anthropic/claude-sonnet-4-6`
|
|
54
|
+
- Steps: `200`
|
|
55
|
+
- Amaç: yürütme orkestrasyonu
|
|
56
|
+
- En uygun kullanım: onaylanmış planı bounded uzman görevlerine bölüp doğrulama katmanları ile yürütmek, task board güncellemeleri
|
|
57
|
+
|
|
58
|
+
## Kodlama Ajanları
|
|
59
|
+
|
|
60
|
+
### `coder`
|
|
61
|
+
|
|
62
|
+
- Mod: `subagent`
|
|
63
|
+
- Varsayılan model: `anthropic/claude-sonnet-4-6`
|
|
64
|
+
- Steps: `40`
|
|
65
|
+
- Amaç: standart kodlama
|
|
66
|
+
- En uygun kullanım: UI dışı, orta zorlukta, varsayılan kodlama yolu gerektiğinde
|
|
67
|
+
|
|
68
|
+
### `ui-coder`
|
|
69
|
+
|
|
70
|
+
- Mod: `subagent`
|
|
71
|
+
- Varsayılan model: `anthropic/claude-sonnet-4-6`
|
|
72
|
+
- Steps: `40`
|
|
73
|
+
- Amaç: UI/UX
|
|
74
|
+
- En uygun kullanım: iş daha çok component, view-local state, layout, accessibility veya responsive davranış ile ilgiliyse
|
|
75
|
+
|
|
76
|
+
### `sec-coder`
|
|
77
|
+
|
|
78
|
+
- Mod: `subagent`
|
|
79
|
+
- Varsayılan model: `anthropic/claude-opus-4-6`
|
|
80
|
+
- Steps: `60`
|
|
81
|
+
- Amaç: güvenlik hassas kodlama
|
|
82
|
+
- En uygun kullanım: değişiklik hassas runtime davranışını, kimlik doğrulama veya güvenlik mantığını etkiliyorsa
|
|
83
|
+
|
|
84
|
+
## Kalite Ajanları
|
|
85
|
+
|
|
86
|
+
### `reviewer`
|
|
87
|
+
|
|
88
|
+
- Mod: `subagent`
|
|
89
|
+
- Varsayılan model: `anthropic/claude-sonnet-4-6`
|
|
90
|
+
- Steps: `30`
|
|
91
|
+
- Amaç: kod inceleme, QA, doğrulama
|
|
92
|
+
- En uygun kullanım: implementasyon tamamlandıktan sonra değişiklik yüzeyini incelemek, test/build/lint ile kanıt üretmek ve son kabul kararı vermek
|
|
93
|
+
|
|
94
|
+
### `auditor`
|
|
95
|
+
|
|
96
|
+
- Mod: `subagent`
|
|
97
|
+
- Varsayılan model: `anthropic/claude-opus-4-6`
|
|
98
|
+
- Steps: `40`
|
|
99
|
+
- Amaç: plan açığı bulucu
|
|
100
|
+
- En uygun kullanım: iş yürütülmeden önce eksik adımları, zayıf kabul kriterlerini, sıralama sorunlarını ve verification boşluklarını yakalamak
|
|
101
|
+
|
|
102
|
+
## Araştırma Ajanı
|
|
103
|
+
|
|
104
|
+
### `scout`
|
|
105
|
+
|
|
106
|
+
- Mod: `subagent`
|
|
107
|
+
- Varsayılan model: `anthropic/claude-sonnet-4-6`
|
|
108
|
+
- Steps: `30`
|
|
109
|
+
- Amaç: dosya keşfi, araştırma
|
|
110
|
+
- En uygun kullanım: dosya bulma, sembol takibi, kod tabanı yapısını anlama ve yerel keşif
|
|
111
|
+
|
|
112
|
+
## Dokümantasyon Ajanı
|
|
113
|
+
|
|
114
|
+
### `docmaster`
|
|
115
|
+
|
|
116
|
+
- Mod: `subagent`
|
|
117
|
+
- Varsayılan model: `anthropic/claude-sonnet-4-6`
|
|
118
|
+
- Steps: `30`
|
|
119
|
+
- Amaç: dokümantasyon, `.magent`, GitHub
|
|
120
|
+
- En uygun kullanım: `README.md`, `AGENTS.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `docs/**` ve `.magent/**` güncellemeleri, GitHub işlemleri
|
|
121
|
+
|
|
122
|
+
## Kategori Özeti
|
|
123
|
+
|
|
124
|
+
| Kategori | Ajanlar |
|
|
125
|
+
| ------------------- | ------------------------------------ |
|
|
126
|
+
| Ana orkestrasyon | `planner`, `executor` |
|
|
127
|
+
| Kodlama ajanları | `coder`, `ui-coder`, `sec-coder` |
|
|
128
|
+
| Kalite | `reviewer`, `auditor` |
|
|
129
|
+
| Araştırma | `scout` |
|
|
130
|
+
| Dokümantasyon | `docmaster` |
|
|
131
|
+
|
|
132
|
+
## Özet Tablo
|
|
133
|
+
|
|
134
|
+
| Agent | Kategori | Mod | Model | Steps | Ana kullanım |
|
|
135
|
+
| ----------- | ------------- | ---------- | ----------------------------- | ----- | ------------------------------------------------------- |
|
|
136
|
+
| `planner` | Primary | `primary` | `anthropic/claude-opus-4-6` | `200` | Triage, planlama, challenge, inspeksiyon |
|
|
137
|
+
| `executor` | Primary | `primary` | `anthropic/claude-sonnet-4-6` | `200` | Yürütme orkestrasyonu |
|
|
138
|
+
| `coder` | Coding | `subagent` | `anthropic/claude-sonnet-4-6` | `40` | Standart kodlama |
|
|
139
|
+
| `ui-coder` | Coding | `subagent` | `anthropic/claude-sonnet-4-6` | `40` | UI/UX kodlama |
|
|
140
|
+
| `sec-coder` | Coding | `subagent` | `anthropic/claude-opus-4-6` | `60` | Güvenlik hassas kodlama |
|
|
141
|
+
| `reviewer` | Quality | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Kod inceleme, QA, doğrulama |
|
|
142
|
+
| `auditor` | Quality | `subagent` | `anthropic/claude-opus-4-6` | `40` | Plan açığı bulma ve denetim |
|
|
143
|
+
| `scout` | Research | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Dosya keşfi ve araştırma |
|
|
144
|
+
| `docmaster` | Documentation | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Doküman, `.magent` yazımı ve GitHub |
|
|
145
|
+
|
|
146
|
+
## İlgili Dokümanlar
|
|
147
|
+
|
|
148
|
+
- [Konfigürasyon Referansı](configuration.tr.md)
|
|
149
|
+
- [Kullanım Kılavuzu](usage-guide.tr.md)
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
> Language: **English** | [Turkish](configuration.tr.md)
|
|
2
|
+
>
|
|
3
|
+
> Back: [README](../README.md)
|
|
4
|
+
|
|
5
|
+
# Configuration Reference
|
|
6
|
+
|
|
7
|
+
This document explains the plugin's configuration surfaces, what each setting does, and how
|
|
8
|
+
override precedence works.
|
|
9
|
+
|
|
10
|
+
## Configuration Files
|
|
11
|
+
|
|
12
|
+
The plugin uses three different configuration layers:
|
|
13
|
+
|
|
14
|
+
1. Bundled defaults: `defaults/opencode-multiagent.json`
|
|
15
|
+
2. User runtime overrides: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
16
|
+
3. Host OpenCode config: `opencode.json`
|
|
17
|
+
|
|
18
|
+
## Merge and Override Rules
|
|
19
|
+
|
|
20
|
+
### Runtime settings
|
|
21
|
+
|
|
22
|
+
At startup, the plugin loads bundled defaults and then reads the user override file at
|
|
23
|
+
`~/.config/opencode/plugins/opencode-multiagent.json`.
|
|
24
|
+
|
|
25
|
+
The user settings file currently supports these sections:
|
|
26
|
+
|
|
27
|
+
- `flags`
|
|
28
|
+
- `agentSettings`
|
|
29
|
+
- `profiles`
|
|
30
|
+
|
|
31
|
+
The effective runtime flags are resolved in this order:
|
|
32
|
+
|
|
33
|
+
1. built-in `defaultFlags`
|
|
34
|
+
2. selected profile from merged profiles
|
|
35
|
+
3. user `flags`
|
|
36
|
+
|
|
37
|
+
That means user `flags` always win over the selected profile, and the selected profile wins over
|
|
38
|
+
the built-in baseline.
|
|
39
|
+
|
|
40
|
+
### Agent settings
|
|
41
|
+
|
|
42
|
+
`agentSettings` is applied during agent compilation and only fills `model`, `temperature`, and
|
|
43
|
+
`steps` when those fields are not already explicitly set in the host config.
|
|
44
|
+
|
|
45
|
+
Practical rule:
|
|
46
|
+
|
|
47
|
+
- bundled agent markdown provides the default definition
|
|
48
|
+
- `agentSettings` provides central default overrides
|
|
49
|
+
- explicit `opencode.json -> agent.<name>.*` values win if you set them yourself
|
|
50
|
+
|
|
51
|
+
### MCP defaults
|
|
52
|
+
|
|
53
|
+
The bundled `mcpDefaults` section is injected conservatively. The plugin only adds an MCP server
|
|
54
|
+
when the active OpenCode config does not already define a server with the same name.
|
|
55
|
+
|
|
56
|
+
Practical rule:
|
|
57
|
+
|
|
58
|
+
- bundled `mcpDefaults` fills gaps
|
|
59
|
+
- explicit `opencode.json -> mcp.<name>` definitions always win
|
|
60
|
+
|
|
61
|
+
## `flags`
|
|
62
|
+
|
|
63
|
+
Top-level runtime flags:
|
|
64
|
+
|
|
65
|
+
| Key | Default | What it does |
|
|
66
|
+
| --------------------- | ---------- | ------------------------------------------------------------------------------------ |
|
|
67
|
+
| `profile` | `standard` | Selects the base runtime profile before user flag overrides are applied. |
|
|
68
|
+
| `enforcement` | `true` | Enables local safety checks for sensitive file paths and destructive shell patterns. |
|
|
69
|
+
| `observation` | `true` | Enables JSONL observation logging for events and tool execution traces. |
|
|
70
|
+
| `prompt_controls` | `true` | Adds prompt metadata headers and logs risky prompt or command content. |
|
|
71
|
+
| `agent_compilation` | `true` | Compiles bundled, global, and project agent markdown into the active config. |
|
|
72
|
+
| `command_compilation` | `true` | Compiles bundled, global, and project command markdown into the active config. |
|
|
73
|
+
| `mcp_compilation` | `true` | Injects plugin-managed MCP server defaults into the active config when missing. |
|
|
74
|
+
| `telemetry` | `true` | Records session, tool, and error telemetry in the plugin log. |
|
|
75
|
+
| `supervision` | `true` | Enables parent-child supervision reminders for idle delegated sessions. |
|
|
76
|
+
| `quality_gate` | `true` | Tracks edit activity and emits quality reminders for sessions that go idle. |
|
|
77
|
+
| `skill_injection` | `false` | Reserved. Loads the skill registry but does not inject content yet. |
|
|
78
|
+
|
|
79
|
+
### `skill_sources`
|
|
80
|
+
|
|
81
|
+
Default value:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
["${plugin_root}/skills", "${home}/.agents/skills", "${home}/skills"]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
This is the ordered search path used when `skill_injection` is enabled.
|
|
88
|
+
|
|
89
|
+
- `${plugin_root}` resolves to the installed package root
|
|
90
|
+
- `${home}` resolves to the current user's home directory
|
|
91
|
+
|
|
92
|
+
### `compiler.permission_compilation`
|
|
93
|
+
|
|
94
|
+
| Key | Default | What it does |
|
|
95
|
+
| --------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `compiler.permission_compilation` | `true` | Fills missing top-level OpenCode permission defaults conservatively for core tools such as `bash`, `read`, `edit`, `glob`, `grep`, and `list`. |
|
|
97
|
+
|
|
98
|
+
### `experimental`
|
|
99
|
+
|
|
100
|
+
These flags enable optional prompt and session transforms:
|
|
101
|
+
|
|
102
|
+
| Key | Default | What it does |
|
|
103
|
+
| -------------------------------------- | ------- | ---------------------------------------------------------------------- |
|
|
104
|
+
| `experimental.chat_system_transform` | `false` | Appends an experimental note to the system prompt. |
|
|
105
|
+
| `experimental.chat_messages_transform` | `false` | Appends an experimental note to the last user message before dispatch. |
|
|
106
|
+
| `experimental.session_compacting` | `false` | Adds experimental context to compaction summaries. |
|
|
107
|
+
| `experimental.text_complete` | `false` | Appends experimental text to completed LLM responses. |
|
|
108
|
+
|
|
109
|
+
These are enabled by default only in the `strict` profile.
|
|
110
|
+
|
|
111
|
+
### `supervision_config`
|
|
112
|
+
|
|
113
|
+
| Key | Default | Meaning |
|
|
114
|
+
| ------------------------------------ | -------- | ----------------------------------------------------------------------------------------------- |
|
|
115
|
+
| `supervision_config.idle_timeout_ms` | `180000` | How long a delegated child session can stay idle before supervision logic considers it overdue. |
|
|
116
|
+
| `supervision_config.cooldown_ms` | `300000` | Cooldown between supervision reminders. |
|
|
117
|
+
|
|
118
|
+
### `quality_config`
|
|
119
|
+
|
|
120
|
+
| Key | Default | Meaning |
|
|
121
|
+
| ------------------------------------- | -------- | ------------------------------------------------------------------------------------ |
|
|
122
|
+
| `quality_config.reminder_idle_ms` | `120000` | How long an editing session can remain idle before a quality reminder is considered. |
|
|
123
|
+
| `quality_config.reminder_cooldown_ms` | `300000` | Cooldown between quality reminders. |
|
|
124
|
+
|
|
125
|
+
## `agentSettings`
|
|
126
|
+
|
|
127
|
+
This section centralizes per-agent defaults for:
|
|
128
|
+
|
|
129
|
+
- `model`
|
|
130
|
+
- `temperature`
|
|
131
|
+
- `steps`
|
|
132
|
+
|
|
133
|
+
All bundled agents currently default to `temperature: 0`.
|
|
134
|
+
|
|
135
|
+
| Agent | Category | Default model | Steps |
|
|
136
|
+
| ----------- | ------------- | ----------------------------- | ----- |
|
|
137
|
+
| `planner` | Primary | `anthropic/claude-opus-4-6` | `200` |
|
|
138
|
+
| `executor` | Primary | `anthropic/claude-sonnet-4-6` | `200` |
|
|
139
|
+
| `coder` | Coding | `anthropic/claude-sonnet-4-6` | `40` |
|
|
140
|
+
| `ui-coder` | Coding | `anthropic/claude-sonnet-4-6` | `40` |
|
|
141
|
+
| `sec-coder` | Coding | `anthropic/claude-opus-4-6` | `60` |
|
|
142
|
+
| `reviewer` | Quality | `anthropic/claude-sonnet-4-6` | `30` |
|
|
143
|
+
| `auditor` | Quality | `anthropic/claude-opus-4-6` | `40` |
|
|
144
|
+
| `scout` | Research | `anthropic/claude-sonnet-4-6` | `30` |
|
|
145
|
+
| `docmaster` | Documentation | `anthropic/claude-sonnet-4-6` | `30` |
|
|
146
|
+
|
|
147
|
+
## `mcpDefaults`
|
|
148
|
+
|
|
149
|
+
These are plugin-owned MCP server definitions shipped with the package.
|
|
150
|
+
|
|
151
|
+
| Server | Type | Enabled by default | Purpose |
|
|
152
|
+
| ------------ | -------- | ------------------ | ------------------------------------------------------------------------------- |
|
|
153
|
+
| `code_index` | `local` | `true` | Indexed code search, file discovery, summaries, and symbol lookup. |
|
|
154
|
+
| `repo` | `local` | `true` | Git status, diff, log, branch, and commit inspection tools. |
|
|
155
|
+
| `context7` | `remote` | `false` | Live library and framework documentation lookup. |
|
|
156
|
+
| `exa` | `remote` | `false` | Web search and code context retrieval. |
|
|
157
|
+
| `gh_grep` | `remote` | `false` | GitHub code search over public repositories. |
|
|
158
|
+
| `github` | `local` | `false` | GitHub repository, issue, PR, and file operations. Requires `GITHUB_PAT_TOKEN`. |
|
|
159
|
+
|
|
160
|
+
Notes:
|
|
161
|
+
|
|
162
|
+
- `code_index` and `repo` are enabled in the bundled defaults because they support the local
|
|
163
|
+
development workflow directly.
|
|
164
|
+
- `github` is disabled by default because it requires credentials.
|
|
165
|
+
- `context7`, `exa`, and `gh_grep` are optional remote services and start disabled.
|
|
166
|
+
|
|
167
|
+
## `profiles`
|
|
168
|
+
|
|
169
|
+
The plugin ships three named profiles.
|
|
170
|
+
|
|
171
|
+
| Profile | Best for | Observation and telemetry | Supervision and quality | Experimental transforms |
|
|
172
|
+
| ---------- | ------------------- | ------------------------- | ----------------------- | ----------------------- |
|
|
173
|
+
| `minimal` | Lowest overhead | Mostly off | Mostly off | Off |
|
|
174
|
+
| `standard` | Default daily use | On | On | Off |
|
|
175
|
+
| `strict` | Maximum guard rails | On | On | On |
|
|
176
|
+
|
|
177
|
+
Profile details:
|
|
178
|
+
|
|
179
|
+
- `minimal` keeps enforcement on, but reduces logging and reminder behavior.
|
|
180
|
+
- `standard` is the default balance for normal use.
|
|
181
|
+
- `strict` turns on all experimental transforms in addition to the normal runtime protections.
|
|
182
|
+
|
|
183
|
+
## User Override Examples
|
|
184
|
+
|
|
185
|
+
### Basic user runtime file
|
|
186
|
+
|
|
187
|
+
Path: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{
|
|
191
|
+
"flags": {
|
|
192
|
+
"profile": "strict"
|
|
193
|
+
},
|
|
194
|
+
"agentSettings": {
|
|
195
|
+
"planner": {
|
|
196
|
+
"steps": 300
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Custom profile example
|
|
203
|
+
|
|
204
|
+
```json
|
|
205
|
+
{
|
|
206
|
+
"profiles": {
|
|
207
|
+
"quiet": {
|
|
208
|
+
"observation": false,
|
|
209
|
+
"telemetry": false,
|
|
210
|
+
"supervision": false,
|
|
211
|
+
"quality_gate": false
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"flags": {
|
|
215
|
+
"profile": "quiet"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Host-side MCP override in `opencode.json`
|
|
221
|
+
|
|
222
|
+
Use the host config when you want to explicitly enable or replace an MCP server definition:
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"$schema": "https://opencode.ai/config.json",
|
|
227
|
+
"plugin": ["opencode-multiagent"],
|
|
228
|
+
"mcp": {
|
|
229
|
+
"github": {
|
|
230
|
+
"type": "local",
|
|
231
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
232
|
+
"environment": {
|
|
233
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
|
|
234
|
+
},
|
|
235
|
+
"enabled": true
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Related Docs
|
|
242
|
+
|
|
243
|
+
- [Usage Guide](usage-guide.md)
|
|
244
|
+
- [Agent Reference](agents.md)
|