opencastle 1.3.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.
Files changed (112) hide show
  1. package/README.md +90 -125
  2. package/bin/cli.mjs +12 -1
  3. package/dist/cli/adapters/claude-code.d.ts +5 -3
  4. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  5. package/dist/cli/adapters/claude-code.js +7 -3
  6. package/dist/cli/adapters/claude-code.js.map +1 -1
  7. package/dist/cli/adapters/single-file-base.d.ts +18 -0
  8. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  9. package/dist/cli/adapters/single-file-base.js +29 -4
  10. package/dist/cli/adapters/single-file-base.js.map +1 -1
  11. package/dist/cli/agent-plugin.test.js +12 -0
  12. package/dist/cli/agent-plugin.test.js.map +1 -1
  13. package/dist/cli/bootstrap.d.ts.map +1 -1
  14. package/dist/cli/bootstrap.js +20 -0
  15. package/dist/cli/bootstrap.js.map +1 -1
  16. package/dist/cli/ci.d.ts.map +1 -1
  17. package/dist/cli/ci.js +6 -4
  18. package/dist/cli/ci.js.map +1 -1
  19. package/dist/cli/command-namespace.test.js +33 -0
  20. package/dist/cli/command-namespace.test.js.map +1 -1
  21. package/dist/cli/convoy-cmd.d.ts.map +1 -1
  22. package/dist/cli/convoy-cmd.js +2 -1
  23. package/dist/cli/convoy-cmd.js.map +1 -1
  24. package/dist/cli/dispatcher.test.js +6 -0
  25. package/dist/cli/dispatcher.test.js.map +1 -1
  26. package/dist/cli/docs-accuracy.test.js +33 -8
  27. package/dist/cli/docs-accuracy.test.js.map +1 -1
  28. package/dist/cli/doctor.d.ts.map +1 -1
  29. package/dist/cli/doctor.js +9 -6
  30. package/dist/cli/doctor.js.map +1 -1
  31. package/dist/cli/init-own-files.test.d.ts +2 -0
  32. package/dist/cli/init-own-files.test.d.ts.map +1 -0
  33. package/dist/cli/init-own-files.test.js +133 -0
  34. package/dist/cli/init-own-files.test.js.map +1 -0
  35. package/dist/cli/init.d.ts.map +1 -1
  36. package/dist/cli/init.js +106 -7
  37. package/dist/cli/init.js.map +1 -1
  38. package/dist/cli/init.test.js +5 -4
  39. package/dist/cli/init.test.js.map +1 -1
  40. package/dist/cli/layers.d.ts.map +1 -1
  41. package/dist/cli/layers.js +13 -4
  42. package/dist/cli/layers.js.map +1 -1
  43. package/dist/cli/lesson.d.ts.map +1 -1
  44. package/dist/cli/lesson.js +6 -5
  45. package/dist/cli/lesson.js.map +1 -1
  46. package/dist/cli/prompt.d.ts.map +1 -1
  47. package/dist/cli/prompt.js +9 -7
  48. package/dist/cli/prompt.js.map +1 -1
  49. package/dist/cli/prompt.test.js +20 -2
  50. package/dist/cli/prompt.test.js.map +1 -1
  51. package/dist/cli/remove.d.ts.map +1 -1
  52. package/dist/cli/remove.js +3 -1
  53. package/dist/cli/remove.js.map +1 -1
  54. package/dist/cli/review.d.ts.map +1 -1
  55. package/dist/cli/review.js +7 -1
  56. package/dist/cli/review.js.map +1 -1
  57. package/dist/cli/sync-check.d.ts.map +1 -1
  58. package/dist/cli/sync-check.js +12 -3
  59. package/dist/cli/sync-check.js.map +1 -1
  60. package/dist/cli/sync.d.ts.map +1 -1
  61. package/dist/cli/sync.js +3 -2
  62. package/dist/cli/sync.js.map +1 -1
  63. package/dist/cli/update.d.ts.map +1 -1
  64. package/dist/cli/update.js +4 -3
  65. package/dist/cli/update.js.map +1 -1
  66. package/dist/cli/website-plugins.test.js +51 -2
  67. package/dist/cli/website-plugins.test.js.map +1 -1
  68. package/dist/orchestrator/plugins/coolify/config.d.ts.map +1 -1
  69. package/dist/orchestrator/plugins/coolify/config.js +13 -0
  70. package/dist/orchestrator/plugins/coolify/config.js.map +1 -1
  71. package/dist/orchestrator/plugins/sentry/config.d.ts.map +1 -1
  72. package/dist/orchestrator/plugins/sentry/config.js +13 -0
  73. package/dist/orchestrator/plugins/sentry/config.js.map +1 -1
  74. package/package.json +1 -1
  75. package/src/cli/adapters/claude-code.ts +7 -3
  76. package/src/cli/adapters/single-file-base.ts +47 -4
  77. package/src/cli/agent-plugin.test.ts +14 -0
  78. package/src/cli/bootstrap.ts +23 -0
  79. package/src/cli/ci.ts +6 -4
  80. package/src/cli/command-namespace.test.ts +35 -0
  81. package/src/cli/convoy/TELEMETRY.md +64 -62
  82. package/src/cli/convoy-cmd.ts +2 -1
  83. package/src/cli/dispatcher.test.ts +7 -0
  84. package/src/cli/docs-accuracy.test.ts +34 -7
  85. package/src/cli/doctor.ts +9 -6
  86. package/src/cli/init-own-files.test.ts +156 -0
  87. package/src/cli/init.test.ts +5 -4
  88. package/src/cli/init.ts +104 -7
  89. package/src/cli/layers.ts +13 -4
  90. package/src/cli/lesson.ts +6 -5
  91. package/src/cli/prompt.test.ts +21 -2
  92. package/src/cli/prompt.ts +11 -7
  93. package/src/cli/remove.ts +3 -0
  94. package/src/cli/review.ts +7 -1
  95. package/src/cli/sync-check.ts +12 -3
  96. package/src/cli/sync.ts +3 -2
  97. package/src/cli/update.ts +4 -3
  98. package/src/cli/website-plugins.test.ts +55 -5
  99. package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
  100. package/src/orchestrator/agents/team-lead.agent.md +2 -2
  101. package/src/orchestrator/customizations/README.md +58 -13
  102. package/src/orchestrator/customizations/logs/README.md +23 -18
  103. package/src/orchestrator/instructions/general.instructions.md +1 -1
  104. package/src/orchestrator/plugins/coolify/config.ts +13 -0
  105. package/src/orchestrator/plugins/sentry/config.ts +13 -0
  106. package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +44 -49
  107. package/src/orchestrator/prompts/brainstorm.prompt.md +2 -2
  108. package/src/orchestrator/prompts/bug-fix.prompt.md +5 -4
  109. package/src/orchestrator/prompts/create-skill.prompt.md +29 -39
  110. package/src/orchestrator/prompts/generate-convoy.prompt.md +1 -1
  111. package/src/orchestrator/prompts/generate-prd.prompt.md +1 -1
  112. package/src/orchestrator/prompts/implement-feature.prompt.md +7 -6
