opencastle 1.2.0 → 1.3.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/README.md +90 -125
- package/bin/cli.mjs +12 -1
- package/dist/cli/adapters/antigravity.d.ts +0 -1
- package/dist/cli/adapters/antigravity.d.ts.map +1 -1
- package/dist/cli/adapters/antigravity.js +2 -1
- package/dist/cli/adapters/antigravity.js.map +1 -1
- package/dist/cli/adapters/claude-code.d.ts +5 -4
- package/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +7 -4
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/adapters/cursor.js +8 -1
- package/dist/cli/adapters/cursor.js.map +1 -1
- package/dist/cli/adapters/opencode.d.ts +12 -5
- package/dist/cli/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/adapters/opencode.js +17 -5
- package/dist/cli/adapters/opencode.js.map +1 -1
- package/dist/cli/adapters/rules-dir-base.d.ts +12 -1
- package/dist/cli/adapters/rules-dir-base.d.ts.map +1 -1
- package/dist/cli/adapters/rules-dir-base.js +43 -57
- package/dist/cli/adapters/rules-dir-base.js.map +1 -1
- package/dist/cli/adapters/rules-dir-base.test.js +27 -18
- package/dist/cli/adapters/rules-dir-base.test.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +29 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +49 -16
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/adapters/vscode.d.ts +2 -1
- package/dist/cli/adapters/vscode.d.ts.map +1 -1
- package/dist/cli/adapters/vscode.js +2 -1
- package/dist/cli/adapters/vscode.js.map +1 -1
- package/dist/cli/adapters/windsurf.d.ts.map +1 -1
- package/dist/cli/adapters/windsurf.js +11 -1
- package/dist/cli/adapters/windsurf.js.map +1 -1
- package/dist/cli/agent-plugin.test.js +12 -0
- package/dist/cli/agent-plugin.test.js.map +1 -1
- package/dist/cli/baseline.d.ts.map +1 -1
- package/dist/cli/baseline.js +15 -8
- package/dist/cli/baseline.js.map +1 -1
- package/dist/cli/bootstrap.d.ts.map +1 -1
- package/dist/cli/bootstrap.js +20 -0
- package/dist/cli/bootstrap.js.map +1 -1
- package/dist/cli/ci.d.ts.map +1 -1
- package/dist/cli/ci.js +24 -8
- package/dist/cli/ci.js.map +1 -1
- package/dist/cli/codex-target.test.js +14 -1
- package/dist/cli/codex-target.test.js.map +1 -1
- package/dist/cli/command-namespace.test.js +33 -0
- package/dist/cli/command-namespace.test.js.map +1 -1
- package/dist/cli/convoy-cmd.d.ts.map +1 -1
- package/dist/cli/convoy-cmd.js +2 -1
- package/dist/cli/convoy-cmd.js.map +1 -1
- package/dist/cli/dispatcher.test.js +6 -0
- package/dist/cli/dispatcher.test.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +33 -8
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +9 -6
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/doctor.test.js +2 -2
- package/dist/cli/doctor.test.js.map +1 -1
- package/dist/cli/explain.d.ts +5 -0
- package/dist/cli/explain.d.ts.map +1 -1
- package/dist/cli/explain.js +38 -2
- package/dist/cli/explain.js.map +1 -1
- package/dist/cli/init-own-files.test.d.ts +2 -0
- package/dist/cli/init-own-files.test.d.ts.map +1 -0
- package/dist/cli/init-own-files.test.js +133 -0
- package/dist/cli/init-own-files.test.js.map +1 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +106 -7
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +52 -27
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +13 -4
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/lesson.d.ts.map +1 -1
- package/dist/cli/lesson.js +6 -5
- package/dist/cli/lesson.js.map +1 -1
- package/dist/cli/managed-paths.d.ts.map +1 -1
- package/dist/cli/managed-paths.js +3 -1
- package/dist/cli/managed-paths.js.map +1 -1
- package/dist/cli/mcp-audit.d.ts.map +1 -1
- package/dist/cli/mcp-audit.js +2 -0
- package/dist/cli/mcp-audit.js.map +1 -1
- package/dist/cli/mcp-upgrade.test.js +24 -1
- package/dist/cli/mcp-upgrade.test.js.map +1 -1
- package/dist/cli/mcp.d.ts.map +1 -1
- package/dist/cli/mcp.js +22 -3
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/prompt.d.ts.map +1 -1
- package/dist/cli/prompt.js +9 -7
- package/dist/cli/prompt.js.map +1 -1
- package/dist/cli/prompt.test.js +20 -2
- package/dist/cli/prompt.test.js.map +1 -1
- package/dist/cli/remove.d.ts.map +1 -1
- package/dist/cli/remove.js +3 -1
- package/dist/cli/remove.js.map +1 -1
- package/dist/cli/review.d.ts.map +1 -1
- package/dist/cli/review.js +7 -1
- package/dist/cli/review.js.map +1 -1
- package/dist/cli/sync-check.d.ts.map +1 -1
- package/dist/cli/sync-check.js +12 -3
- package/dist/cli/sync-check.js.map +1 -1
- package/dist/cli/sync-check.test.js +5 -4
- package/dist/cli/sync-check.test.js.map +1 -1
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +3 -2
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/team-commands.test.js +12 -0
- package/dist/cli/team-commands.test.js.map +1 -1
- package/dist/cli/team-sources.test.js +10 -0
- package/dist/cli/team-sources.test.js.map +1 -1
- package/dist/cli/types.d.ts +1 -1
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/update.d.ts.map +1 -1
- package/dist/cli/update.js +4 -3
- package/dist/cli/update.js.map +1 -1
- package/dist/cli/website-plugins.test.js +51 -2
- package/dist/cli/website-plugins.test.js.map +1 -1
- package/dist/cli/windsurf-target.test.d.ts +2 -0
- package/dist/cli/windsurf-target.test.d.ts.map +1 -0
- package/dist/cli/windsurf-target.test.js +62 -0
- package/dist/cli/windsurf-target.test.js.map +1 -0
- package/dist/orchestrator/plugins/coolify/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/coolify/config.js +13 -0
- package/dist/orchestrator/plugins/coolify/config.js.map +1 -1
- package/dist/orchestrator/plugins/registry.test.d.ts +2 -0
- package/dist/orchestrator/plugins/registry.test.d.ts.map +1 -0
- package/dist/orchestrator/plugins/registry.test.js +37 -0
- package/dist/orchestrator/plugins/registry.test.js.map +1 -0
- package/dist/orchestrator/plugins/sentry/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/sentry/config.js +13 -0
- package/dist/orchestrator/plugins/sentry/config.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/adapters/antigravity.ts +2 -1
- package/src/cli/adapters/claude-code.ts +7 -4
- package/src/cli/adapters/cursor.ts +8 -1
- package/src/cli/adapters/opencode.ts +18 -6
- package/src/cli/adapters/rules-dir-base.test.ts +28 -18
- package/src/cli/adapters/rules-dir-base.ts +51 -90
- package/src/cli/adapters/single-file-base.ts +77 -16
- package/src/cli/adapters/vscode.ts +2 -1
- package/src/cli/adapters/windsurf.ts +11 -1
- package/src/cli/agent-plugin.test.ts +14 -0
- package/src/cli/baseline.ts +16 -6
- package/src/cli/bootstrap.ts +23 -0
- package/src/cli/ci.ts +25 -8
- package/src/cli/codex-target.test.ts +15 -1
- package/src/cli/command-namespace.test.ts +35 -0
- package/src/cli/convoy/TELEMETRY.md +64 -62
- package/src/cli/convoy-cmd.ts +2 -1
- package/src/cli/dispatcher.test.ts +7 -0
- package/src/cli/docs-accuracy.test.ts +34 -7
- package/src/cli/doctor.test.ts +2 -2
- package/src/cli/doctor.ts +9 -6
- package/src/cli/explain.ts +36 -2
- package/src/cli/init-own-files.test.ts +156 -0
- package/src/cli/init.test.ts +55 -27
- package/src/cli/init.ts +104 -7
- package/src/cli/layers.ts +13 -4
- package/src/cli/lesson.ts +6 -5
- package/src/cli/managed-paths.ts +3 -1
- package/src/cli/mcp-audit.ts +2 -0
- package/src/cli/mcp-upgrade.test.ts +26 -1
- package/src/cli/mcp.ts +22 -3
- package/src/cli/prompt.test.ts +21 -2
- package/src/cli/prompt.ts +11 -7
- package/src/cli/remove.ts +3 -0
- package/src/cli/review.ts +7 -1
- package/src/cli/sync-check.test.ts +5 -4
- package/src/cli/sync-check.ts +12 -3
- package/src/cli/sync.ts +3 -2
- package/src/cli/team-commands.test.ts +16 -0
- package/src/cli/team-sources.test.ts +11 -0
- package/src/cli/types.ts +1 -1
- package/src/cli/update.ts +4 -3
- package/src/cli/website-plugins.test.ts +55 -5
- package/src/cli/windsurf-target.test.ts +70 -0
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
- package/src/orchestrator/agents/team-lead.agent.md +2 -2
- package/src/orchestrator/customizations/README.md +58 -13
- package/src/orchestrator/customizations/logs/README.md +23 -18
- package/src/orchestrator/instructions/general.instructions.md +1 -1
- package/src/orchestrator/plugins/coolify/config.ts +13 -0
- package/src/orchestrator/plugins/registry.test.ts +42 -0
- package/src/orchestrator/plugins/sentry/config.ts +13 -0
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +44 -49
- package/src/orchestrator/prompts/brainstorm.prompt.md +2 -2
- package/src/orchestrator/prompts/bug-fix.prompt.md +5 -4
- package/src/orchestrator/prompts/create-skill.prompt.md +29 -39
- package/src/orchestrator/prompts/generate-convoy.prompt.md +1 -1
- package/src/orchestrator/prompts/generate-prd.prompt.md +1 -1
- package/src/orchestrator/prompts/implement-feature.prompt.md +7 -6
|
@@ -1,28 +1,64 @@
|
|
|
1
|
-
#
|
|
1
|
+
# .opencastle/
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This directory is yours. It holds the project context the shipped skills read,
|
|
4
|
+
the team's own instructions, skills, agents, prompts and workflows, and the team
|
|
5
|
+
config. `opencastle sync` compiles it, together with OpenCastle's own content and
|
|
6
|
+
any baseline the team extends, into the config every assistant reads.
|
|
7
|
+
|
|
8
|
+
To change what the assistants are told, edit here — not the generated files.
|
|
9
|
+
`opencastle sync --check` fails when someone edits a generated file in place or
|
|
10
|
+
adds one by hand to a generated directory.
|
|
4
11
|
|
|
5
12
|
## Why this exists
|
|
6
13
|
|
|
7
|
-
Skills and instructions contain generic methodology (how to write migrations,
|
|
14
|
+
Skills and instructions contain generic methodology (how to write migrations,
|
|
15
|
+
how to test in a browser, how to run a panel review). This directory holds the
|
|
16
|
+
concrete values those skills operate on — project IDs, table schemas, team
|
|
17
|
+
UUIDs, endpoint inventories, and similar configuration that changes per project.
|
|
8
18
|
|
|
9
|
-
Skills reference these files by root-relative path, like
|
|
19
|
+
Skills reference these files by root-relative path, like
|
|
20
|
+
`.opencastle/stack/api-config.md`, so agents load project context when they load
|
|
21
|
+
a skill.
|
|
10
22
|
|
|
11
23
|
## Contents
|
|
12
24
|
|
|
13
25
|
| File | Purpose |
|
|
14
26
|
|------|---------|
|
|
27
|
+
| `README.md` | This file |
|
|
28
|
+
| `config.json` | Team config, when you add one: `extends` (baselines), `exclude`, `mcpServers`, `policy`. Schema: <https://www.opencastle.dev/schema/config.json> |
|
|
15
29
|
| `project.instructions.md` | High-level project context — apps, libraries, tech stack, ports, URLs |
|
|
16
30
|
| `LESSONS-LEARNED.md` | Index of the lessons in `lessons/` — read before every session. Rewritten by `opencastle sync`; never edited by hand |
|
|
17
31
|
| `lessons/` | One file per lesson: retries, workarounds and gotchas, written by `opencastle lesson` |
|
|
18
32
|
| `KNOWN-ISSUES.md` | Tracked issues, limitations, and accepted risks discovered during sessions |
|
|
33
|
+
| `DISPUTES.md` | Disagreements automated review could not settle, packaged for a person to decide |
|
|
19
34
|
| `AGENT-FAILURES.md` | Dead letter queue for failed agent delegations |
|
|
20
35
|
| `AGENT-PERFORMANCE.md` | Agent success tracking, log query recipes, performance metrics |
|
|
21
36
|
| `AGENT-EXPERTISE.md` | Structured tracking of agent strengths/weaknesses across sessions |
|
|
22
37
|
| `KNOWLEDGE-GRAPH.md` | Append-only relationship log for file dependencies, patterns, decisions |
|
|
38
|
+
| `lock.json` | What every assistant is given. Written by every `sync`; commit it |
|
|
39
|
+
| `manifest.json` | What is installed, and for which assistants. Written by `init` and `sync` |
|
|
40
|
+
|
|
41
|
+
`sync` rewrites `LESSONS-LEARNED.md`, `lock.json` and `manifest.json`. It keeps
|
|
42
|
+
your edits to everything else here.
|
|
43
|
+
|
|
44
|
+
### The team's own sources
|
|
45
|
+
|
|
46
|
+
`opencastle sync` compiles these into every assistant, in each one's own
|
|
47
|
+
format. One with the same name as an item OpenCastle or a baseline ships
|
|
48
|
+
replaces it; `exclude` in `config.json` drops one.
|
|
49
|
+
|
|
50
|
+
| Path | Becomes |
|
|
51
|
+
|------|---------|
|
|
52
|
+
| `instructions/*.md` | Instructions every assistant always loads |
|
|
53
|
+
| `skills/<name>/SKILL.md` | A skill, in the Agent Skills format |
|
|
54
|
+
| `agents/*.agent.md` | An agent to delegate to |
|
|
55
|
+
| `prompts/*.md` | A prompt — `/oc:<name>` in Claude Code and Copilot Chat |
|
|
56
|
+
| `workflows/*.md` | A workflow template |
|
|
23
57
|
|
|
24
58
|
### `agents/` — Agent framework config
|
|
25
59
|
|
|
60
|
+
Beside any agents of your own:
|
|
61
|
+
|
|
26
62
|
| File | Purpose |
|
|
27
63
|
|------|---------|
|
|
28
64
|
| `agent-registry.md` | Specialist agents with model tier assignments and scope examples |
|
|
@@ -31,9 +67,9 @@ Skills reference these files by root-relative path, like `.opencastle/stack/api-
|
|
|
31
67
|
|
|
32
68
|
### `stack/` — Tech stack config
|
|
33
69
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
70
|
+
Notes on the stack that the skills read. `opencastle init` writes the ones for
|
|
71
|
+
what it detected, such as `testing-config.md`, or `supabase-config.md` when the
|
|
72
|
+
project uses Supabase.
|
|
37
73
|
|
|
38
74
|
### `project/` — Project management config
|
|
39
75
|
|
|
@@ -42,21 +78,30 @@ Skills reference these files by root-relative path, like `.opencastle/stack/api-
|
|
|
42
78
|
| `docs-structure.md` | Project documentation directory tree and practices |
|
|
43
79
|
| `roadmap.md` | Project roadmap with planned features and their status |
|
|
44
80
|
| `decisions.md` | Architecture Decision Records (ADRs) for the project |
|
|
45
|
-
|
|
|
81
|
+
| `tracker-config.md` | Task tracker settings, when a tracker is set up |
|
|
46
82
|
|
|
47
83
|
### `logs/` — Append-only NDJSON session logs
|
|
48
84
|
|
|
49
|
-
Structured
|
|
85
|
+
Structured logs agents append with `opencastle log` during sessions,
|
|
86
|
+
delegations, reviews, panels and disputes. Gitignored, like the other run
|
|
87
|
+
artefacts here.
|
|
50
88
|
|
|
51
89
|
| File | Purpose |
|
|
52
90
|
|------|---------|
|
|
53
|
-
| `README.md` |
|
|
54
|
-
| `events.ndjson` |
|
|
91
|
+
| `README.md` | The record schema |
|
|
92
|
+
| `events.ndjson` | Every record, one JSON object per line |
|
|
55
93
|
|
|
56
94
|
## When to update
|
|
57
95
|
|
|
58
|
-
Update these files when the project changes — new tables, new API routes, new
|
|
96
|
+
Update these files when the project changes — new tables, new API routes, new
|
|
97
|
+
apps, new tracker labels, etc. The skills themselves should rarely need editing;
|
|
98
|
+
changing a project ID or adding a table column is a customization change, not a
|
|
99
|
+
skill change.
|
|
59
100
|
|
|
60
101
|
## Bootstrap
|
|
61
102
|
|
|
62
|
-
|
|
103
|
+
`opencastle init` fills in what it can detect: frameworks, databases, CMS,
|
|
104
|
+
deployment config and task tracking. On an existing codebase, run the
|
|
105
|
+
`bootstrap-customizations` prompt next (`/oc:bootstrap-customizations` in
|
|
106
|
+
Claude Code or Copilot Chat; in other assistants, ask for it by name) to fill
|
|
107
|
+
in the rest from the code.
|
|
@@ -6,7 +6,10 @@ Append-only NDJSON log for agent activity tracking. All events are stored in a s
|
|
|
6
6
|
|
|
7
7
|
| File | Description |
|
|
8
8
|
|------|-------------|
|
|
9
|
-
| `events.ndjson` | All agent events,
|
|
9
|
+
| `events.ndjson` | All agent events, in the order they were appended |
|
|
10
|
+
|
|
11
|
+
Convoy runs (experimental) keep their own events in `.opencastle/convoy.db` and
|
|
12
|
+
`convoys/<convoy-id>.ndjson` beside this file.
|
|
10
13
|
|
|
11
14
|
## Type Discriminator
|
|
12
15
|
|
|
@@ -22,7 +25,9 @@ Each record includes a `type` field that identifies the event kind:
|
|
|
22
25
|
|
|
23
26
|
## CLI Usage
|
|
24
27
|
|
|
25
|
-
Use `opencastle log` to append events. Agents should call this instead of raw `echo` commands.
|
|
28
|
+
Use `opencastle log` to append events. Agents should call this instead of raw `echo` commands. `opencastle log` sets `timestamp` itself.
|
|
29
|
+
|
|
30
|
+
The examples pass `--model "$MODEL"`, which needs `MODEL` set to the model the assistant reported; when it reported none, leave `--model` (or `--reviewer_model`) out — an empty value is refused.
|
|
26
31
|
|
|
27
32
|
```sh
|
|
28
33
|
# Session
|
|
@@ -59,7 +64,7 @@ Run `opencastle log --help` for full options.
|
|
|
59
64
|
```json
|
|
60
65
|
{
|
|
61
66
|
"type": "session",
|
|
62
|
-
"timestamp": "2026-02-25T14:30:
|
|
67
|
+
"timestamp": "2026-02-25T14:30:00.000Z",
|
|
63
68
|
"agent": "Developer",
|
|
64
69
|
"model": "<model reported by the assistant>",
|
|
65
70
|
"task": "PRJ-57: Fix header component",
|
|
@@ -76,9 +81,9 @@ Run `opencastle log --help` for full options.
|
|
|
76
81
|
| Field | Type | Required | Description |
|
|
77
82
|
|-------|------|----------|-------------|
|
|
78
83
|
| `type` | `string` | Yes | Always `"session"` |
|
|
79
|
-
| `timestamp` | `string` | Yes | ISO 8601
|
|
84
|
+
| `timestamp` | `string` | Yes | ISO 8601 UTC with milliseconds, set by `opencastle log` (e.g. `2026-10-03T07:49:09.383Z`) |
|
|
80
85
|
| `agent` | `string` | Yes | Agent name from the registry |
|
|
81
|
-
| `model` | `string` |
|
|
86
|
+
| `model` | `string` | No — omit when the assistant reports none | Model used — whatever the assistant reported |
|
|
82
87
|
| `task` | `string` | Yes | Short description of the task performed |
|
|
83
88
|
| `tracker_issue` | `string` | No | Issue ID if applicable (e.g., `PRJ-57`) |
|
|
84
89
|
| `outcome` | `string` | Yes | `success`, `partial`, `failed` |
|
|
@@ -93,11 +98,11 @@ Run `opencastle log --help` for full options.
|
|
|
93
98
|
```json
|
|
94
99
|
{
|
|
95
100
|
"type": "delegation",
|
|
96
|
-
"timestamp": "2026-02-25T14:30:
|
|
101
|
+
"timestamp": "2026-02-25T14:30:00.000Z",
|
|
97
102
|
"session_id": "feat/prj-57",
|
|
98
103
|
"agent": "Developer",
|
|
99
104
|
"model": "<model reported by the assistant>",
|
|
100
|
-
"tier": "
|
|
105
|
+
"tier": "standard",
|
|
101
106
|
"mechanism": "sub-agent",
|
|
102
107
|
"tracker_issue": "PRJ-57",
|
|
103
108
|
"outcome": "success",
|
|
@@ -110,11 +115,11 @@ Run `opencastle log --help` for full options.
|
|
|
110
115
|
| Field | Type | Required | Description |
|
|
111
116
|
|-------|------|----------|-------------|
|
|
112
117
|
| `type` | `string` | Yes | Always `"delegation"` |
|
|
113
|
-
| `timestamp` | `string` | Yes | ISO 8601
|
|
118
|
+
| `timestamp` | `string` | Yes | ISO 8601 UTC with milliseconds, set by `opencastle log` (e.g. `2026-10-03T07:49:09.383Z`) |
|
|
114
119
|
| `session_id` | `string` | Yes | Branch name or feature identifier |
|
|
115
120
|
| `agent` | `string` | Yes | Agent name delegated to |
|
|
116
|
-
| `model` | `string` |
|
|
117
|
-
| `tier` | `string` | Yes | `
|
|
121
|
+
| `model` | `string` | No — omit when the assistant reports none | Model used — whatever the assistant reported |
|
|
122
|
+
| `tier` | `string` | Yes | `premium`, `standard`, `economy` — the delegated agent's tier in the registry |
|
|
118
123
|
| `mechanism` | `string` | Yes | `sub-agent` or `background` |
|
|
119
124
|
| `tracker_issue` | `string` | No | Issue ID |
|
|
120
125
|
| `outcome` | `string` | Yes | `success`, `partial`, `failed`, `redirected` |
|
|
@@ -127,7 +132,7 @@ Run `opencastle log --help` for full options.
|
|
|
127
132
|
```json
|
|
128
133
|
{
|
|
129
134
|
"type": "review",
|
|
130
|
-
"timestamp": "2026-02-28T14:30:
|
|
135
|
+
"timestamp": "2026-02-28T14:30:00.000Z",
|
|
131
136
|
"tracker_issue": "PRJ-42",
|
|
132
137
|
"agent": "Developer",
|
|
133
138
|
"reviewer_model": "<model reported by the assistant>",
|
|
@@ -145,10 +150,10 @@ Run `opencastle log --help` for full options.
|
|
|
145
150
|
| Field | Type | Required | Description |
|
|
146
151
|
|-------|------|----------|-------------|
|
|
147
152
|
| `type` | `string` | Yes | Always `"review"` |
|
|
148
|
-
| `timestamp` | `string` | Yes | ISO 8601
|
|
153
|
+
| `timestamp` | `string` | Yes | ISO 8601 UTC with milliseconds, set by `opencastle log` (e.g. `2026-10-03T07:49:09.383Z`) |
|
|
149
154
|
| `tracker_issue` | `string` | No | Issue ID if applicable |
|
|
150
155
|
| `agent` | `string` | Yes | Agent whose output was reviewed |
|
|
151
|
-
| `reviewer_model` | `string` |
|
|
156
|
+
| `reviewer_model` | `string` | No — omit when the assistant reports none | Model used for the reviewer — whatever the assistant reported |
|
|
152
157
|
| `verdict` | `string` | Yes | `pass` or `fail` |
|
|
153
158
|
| `attempt` | `number` | Yes | Review attempt number (1, 2, or 3) |
|
|
154
159
|
| `issues_critical` | `number` | Yes | Count of critical severity issues |
|
|
@@ -163,7 +168,7 @@ Run `opencastle log --help` for full options.
|
|
|
163
168
|
```json
|
|
164
169
|
{
|
|
165
170
|
"type": "panel",
|
|
166
|
-
"timestamp": "2026-02-25T14:30:
|
|
171
|
+
"timestamp": "2026-02-25T14:30:00.000Z",
|
|
167
172
|
"panel_key": "instruction-refactoring",
|
|
168
173
|
"verdict": "pass",
|
|
169
174
|
"pass_count": 3,
|
|
@@ -182,14 +187,14 @@ Run `opencastle log --help` for full options.
|
|
|
182
187
|
| Field | Type | Required | Description |
|
|
183
188
|
|-------|------|----------|-------------|
|
|
184
189
|
| `type` | `string` | Yes | Always `"panel"` |
|
|
185
|
-
| `timestamp` | `string` | Yes | ISO 8601
|
|
190
|
+
| `timestamp` | `string` | Yes | ISO 8601 UTC with milliseconds, set by `opencastle log` (e.g. `2026-10-03T07:49:09.383Z`) |
|
|
186
191
|
| `panel_key` | `string` | Yes | Filesystem-safe panel identifier |
|
|
187
192
|
| `verdict` | `string` | Yes | `pass` or `block` |
|
|
188
193
|
| `pass_count` | `number` | Yes | Number of reviewers who voted PASS |
|
|
189
194
|
| `block_count` | `number` | Yes | Number of reviewers who voted BLOCK |
|
|
190
195
|
| `must_fix` | `number` | Yes | Total MUST-FIX items across all reviewers |
|
|
191
196
|
| `should_fix` | `number` | Yes | Total SHOULD-FIX items across all reviewers |
|
|
192
|
-
| `reviewer_model` | `string` |
|
|
197
|
+
| `reviewer_model` | `string` | No — omit when the assistant reports none | Model used for reviewers — whatever the assistant reported |
|
|
193
198
|
| `weighted` | `boolean` | Yes | Whether performance-weighted voting was applied |
|
|
194
199
|
| `attempt` | `number` | Yes | Attempt number (1 = first try) |
|
|
195
200
|
| `tracker_issue` | `string` | No | Issue ID if applicable |
|
|
@@ -201,7 +206,7 @@ Run `opencastle log --help` for full options.
|
|
|
201
206
|
```json
|
|
202
207
|
{
|
|
203
208
|
"type": "dispute",
|
|
204
|
-
"timestamp": "2026-02-28T16:00:
|
|
209
|
+
"timestamp": "2026-02-28T16:00:00.000Z",
|
|
205
210
|
"dispute_id": "DSP-001",
|
|
206
211
|
"tracker_issue": "PRJ-42",
|
|
207
212
|
"priority": "high",
|
|
@@ -219,7 +224,7 @@ Run `opencastle log --help` for full options.
|
|
|
219
224
|
| Field | Type | Required | Description |
|
|
220
225
|
|-------|------|----------|-------------|
|
|
221
226
|
| `type` | `string` | Yes | Always `"dispute"` |
|
|
222
|
-
| `timestamp` | `string` | Yes | ISO 8601
|
|
227
|
+
| `timestamp` | `string` | Yes | ISO 8601 UTC with milliseconds when the dispute was created, set by `opencastle log` |
|
|
223
228
|
| `dispute_id` | `string` | Yes | Dispute ID (e.g., `DSP-001`) |
|
|
224
229
|
| `tracker_issue` | `string` | No | Issue ID if applicable |
|
|
225
230
|
| `priority` | `string` | Yes | `critical`, `high`, `medium`, `low` |
|
|
@@ -53,7 +53,7 @@ See [ai-optimization.instructions.md](ai-optimization.instructions.md).
|
|
|
53
53
|
|
|
54
54
|
## Project Context
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
Read `.opencastle/project.instructions.md` — apps, stack, commands, ports — before planning.
|
|
57
57
|
|
|
58
58
|
## Git Workflow
|
|
59
59
|
|
|
@@ -13,6 +13,7 @@ export const config: PluginConfig = {
|
|
|
13
13
|
type: 'stdio',
|
|
14
14
|
command: 'npx',
|
|
15
15
|
args: ['-y', '@masonator/coolify-mcp@3.7.0'],
|
|
16
|
+
envFile: '${workspaceFolder}/.env',
|
|
16
17
|
},
|
|
17
18
|
authType: 'env-token',
|
|
18
19
|
envVars: [
|
|
@@ -27,6 +28,18 @@ export const config: PluginConfig = {
|
|
|
27
28
|
officialDocs: 'https://coolify.io/docs',
|
|
28
29
|
mcpPackage: '@masonator/coolify-mcp',
|
|
29
30
|
previousMcpConfigs: [
|
|
31
|
+
// Without `envFile`, VS Code started the server with neither variable.
|
|
32
|
+
{
|
|
33
|
+
mcpConfig: {
|
|
34
|
+
type: 'stdio',
|
|
35
|
+
command: 'npx',
|
|
36
|
+
args: ['-y', '@masonator/coolify-mcp@3.7.0'],
|
|
37
|
+
},
|
|
38
|
+
envVars: [
|
|
39
|
+
{ name: 'COOLIFY_ACCESS_TOKEN', hint: 'Generate in Coolify Settings → API' },
|
|
40
|
+
{ name: 'COOLIFY_BASE_URL', hint: 'Your Coolify instance URL (e.g. https://coolify.example.com)' },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
30
43
|
{
|
|
31
44
|
mcpConfig: {
|
|
32
45
|
type: 'stdio',
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest'
|
|
2
|
+
import { readFileSync } from 'node:fs'
|
|
3
|
+
import { join } from 'node:path'
|
|
4
|
+
import { TECH_PLUGINS, TEAM_PLUGINS } from './index.js'
|
|
5
|
+
import { getMcpConfigRelPath } from '../../cli/mcp.js'
|
|
6
|
+
import { IDE_ADAPTERS, VALID_IDES } from '../../cli/adapters/index.js'
|
|
7
|
+
import type { IdeChoice } from '../../cli/types.js'
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Facts written down twice, held to each other.
|
|
11
|
+
*
|
|
12
|
+
* `TechTool` and `TeamTool` are hand-written unions beside the registry, and
|
|
13
|
+
* `hetzner` was in the registry and missing from `TechTool`. Each target's MCP
|
|
14
|
+
* config path is in its adapter and again in `getMcpConfigRelPath`, which the
|
|
15
|
+
* rebuild, strip and audit read — the two must name the same file, or `sync`
|
|
16
|
+
* writes one file and `remove` cleans another.
|
|
17
|
+
*/
|
|
18
|
+
const types = readFileSync(join(import.meta.dirname, '..', '..', 'cli', 'types.ts'), 'utf8')
|
|
19
|
+
|
|
20
|
+
function union(name: string): string[] {
|
|
21
|
+
const m = new RegExp(`export type ${name} = ([^;]+);`).exec(types)
|
|
22
|
+
expect(m, `${name} not found in types.ts`).toBeTruthy()
|
|
23
|
+
return [...m![1].matchAll(/'([^']+)'/g)].map((x) => x[1]).sort()
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
describe('the plugin registry and the types that name it', () => {
|
|
27
|
+
it('TechTool names every tech integration', () => {
|
|
28
|
+
expect(union('TechTool')).toEqual(TECH_PLUGINS.map((p) => p.id).sort())
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it('TeamTool names every team integration', () => {
|
|
32
|
+
expect(union('TeamTool')).toEqual(TEAM_PLUGINS.map((p) => p.id).sort())
|
|
33
|
+
})
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
describe('MCP config paths', () => {
|
|
37
|
+
it.each(VALID_IDES)('%s: the adapter and getMcpConfigRelPath name the same file', async (ide) => {
|
|
38
|
+
const adapter = await IDE_ADAPTERS[ide]()
|
|
39
|
+
const configs = adapter.getManagedPaths().customizable.filter((p) => !p.endsWith('/'))
|
|
40
|
+
expect(configs).toEqual([getMcpConfigRelPath(ide as IdeChoice)])
|
|
41
|
+
})
|
|
42
|
+
})
|
|
@@ -13,6 +13,7 @@ export const config: PluginConfig = {
|
|
|
13
13
|
type: 'stdio',
|
|
14
14
|
command: 'npx',
|
|
15
15
|
args: ['@sentry/mcp-server@0.42.0'],
|
|
16
|
+
envFile: '${workspaceFolder}/.env',
|
|
16
17
|
},
|
|
17
18
|
authType: 'env-token',
|
|
18
19
|
envVars: [
|
|
@@ -27,6 +28,18 @@ export const config: PluginConfig = {
|
|
|
27
28
|
officialDocs: 'https://docs.sentry.io/',
|
|
28
29
|
mcpPackage: '@sentry/mcp-server',
|
|
29
30
|
previousMcpConfigs: [
|
|
31
|
+
// Without `envFile`, VS Code started the server with no token: the card
|
|
32
|
+
// said to put SENTRY_ACCESS_TOKEN in .env, and nothing read it from there.
|
|
33
|
+
{
|
|
34
|
+
mcpConfig: {
|
|
35
|
+
type: 'stdio',
|
|
36
|
+
command: 'npx',
|
|
37
|
+
args: ['@sentry/mcp-server@0.42.0'],
|
|
38
|
+
},
|
|
39
|
+
envVars: [
|
|
40
|
+
{ name: 'SENTRY_ACCESS_TOKEN', hint: 'Create at Settings \u2192 Auth Tokens in sentry.io' },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
30
43
|
{
|
|
31
44
|
mcpConfig: {
|
|
32
45
|
type: 'stdio',
|
|
@@ -23,39 +23,32 @@ Without customizations, agents operate blind — they don't know project's table
|
|
|
23
23
|
|
|
24
24
|
## Pre-Existing Setup
|
|
25
25
|
|
|
26
|
-
### `.opencastle.json` — Detection Data
|
|
26
|
+
### `.opencastle/manifest.json` — Detection Data
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
`opencastle init` writes **`.opencastle/manifest.json`**. Two of its fields matter here:
|
|
29
29
|
|
|
30
|
-
1.
|
|
31
|
-
2.
|
|
30
|
+
1. **`repoInfo`** — what init detected by scanning config files, `package.json` dependencies, and directory structures
|
|
31
|
+
2. **`stack`** — the integrations installed: the ones init detected and the user confirmed, picked with `opencastle init --customize`, or added later with `opencastle add <pack>`
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
Example:
|
|
34
34
|
|
|
35
35
|
```json
|
|
36
36
|
{
|
|
37
|
+
"stack": {
|
|
38
|
+
"ides": ["vscode"],
|
|
39
|
+
"techTools": ["nextjs", "supabase", "vitest", "chrome-devtools"],
|
|
40
|
+
"teamTools": ["linear", "slack"]
|
|
41
|
+
},
|
|
37
42
|
"repoInfo": {
|
|
38
43
|
"packageManager": "pnpm",
|
|
39
|
-
"monorepo": "nx",
|
|
40
44
|
"language": "typescript",
|
|
41
|
-
"frameworks": ["next"
|
|
42
|
-
"databases": ["
|
|
43
|
-
"cms": ["sanity"],
|
|
45
|
+
"frameworks": ["next"],
|
|
46
|
+
"databases": ["supabase"],
|
|
44
47
|
"deployment": ["vercel"],
|
|
45
|
-
"testing": ["
|
|
46
|
-
"
|
|
47
|
-
"styling": ["css-modules", "tailwind"],
|
|
48
|
-
"auth": ["next-auth", "supabase-auth"],
|
|
49
|
-
"pm": ["linear"],
|
|
50
|
-
"notifications": ["slack"],
|
|
48
|
+
"testing": ["vitest", "chrome-devtools"],
|
|
49
|
+
"styling": ["tailwind"],
|
|
51
50
|
"mcpConfig": true,
|
|
52
|
-
"configFiles": ["
|
|
53
|
-
},
|
|
54
|
-
"stack": {
|
|
55
|
-
"cms": "sanity",
|
|
56
|
-
"db": "supabase",
|
|
57
|
-
"pm": "linear",
|
|
58
|
-
"notifications": "slack"
|
|
51
|
+
"configFiles": ["package.json", "tsconfig.json", "vercel.json", "vitest.config.ts"]
|
|
59
52
|
}
|
|
60
53
|
}
|
|
61
54
|
```
|
|
@@ -63,9 +56,8 @@ Result: single unified view of project's tech stack:
|
|
|
63
56
|
**Use `repoInfo` to:**
|
|
64
57
|
- Know which technologies are present — skip re-scanning, go straight to reading their config files
|
|
65
58
|
- Identify `configFiles` to read for deep inspection
|
|
66
|
-
- Know which `project/` config files to create if missing (e.g., if `repoInfo.pm` includes `"linear"`, ensure `project/linear-config.md` exists)
|
|
67
59
|
|
|
68
|
-
|
|
60
|
+
**Use `stack` to:** know which integrations are installed. If `stack.teamTools` or `repoInfo.pm` names a tracker (`linear`, `jira`, `trello`), ensure `project/<tracker>-config.md` exists — init creates it only for a tracker it knew about at the time; one added later with `opencastle add` has none yet.
|
|
69
61
|
|
|
70
62
|
**Still inspect:** `repoInfo` detects presence, not configuration details. You still need to read the actual config files for schemas, IDs, routes, etc.
|
|
71
63
|
|
|
@@ -82,15 +74,17 @@ Programmatic bootstrap running during `opencastle init` already created, partial
|
|
|
82
74
|
| `stack/deployment-config.md` | Deployment platforms and config file paths | Env var names, cron jobs, security headers, caching strategy |
|
|
83
75
|
| `stack/<provider>-config.md` | Database provider name and config file paths (e.g., `supabase-config.md`) | Table/schema inventory, RLS policies, auth integration details |
|
|
84
76
|
| `stack/<provider>-config.md` | CMS provider name and config file paths (e.g., `sanity-config.md`) | Content model inventory, query patterns, project IDs |
|
|
77
|
+
| `stack/api-config.md` | Framework name and empty endpoint tables (only when init detected a framework) | Route handler and Server Action inventory |
|
|
78
|
+
| `project/<tracker>-config.md` | Template (only when init knew about the tracker) | Team IDs, workflow states, labels |
|
|
79
|
+
| `project/docs-structure.md` | The `.opencastle/` documentation files | The project's own docs directory |
|
|
80
|
+
| `agents/agent-registry.md`, `agents/skill-matrix.json`, `agents/skill-matrix.md` | Agent tiers and skill bindings for the installed integrations | Nothing in most projects — verify bindings |
|
|
85
81
|
| `README.md`, `LESSONS-LEARNED.md`, `AGENT-FAILURES.md`, `AGENT-PERFORMANCE.md` | Full template content | Nothing — these are complete, just verify |
|
|
86
82
|
| `logs/README.md`, `logs/events.ndjson` | Schema docs + empty log file | Nothing — these are complete |
|
|
87
83
|
|
|
88
|
-
**Files that
|
|
89
|
-
- `stack/api-config.md` —
|
|
90
|
-
- `project
|
|
91
|
-
- `
|
|
92
|
-
- `stack/data-pipeline-config.md` — requires reading pipeline scripts
|
|
93
|
-
- `agents/agent-registry.md`, `agents/skill-matrix.json`, `agents/skill-matrix.md` — if `.github/agents/` and `.github/skills/` exist
|
|
84
|
+
**Files that may not exist yet** (create them only if the project needs them):
|
|
85
|
+
- `stack/api-config.md` — if the project has API routes or Server Actions but init detected no framework
|
|
86
|
+
- `project/<tracker>-config.md` — if a tracker is in use but has no config file (see `stack` above)
|
|
87
|
+
- `stack/data-pipeline-config.md` — init never creates it; requires reading pipeline scripts
|
|
94
88
|
|
|
95
89
|
Any template file for technology NOT detected (no DB, no CMS, etc.) already removed.
|
|
96
90
|
|
|
@@ -105,7 +99,7 @@ Programmatic bootstrap already detected tech stack. **Skip re-scanning** — foc
|
|
|
105
99
|
- **First**: Read all existing `.opencastle/` files to understand what's already filled in
|
|
106
100
|
- Read `.opencastle/project.instructions.md` to see current tech stack table, gaps
|
|
107
101
|
- Read each `stack/*.md` file — note any `<!-- TODO: verify -->` markers and empty table rows
|
|
108
|
-
- Read `.opencastle.json` for `repoInfo` and `configFiles` — use `configFiles` as your reading list
|
|
102
|
+
- Read `.opencastle/manifest.json` for `repoInfo` and `configFiles` — use `configFiles` as your reading list
|
|
109
103
|
- Note what's missing (empty sections, placeholders, TODO markers)
|
|
110
104
|
|
|
111
105
|
#### 1.2 Deep Inspection
|
|
@@ -133,20 +127,20 @@ Target file structure for reference:
|
|
|
133
127
|
├── LESSONS-LEARNED.md # Already created — verify
|
|
134
128
|
├── AGENT-FAILURES.md # Already created — verify
|
|
135
129
|
├── AGENT-PERFORMANCE.md # Already created — verify
|
|
136
|
-
├── agents/ #
|
|
130
|
+
├── agents/ # Already created — verify
|
|
137
131
|
│ ├── agent-registry.md
|
|
138
132
|
│ ├── skill-matrix.json
|
|
139
133
|
│ └── skill-matrix.md
|
|
140
134
|
├── stack/ # Partial — update existing, create missing
|
|
141
|
-
│ ├── api-config.md #
|
|
135
|
+
│ ├── api-config.md # Complete, or create if the project has API routes and it is missing
|
|
142
136
|
│ ├── deployment-config.md # Already created — complete missing sections
|
|
143
137
|
│ ├── testing-config.md # Already created — complete missing sections
|
|
144
138
|
│ ├── <database>-config.md # Already created — complete schema/RLS details
|
|
145
139
|
│ ├── <cms>-config.md # Already created — complete content model details
|
|
146
140
|
│ └── data-pipeline-config.md # Create if pipelines exist
|
|
147
|
-
├── project/ #
|
|
148
|
-
│ ├── docs-structure.md #
|
|
149
|
-
│ └── <tracker>-config.md #
|
|
141
|
+
├── project/ # Partial — update existing, create missing
|
|
142
|
+
│ ├── docs-structure.md # Already created — add the docs directory if one exists
|
|
143
|
+
│ └── <tracker>-config.md # Complete, or create if a tracker is in use and it is missing
|
|
150
144
|
└── logs/ # Already created — do not touch
|
|
151
145
|
├── README.md
|
|
152
146
|
└── events.ndjson
|
|
@@ -164,21 +158,22 @@ Target file structure for reference:
|
|
|
164
158
|
|
|
165
159
|
3. **`LESSONS-LEARNED.md`**, **`AGENT-FAILURES.md`**, **`AGENT-PERFORMANCE.md`** — Already exist as templates. Verify they look correct — no changes needed.
|
|
166
160
|
|
|
167
|
-
#### `agents/` — Agent Framework Config (
|
|
161
|
+
#### `agents/` — Agent Framework Config (already created — verify)
|
|
162
|
+
|
|
163
|
+
`npx opencastle explain` lists the agents and skills compiled for this project, and where each assistant reads them.
|
|
168
164
|
|
|
169
|
-
4. **`agents/agent-registry.md`** —
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
- File partition examples
|
|
165
|
+
4. **`agents/agent-registry.md`** — Already lists the agents with their tiers. **Complete**:
|
|
166
|
+
- Scope descriptions for this project
|
|
167
|
+
- File partition examples using this project's real paths
|
|
173
168
|
|
|
174
|
-
5. **`agents/skill-matrix.json`** —
|
|
175
|
-
-
|
|
176
|
-
- Which agents load which skills (slots for
|
|
169
|
+
5. **`agents/skill-matrix.json`** — Already holds capability slot bindings and `directSkills` per agent. **Verify**:
|
|
170
|
+
- Slot bindings point at skills that exist (`npx opencastle doctor` reports unresolved slots)
|
|
171
|
+
- Which agents load which skills (slots for integration skills, `directSkills` for process skills)
|
|
177
172
|
- Note: `skill-matrix.md` is companion documentation file — JSON is source of truth
|
|
178
173
|
|
|
179
174
|
#### `stack/` — Update Existing, Create Missing
|
|
180
175
|
|
|
181
|
-
6. **`stack/api-config.md`** — **
|
|
176
|
+
6. **`stack/api-config.md`** — **Complete** it, or **create** it if the project has API routes or Server Actions and init did not:
|
|
182
177
|
- Route handler inventory with HTTP methods
|
|
183
178
|
- Server Actions inventory
|
|
184
179
|
- External API integrations
|
|
@@ -223,12 +218,12 @@ Target file structure for reference:
|
|
|
223
218
|
|
|
224
219
|
#### `project/` — Project Management Config (create missing files)
|
|
225
220
|
|
|
226
|
-
12. **`project/docs-structure.md`** — **
|
|
221
|
+
12. **`project/docs-structure.md`** — Already exists. **Complete** if the project has its own documentation directory:
|
|
227
222
|
- Full directory tree
|
|
228
223
|
- Purpose of each document
|
|
229
224
|
- Documentation conventions
|
|
230
225
|
|
|
231
|
-
13. **Task tracker config** in `project/` (e.g., `project/linear-config.md`, `project/jira-config.md`) — **
|
|
226
|
+
13. **Task tracker config** in `project/` (e.g., `project/linear-config.md`, `project/jira-config.md`) — **Complete** it, or **create** it if task tracking is in use and it is missing:
|
|
232
227
|
- Team / project IDs
|
|
233
228
|
- Workflow state IDs
|
|
234
229
|
- Label / category IDs
|
|
@@ -242,7 +237,7 @@ Target file structure for reference:
|
|
|
242
237
|
|
|
243
238
|
After generating all files:
|
|
244
239
|
|
|
245
|
-
1. **Check skill references** — For each skill
|
|
240
|
+
1. **Check skill references** — For each skill `npx opencastle explain` lists, verify it references the correct customization file (or note if a reference needs to be added)
|
|
246
241
|
2. **Check for gaps** — Is there project-specific knowledge that doesn't fit any file? Create an appropriate new file
|
|
247
242
|
3. **Check for staleness** — Does the generated content match the current state of the code? Flag anything uncertain with `<!-- TODO: verify -->`
|
|
248
243
|
|
|
@@ -265,7 +260,7 @@ Now that your `.opencastle/` configuration is complete, here's what you can do:
|
|
|
265
260
|
2. **Implement a feature** — Use the **"Implement Feature"** prompt (`/oc:implement-feature` in Claude Code and Copilot) to have the Team Lead orchestrate a full feature build with task tracking, delegation, and verification
|
|
266
261
|
3. **Fix a bug** — Use the **"Bug Fix"** prompt (`/oc:bug-fix`) for structured triage, root cause analysis, and fix with tracker tracking
|
|
267
262
|
4. **Brainstorm first** — Not sure how to approach something? Use the **"Brainstorm"** prompt (`/oc:brainstorm`) to explore requirements and trade-offs before committing to a plan
|
|
268
|
-
5. **
|
|
263
|
+
5. **Plan a larger change with the convoy engine (experimental)** — `npx opencastle convoy "<task>"` writes a PRD and a convoy spec to `.opencastle/convoys/<name>.convoy.yml`, then asks before running it
|
|
269
264
|
|
|
270
265
|
## Guidelines
|
|
271
266
|
|
|
@@ -126,12 +126,12 @@ Not every task needs brainstorm. Skip this prompt; go directly to `implement-fea
|
|
|
126
126
|
- The task is a simple config change or docs update
|
|
127
127
|
- Technical approach is obvious and unambiguous
|
|
128
128
|
- The scope is a single file or component with no design decisions
|
|
129
|
-
- The task is well-understood and can be expressed as a convoy spec directly → use `
|
|
129
|
+
- The task is well-understood and can be expressed as a convoy spec directly → use `implement-feature`, which writes the spec
|
|
130
130
|
|
|
131
131
|
## After Brainstorming
|
|
132
132
|
|
|
133
133
|
Once the brainstorm is complete and the user confirms (or you're confident in the approach):
|
|
134
134
|
|
|
135
|
-
1. **Transition to planning** — use the brainstorm report as input for `implement-feature
|
|
135
|
+
1. **Transition to planning** — use the brainstorm report as input for `implement-feature`, which writes a convoy spec for all project work, whatever its size, for the user to run with `npx opencastle convoy run -f .opencastle/convoys/<name>.convoy.yml` (the convoy engine is experimental)
|
|
136
136
|
2. **Preserve context** — include the brainstorm report in delegation prompts so agents understand *why* an approach was chosen
|
|
137
137
|
3. **Reference in tracker** — link the brainstorm findings in the tracker issue description
|
|
@@ -56,11 +56,12 @@ Every bug gets tracked. Create tracker issue with:
|
|
|
56
56
|
|
|
57
57
|
### 4. Implement the Fix
|
|
58
58
|
|
|
59
|
-
All bug fixes execute via convoy engine — even single-task fixes — for observability, crash recovery.
|
|
59
|
+
All bug fixes execute via OpenCastle's convoy engine — even single-task fixes — for observability, crash recovery. The convoy engine is experimental; say so when you hand the spec over.
|
|
60
60
|
|
|
61
|
-
1. **
|
|
62
|
-
2. **
|
|
63
|
-
3. **
|
|
61
|
+
1. **Write the convoy spec** — plan the fix by the rules in the `generate-convoy` prompt, with the root cause analysis, fix approach, and file paths as context. That prompt returns JSON, which the CLI converts only when `npx opencastle convoy "<task>"` runs it; here, write the spec yourself as YAML to `.opencastle/convoys/<name>.convoy.yml`, with `version: 1` and the same fields. Use plain file paths (no `*` or `?`).
|
|
62
|
+
2. **Check the spec** — run `npx opencastle convoy run -f .opencastle/convoys/<name>.convoy.yml --dry-run`. It parses the spec and prints the execution plan without starting an agent.
|
|
63
|
+
3. **Hand the spec to the user** — tell them the convoy engine is experimental, and to run: `npx opencastle convoy run -f .opencastle/convoys/<name>.convoy.yml`. It runs each task in a git worktree made from the last commit, so the work it builds on must be committed; it also needs a signed-in agent runtime (Copilot, Claude Code, Cursor, OpenCode or Codex; `--adapter <name>` picks one).
|
|
64
|
+
4. **After convoy completes** — proceed to Step 5 (validation).
|
|
64
65
|
|
|
65
66
|
#### Convoy Task Prompt Must Include
|
|
66
67
|
|