opencode-multiagent 0.2.0 → 0.3.0-next.1
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 +62 -0
- package/CHANGELOG.md +18 -0
- package/CONTRIBUTING.md +36 -0
- package/README.md +41 -165
- package/README.tr.md +84 -0
- package/RELEASE.md +68 -0
- package/agents/advisor.md +9 -6
- package/agents/auditor.md +8 -6
- package/agents/critic.md +19 -10
- package/agents/deep-worker.md +11 -7
- package/agents/devil.md +3 -1
- package/agents/executor.md +20 -19
- package/agents/heavy-worker.md +11 -7
- package/agents/lead.md +22 -30
- package/agents/librarian.md +6 -2
- package/agents/planner.md +18 -10
- package/agents/qa.md +9 -6
- package/agents/quick.md +12 -7
- package/agents/reviewer.md +9 -6
- package/agents/scout.md +9 -5
- package/agents/scribe.md +33 -28
- package/agents/strategist.md +10 -7
- package/agents/ui-heavy-worker.md +11 -7
- package/agents/ui-worker.md +12 -7
- package/agents/validator.md +8 -5
- package/agents/worker.md +12 -7
- package/commands/execute.md +1 -0
- package/commands/init-deep.md +1 -0
- package/commands/init.md +1 -0
- package/commands/inspect.md +1 -0
- package/commands/plan.md +1 -0
- package/commands/quality.md +1 -0
- package/commands/review.md +1 -0
- package/commands/status.md +1 -0
- package/defaults/opencode-multiagent.json +223 -0
- package/defaults/opencode-multiagent.schema.json +249 -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 +1583 -0
- package/dist/opencode-multiagent/compiler.d.ts +19 -0
- package/dist/opencode-multiagent/compiler.d.ts.map +1 -0
- package/dist/opencode-multiagent/constants.d.ts +116 -0
- package/dist/opencode-multiagent/constants.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/file-lock.d.ts +15 -0
- package/dist/opencode-multiagent/file-lock.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 +14 -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 +12 -0
- package/dist/opencode-multiagent/supervision.d.ts.map +1 -0
- package/dist/opencode-multiagent/task-manager.d.ts +48 -0
- package/dist/opencode-multiagent/task-manager.d.ts.map +1 -0
- package/dist/opencode-multiagent/telemetry.d.ts +26 -0
- package/dist/opencode-multiagent/telemetry.d.ts.map +1 -0
- package/dist/opencode-multiagent/tools.d.ts +56 -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 +260 -0
- package/docs/agents.tr.md +260 -0
- package/docs/configuration.md +255 -0
- package/docs/configuration.tr.md +255 -0
- package/docs/usage-guide.md +226 -0
- package/docs/usage-guide.tr.md +227 -0
- package/examples/opencode.with-overrides.json +1 -5
- package/package.json +23 -13
- 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/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
package/AGENTS.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
## Build, Test, and Validation
|
|
4
|
+
|
|
5
|
+
- **Setup**: `mise run setup`
|
|
6
|
+
- **Build**: `mise run build`
|
|
7
|
+
- **Dev build**: `mise run dev`
|
|
8
|
+
- **Test**: `mise run test`
|
|
9
|
+
- **Lint**: `mise run lint`
|
|
10
|
+
- **Fix lint**: `mise run lint:fix`
|
|
11
|
+
- **Format**: `mise run format`
|
|
12
|
+
- **Typecheck**: `mise run typecheck`
|
|
13
|
+
- **Validate defaults**: `mise run validate-config`
|
|
14
|
+
- **Package preview**: `mise run pack:dry-run`
|
|
15
|
+
- **Full local check**: `mise run ci:check`
|
|
16
|
+
|
|
17
|
+
## Packaging Context
|
|
18
|
+
|
|
19
|
+
- Runtime package entry is compiled to `dist/index.js`.
|
|
20
|
+
- Type declarations are emitted to `dist/**/*.d.ts`.
|
|
21
|
+
- Raw ecosystem assets are published from `agents/`, `commands/`, `defaults/`, `docs/`, `skills/`, and `examples/`.
|
|
22
|
+
- `@opencode-ai/plugin` stays external during bundling.
|
|
23
|
+
|
|
24
|
+
## Code Style Guidelines
|
|
25
|
+
|
|
26
|
+
### Imports and Modules
|
|
27
|
+
|
|
28
|
+
- Use ESM `import` / `export` syntax.
|
|
29
|
+
- Keep explicit `.ts` extensions for internal source imports.
|
|
30
|
+
- Group imports by external modules first, then local modules.
|
|
31
|
+
|
|
32
|
+
### Formatting
|
|
33
|
+
|
|
34
|
+
- Use Prettier defaults from `.prettierrc`.
|
|
35
|
+
- Prefer single quotes.
|
|
36
|
+
- Keep lines near 100 characters.
|
|
37
|
+
- Use semicolons.
|
|
38
|
+
|
|
39
|
+
### TypeScript
|
|
40
|
+
|
|
41
|
+
- Keep `strict` mode clean.
|
|
42
|
+
- Prefer early returns over nested conditionals.
|
|
43
|
+
- Avoid `any` when a real type is available.
|
|
44
|
+
- Public exports should stay intentionally typed.
|
|
45
|
+
|
|
46
|
+
### Runtime Safety
|
|
47
|
+
|
|
48
|
+
- Preserve asset-path correctness for both source execution and bundled `dist/` execution.
|
|
49
|
+
- Do not inline or remove bundled markdown / JSON directories from packaging.
|
|
50
|
+
- Keep `defaults/` schemas and runtime loaders in sync.
|
|
51
|
+
|
|
52
|
+
## Testing Notes
|
|
53
|
+
|
|
54
|
+
- Add tests under `tests/`.
|
|
55
|
+
- Prefer focused unit tests for runtime helpers and hook behavior.
|
|
56
|
+
- Keep smoke coverage for the published package entry surface.
|
|
57
|
+
|
|
58
|
+
## Project Context
|
|
59
|
+
|
|
60
|
+
- This repository is an OpenCode plugin package.
|
|
61
|
+
- The package ships compiled JavaScript plus bundled agent, command, defaults, and skill assets.
|
|
62
|
+
- Release automation is driven by Release Please and npm trusted publishing.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.3.0](https://github.com/vaur94/opencode-multiagent/compare/v0.2.1...v0.3.0) (2026-03-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* adopt bun packaging and unified settings ([281fb23](https://github.com/vaur94/opencode-multiagent/commit/281fb23eec4af1b640f80de0c7963c7419babed3))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* align release tasks with bun-first packaging ([566ceea](https://github.com/vaur94/opencode-multiagent/commit/566ceeaf5aff653d0c67368caabe123b43e8b0aa))
|
|
14
|
+
* upgrade npm in publish workflow ([54ac5ce](https://github.com/vaur94/opencode-multiagent/commit/54ac5ceff566889d021fd8fa6bb38d0ae89de19a))
|
|
15
|
+
|
|
16
|
+
## [0.2.1](https://github.com/vaur94/opencode-multiagent/releases/tag/v0.2.1)
|
|
17
|
+
|
|
18
|
+
- Baseline release before the Bun template packaging migration.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing.
|
|
4
|
+
|
|
5
|
+
## Reporting Issues
|
|
6
|
+
|
|
7
|
+
- Search existing issues before opening a new one.
|
|
8
|
+
- Include reproduction steps, expected behavior, and actual behavior.
|
|
9
|
+
- For runtime bugs, include OpenCode version, Node or Bun version, and OS details when relevant.
|
|
10
|
+
|
|
11
|
+
> **Note:** Issues inactive for 60 days may be marked stale and closed after 7 days.
|
|
12
|
+
|
|
13
|
+
## Submitting Changes
|
|
14
|
+
|
|
15
|
+
1. Fork the repository.
|
|
16
|
+
2. Create a feature branch (`git checkout -b feat/my-change`).
|
|
17
|
+
3. Make your changes.
|
|
18
|
+
4. Run the local verification suite:
|
|
19
|
+
```bash
|
|
20
|
+
mise run ci:check
|
|
21
|
+
```
|
|
22
|
+
5. Commit using [Conventional Commits](https://www.conventionalcommits.org/) format.
|
|
23
|
+
6. Push and open a Pull Request.
|
|
24
|
+
|
|
25
|
+
## Pull Request Guidelines
|
|
26
|
+
|
|
27
|
+
- PR titles must follow Conventional Commits format.
|
|
28
|
+
- Keep PRs focused on one logical change.
|
|
29
|
+
- Add or update tests when behavior changes.
|
|
30
|
+
- Ensure packaged assets and compiled output assumptions still hold.
|
|
31
|
+
|
|
32
|
+
## Code Style
|
|
33
|
+
|
|
34
|
+
- ESLint and Prettier are the source of truth.
|
|
35
|
+
- Run `mise run lint:fix` and `mise run format` before opening a PR.
|
|
36
|
+
- See `AGENTS.md` for project-specific implementation notes.
|
package/README.md
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
+
> Language: **English** | [Turkish](README.tr.md)
|
|
2
|
+
|
|
1
3
|
# opencode-multiagent
|
|
2
4
|
|
|
3
|
-
`opencode-multiagent` is
|
|
5
|
+
`opencode-multiagent` is an OpenCode plugin that installs a structured multi-agent control
|
|
6
|
+
plane through the standard plugin system.
|
|
4
7
|
|
|
5
8
|
- 4 primary agents: `lead`, `critic`, `planner`, `executor`
|
|
6
|
-
- 16 subagents for coding, review, research,
|
|
7
|
-
- plugin-managed MCP defaults and
|
|
8
|
-
-
|
|
9
|
-
|
|
9
|
+
- 16 subagents for coding, review, research, and documentation
|
|
10
|
+
- plugin-managed MCP defaults, telemetry, file locks, supervision, and a shared task board
|
|
11
|
+
- compiled npm package with bundled `agents/`, `commands/`, `defaults/`, `skills/`,
|
|
12
|
+
`examples/`, and `docs/`
|
|
10
13
|
|
|
11
|
-
##
|
|
14
|
+
## Quick Start
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
Add the plugin to `opencode.json`:
|
|
14
17
|
|
|
15
18
|
```json
|
|
16
19
|
{
|
|
@@ -19,45 +22,7 @@ For plugin consumers, the primary integration is `opencode.json`.
|
|
|
19
22
|
}
|
|
20
23
|
```
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Example configs:
|
|
25
|
-
|
|
26
|
-
- `examples/opencode.json`
|
|
27
|
-
- `examples/opencode.with-overrides.json`
|
|
28
|
-
|
|
29
|
-
## Development
|
|
30
|
-
|
|
31
|
-
For working on this plugin package itself:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
npm install
|
|
35
|
-
npm run ci:check
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Local OpenCode development can use a linked package or a local package path in `opencode.json` while iterating.
|
|
39
|
-
|
|
40
|
-
## Migration from the old setup
|
|
41
|
-
|
|
42
|
-
If your old `opencode.json` manually carried MCP servers, plugin-managed agents, or broad permission defaults, simplify it.
|
|
43
|
-
|
|
44
|
-
Recommended migration:
|
|
45
|
-
|
|
46
|
-
1. Add `"plugin": ["opencode-multiagent"]`
|
|
47
|
-
2. Remove duplicated `mcp` definitions unless you are intentionally overriding a bundled server
|
|
48
|
-
3. Remove duplicated bundled `agent` entries unless you are intentionally overriding a field like `steps`
|
|
49
|
-
4. Remove broad tool permission blocks that were only compensating for the old flat config
|
|
50
|
-
|
|
51
|
-
Minimal target:
|
|
52
|
-
|
|
53
|
-
```json
|
|
54
|
-
{
|
|
55
|
-
"$schema": "https://opencode.ai/config.json",
|
|
56
|
-
"plugin": ["opencode-multiagent"]
|
|
57
|
-
}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
Override example:
|
|
25
|
+
Optional host-side override example:
|
|
61
26
|
|
|
62
27
|
```json
|
|
63
28
|
{
|
|
@@ -71,139 +36,50 @@ Override example:
|
|
|
71
36
|
}
|
|
72
37
|
```
|
|
73
38
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Primary agents
|
|
77
|
-
|
|
78
|
-
- `lead` - single entry point, lifecycle owner, 4-tier triage
|
|
79
|
-
- `critic` - challenge mode plus inspection mode
|
|
80
|
-
- `planner` - durable plan authoring
|
|
81
|
-
- `executor` - task orchestration and validation tiers
|
|
82
|
-
|
|
83
|
-
### Subagents
|
|
84
|
-
|
|
85
|
-
- `scout`
|
|
86
|
-
- `worker`, `heavy-worker`, `deep-worker`, `ui-worker`, `ui-heavy-worker`, `quick`
|
|
87
|
-
- `reviewer`, `validator`, `qa`
|
|
88
|
-
- `advisor`, `strategist`, `auditor`, `devil`
|
|
89
|
-
- `scribe`
|
|
90
|
-
- `librarian`
|
|
91
|
-
|
|
92
|
-
### Lead triage
|
|
93
|
-
|
|
94
|
-
- `Tier 0` - trivial work -> `executor`
|
|
95
|
-
- `Tier 1` - bounded work -> `critic` then `executor`
|
|
96
|
-
- `Tier 2` - complex work -> `critic` then `planner` then `executor`
|
|
97
|
-
- `Tier 3` - investigation or repo-memory work -> `critic` inspection mode
|
|
39
|
+
More examples:
|
|
98
40
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
The plugin `config` hook:
|
|
102
|
-
|
|
103
|
-
- injects bundled markdown agents and commands
|
|
104
|
-
- applies central agent setting overrides from `defaults/agent-settings.json`
|
|
105
|
-
- injects plugin-managed MCP defaults from `defaults/mcp-defaults.json`
|
|
106
|
-
- blocks disallowed MCP tool usage using compiled per-agent permission rules
|
|
107
|
-
- disables native user-facing OpenCode agents when the plugin-managed replacements are active
|
|
108
|
-
- prefers `lead` as `default_agent`
|
|
109
|
-
|
|
110
|
-
The runtime hook layer also provides:
|
|
111
|
-
|
|
112
|
-
- telemetry JSONL logging
|
|
113
|
-
- file-lock protection for overlapping edits across sessions
|
|
114
|
-
- repeated QA handoff reminders
|
|
115
|
-
- quality reminders for verification-like follow-up
|
|
116
|
-
- supervision for child sessions
|
|
117
|
-
|
|
118
|
-
## Plugin-owned MCP behavior
|
|
119
|
-
|
|
120
|
-
Bundled MCP defaults:
|
|
121
|
-
|
|
122
|
-
- `code_index`
|
|
123
|
-
- `repo`
|
|
124
|
-
- `context7`
|
|
125
|
-
- `exa`
|
|
126
|
-
- `gh_grep`
|
|
127
|
-
- `github`
|
|
128
|
-
|
|
129
|
-
Behavior:
|
|
130
|
-
|
|
131
|
-
- if the host config does not define one of these servers, the plugin injects its bundled default
|
|
132
|
-
- if the host config already defines one of these servers, the plugin does not overwrite it
|
|
133
|
-
- agent access is shaped by bundled frontmatter permissions and re-checked in runtime hooks
|
|
134
|
-
|
|
135
|
-
That means the plugin owns the baseline MCP layer, while the host config remains the override layer.
|
|
136
|
-
|
|
137
|
-
## Runtime config
|
|
138
|
-
|
|
139
|
-
User overrides live under `~/.config/opencode/plugins/`:
|
|
140
|
-
|
|
141
|
-
- `opencode-multiagent.flags.json`
|
|
142
|
-
- `opencode-multiagent.agent-settings.json`
|
|
143
|
-
- `opencode-multiagent.profiles.json`
|
|
144
|
-
|
|
145
|
-
Bundled defaults live in `defaults/` and are merged conservatively at runtime.
|
|
146
|
-
|
|
147
|
-
## Scripts
|
|
148
|
-
|
|
149
|
-
```bash
|
|
150
|
-
npm run typecheck
|
|
151
|
-
npm run validate-config
|
|
152
|
-
npm run config-server
|
|
153
|
-
npm run telemetry-report
|
|
154
|
-
npm run ci:check
|
|
155
|
-
npm run pack:dry-run
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
## Release model
|
|
159
|
-
|
|
160
|
-
- CI is npm-based
|
|
161
|
-
- publish flow is npm trusted publishing ready
|
|
162
|
-
- plugin consumption stays `opencode.json -> plugin`
|
|
163
|
-
- the package is source-first TypeScript; OpenCode can load the exported TypeScript entry directly
|
|
164
|
-
|
|
165
|
-
## Publishing
|
|
166
|
-
|
|
167
|
-
This repository is set up for npm trusted publishing through GitHub Actions OIDC.
|
|
41
|
+
- `examples/opencode.json`
|
|
42
|
+
- `examples/opencode.with-overrides.json`
|
|
168
43
|
|
|
169
|
-
|
|
44
|
+
## Documentation
|
|
170
45
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
46
|
+
| Document | English | Turkish | Covers |
|
|
47
|
+
| ----------------------- | ------------------------------------------------ | ------------------------------------------------------ | ----------------------------------------------------------------------- |
|
|
48
|
+
| Configuration Reference | [`docs/configuration.md`](docs/configuration.md) | [`docs/configuration.tr.md`](docs/configuration.tr.md) | Flags, profiles, agent settings, MCP defaults, and override rules |
|
|
49
|
+
| Usage Guide | [`docs/usage-guide.md`](docs/usage-guide.md) | [`docs/usage-guide.tr.md`](docs/usage-guide.tr.md) | Installation, workflows, task board usage, profiles, and MCP enablement |
|
|
50
|
+
| Agent Reference | [`docs/agents.md`](docs/agents.md) | [`docs/agents.tr.md`](docs/agents.tr.md) | All primary agents and subagents, routing, models, and roles |
|
|
175
51
|
|
|
176
|
-
|
|
52
|
+
## Development
|
|
177
53
|
|
|
178
|
-
|
|
54
|
+
This repository follows the `bun-module` tooling model with `mise` tasks.
|
|
179
55
|
|
|
180
56
|
```bash
|
|
181
|
-
|
|
182
|
-
|
|
57
|
+
mise run setup
|
|
58
|
+
mise run ci:check
|
|
183
59
|
```
|
|
184
60
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
If npm requires browser or OTP confirmation, complete that locally first.
|
|
188
|
-
|
|
189
|
-
### Trusted publisher setup
|
|
190
|
-
|
|
191
|
-
After the first successful publish, create the npm trusted publisher mapping for this repository:
|
|
61
|
+
Useful commands:
|
|
192
62
|
|
|
193
63
|
```bash
|
|
194
|
-
|
|
64
|
+
mise run build
|
|
65
|
+
mise run dev
|
|
66
|
+
mise run test
|
|
67
|
+
mise run lint
|
|
68
|
+
mise run lint:fix
|
|
69
|
+
mise run format
|
|
70
|
+
mise run validate-config
|
|
71
|
+
mise run pack:dry-run
|
|
195
72
|
```
|
|
196
73
|
|
|
197
|
-
|
|
74
|
+
## Packaging
|
|
198
75
|
|
|
199
|
-
|
|
76
|
+
- runtime entry: `dist/index.js`
|
|
77
|
+
- type declarations: `dist/**/*.d.ts`
|
|
78
|
+
- bundled assets: `agents/`, `commands/`, `defaults/`, `skills/`, `examples/`, `docs/`
|
|
79
|
+
- external peer dependency: `@opencode-ai/plugin`
|
|
200
80
|
|
|
201
|
-
|
|
202
|
-
- manual `workflow_dispatch` runs verification by default and only publish when the `publish` input is enabled
|
|
203
|
-
- release tags must match `v<package.json version>` before the publish step can run
|
|
81
|
+
Release details live in `RELEASE.md`.
|
|
204
82
|
|
|
205
|
-
##
|
|
83
|
+
## License
|
|
206
84
|
|
|
207
|
-
|
|
208
|
-
- no bundled test suite remains; validation is static and structural by design
|
|
209
|
-
- this package is now aligned to the standard OpenCode plugin loading model instead of the old copied-global-file model
|
|
85
|
+
MIT
|
package/README.tr.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
> Dil: [English](README.md) | **Türkçe**
|
|
2
|
+
|
|
3
|
+
# opencode-multiagent
|
|
4
|
+
|
|
5
|
+
`opencode-multiagent`, standart plugin sistemi uzerinden yapilandirilmis bir multi-agent
|
|
6
|
+
kontrol duzlemi kuran bir OpenCode eklentisidir.
|
|
7
|
+
|
|
8
|
+
- 4 ana ajan: `lead`, `critic`, `planner`, `executor`
|
|
9
|
+
- kodlama, review, arastirma ve dokumantasyon icin 16 alt ajan
|
|
10
|
+
- plugin tarafindan yonetilen MCP varsayilanlari, telemetry, file lock, supervision ve ortak task board
|
|
11
|
+
- `agents/`, `commands/`, `defaults/`, `skills/`, `examples/` ve `docs/` ile birlikte yayinlanan derlenmis npm paketi
|
|
12
|
+
|
|
13
|
+
## Hizli Baslangic
|
|
14
|
+
|
|
15
|
+
`opencode.json` dosyasina plugin'i ekleyin:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"$schema": "https://opencode.ai/config.json",
|
|
20
|
+
"plugin": ["opencode-multiagent"]
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Host tarafinda override ornegi:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"$schema": "https://opencode.ai/config.json",
|
|
29
|
+
"plugin": ["opencode-multiagent"],
|
|
30
|
+
"agent": {
|
|
31
|
+
"lead": {
|
|
32
|
+
"steps": 650
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Daha fazla ornek:
|
|
39
|
+
|
|
40
|
+
- `examples/opencode.json`
|
|
41
|
+
- `examples/opencode.with-overrides.json`
|
|
42
|
+
|
|
43
|
+
## Dokumantasyon
|
|
44
|
+
|
|
45
|
+
| Dokuman | English | Turkish | Icerik |
|
|
46
|
+
| ----------------------- | ------------------------------------------------ | ------------------------------------------------------ | ----------------------------------------------------------------------------- |
|
|
47
|
+
| Konfigurasyon Referansi | [`docs/configuration.md`](docs/configuration.md) | [`docs/configuration.tr.md`](docs/configuration.tr.md) | Flag'ler, profiller, agent ayarlari, MCP varsayilanlari ve override kurallari |
|
|
48
|
+
| Kullanim Kilavuzu | [`docs/usage-guide.md`](docs/usage-guide.md) | [`docs/usage-guide.tr.md`](docs/usage-guide.tr.md) | Kurulum, is akisleri, task board kullanimi, profiller ve MCP etkinlestirme |
|
|
49
|
+
| Ajan Referansi | [`docs/agents.md`](docs/agents.md) | [`docs/agents.tr.md`](docs/agents.tr.md) | Tum ana ve alt ajanlar, routing mantigi, modeller ve gorevleri |
|
|
50
|
+
|
|
51
|
+
## Gelistirme
|
|
52
|
+
|
|
53
|
+
Bu depo, `bun-module` arac seti modelini `mise` task'lari ile kullanir.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
mise run setup
|
|
57
|
+
mise run ci:check
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Sik kullanilan komutlar:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
mise run build
|
|
64
|
+
mise run dev
|
|
65
|
+
mise run test
|
|
66
|
+
mise run lint
|
|
67
|
+
mise run lint:fix
|
|
68
|
+
mise run format
|
|
69
|
+
mise run validate-config
|
|
70
|
+
mise run pack:dry-run
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Paketleme
|
|
74
|
+
|
|
75
|
+
- runtime entry: `dist/index.js`
|
|
76
|
+
- type declaration dosyalari: `dist/**/*.d.ts`
|
|
77
|
+
- paketlenen varliklar: `agents/`, `commands/`, `defaults/`, `skills/`, `examples/`, `docs/`
|
|
78
|
+
- external peer dependency: `@opencode-ai/plugin`
|
|
79
|
+
|
|
80
|
+
Release detaylari `RELEASE.md` icindedir.
|
|
81
|
+
|
|
82
|
+
## Lisans
|
|
83
|
+
|
|
84
|
+
MIT
|
package/RELEASE.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Release Process
|
|
2
|
+
|
|
3
|
+
This project uses Release Please and npm Trusted Publishing for automated releases.
|
|
4
|
+
|
|
5
|
+
It follows two release channels:
|
|
6
|
+
|
|
7
|
+
- **Pre-release**: default branch pushes can publish `x.x.x-next.N` builds to the `next` npm dist-tag.
|
|
8
|
+
- **Stable releases**: Release Please merges create stable releases published to the `latest` npm dist-tag.
|
|
9
|
+
|
|
10
|
+
You can also trigger a manual publish workflow with the `latest` or `next` tag.
|
|
11
|
+
|
|
12
|
+
## First Release
|
|
13
|
+
|
|
14
|
+
Before automated releases work for a brand-new npm package, you must perform the first release manually.
|
|
15
|
+
|
|
16
|
+
### Checklist
|
|
17
|
+
|
|
18
|
+
1. Confirm `package.json` metadata is correct.
|
|
19
|
+
2. Run `npm login`.
|
|
20
|
+
3. Run `mise run build`.
|
|
21
|
+
4. Run `mise run publish --otp <your-2fa-code>`.
|
|
22
|
+
5. In npm package settings, add a trusted publisher for GitHub Actions:
|
|
23
|
+
- **Organization or user**: `vaur94`
|
|
24
|
+
- **Repository**: `opencode-multiagent`
|
|
25
|
+
- **Workflow filename**: `publish.yml`
|
|
26
|
+
|
|
27
|
+
## Conventional Commits
|
|
28
|
+
|
|
29
|
+
We follow [Conventional Commits](https://www.conventionalcommits.org/):
|
|
30
|
+
|
|
31
|
+
- `fix:` patches
|
|
32
|
+
- `feat:` minor features
|
|
33
|
+
- `feat!:` or `fix!:` breaking changes
|
|
34
|
+
|
|
35
|
+
While the package is still `0.x`, breaking changes bump the minor version.
|
|
36
|
+
|
|
37
|
+
## Automated Release Flow
|
|
38
|
+
|
|
39
|
+
1. Push conventional commits to `master` or `main`.
|
|
40
|
+
2. Release Please analyzes commits and updates the release PR.
|
|
41
|
+
3. Non-release pushes on the default branch publish a `next` build from that exact commit SHA.
|
|
42
|
+
4. When the release PR is merged, GitHub creates the stable release and publishes `latest` from that exact release commit.
|
|
43
|
+
|
|
44
|
+
## Manual Publish Flow
|
|
45
|
+
|
|
46
|
+
Use GitHub Actions `publish.yml` with the desired npm tag when you need a manual publish.
|
|
47
|
+
|
|
48
|
+
## Do Not
|
|
49
|
+
|
|
50
|
+
- Do not edit Release Please PRs by hand.
|
|
51
|
+
- Do not manually bump versions outside Release Please unless you are intentionally doing a one-off prerelease publish.
|
|
52
|
+
- Do not create long-lived npm tokens for CI; use trusted publishing.
|
|
53
|
+
|
|
54
|
+
## Trusted Publishing
|
|
55
|
+
|
|
56
|
+
This repository uses npm Trusted Publishing with GitHub Actions OIDC:
|
|
57
|
+
|
|
58
|
+
- no long-lived npm tokens are required
|
|
59
|
+
- each publish uses short-lived workflow-bound credentials
|
|
60
|
+
- provenance attestations are generated automatically in CI
|
|
61
|
+
|
|
62
|
+
## Helpful Commands
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
mise run ci:check
|
|
66
|
+
mise run pack:dry-run
|
|
67
|
+
mise run publish --dry-run --tag next
|
|
68
|
+
```
|
package/agents/advisor.md
CHANGED
|
@@ -5,12 +5,12 @@ model: openai/gpt-5.4
|
|
|
5
5
|
temperature: 0
|
|
6
6
|
steps: 20
|
|
7
7
|
permission:
|
|
8
|
-
|
|
8
|
+
'*': deny
|
|
9
9
|
read:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
'*': allow
|
|
11
|
+
'*.env': deny
|
|
12
|
+
'*.env.*': deny
|
|
13
|
+
'*.env.example': allow
|
|
14
14
|
glob: allow
|
|
15
15
|
grep: allow
|
|
16
16
|
list: allow
|
|
@@ -26,7 +26,7 @@ permission:
|
|
|
26
26
|
repo_git_diff: allow
|
|
27
27
|
task: deny
|
|
28
28
|
skill:
|
|
29
|
-
|
|
29
|
+
'*': deny
|
|
30
30
|
task-decomposition: allow
|
|
31
31
|
root-cause-analysis: allow
|
|
32
32
|
design-first: allow
|
|
@@ -41,15 +41,18 @@ permission:
|
|
|
41
41
|
You are `advisor`.
|
|
42
42
|
|
|
43
43
|
Role
|
|
44
|
+
|
|
44
45
|
- Help workers when they are stuck, low-confidence, or choosing between implementation paths.
|
|
45
46
|
- Inspect local code and return direction without editing.
|
|
46
47
|
- Prefer the narrowest answer that unblocks the worker's assigned task.
|
|
47
48
|
|
|
48
49
|
Caller contract
|
|
50
|
+
|
|
49
51
|
- Provide the task, the blocker, and the most relevant files or symbols.
|
|
50
52
|
- Ask one focused question.
|
|
51
53
|
|
|
52
54
|
Output
|
|
55
|
+
|
|
53
56
|
- `## Bottom Line`
|
|
54
57
|
- `## Diagnosis`
|
|
55
58
|
- `## Recommended Next Edits`
|
package/agents/auditor.md
CHANGED
|
@@ -5,12 +5,12 @@ model: openai/gpt-5.4
|
|
|
5
5
|
temperature: 0
|
|
6
6
|
steps: 24
|
|
7
7
|
permission:
|
|
8
|
-
|
|
8
|
+
'*': deny
|
|
9
9
|
read:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
'*': allow
|
|
11
|
+
'*.env': deny
|
|
12
|
+
'*.env.*': deny
|
|
13
|
+
'*.env.example': allow
|
|
14
14
|
glob: allow
|
|
15
15
|
grep: allow
|
|
16
16
|
list: allow
|
|
@@ -23,7 +23,7 @@ permission:
|
|
|
23
23
|
codesearch: deny
|
|
24
24
|
external_directory: allow
|
|
25
25
|
skill:
|
|
26
|
-
|
|
26
|
+
'*': deny
|
|
27
27
|
drift-analysis: allow
|
|
28
28
|
verification-gates: allow
|
|
29
29
|
evaluation: allow
|
|
@@ -33,10 +33,12 @@ permission:
|
|
|
33
33
|
You are `auditor`.
|
|
34
34
|
|
|
35
35
|
Role
|
|
36
|
+
|
|
36
37
|
- Attack plans for missing steps, weak criteria, hidden dependencies, unrealistic assumptions, and verification gaps.
|
|
37
38
|
- You are adversarial, compact, and evidence-based.
|
|
38
39
|
|
|
39
40
|
Output
|
|
41
|
+
|
|
40
42
|
- `## Summary`
|
|
41
43
|
- `## Critical Gaps`
|
|
42
44
|
- `## Medium Risks`
|