@@ -6,17 +6,27 @@
6
6
  * `@latest`, and the dead packages — because nothing tied them to the code. The
7
7
  * page now renders each snippet from `PLUGINS`; these tests keep it that way.
8
8
  */
9
- import { readFileSync } from 'node:fs'
9
+ import { readFileSync, readdirSync } from 'node:fs'
10
10
  import { join, resolve } from 'node:path'
11
11
  import { describe, it, expect } from 'vitest'
12
12
  import { PLUGINS } from '../orchestrator/plugins/index.js'
13
13
 
14
- const page = readFileSync(
15
- join(resolve(import.meta.dirname, '..', '..'), 'website', 'src', 'pages', 'docs', 'plugins.astro'),
16
- 'utf8',
17
- )
14
+ const repoRoot = resolve(import.meta.dirname, '..', '..')
15
+ const pages = join(repoRoot, 'website', 'src', 'pages')
16
+ const page = readFileSync(join(pages, 'docs', 'plugins.astro'), 'utf8')
17
+ const home = readFileSync(join(pages, 'index.astro'), 'utf8')
18
+ const landing = readFileSync(join(pages, 'docs', 'index.astro'), 'utf8')
18
19
  const rendered = [...page.matchAll(/mcpSnippet\('([\w-]+)'\)/g)].map((m) => m[1])
