@ornexus/neocortex 4.60.75 → 4.60.77
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 +6 -43
- package/dist/release-source.json +1 -1
- package/dist/sbom.cdx.json +1195 -1205
- package/docs/install/installer-diagnostics.md +6 -5
- package/docs/install/linux-global-install.md +5 -3
- package/install.ps1 +80 -66
- package/install.sh +63 -57
- package/package.json +4 -11
- package/packages/client/dist/agent/refresh-stubs.d.ts +7 -0
- package/packages/client/dist/agent/refresh-stubs.js +2 -2
- package/packages/client/dist/agent/update-description.js +1 -1
- package/packages/client/dist/commands/invoke.d.ts +6 -0
- package/packages/client/dist/commands/invoke.js +57 -57
- package/packages/client/dist/commands/refresh-memory.js +3 -3
- package/packages/client/dist/memory/project-memory-writer.d.ts +2 -0
- package/packages/client/dist/memory/project-memory-writer.js +17 -16
- package/packages/client/dist/memory/shared-project-memory-types.js +1 -1
- package/packages/client/dist/runner/headless/managed-profile.js +1 -1
- package/packages/client/dist/runner/host-capacity.d.ts +27 -0
- package/packages/client/dist/runner/host-capacity.js +1 -0
- package/packages/shared/dist/project-memory-targets.js +9 -3
- package/packages/shared/dist/yoloop/host-capacity.js +76 -0
- package/postinstall.js +1 -1
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/install-antigravity.sh +6 -5
- package/targets-stubs/antigravity/neocortex.md +37 -7
- package/targets-stubs/antigravity/skill/SKILL.md +30 -1
- package/targets-stubs/claude-code/neocortex-root.agent.yaml +2 -1
- package/targets-stubs/claude-code/neocortex-root.md +45 -19
- package/targets-stubs/claude-code/neocortex.agent.yaml +2 -1
- package/targets-stubs/claude-code/neocortex.md +64 -69
- package/targets-stubs/codex/AGENTS.md +36 -31
- package/targets-stubs/codex/README.md +7 -3
- package/targets-stubs/codex/install-codex.sh +22 -11
- package/targets-stubs/codex/neocortex.toml +14 -8
- package/targets-stubs/cursor/agent.md +39 -8
- package/targets-stubs/cursor/install-cursor.sh +1 -1
- package/targets-stubs/deepseek-harness/SKILL.md +8 -3
- package/targets-stubs/gemini-cli/agent.md +48 -16
- package/targets-stubs/gemini-cli/agents/neocortex.md +6 -0
- package/targets-stubs/gemini-cli/install-gemini.sh +20 -10
- package/targets-stubs/grok/SKILL.md +29 -0
- package/targets-stubs/grok/install-grok.sh +12 -3
- package/targets-stubs/kimi/neocortex.md +34 -2
- package/targets-stubs/lib/managed-config-merge.js +28 -1
- package/targets-stubs/lib/managed-profile.sh +81 -7
- package/targets-stubs/openclaw/SKILL.md +29 -0
- package/targets-stubs/opencode/neocortex-root.md +62 -28
- package/targets-stubs/opencode/neocortex.md +36 -4
- package/targets-stubs/vscode/install-vscode.sh +3 -3
- package/targets-stubs/vscode/neocortex.agent.md +55 -22
- package/docs/install/coderabbit-manual-setup.md +0 -86
|
@@ -54,16 +54,17 @@ OpenCode-side context should be fed back into the canonical file.
|
|
|
54
54
|
|
|
55
55
|
I am the root agent. I accept `*yoloop`, `*yolo`, `*create-epic`, and any other
|
|
56
56
|
`*`-prefixed trigger from the user. I am the yoloop owner. For OpenCode, yoloop
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
dispatches authorized per-story work to native `neocortex` children by default:
|
|
58
|
+
the server authorizes delegation (`native_safe`) and root-owned parallel plans
|
|
59
|
+
(`parallel_wave` / `continuous_dag`) on every harness, and I run independent
|
|
60
|
+
stories in parallel through the OpenCode `task` tool. When the server returns no
|
|
61
|
+
task directive, I keep root-owned inline/shell-loop execution.
|
|
61
62
|
|
|
62
63
|
```
|
|
63
64
|
┌────────────────────────────────────────────────────────────┐
|
|
64
65
|
│ │
|
|
65
66
|
│ ####### N E O C O R T E X │
|
|
66
|
-
│ ### ######## v4.60.
|
|
67
|
+
│ ### ######## v4.60.77 │
|
|
67
68
|
│ ######### ##### │
|
|
68
69
|
│ ## ############## Development Orchestrator │
|
|
69
70
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -157,23 +158,24 @@ Runtime flow as the root agent:
|
|
|
157
158
|
`metadata.yoloopComplete`, and `metadata.yoloopAborted`.
|
|
158
159
|
4. When metadata authorizes a parallel wave through
|
|
159
160
|
`metadata.yoloopExecutionPlan`, `metadata.yoloopWave`, or the server-defined
|
|
160
|
-
successor
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
161
|
+
successor (`mode: parallel_wave` or `mode: continuous_dag`), I dispatch every
|
|
162
|
+
independent per-story entry of that wave in parallel, as described in the
|
|
163
|
+
Parallel Delegation Contract below. The root agent keeps yoloop state
|
|
164
|
+
ownership while child executions handle only their assigned story prompt. I
|
|
165
|
+
never infer parallelism from local OpenCode capability alone; the server
|
|
166
|
+
plan decides which stories are independent.
|
|
167
|
+
5. When the server returns no `kind: 'task'` directive, I keep ownership and
|
|
168
|
+
drive `*yoloop` myself through inline re-invocation or a shell loop.
|
|
169
|
+
6. When the server returns a `kind: 'task'` directive, I run the native
|
|
170
|
+
`neocortex` child profile (the sibling agent profile defined in
|
|
171
|
+
`neocortex.md` in this same OpenCode agents directory) through the `task`
|
|
172
|
+
tool. I pass only the authorized per-story prompt after placeholder
|
|
173
|
+
substitution, such as `*yolo @docs/stories/<id>.story.md`. I never pass the
|
|
174
|
+
original root invocation (`@neocortex *...` or the outer `*yoloop ...`) as
|
|
175
|
+
the child prompt. Before a native background launch I also require
|
|
176
|
+
supports=true, `native_safe`, the exact `native-background-dispatch-v1`
|
|
177
|
+
envelope and a same-graph bijection of story IDs, prompts and dispatch
|
|
178
|
+
bindings. Missing or mismatched authority stays inline.
|
|
177
179
|
7. When returned metadata contains only `kind: 'skill'` directives (no task
|
|
178
180
|
directive), I keep ownership in the root agent and use an inline re-invoke
|
|
179
181
|
loop or the platform-native shell primitive — I never create a child execution
|
|
@@ -184,7 +186,7 @@ not a Neocortex server trigger. Never pass `@neocortex *yoloop ...` or
|
|
|
184
186
|
`*yoloop ...` to a child execution.
|
|
185
187
|
|
|
186
188
|
A child `*yolo` terminal success, including a merge/status `done` result, stops
|
|
187
|
-
only that child story. It is not a yoloop stop. After the
|
|
189
|
+
only that child story. It is not a yoloop stop. After the children return, I
|
|
188
190
|
resume ownership as the root agent and re-invoke `*yoloop` when the latest
|
|
189
191
|
yoloop metadata has `yoloopComplete === false`, `yoloopAborted === false`, and `yoloopReleaseBlocked !== true`.
|
|
190
192
|
|
|
@@ -194,6 +196,33 @@ are reconciled without replacement. The first admissible settlement returns to
|
|
|
194
196
|
this root without draining siblings; integration and continuation stay root-only.
|
|
195
197
|
Headless-process evidence never promotes native-agent capability.
|
|
196
198
|
|
|
199
|
+
## Parallel Delegation Contract
|
|
200
|
+
|
|
201
|
+
Parallel subagent delegation is the default on every harness and OS, including
|
|
202
|
+
OpenCode. When the server authorizes delegation
|
|
203
|
+
(`taskDelegationCapability: 'native_safe'`) and returns a root-owned execution
|
|
204
|
+
plan, the root agent dispatches independent stories in parallel with
|
|
205
|
+
the OpenCode `task` tool (`subagent_type: neocortex`):
|
|
206
|
+
|
|
207
|
+
- `mode: parallel_wave`: for the current entry of `parallelWaves[]`, take its
|
|
208
|
+
`storyIds` (and matching `promptTemplates`, when present).
|
|
209
|
+
- `mode: continuous_dag`: take the plan's ready `storyIds` (and matching
|
|
210
|
+
`promptTemplates`, when present).
|
|
211
|
+
- Spawn ONE `neocortex` child per story **in a single message with multiple `task` tool calls**, so the children truly run
|
|
212
|
+
in parallel. When the plan gives `maxConcurrency`, launch at most that many at
|
|
213
|
+
once and start the remainder as earlier children return.
|
|
214
|
+
- Each child receives only its server-authored per-story prompt, for example
|
|
215
|
+
`*yolo @docs/stories/<id>.story.md` or the `... branchless-preparation`
|
|
216
|
+
variant returned by the server. Never pass the outer `@neocortex *yoloop ...`
|
|
217
|
+
or any root invocation to a child.
|
|
218
|
+
- Serial plans (`mode: serial`, a single story, or no plan) keep one child at a
|
|
219
|
+
time.
|
|
220
|
+
- Children may delegate further when the server output they receive authorizes
|
|
221
|
+
it.
|
|
222
|
+
- The root agent keeps yoloop ownership: it waits for all children of the wave,
|
|
223
|
+
then re-invokes `*yoloop`; server output decides integration and the next
|
|
224
|
+
wave. Follow stdout and server output; never invent workflow steps.
|
|
225
|
+
|
|
197
226
|
## Examples
|
|
198
227
|
|
|
199
228
|
| User invocation | Invoke command |
|
|
@@ -227,13 +256,18 @@ Recognition signals:
|
|
|
227
256
|
2. **Fallback**: `metadata.mode === 'yoloop'` AND the response body contains
|
|
228
257
|
the literal marker `[YOLOOP_NATIVE_LOOP_INSTRUCTIONS_END]`.
|
|
229
258
|
|
|
230
|
-
Per iteration, when a `kind: 'task'` directive is returned:
|
|
259
|
+
Per iteration, when a `kind: 'task'` directive or an execution plan is returned:
|
|
231
260
|
|
|
232
|
-
1. Read
|
|
261
|
+
1. Read the plan: the current `parallelWaves[]` entry for `mode: parallel_wave`,
|
|
262
|
+
the ready `storyIds` for `mode: continuous_dag`, or `metadata.nextStoryId`
|
|
263
|
+
for a serial plan. Build each per-story prompt from its server-authored
|
|
264
|
+
`promptTemplates` entry or by substituting `{storyId}` into the directive
|
|
233
265
|
`promptTemplate`.
|
|
234
|
-
2. Run the sibling `neocortex` child profile with
|
|
235
|
-
prompt only.
|
|
236
|
-
|
|
266
|
+
2. Run the sibling `neocortex` child profile with each substituted per-story
|
|
267
|
+
prompt only. Parallel plans spawn all wave children in a single message with
|
|
268
|
+
multiple `task` tool calls (bounded by `maxConcurrency`); serial plans spawn
|
|
269
|
+
one child.
|
|
270
|
+
3. Wait for every child execution of the wave to return.
|
|
237
271
|
4. Re-invoke `*yoloop <args>` only when the latest response metadata has all
|
|
238
272
|
of: `yoloopComplete === false`, `yoloopAborted === false`, `yoloopReleaseBlocked !== true`,
|
|
239
273
|
`safeToContinueYoloop !== false`, and the latest scoped CI merge decision,
|
|
@@ -5,7 +5,7 @@ mode: subagent
|
|
|
5
5
|
color: "#00B4FF"
|
|
6
6
|
permission:
|
|
7
7
|
"*": allow
|
|
8
|
-
task:
|
|
8
|
+
task: allow
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Neocortex OpenCode Subagent
|
|
@@ -69,9 +69,41 @@ re-invoke `*yoloop`; this subagent must not make that root-loop decision.
|
|
|
69
69
|
|
|
70
70
|
Native child reservation, host-handle observation, background wave settlement,
|
|
71
71
|
status polling and yoloop continuation are root-only responsibilities. This
|
|
72
|
-
child must never invoke the `native-agent` bridge,
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
child must never invoke the `native-agent` bridge, consume the background
|
|
73
|
+
envelope, persist a host handle, integrate sibling results, or infer liveness
|
|
74
|
+
from silence. This child may delegate further: when the server output it
|
|
75
|
+
receives authorizes sub-tasks, it spawns `neocortex` children through the
|
|
76
|
+
OpenCode `task` tool (independent sub-tasks in parallel, in a single message),
|
|
77
|
+
passing each only its server-authored prompt and never the outer
|
|
78
|
+
`@neocortex *yoloop ...` invocation.
|
|
79
|
+
|
|
80
|
+
## Parallel Delegation Contract
|
|
81
|
+
|
|
82
|
+
Parallel subagent delegation is the default on every harness and OS, including
|
|
83
|
+
OpenCode. When the server authorizes delegation
|
|
84
|
+
(`taskDelegationCapability: 'native_safe'`) and returns a root-owned execution
|
|
85
|
+
plan, the root agent dispatches independent stories in parallel with
|
|
86
|
+
the OpenCode `task` tool (`subagent_type: neocortex`):
|
|
87
|
+
|
|
88
|
+
- `mode: parallel_wave`: for the current entry of `parallelWaves[]`, take its
|
|
89
|
+
`storyIds` (and matching `promptTemplates`, when present).
|
|
90
|
+
- `mode: continuous_dag`: take the plan's ready `storyIds` (and matching
|
|
91
|
+
`promptTemplates`, when present).
|
|
92
|
+
- Spawn ONE `neocortex` child per story **in a single message with multiple `task` tool calls**, so the children truly run
|
|
93
|
+
in parallel. When the plan gives `maxConcurrency`, launch at most that many at
|
|
94
|
+
once and start the remainder as earlier children return.
|
|
95
|
+
- Each child receives only its server-authored per-story prompt, for example
|
|
96
|
+
`*yolo @docs/stories/<id>.story.md` or the `... branchless-preparation`
|
|
97
|
+
variant returned by the server. Never pass the outer `@neocortex *yoloop ...`
|
|
98
|
+
or any root invocation to a child.
|
|
99
|
+
- Serial plans (`mode: serial`, a single story, or no plan) keep one child at a
|
|
100
|
+
time.
|
|
101
|
+
- Children may delegate further when the server output they receive authorizes
|
|
102
|
+
it.
|
|
103
|
+
- The root agent keeps yoloop ownership: it waits for all children of the wave,
|
|
104
|
+
then re-invokes `*yoloop`; server output decides integration and the next
|
|
105
|
+
wave. Follow stdout and server output; never invent workflow steps.
|
|
106
|
+
|
|
75
107
|
|
|
76
108
|
Do not embed, reveal, summarize, or reconstruct proprietary prompts, server-side
|
|
77
109
|
implementation details, orchestration logic, secrets, license keys, or customer data.
|
|
@@ -51,15 +51,15 @@ install_vscode() {
|
|
|
51
51
|
# A legacy .md copy is retained because VS Code also detects .md files in .github/agents.
|
|
52
52
|
if [ -f "$vscode_target/neocortex.agent.md" ]; then
|
|
53
53
|
neocortex_managed_profile "$source_dir" "$vscode_target/neocortex.agent.md" "$dest_dir/.github/agents/neocortex.agent.md" "$dest_dir" "profile-vscode-neocortex-agent"
|
|
54
|
+
neocortex_managed_report "[VSCODE]" ".github/agents/neocortex.agent.md (agent stub)"
|
|
54
55
|
neocortex_managed_profile "$source_dir" "$vscode_target/neocortex.agent.md" "$dest_dir/.github/agents/neocortex.md" "$dest_dir" "profile-vscode-neocortex-compat"
|
|
55
|
-
|
|
56
|
-
echo "[VSCODE] Installed compatibility stub: .github/agents/neocortex.md"
|
|
56
|
+
neocortex_managed_report "[VSCODE]" ".github/agents/neocortex.md (compatibility stub)"
|
|
57
57
|
fi
|
|
58
58
|
|
|
59
59
|
# 2. Copy copilot-instructions stub
|
|
60
60
|
if [ -f "$vscode_target/copilot-instructions.md" ]; then
|
|
61
61
|
neocortex_managed_profile "$source_dir" "$vscode_target/copilot-instructions.md" "$dest_dir/.github/copilot-instructions.md" "$dest_dir" "profile-vscode-copilot-instructions"
|
|
62
|
-
|
|
62
|
+
neocortex_managed_report "[VSCODE]" ".github/copilot-instructions.md"
|
|
63
63
|
fi
|
|
64
64
|
|
|
65
65
|
# 3. User-level additive merge MCP config
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "neocortex"
|
|
3
|
-
description: "Neocortex v4.60.
|
|
3
|
+
description: "Neocortex v4.60.77 | OrNexus Team"
|
|
4
4
|
tools:
|
|
5
5
|
# Read / Edit (built-in tool sets)
|
|
6
6
|
- read
|
|
@@ -13,12 +13,15 @@ tools:
|
|
|
13
13
|
- web
|
|
14
14
|
# Todo tracking
|
|
15
15
|
- todos
|
|
16
|
+
# Subagent delegation (parallel per-story neocortex children)
|
|
17
|
+
- agent
|
|
16
18
|
# MCP servers (wildcards grant access to all tools from each connected server)
|
|
17
19
|
- context7/*
|
|
18
20
|
- playwright/*
|
|
19
21
|
- browser_use/*
|
|
20
22
|
user-invocable: true
|
|
21
|
-
agents:
|
|
23
|
+
agents:
|
|
24
|
+
- neocortex
|
|
22
25
|
target: vscode
|
|
23
26
|
---
|
|
24
27
|
|
|
@@ -48,10 +51,11 @@ Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server
|
|
|
48
51
|
|
|
49
52
|
`[P201-EV-OTHER-TARGETS] target=vscode child=unvalidated requestedMode=max effectiveMode=standard approvalScope=session fallback=root-inline reason=platform-child-unvalidated color=unsupported`
|
|
50
53
|
|
|
51
|
-
This
|
|
52
|
-
the `agent` tool and
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
This profile serves both as the VS Code root coordinator and as the delegated
|
|
55
|
+
`neocortex` child. It owns the `agent` tool and lists `neocortex` in `agents`,
|
|
56
|
+
so the root dispatches server-authorized per-story children in parallel and
|
|
57
|
+
children may delegate further. Profile presence alone is not a runtime smoke
|
|
58
|
+
and does not upgrade the approval capability to `validated`.
|
|
55
59
|
|
|
56
60
|
## Canonical Project Memory
|
|
57
61
|
|
|
@@ -68,7 +72,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
68
72
|
┌────────────────────────────────────────────────────────────┐
|
|
69
73
|
│ │
|
|
70
74
|
│ ####### N E O C O R T E X │
|
|
71
|
-
│ ### ######## v4.60.
|
|
75
|
+
│ ### ######## v4.60.77 │
|
|
72
76
|
│ ######### ##### │
|
|
73
77
|
│ ## ############## Development Orchestrator │
|
|
74
78
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -156,24 +160,52 @@ Runtime flow:
|
|
|
156
160
|
1. The root VS Code/Copilot agent intercepts the user trigger and invokes
|
|
157
161
|
`neocortex-client`.
|
|
158
162
|
2. The root agent follows stdout exactly.
|
|
159
|
-
3.
|
|
160
|
-
`kind: 'task'` directive
|
|
161
|
-
`neocortex`
|
|
162
|
-
4. The root agent passes only the
|
|
163
|
-
placeholder substitution.
|
|
164
|
-
(`@neocortex *...` or the outer `*yoloop ...`) as the subagent
|
|
163
|
+
3. When returned metadata contains `metadata.skillDirectives[]` with a
|
|
164
|
+
`kind: 'task'` directive, or an execution plan with per-story prompts, the
|
|
165
|
+
root agent spawns native `neocortex` subagents with the `agent` tool.
|
|
166
|
+
4. The root agent passes only the server-authored per-story prompt to each
|
|
167
|
+
subagent after placeholder substitution.
|
|
168
|
+
Never pass the original root invocation (`@neocortex *...` or the outer `*yoloop ...`) as the subagent
|
|
169
|
+
prompt.
|
|
165
170
|
|
|
166
171
|
`subagentType: 'neocortex'` is a native VS Code/Copilot agent profile name, not a
|
|
167
|
-
Neocortex server trigger. If no task directive
|
|
168
|
-
agent or use the shell-loop fallback below.
|
|
172
|
+
Neocortex server trigger. If no task directive and no execution plan are
|
|
173
|
+
returned, continue in the root agent or use the shell-loop fallback below.
|
|
169
174
|
This is the legacy skill-only fallback: never spawn a child subagent from
|
|
170
|
-
`kind: 'skill'
|
|
175
|
+
`kind: 'skill'` alone, and never pass `@neocortex *yoloop ...` to a child.
|
|
171
176
|
|
|
172
177
|
A child `*yolo` terminal success, including a merge/status `done` result, stops
|
|
173
|
-
only that child story. It is not a yoloop stop. After the
|
|
178
|
+
only that child story. It is not a yoloop stop. After the children return, the root
|
|
174
179
|
VS Code/Copilot agent resumes ownership and re-invokes `*yoloop` when the latest
|
|
175
180
|
yoloop metadata has `yoloopComplete === false`, `yoloopAborted === false`, and `yoloopReleaseBlocked !== true`.
|
|
176
181
|
|
|
182
|
+
## Parallel Delegation Contract
|
|
183
|
+
|
|
184
|
+
Parallel subagent delegation is the default on every harness and OS, including
|
|
185
|
+
VS Code / GitHub Copilot. When the server authorizes delegation
|
|
186
|
+
(`taskDelegationCapability: 'native_safe'`) and returns a root-owned execution
|
|
187
|
+
plan, the root agent dispatches independent stories in parallel with
|
|
188
|
+
the `agent` tool (subagent `neocortex`):
|
|
189
|
+
|
|
190
|
+
- `mode: parallel_wave`: for the current entry of `parallelWaves[]`, take its
|
|
191
|
+
`storyIds` (and matching `promptTemplates`, when present).
|
|
192
|
+
- `mode: continuous_dag`: take the plan's ready `storyIds` (and matching
|
|
193
|
+
`promptTemplates`, when present).
|
|
194
|
+
- Spawn ONE `neocortex` child per story **in a single turn with multiple `agent` tool calls**, so the children truly run
|
|
195
|
+
in parallel. When the plan gives `maxConcurrency`, launch at most that many at
|
|
196
|
+
once and start the remainder as earlier children return.
|
|
197
|
+
- Each child receives only its server-authored per-story prompt, for example
|
|
198
|
+
`*yolo @docs/stories/<id>.story.md` or the `... branchless-preparation`
|
|
199
|
+
variant returned by the server. Never pass the outer `@neocortex *yoloop ...`
|
|
200
|
+
or any root invocation to a child.
|
|
201
|
+
- Serial plans (`mode: serial`, a single story, or no plan) keep one child at a
|
|
202
|
+
time.
|
|
203
|
+
- Children may delegate further when the server output they receive authorizes
|
|
204
|
+
it.
|
|
205
|
+
- The root agent keeps yoloop ownership: it waits for all children of the wave,
|
|
206
|
+
then re-invokes `*yoloop`; server output decides integration and the next
|
|
207
|
+
wave. Follow stdout and server output; never invent workflow steps.
|
|
208
|
+
|
|
177
209
|
## Exemplos
|
|
178
210
|
|
|
179
211
|
| Invocacao do Usuario | Comando invoke |
|
|
@@ -232,11 +264,12 @@ VSCode Copilot agent lacks a native `/loop` skill. Use `runInTerminal` with the
|
|
|
232
264
|
bash snippet documented in `docs/arquitetura-software/loop-usage-guide.md` (Platform
|
|
233
265
|
Matrix).
|
|
234
266
|
|
|
235
|
-
When a response includes a `kind: 'task'` directive
|
|
236
|
-
agent
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
subagent
|
|
267
|
+
When a response includes a `kind: 'task'` directive or a parallel execution
|
|
268
|
+
plan, the root VS Code/Copilot agent runs the returned per-story prompts in
|
|
269
|
+
native `neocortex` subagents, in parallel whenever the plan is `parallel_wave` or
|
|
270
|
+
`continuous_dag` (see the Parallel Delegation Contract). The shell loop remains
|
|
271
|
+
the fallback for loop repetition when the host offers no subagent primitive; it
|
|
272
|
+
must not pass the outer `*yoloop` trigger into a child subagent.
|
|
240
273
|
The shell-loop fallback must also treat a child `*yolo` terminal success as a
|
|
241
274
|
per-story boundary and continue polling `*yoloop` until yoloop metadata or
|
|
242
275
|
termination tokens report complete/aborted.
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# CodeRabbit manual setup
|
|
2
|
-
|
|
3
|
-
Story: `P177.04`
|
|
4
|
-
|
|
5
|
-
Evidence placeholder: `[P177-EV-CODERABBIT-OPTIN]`
|
|
6
|
-
|
|
7
|
-
This guide documents the public-safe CodeRabbit setup boundary for Neocortex
|
|
8
|
-
installs. CodeRabbit is an optional third-party tool. Neocortex default npm
|
|
9
|
-
install, global postinstall, `install.sh`, and `install.ps1` do not install it or
|
|
10
|
-
run vendor onboarding flows.
|
|
11
|
-
|
|
12
|
-
## Default Neocortex install behavior
|
|
13
|
-
|
|
14
|
-
Default installation only reports CodeRabbit status as an informational optional
|
|
15
|
-
tool check:
|
|
16
|
-
|
|
17
|
-
```text
|
|
18
|
-
CodeRabbit CLI optional setup skipped: P177_OPTIONAL_TOOL_SKIPPED_NONINTERACTIVE
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
The exact installer output can vary by platform and quiet mode, but the contract
|
|
22
|
-
is stable:
|
|
23
|
-
|
|
24
|
-
- no CodeRabbit network installer is invoked by default;
|
|
25
|
-
- no shell-piped vendor installer, package-manager install, doctor check, auth
|
|
26
|
-
flow, browser flow, or shell profile mutation is started by Neocortex;
|
|
27
|
-
- absence of CodeRabbit is non-blocking for Neocortex installation;
|
|
28
|
-
- CI and non-interactive runs use public reason codes such as
|
|
29
|
-
`P177_OPTIONAL_TOOL_SKIPPED_CI` or
|
|
30
|
-
`P177_OPTIONAL_TOOL_SKIPPED_NONINTERACTIVE`.
|
|
31
|
-
|
|
32
|
-
## Manual setup boundary
|
|
33
|
-
|
|
34
|
-
If a user wants CodeRabbit, they must install and authenticate it outside the
|
|
35
|
-
Neocortex npm lifecycle by following CodeRabbit's own current public
|
|
36
|
-
documentation. Review any third-party installer before running it because it may
|
|
37
|
-
change `PATH`, inspect the local environment, run doctor checks, or require
|
|
38
|
-
browser authentication.
|
|
39
|
-
|
|
40
|
-
Neocortex does not define a default CodeRabbit opt-in flag for npm `postinstall`.
|
|
41
|
-
Until a future public contract adds one, setup is manual: install the third-party
|
|
42
|
-
tool separately, authenticate with the vendor separately, and then rerun
|
|
43
|
-
Neocortex commands. Keep vendor output out of Neocortex issues and release
|
|
44
|
-
evidence; summarize only public reason codes and synthetic paths.
|
|
45
|
-
|
|
46
|
-
After manual setup, Neocortex may detect that a `coderabbit` command is already
|
|
47
|
-
available and report it as an optional/manual tool. Neocortex still does not run
|
|
48
|
-
CodeRabbit installation or onboarding during default install.
|
|
49
|
-
|
|
50
|
-
## Public-safe diagnostics
|
|
51
|
-
|
|
52
|
-
Use synthetic summaries and reason codes in support reports:
|
|
53
|
-
|
|
54
|
-
```json
|
|
55
|
-
{
|
|
56
|
-
"tool": "coderabbit",
|
|
57
|
-
"phase": "optional-tool-setup",
|
|
58
|
-
"status": "skipped",
|
|
59
|
-
"reasonCode": "P177_OPTIONAL_TOOL_OPT_IN_REQUIRED",
|
|
60
|
-
"summary": "Optional CodeRabbit setup is manual and outside default Neocortex install."
|
|
61
|
-
}
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Installer stdout may render the same information as bounded key/value text, for
|
|
65
|
-
example `reasonCode=P177_OPTIONAL_TOOL_SKIPPED_CI` with `code=null`,
|
|
66
|
-
`signal=null`, `timedOut=false` and `redactionReasonCode=P177_PUBLIC_SAFE_LOG_REDACTED`.
|
|
67
|
-
See `docs/install/installer-diagnostics.md` for the shared diagnostics contract.
|
|
68
|
-
|
|
69
|
-
If support asks whether CodeRabbit was installed by default, answer with the
|
|
70
|
-
diagnostic reason code and this contract: default Neocortex postinstall skips
|
|
71
|
-
third-party installers and reports only optional/manual status. Do not paste raw
|
|
72
|
-
CodeRabbit onboarding, browser-auth prompts, shell profile diffs, or terminal
|
|
73
|
-
transcripts.
|
|
74
|
-
|
|
75
|
-
Do not paste raw vendor onboarding output, terminal transcripts, private paths,
|
|
76
|
-
license keys, tokens, customer data, or browser-auth details into issues, docs,
|
|
77
|
-
tests, or project memory.
|
|
78
|
-
|
|
79
|
-
## Traceability
|
|
80
|
-
|
|
81
|
-
| Story item | Contract | Validation |
|
|
82
|
-
| --- | --- | --- |
|
|
83
|
-
| `P177-REQ-04` | `P177-CON-OPT-01`, `P177-CON-DIAG-01`, `P177-CON-TARBALL-01` | `P177-VAL-04` / `[P177-EV-CODERABBIT-OPTIN]` |
|
|
84
|
-
| T2 / AC1 | Default postinstall does not invoke CodeRabbit installers. | Fake `curl`, `npm`, and `coderabbit` tests under `scripts/test-tier3-install.sh`. |
|
|
85
|
-
| T3 / AC2 / AC3 | Setup is manual, CI/non-interactive skips emit public reason codes. | This document and installer script diagnostics. |
|
|
86
|
-
| T4 / AC4 | Missing CodeRabbit is informational and non-blocking. | Installer scripts return success from the optional status check. |
|