kord-aios 3.3.1 → 3.3.3
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/README.md +334 -308
- package/dist/agents/analyst.d.ts +1 -13
- package/dist/agents/builder/index.d.ts +2 -0
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/kord.d.ts +2 -1
- package/dist/agents/plan-analyzer.d.ts +1 -7
- package/dist/agents/plan-reviewer.d.ts +1 -1
- package/dist/agents/qa.d.ts +1 -1
- package/dist/agents/utils.d.ts +2 -1
- package/dist/cli/extract.d.ts +11 -0
- package/dist/cli/index.js +253 -32
- package/dist/config/schema.d.ts +2 -2
- package/dist/features/builtin-agents/prompts.d.ts +32 -0
- package/dist/features/opencode-agent-loader/index.d.ts +2 -0
- package/dist/features/opencode-agent-loader/loader.d.ts +18 -0
- package/dist/features/opencode-agent-loader/types.d.ts +49 -0
- package/dist/features/squad/chief-template.d.ts +9 -0
- package/dist/features/squad/factory.d.ts +13 -2
- package/dist/features/squad/schema.d.ts +10 -0
- package/dist/index.js +2039 -1150
- package/dist/shared/agent-capabilities.d.ts +81 -0
- package/dist/shared/agent-frontmatter-capabilities-store.d.ts +9 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/squad-fallback-store.d.ts +18 -0
- package/dist/test-utils/tsls_guard.d.ts +2 -0
- package/package.json +8 -8
- /package/dist/agents/{plan → planner}/behavioral-summary.d.ts +0 -0
- /package/dist/agents/{plan → planner}/high-accuracy-mode.d.ts +0 -0
- /package/dist/agents/{plan → planner}/identity-constraints.d.ts +0 -0
- /package/dist/agents/{plan → planner}/index.d.ts +0 -0
- /package/dist/agents/{plan → planner}/interview-mode.d.ts +0 -0
- /package/dist/agents/{plan → planner}/plan-generation.d.ts +0 -0
- /package/dist/agents/{plan → planner}/plan-template.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,308 +1,334 @@
|
|
|
1
|
-
> [!TIP]
|
|
2
|
-
>
|
|
3
|
-
> **Kord AIOS** — multi-model agent orchestration meets story-driven development methodology.
|
|
4
|
-
> Built on [Oh-My-Opencode](https://github.com/code-yeongyu/oh-my-opencode) + [Synkra AIOS](https://github.com/SynkraAI/aios-core).
|
|
5
|
-
> 20+ specialized agents, squads, 149 skills, background tasks, LSP/AST tooling.
|
|
6
|
-
> npm package: `kord-aios`.
|
|
7
|
-
>
|
|
8
|
-
> ✅ Official repository: https://github.com/GDSDN/kord-aios
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- [
|
|
21
|
-
- [
|
|
22
|
-
- [
|
|
23
|
-
- [
|
|
24
|
-
|
|
25
|
-
- [
|
|
26
|
-
- [
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
29
|
-
- [
|
|
30
|
-
- [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Kord AIOS
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### For
|
|
57
|
-
|
|
58
|
-
Read
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
| **
|
|
77
|
-
|
|
78
|
-
**
|
|
79
|
-
|
|
80
|
-
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
|
85
|
-
|
|
86
|
-
| **
|
|
87
|
-
| **
|
|
88
|
-
| **
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
|
97
|
-
|
|
98
|
-
| **
|
|
99
|
-
| **
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
|
188
|
-
|
|
189
|
-
|
|
|
190
|
-
|
|
|
191
|
-
|
|
|
192
|
-
|
|
|
193
|
-
|
|
|
194
|
-
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
|
206
|
-
|
|
207
|
-
|
|
|
208
|
-
|
|
|
209
|
-
|
|
210
|
-
**
|
|
211
|
-
|
|
212
|
-
**
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
|
221
|
-
|
|
222
|
-
|
|
|
223
|
-
|
|
|
224
|
-
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
|
239
|
-
|
|
240
|
-
| **
|
|
241
|
-
| **
|
|
242
|
-
| **
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
-
|
|
308
|
-
|
|
1
|
+
> [!TIP]
|
|
2
|
+
>
|
|
3
|
+
> **Kord AIOS** — multi-model agent orchestration meets story-driven development methodology.
|
|
4
|
+
> Built on [Oh-My-Opencode](https://github.com/code-yeongyu/oh-my-opencode) + [Synkra AIOS](https://github.com/SynkraAI/aios-core).
|
|
5
|
+
> 20+ specialized agents, squads, 149 skills, background tasks, LSP/AST tooling.
|
|
6
|
+
> npm package: `kord-aios`.
|
|
7
|
+
>
|
|
8
|
+
> ✅ Official repository: https://github.com/GDSDN/kord-aios
|
|
9
|
+
|
|
10
|
+
> [!NOTE]
|
|
11
|
+
>
|
|
12
|
+
> **Versioning**: Kord AIOS may reset public semver to `1.x` even if earlier npm versions exist from upstream history. Always install via the npm `latest` tag unless you intentionally pin an older version.
|
|
13
|
+
|
|
14
|
+
## Contents
|
|
15
|
+
|
|
16
|
+
- [What is Kord AIOS?](#what-is-kord-aios)
|
|
17
|
+
- [Quick Start](#quick-start)
|
|
18
|
+
- [Installation](#installation)
|
|
19
|
+
- [Architecture](#architecture)
|
|
20
|
+
- [Agents](#agents-20)
|
|
21
|
+
- [Squads](#squads)
|
|
22
|
+
- [Skills](#skills-149)
|
|
23
|
+
- [Background Agents](#background-agents)
|
|
24
|
+
- [Features](#features)
|
|
25
|
+
- [Commands](#commands)
|
|
26
|
+
- [Hooks](#hooks-40)
|
|
27
|
+
- [Tools](#tools)
|
|
28
|
+
- [MCPs](#mcps-built-in)
|
|
29
|
+
- [Context Injection](#context-injection)
|
|
30
|
+
- [Claude Code Compatibility](#claude-code-compatibility)
|
|
31
|
+
- [Configuration](#configuration)
|
|
32
|
+
- [Uninstallation](#uninstallation)
|
|
33
|
+
- [Origin Story](#origin-story)
|
|
34
|
+
- [Contributing](#contributing)
|
|
35
|
+
|
|
36
|
+
## What is Kord AIOS?
|
|
37
|
+
|
|
38
|
+
**Kord AIOS** is a version of [Synkra AIOS](https://github.com/SynkraAI/aios-core) built on top of [Oh-My-Opencode](https://github.com/code-yeongyu/oh-my-opencode) — combining the best of both worlds: Synkra's proven agent methodology with Oh-My-Opencode's powerful plugin runtime.
|
|
39
|
+
|
|
40
|
+
Kord transforms your terminal into a full AI development team. Instead of one agent doing everything, Kord orchestrates 20+ specialized agents — each with the right model for the right job — working in parallel on your codebase.
|
|
41
|
+
|
|
42
|
+
Kord AIOS combines:
|
|
43
|
+
- **Engine**: OpenCode-native plugin runtime with background agents, parallel execution, LSP/AST tooling, Claude Code compatibility.
|
|
44
|
+
- **Methodology**: Story-driven execution, squads, quality gates, and battle-tested development skills.
|
|
45
|
+
|
|
46
|
+
> **Naming**: The project is **Kord AIOS**. The npm package is `kord-aios`. The config file is `kord-aios.json`.
|
|
47
|
+
|
|
48
|
+
## Quick Start
|
|
49
|
+
|
|
50
|
+
Include `ultrawork` (or just `ulw`) in your prompt. That's it.
|
|
51
|
+
|
|
52
|
+
Parallel agents, background tasks, deep exploration, and relentless execution activate automatically. The agent figures out the rest.
|
|
53
|
+
|
|
54
|
+
## Installation
|
|
55
|
+
|
|
56
|
+
### For Humans
|
|
57
|
+
|
|
58
|
+
Read the [Installation Guide](docs/guide/installation.md) or paste it to your LLM agent and let it handle the setup.
|
|
59
|
+
|
|
60
|
+
### For LLM Agents
|
|
61
|
+
|
|
62
|
+
Read and follow [docs/guide/installation.md](docs/guide/installation.md).
|
|
63
|
+
|
|
64
|
+
> **Note**: Use `bunx kord-aios init` for setting up new projects if you have already installed Kord AIOS globally.
|
|
65
|
+
|
|
66
|
+
## Architecture
|
|
67
|
+
|
|
68
|
+
### Agents (20+)
|
|
69
|
+
|
|
70
|
+
Kord AIOS ships a full development team. All agents are customizable — override models, temperatures, prompts, and permissions in `kord-aios.json`.
|
|
71
|
+
|
|
72
|
+
**Orchestration Layer**
|
|
73
|
+
|
|
74
|
+
| Agent | Model | Role |
|
|
75
|
+
|-------|-------|------|
|
|
76
|
+
| **Kord** | Claude Opus 4.6 | Master orchestrator — delegates, plans, reviews |
|
|
77
|
+
| **Dev** | GPT 5.3 Codex | Autonomous deep worker — goal-oriented, explores before acting |
|
|
78
|
+
| **Plan** | Claude Opus 4.6 | Strategic planner with interview and high-accuracy modes |
|
|
79
|
+
| **Plan Reviewer** | GPT 5.2 | Validates plan feasibility |
|
|
80
|
+
| **Plan Analyzer** | Claude Opus 4.6 | Pre-planning analysis |
|
|
81
|
+
|
|
82
|
+
**Specialist Layer**
|
|
83
|
+
|
|
84
|
+
| Agent | Model | Role |
|
|
85
|
+
|-------|-------|------|
|
|
86
|
+
| **Architect** | GPT 5.2 | System design, debugging, strategic consultation |
|
|
87
|
+
| **Librarian** | GLM 4.7 | Documentation search, open-source code exploration |
|
|
88
|
+
| **Explore** | Grok Code Fast 1 | Blazing fast codebase grep |
|
|
89
|
+
| **UX Design Expert** | Gemini 3 Pro | Frontend development and design |
|
|
90
|
+
| **Vision** | Gemini 3 Flash | Image/screenshot/PDF analysis |
|
|
91
|
+
| **Data Engineer** | — | Data pipeline methodology |
|
|
92
|
+
| **DevOps** | — | Infrastructure and CI/CD |
|
|
93
|
+
|
|
94
|
+
**Methodology Layer**
|
|
95
|
+
|
|
96
|
+
| Agent | Role |
|
|
97
|
+
|-------|------|
|
|
98
|
+
| **PM** | Project Manager — epic structuring, wave planning |
|
|
99
|
+
| **PO** | Product Owner — quality gate before dev execution |
|
|
100
|
+
| **QA** | Quality assurance and test strategy |
|
|
101
|
+
| **SM** | Scrum Master — sprint coordination, stateless Dev awareness |
|
|
102
|
+
| **Analyst** | Strategic analysis and research |
|
|
103
|
+
| **Squad Creator** | Creates new SQUAD.yaml manifests |
|
|
104
|
+
|
|
105
|
+
### Squads
|
|
106
|
+
|
|
107
|
+
Define domain-specific agent teams via `SQUAD.yaml` manifests. Each squad declares its agents, categories for task routing, and skill dependencies. The built-in default is `code` (`src/features/builtin-squads/code/SQUAD.yaml`).
|
|
108
|
+
|
|
109
|
+
**Chief + Worker Model:** Squads support L2 (chief) and L1 (worker) agent hierarchy. Chiefs have `is_chief: true` with auto-generated Squad Awareness and coordination protocol. Workers are standard subagents.
|
|
110
|
+
|
|
111
|
+
**Naming Convention:** Squad agents are registered with prefixed names (`squad-{squadName}-{yamlKey}`) to prevent collisions across squads.
|
|
112
|
+
|
|
113
|
+
**Agent Fields:** `fallback` (per-agent fallback chain) and `write_paths` (extra write authority paths) are supported in `SQUAD.yaml`. `write_paths` is validated (relative only, no `..`, no root `**`, no `docs/kord/` prefix).
|
|
114
|
+
|
|
115
|
+
**Chief Permissions:** Chiefs auto-enable `permission.task = "allow"` unless `tools` explicitly overrides `task`.
|
|
116
|
+
|
|
117
|
+
```yaml
|
|
118
|
+
# .opencode/squads/my-squad/SQUAD.yaml
|
|
119
|
+
name: my-squad
|
|
120
|
+
description: My custom agent team
|
|
121
|
+
|
|
122
|
+
agents:
|
|
123
|
+
chief:
|
|
124
|
+
description: "Squad leader"
|
|
125
|
+
is_chief: true
|
|
126
|
+
mode: all
|
|
127
|
+
specialist:
|
|
128
|
+
description: "Domain expert"
|
|
129
|
+
model: anthropic/claude-sonnet-4-5
|
|
130
|
+
prompt: "You are a domain specialist..."
|
|
131
|
+
|
|
132
|
+
categories:
|
|
133
|
+
my-domain:
|
|
134
|
+
description: "Domain-specific tasks"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Skills (149)
|
|
138
|
+
|
|
139
|
+
Battle-tested development methodologies encoded as `SKILL.md` files with YAML frontmatter. Each skill is a step-by-step instruction set for a specific development domain — from Git workflows to API design to testing strategies.
|
|
140
|
+
|
|
141
|
+
Skills are loaded from:
|
|
142
|
+
- `src/features/builtin-skills/skills/` — shipped with the plugin
|
|
143
|
+
- `.opencode/skills/` — project-specific
|
|
144
|
+
- `~/.config/opencode/skills/` — user-global
|
|
145
|
+
- `.claude/skills/` — Claude Code compatible
|
|
146
|
+
|
|
147
|
+
### Background Agents
|
|
148
|
+
|
|
149
|
+
Run multiple agents in parallel with per-provider and per-model concurrency management. Kord fires off exploration tasks to cheaper, faster models while the main agent focuses on implementation.
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"background_task": {
|
|
154
|
+
"defaultConcurrency": 5,
|
|
155
|
+
"providerConcurrency": { "anthropic": 3, "openai": 5 },
|
|
156
|
+
"modelConcurrency": { "anthropic/claude-opus-4-6": 2 }
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Features
|
|
162
|
+
|
|
163
|
+
Full documentation: [docs/guide/features.md](docs/guide/features.md) | Configuration: [docs/guide/configurations.md](docs/guide/configurations.md)
|
|
164
|
+
|
|
165
|
+
**Summary:**
|
|
166
|
+
- **20+ Specialized Agents** — right model for the right task, full dev team
|
|
167
|
+
- **Squad System** — SQUAD.yaml v2 manifests for domain-specific agent teams
|
|
168
|
+
- **149 Skills** — battle-tested development workflows (5 hardcoded + 144 methodology)
|
|
169
|
+
- **Background Agents** — parallel async execution with concurrency limits
|
|
170
|
+
- **LSP & AST Tools** — structural refactoring, rename, diagnostics, AST-aware search
|
|
171
|
+
- **40+ Lifecycle Hooks** — context injection, productivity automation, quality gates, recovery
|
|
172
|
+
- **12 Slash Commands** — init-deep, ralph-loop, ulw-loop, refactor, start-work, checkpoint, status, squad, and more
|
|
173
|
+
- **Built-in MCPs** — web search (Exa), documentation (Context7), GitHub code search (Grep.app)
|
|
174
|
+
- **Context Injection** — auto-inject AGENTS.md, README, conditional rules per directory
|
|
175
|
+
- **Claude Code Compatibility** — full compat layer for commands, skills, agents, MCPs, hooks
|
|
176
|
+
- **Todo Enforcer** — forces completion, no half-finished work
|
|
177
|
+
- **Comment Checker** — prevents AI comment bloat, keeps code human-like
|
|
178
|
+
- **Tmux Integration** — visual multi-agent dashboard, watch agents work in parallel
|
|
179
|
+
- **Story-Driven Pipeline** — wave/story execution with persistent state
|
|
180
|
+
- **CLI Installer** — interactive setup with project maturity detection and doctor checks
|
|
181
|
+
|
|
182
|
+
### Commands
|
|
183
|
+
|
|
184
|
+
| Command | Description |
|
|
185
|
+
|---------|-------------|
|
|
186
|
+
| `/init-deep` | Generate hierarchical AGENTS.md files throughout your project |
|
|
187
|
+
| `/ralph-loop` | Self-referential dev loop — runs until task is 100% complete |
|
|
188
|
+
| `/ulw-loop` | Ultrawork loop — ralph-loop with max parallel intensity |
|
|
189
|
+
| `/cancel-ralph` | Cancel active loop |
|
|
190
|
+
| `/refactor` | Intelligent refactoring with LSP, AST-grep, TDD verification |
|
|
191
|
+
| `/start-work` | Start Build agent execution from a Plan-generated plan |
|
|
192
|
+
| `/stop-continuation` | Stop continuation mechanisms for the current session |
|
|
193
|
+
| `/checkpoint` | Trigger a PO checkpoint decision on current execution |
|
|
194
|
+
| `/status` | Show current plan progress, wave, and pending items |
|
|
195
|
+
| `/squad` | Switch active squad context |
|
|
196
|
+
| `/squad-create` | Create a specialized squad for a domain |
|
|
197
|
+
| `/modelconfig` | View and configure model routing per agent |
|
|
198
|
+
|
|
199
|
+
Custom commands: `.opencode/commands/*.md` or `.claude/commands/*.md`
|
|
200
|
+
|
|
201
|
+
### Hooks (40+)
|
|
202
|
+
|
|
203
|
+
Hooks intercept agent lifecycle events: PreToolUse, PostToolUse, UserPromptSubmit, Stop.
|
|
204
|
+
|
|
205
|
+
| Category | Hooks | Purpose |
|
|
206
|
+
|----------|-------|--------|
|
|
207
|
+
| **Context** | directory-agents-injector, readme-injector, rules-injector, compaction-context-injector | Auto-inject AGENTS.md, README, rules when reading files |
|
|
208
|
+
| **Productivity** | keyword-detector, think-mode, ralph-loop, auto-slash-command | Activate modes (`ultrawork`/`ulw`), think deeply, loop execution |
|
|
209
|
+
| **Quality** | comment-checker, thinking-block-validator, edit-error-recovery | Prevent comment bloat, validate blocks, recover from failures |
|
|
210
|
+
| **Recovery** | session-recovery, context-window-limit-recovery, background-compaction | Handle errors, context limits, auto-compact |
|
|
211
|
+
| **Truncation** | grep-output-truncator, tool-output-truncator | Dynamically truncate output to keep context lean |
|
|
212
|
+
| **Notifications** | auto-update-checker, background-notification, session-notification | Version checks, task completion, OS notifications |
|
|
213
|
+
|
|
214
|
+
Disable specific hooks: `"disabled_hooks": ["comment-checker"]` in config.
|
|
215
|
+
|
|
216
|
+
### Tools
|
|
217
|
+
|
|
218
|
+
**LSP (IDE Features for Agents)**
|
|
219
|
+
|
|
220
|
+
| Tool | Description |
|
|
221
|
+
|------|-------------|
|
|
222
|
+
| `lsp_diagnostics` | Errors/warnings before build |
|
|
223
|
+
| `lsp_rename` | Rename symbol across workspace |
|
|
224
|
+
| `lsp_goto_definition` | Jump to definition |
|
|
225
|
+
| `lsp_find_references` | Find all usages |
|
|
226
|
+
| `lsp_symbols` | File outline or workspace search |
|
|
227
|
+
|
|
228
|
+
**AST-Grep** — `ast_grep_search` and `ast_grep_replace` for pattern search/replace across 25 languages.
|
|
229
|
+
|
|
230
|
+
**Delegation** — `task` (category-based routing: visual, business-logic, custom), `call_kord_agent` (direct spawn with `run_in_background`), `background_output` / `background_cancel`.
|
|
231
|
+
|
|
232
|
+
**Session** — `session_list`, `session_read`, `session_search`, `session_info` for browsing agent session history.
|
|
233
|
+
|
|
234
|
+
**Interactive Terminal** — `interactive_bash` for tmux-based TUI apps (vim, htop, pudb).
|
|
235
|
+
|
|
236
|
+
### MCPs (Built-in)
|
|
237
|
+
|
|
238
|
+
| MCP | Purpose |
|
|
239
|
+
|-----|--------|
|
|
240
|
+
| **websearch** | Real-time web search (Exa AI) |
|
|
241
|
+
| **context7** | Official documentation lookup for any library/framework |
|
|
242
|
+
| **grep_app** | Code search across public GitHub repos |
|
|
243
|
+
|
|
244
|
+
Skills can embed their own MCP servers via YAML frontmatter, including OAuth-protected remote MCPs with full RFC compliance.
|
|
245
|
+
|
|
246
|
+
### Context Injection
|
|
247
|
+
|
|
248
|
+
- **AGENTS.md** — auto-injected when reading files (walks file directory → project root, collecting all AGENTS.md)
|
|
249
|
+
- **README.md** — directory context injection
|
|
250
|
+
- **Conditional rules** — `.claude/rules/*.md` with glob patterns and `alwaysApply`
|
|
251
|
+
|
|
252
|
+
### Claude Code Compatibility
|
|
253
|
+
|
|
254
|
+
Full compatibility layer for Claude Code configurations:
|
|
255
|
+
|
|
256
|
+
| Type | Locations |
|
|
257
|
+
|------|----------|
|
|
258
|
+
| **Commands** | `~/.claude/commands/`, `.claude/commands/` |
|
|
259
|
+
| **Skills** | `~/.claude/skills/*/SKILL.md`, `.claude/skills/*/SKILL.md` |
|
|
260
|
+
| **Agents** | `~/.claude/agents/*.md`, `.claude/agents/*.md` |
|
|
261
|
+
| **MCPs** | `~/.claude/.mcp.json`, `.mcp.json` (with `${VAR}` expansion) |
|
|
262
|
+
| **Hooks** | `settings.json` hook execution |
|
|
263
|
+
|
|
264
|
+
Toggle features: `"claude_code": { "mcp": false, "commands": false, ... }` in config.
|
|
265
|
+
|
|
266
|
+
## Configuration
|
|
267
|
+
|
|
268
|
+
Config file: `.opencode/kord-aios.json` (project) or `~/.config/opencode/kord-aios.json` (user).
|
|
269
|
+
|
|
270
|
+
JSONC supported — comments and trailing commas work.
|
|
271
|
+
|
|
272
|
+
**What you can configure:**
|
|
273
|
+
- Agent models, temperatures, prompts, and tool permissions
|
|
274
|
+
- Background task concurrency per provider/model
|
|
275
|
+
- Disabled hooks, skills, agents
|
|
276
|
+
- Category-based task delegation routing
|
|
277
|
+
- Built-in MCPs (websearch, context7, grep_app)
|
|
278
|
+
- LSP and experimental features
|
|
279
|
+
|
|
280
|
+
### OpenCode Agent Overrides
|
|
281
|
+
|
|
282
|
+
You can override methodology agents from disk with `.opencode/agents/*.md` and `~/.config/opencode/agents/*.md`.
|
|
283
|
+
|
|
284
|
+
- Agent keys are derived from filename (`course-creator.md` -> `course-creator`).
|
|
285
|
+
- Frontmatter `write_paths` is enforced by `agent-authority` to gate file writes.
|
|
286
|
+
- T0 agents (`kord`, `dev`, `builder`, `planner`) are protected and cannot be overridden from OpenCode agent files.
|
|
287
|
+
|
|
288
|
+
See the full [Configuration Documentation](docs/configurations.md) for details.
|
|
289
|
+
|
|
290
|
+
## Uninstallation
|
|
291
|
+
|
|
292
|
+
To remove Kord AIOS:
|
|
293
|
+
|
|
294
|
+
1. **Remove the plugin from your OpenCode config**
|
|
295
|
+
|
|
296
|
+
Edit `~/.config/opencode/opencode.json` (or `opencode.jsonc`) and remove `"kord-aios"` from the `plugin` array:
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
jq '.plugin = [.plugin[] | select(. != "kord-aios")]' \
|
|
300
|
+
~/.config/opencode/opencode.json > /tmp/oc.json && \
|
|
301
|
+
mv /tmp/oc.json ~/.config/opencode/opencode.json
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
2. **Remove configuration files (optional)**
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
rm -f ~/.config/opencode/kord-aios.json
|
|
308
|
+
rm -f .opencode/kord-aios.json
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
3. **Verify removal**
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
opencode --version
|
|
315
|
+
# Kord AIOS should no longer be loaded
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
## Origin Story
|
|
319
|
+
|
|
320
|
+
I wanted a disciplined way to run AI development workflows without giving up control of models and runtime behavior.
|
|
321
|
+
|
|
322
|
+
OpenCode provided the open, multi-model engine. Kord AIOS adds the orchestration and methodology layer on top: squads, story-driven execution, quality gates, and specialized agents.
|
|
323
|
+
|
|
324
|
+
**Kord AIOS is the result:** structured execution with full control over models, prompts, tools, skills, and squads.
|
|
325
|
+
|
|
326
|
+
## Contributing
|
|
327
|
+
|
|
328
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, code conventions, and PR guidelines.
|
|
329
|
+
|
|
330
|
+
## Warnings
|
|
331
|
+
|
|
332
|
+
- Requires OpenCode >= 1.0.150.
|
|
333
|
+
- If you're on [1.0.132](https://github.com/sst/opencode/releases/tag/v1.0.132) or older, an OpenCode bug may break config.
|
|
334
|
+
- [The fix](https://github.com/sst/opencode/pull/5040) was merged after 1.0.132 — use a newer version.
|