19
20
  const withServer = Object.values(PLUGINS).filter((p) => p.mcpServerKey && p.mcpConfig)
21
+ const ids = Object.values(PLUGINS).map((p) => p.id)
22
+
23
+ /** The keys of an object literal `const <name>… = { … };` in a page's frontmatter. */
24
+ function keysOf(source: string, name: string): string[] {
25
+ const start = source.indexOf(`const ${name}`)
26
+ if (start < 0) return []
27
+ const body = source.slice(start, source.indexOf('\n};', start))
28
+ return [...body.matchAll(/^\s{2}(?:'([^']+)'|([\w-]+)):/gm)].map((m) => m[1] ?? m[2])
29
+ }
20
30
 
21
31
  describe('the plugin guide', () => {
22
32
  it('writes no MCP config by hand', () => {
@@ -39,3 +49,43 @@ describe('the plugin guide', () => {
39
49
  }
40
50
  })
41
51
  })
52
+
53
+ /**
54
+ * Hetzner Cloud shipped in the CLI — `add --list` showed it — and was missing from
55
+ * both lists on the site, which said 31 integrations and showed 30. The tests above
56
+ * only covered integrations with an MCP server, and Hetzner has none.
57
+ */
58
+ describe('every integration is on the site', () => {
59
+ it('has a card on the integrations page, which init links to by id', () => {
60
+ const cards = [...page.matchAll(/class="plugin-card" id="([\w-]+)"/g)].map((m) => m[1])
61
+ expect(ids.filter((id) => !cards.includes(id))).toEqual([])
62
+ expect(cards.filter((id) => !ids.includes(id))).toEqual([])
63
+ })
64
+
65
+ it('is in the homepage grid', () => {
66
+ // The grid takes names and the count from PLUGINS, and each tile's icon and
67
+ // one-line description from these two maps — keyed by the same ids.
68
+ expect(home).toContain("from '../../../src/orchestrator/plugins/index'")
69
+ for (const map of ['integrationBlurbs', 'integrationIcons']) {
70
+ const keys = keysOf(home, map)
71
+ expect(ids.filter((id) => !keys.includes(id)), map).toEqual([])
72
+ expect(keys.filter((id) => !ids.includes(id)), map).toEqual([])
73
+ }
74
+ })
75
+
76
+ it('counts the skills the homepage states', () => {
77
+ // The stat is the core skills plus one per integration; it said 57 when it was 62.
78
+ const core = readdirSync(join(repoRoot, 'src', 'orchestrator', 'skills'), { withFileTypes: true })
79
+ .filter((d) => d.isDirectory()).length
80
+ expect(home.match(/const coreSkillCount = (\d+);/)?.[1]).toBe(String(core))
81
+ })
82
+
83
+ it('states no integration count by hand', () => {
84
+ // 31 was right until a 32nd ships; the pages print Object.keys(PLUGINS).length.
85
+ const count = String(ids.length)
86
+ const sources = [['index.astro', home], ['docs/index.astro', landing], ['plugins.astro', page]] as const
87
+ for (const [name, source] of sources) {
88
+ expect(source.match(new RegExp(`\\b${count} (?:plugins|integrations)\\b`))?.[0], name).toBeUndefined()
89
+ }
90
+ })
91
+ })
@@ -1,25 +1,25 @@
1
1
  {
2
- "hash": "12c645f9",
2
+ "hash": "7b1346f9",
3
3
  "configHash": "30f8ea04",
4
- "lockfileHash": "af43301a",
5
- "browserHash": "13776f9b",
4
+ "lockfileHash": "63a60284",
5
+ "browserHash": "f21b7f0d",
6
6
  "optimized": {
7
7
  "astro > cssesc": {
8
8
  "src": "../../../../../node_modules/cssesc/cssesc.js",
9
9
  "file": "astro___cssesc.js",
10
- "fileHash": "94f71dbc",
10
+ "fileHash": "422538c3",
11
11
  "needsInterop": true
12
12
  },
13
13
  "astro > aria-query": {
14
14
  "src": "../../../../../node_modules/aria-query/lib/index.js",
15
15
  "file": "astro___aria-query.js",
16
- "fileHash": "6f2c077e",
16
+ "fileHash": "52ed552b",
17
17
  "needsInterop": true
18
18
  },
19
19
  "astro > axobject-query": {
20
20
  "src": "../../../../../node_modules/axobject-query/lib/index.js",
21
21
  "file": "astro___axobject-query.js",
22
- "fileHash": "4c620914",
22
+ "fileHash": "12ac41cb",
23
23
  "needsInterop": true
24
24
  }
25
25
  },
@@ -19,7 +19,7 @@ handoffs:
19
19
  prompt: 'Use the quick-refinement prompt to handle these follow-up refinements (UI tweaks, polish, adjustments):'
20
20
  - label: Generate Convoy
21
21
  agent: 'Team Lead (OpenCastle)'
22
- prompt: 'Use the generate-convoy prompt to create a .convoy.yml spec for autonomous convoy execution based on:'
22
+ prompt: 'Plan the work by the rules in the generate-convoy prompt and write it as a convoy spec at .opencastle/convoys/<name>.convoy.yml for autonomous execution by the experimental convoy engine, based on:'
23
23
  - label: Run Convoy
24
24
  agent: 'Team Lead (OpenCastle)'
25
25
  prompt: 'Run an existing .convoy.yml spec file. Parse the spec, validate the DAG, and execute via the convoy engine:'
@@ -73,7 +73,7 @@ Developer | UI/UX Expert | Content Engineer | Data Engineer | Testing Expert | S
73
73
  | Path | When | Action |
74
74
  |------|------|--------|
75
75
  | Compact | score ≤2, single subtask | Sub-agent directly; fast review + logs still required |
76
- | Convoy | score 3+ or multi-task | `generate-convoy` → `.opencastle/convoys/<name>.convoy.yml` → validation gates → PR |
76
+ | Convoy (experimental) | score 3+ or multi-task | plan by `generate-convoy`'s rules → write `.opencastle/convoys/<name>.convoy.yml` → user runs `npx opencastle convoy run -f <spec>` → validation gates → PR |
77
77
  | Utility | `create-skill`, `brainstorm`, `quick-refinement` | Direct delegation, no convoy |
78
78
 
79
79
  ## Workflow
@@ -1,28 +1,64 @@
1
- # Customizations
1
+ # .opencastle/
2
2
 
3
- Project-specific configuration for the AI agent framework. Everything in this folder is **particular to this project** — the rest of the orchestrator directory (instructions, skills, agents, prompts, workflows) is designed to be project-agnostic and reusable across repositories.
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, how to test in a browser, how to run a panel review). This folder holds the concrete values those skills operate on — project IDs, table schemas, team UUIDs, endpoint inventories, and similar configuration that changes per project.
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 `.opencastle/stack/api-config.md`, so agents automatically load project context when they load a skill.
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
- | File | Purpose |
35
- |------|---------|
36
- | _(created by `opencastle init` based on detected technologies)_ | |
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
- | _(task tracker config created by `opencastle init`)_ | |
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 machine-readable logs appended automatically by agents during sessions, delegations, and panel reviews.
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` | Schema documentation for the NDJSON log files |
54
- | `events.ndjson` | All structured event log entries (sessions, delegations, reviews, panels, disputes) |
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 apps, new tracker labels, etc. The skills themselves should rarely need editing; changing a project ID or adding a table column is a customization change, not a skill change.
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
- Run `npx opencastle init` to auto-discover the project's structure and populate these files. It scans for frameworks, databases, CMS, deployment config, and task tracking, then generates the appropriate `stack/` and `project/` files.
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, sorted by timestamp |
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:00Z",
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 datetime (YYYY-MM-DDTHH:MM:SSZ) |
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` | Yes | Model used — whatever the assistant reported |
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:00Z",
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": "fast",
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 datetime (YYYY-MM-DDTHH:MM:SSZ) |
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` | Yes | Model used |
117
- | `tier` | `string` | Yes | `economy`, `fast`, `standard`, `quality`, `premium` |
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:00Z",
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 datetime (YYYY-MM-DDTHH:MM:SSZ) |
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` | Yes | Model used for the reviewer — whatever the assistant reported |
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:00Z",
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 datetime (YYYY-MM-DDTHH:MM:SSZ) |
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` | Yes | Model used for reviewers |
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:00Z",
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 datetime when dispute was created |
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
- See [project.instructions.md](../.opencastle/project.instructions.md).
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',
@@ -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',