@ornexus/neocortex 4.66.3 → 4.66.5
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/dist/release-source.json +1 -1
- package/dist/sbom.cdx.json +1194 -1194
- package/install.js +2 -0
- package/install.ps1 +89 -35
- package/install.sh +63 -99
- package/package.json +2 -2
- package/packages/client/dist/agent/refresh-stubs.d.ts +9 -0
- package/packages/client/dist/agent/refresh-stubs.js +2 -2
- package/packages/client/dist/agent/update-agent-yaml.js +1 -1
- package/packages/client/dist/agent/update-description.d.ts +23 -0
- package/packages/client/dist/agent/update-description.js +1 -2
- package/packages/client/dist/cli.js +14 -6
- package/packages/client/dist/commands/activate.js +8 -8
- package/packages/client/dist/commands/auth-doctor.d.ts +24 -0
- package/packages/client/dist/commands/auth-doctor.js +7 -0
- package/packages/client/dist/commands/invoke.d.ts +3 -1
- package/packages/client/dist/commands/invoke.js +101 -95
- package/packages/client/dist/config/profile-directory.d.ts +24 -0
- package/packages/client/dist/config/profile-directory.js +1 -1
- package/packages/client/dist/config/project-root.d.ts +40 -0
- package/packages/client/dist/config/project-root.js +1 -0
- package/packages/client/dist/errors/error-messages.js +2 -2
- package/packages/client/dist/git/epic-operational-state.d.ts +18 -0
- package/packages/client/dist/git/epic-operational-state.js +2 -2
- package/packages/client/dist/license/license-client.d.ts +2 -1
- package/packages/client/dist/license/license-client.js +1 -1
- package/packages/client/dist/migrations/epic-lifecycle-backfill.d.ts +7 -0
- package/packages/client/dist/migrations/epic-lifecycle-backfill.js +3 -3
- package/packages/shared/dist/executable-graph-catalog/contracts.js +6 -6
- package/packages/shared/dist/invocation/diagnose-degraded-continuation.d.ts +14 -0
- package/packages/shared/dist/invocation/diagnose-degraded-continuation.js +39 -0
- package/packages/shared/dist/invocation/diagnose-degraded-continuation.test.d.ts +1 -0
- package/packages/shared/dist/invocation/diagnose-degraded-continuation.test.js +26 -0
- package/packages/shared/dist/invocation/index.d.ts +1 -0
- package/packages/shared/dist/invocation/index.js +1 -0
- package/targets-stubs/antigravity/gemini.md +1 -1
- package/targets-stubs/antigravity/neocortex.md +15 -1
- package/targets-stubs/antigravity/skill/SKILL.md +18 -4
- package/targets-stubs/claude-code/neocortex-root.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex-root.md +13 -5
- package/targets-stubs/claude-code/neocortex-sentinel.md +1 -1
- package/targets-stubs/claude-code/neocortex.agent.yaml +1 -1
- package/targets-stubs/claude-code/neocortex.md +13 -5
- package/targets-stubs/codex/AGENTS.md +20 -21
- package/targets-stubs/codex/neocortex.toml +15 -1
- package/targets-stubs/cursor/agent.md +19 -5
- package/targets-stubs/deepseek-harness/SKILL.md +15 -1
- package/targets-stubs/gemini-cli/README.md +7 -5
- package/targets-stubs/gemini-cli/agent.md +19 -5
- package/targets-stubs/gemini-cli/agents/neocortex.md +19 -5
- package/targets-stubs/gemini-cli/gemini.md +8 -7
- package/targets-stubs/gemini-cli/install-gemini.sh +29 -11
- package/targets-stubs/grok/README.md +5 -0
- package/targets-stubs/grok/SKILL.md +16 -1
- package/targets-stubs/grok/install-grok.sh +15 -6
- package/targets-stubs/kimi/neocortex.md +15 -1
- package/targets-stubs/lib/managed-config-merge.js +276 -23
- package/targets-stubs/lib/managed-profile.sh +38 -0
- package/targets-stubs/openclaw/SKILL.md +20 -17
- package/targets-stubs/opencode/neocortex-root.md +20 -22
- package/targets-stubs/opencode/neocortex.md +20 -22
- package/targets-stubs/vscode/neocortex.agent.md +19 -5
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { assertDiagnoseDegradedContinuation, createDiagnoseDegradedContinuation, DIAGNOSE_DEGRADED_CONTINUATION_INVALID, DIAGNOSE_DEGRADED_CONTINUATION_VERSION_UNSUPPORTED, } from './diagnose-degraded-continuation.js';
|
|
3
|
+
describe('DiagnoseDegradedContinuation/1.0', () => {
|
|
4
|
+
it('creates one frozen closed contract', () => {
|
|
5
|
+
const value = createDiagnoseDegradedContinuation();
|
|
6
|
+
expect(Object.isFrozen(value)).toBe(true);
|
|
7
|
+
expect(value).toEqual({
|
|
8
|
+
schemaVersion: 'DiagnoseDegradedContinuation/1.0', outcome: 'degraded-continue', terminal: false,
|
|
9
|
+
reasonCode: 'diagnose-readonly-private-asset-projection', nextAction: 'inspect-public-local-evidence',
|
|
10
|
+
continuationOwner: 'current-agent', readOnly: true, publicSafe: true,
|
|
11
|
+
});
|
|
12
|
+
expect(assertDiagnoseDegradedContinuation(Object.fromEntries(Object.entries(value).reverse()))).toEqual(value);
|
|
13
|
+
});
|
|
14
|
+
it.each([null, [], {}, { ...createDiagnoseDegradedContinuation(), extra: true },
|
|
15
|
+
{ ...createDiagnoseDegradedContinuation(), terminal: true },
|
|
16
|
+
{ ...createDiagnoseDegradedContinuation(), continuationOwner: 'other' },
|
|
17
|
+
{ ...createDiagnoseDegradedContinuation(), readOnly: false },
|
|
18
|
+
])('rejects invalid closed shapes without echoing them', (value) => {
|
|
19
|
+
expect(() => assertDiagnoseDegradedContinuation(value)).toThrow(DIAGNOSE_DEGRADED_CONTINUATION_INVALID);
|
|
20
|
+
});
|
|
21
|
+
it('classifies unsupported versions without echoing the version', () => {
|
|
22
|
+
expect(() => assertDiagnoseDegradedContinuation({
|
|
23
|
+
...createDiagnoseDegradedContinuation(), schemaVersion: 'HOSTILE_CANARY',
|
|
24
|
+
})).toThrow(DIAGNOSE_DEGRADED_CONTINUATION_VERSION_UNSUPPORTED);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -7,6 +7,7 @@ export * from './public-diagnostics.js';
|
|
|
7
7
|
export * from './recovery-route-compiler.js';
|
|
8
8
|
export * from './executable-policy-recovery.js';
|
|
9
9
|
export * from './explicit-intent-recovery.js';
|
|
10
|
+
export * from './diagnose-degraded-continuation.js';
|
|
10
11
|
export declare const EXACT_INVOCATION_POLICY: "p205-exact-invocation-v1";
|
|
11
12
|
export declare const INVOCATION_SCHEMA_VERSION: "p205-invocation-schema-v1";
|
|
12
13
|
export declare const INVOCATION_LIMITS: Readonly<{
|
|
@@ -19,6 +19,7 @@ export * from './public-diagnostics.js';
|
|
|
19
19
|
export * from './recovery-route-compiler.js';
|
|
20
20
|
export * from './executable-policy-recovery.js';
|
|
21
21
|
export * from './explicit-intent-recovery.js';
|
|
22
|
+
export * from './diagnose-degraded-continuation.js';
|
|
22
23
|
export const EXACT_INVOCATION_POLICY = 'p205-exact-invocation-v1';
|
|
23
24
|
export const INVOCATION_SCHEMA_VERSION = 'p205-invocation-schema-v1';
|
|
24
25
|
export const INVOCATION_LIMITS = Object.freeze({
|
|
@@ -45,12 +45,26 @@ Run the thin client from the current project root:
|
|
|
45
45
|
```bash
|
|
46
46
|
neocortex-client invoke \
|
|
47
47
|
--args "{DELEGATED_PROMPT}" \
|
|
48
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
49
48
|
--format plain
|
|
50
49
|
```
|
|
51
50
|
|
|
52
51
|
Then follow stdout exactly.
|
|
53
52
|
|
|
53
|
+
## Degraded diagnose continuation
|
|
54
|
+
|
|
55
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
56
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
57
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
58
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
59
|
+
no additional inspection or action.
|
|
60
|
+
|
|
61
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
62
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
63
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
64
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
65
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
66
|
+
conversation history, or asset-derived text.
|
|
67
|
+
|
|
54
68
|
## P127 Subagent Isolation Contract
|
|
55
69
|
|
|
56
70
|
The root agent intercepts the user trigger and calls `neocortex-client`. When
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.5 | OrNexus Team"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!--
|
|
@@ -76,12 +76,26 @@ Quando o usuario invocar esta skill, siga EXATAMENTE este protocolo:
|
|
|
76
76
|
```bash
|
|
77
77
|
neocortex-client invoke \
|
|
78
78
|
--args "{ARGS_DO_USUARIO}" \
|
|
79
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
80
79
|
--format plain
|
|
81
80
|
```
|
|
82
81
|
|
|
83
82
|
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
84
83
|
|
|
84
|
+
## Degraded diagnose continuation
|
|
85
|
+
|
|
86
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
87
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
88
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
89
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
90
|
+
no additional inspection or action.
|
|
91
|
+
|
|
92
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
93
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
94
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
95
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
96
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
97
|
+
conversation history, or asset-derived text.
|
|
98
|
+
|
|
85
99
|
### Compatibilidade para entrada grande
|
|
86
100
|
|
|
87
101
|
Use `--args` exatamente como mostrado acima para triggers normais e prompts
|
|
@@ -90,8 +104,8 @@ explicitamente uma story sintetica ou mega prompt grande demais para caber com
|
|
|
90
104
|
seguranca em um argumento de shell, use exatamente uma fonte de entrada grande:
|
|
91
105
|
|
|
92
106
|
```bash
|
|
93
|
-
neocortex-client invoke --stdin --
|
|
94
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
107
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
108
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
95
109
|
```
|
|
96
110
|
|
|
97
111
|
Nao force migracao para estas opcoes, nao combine com `--args`, e nao use estas
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex Root Agent v4.66.
|
|
3
|
+
description: "🧠 Neocortex Root Agent v4.66.5 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
tools:
|
|
@@ -113,7 +113,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
113
113
|
┌────────────────────────────────────────────────────────────┐
|
|
114
114
|
│ │
|
|
115
115
|
│ ####### N E O C O R T E X │
|
|
116
|
-
│ ### ######## v4.66.
|
|
116
|
+
│ ### ######## v4.66.5 │
|
|
117
117
|
│ ######### ##### │
|
|
118
118
|
│ ## ############## Development Orchestrator │
|
|
119
119
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -163,12 +163,20 @@ Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
|
163
163
|
```bash
|
|
164
164
|
neocortex-client invoke \
|
|
165
165
|
--args "{ARGS_DO_USUARIO}" \
|
|
166
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
167
166
|
--format plain
|
|
168
167
|
```
|
|
169
168
|
|
|
170
169
|
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
171
170
|
|
|
171
|
+
## Degraded diagnose continuation
|
|
172
|
+
|
|
173
|
+
For explicit selected payload, trigger is `diagnose` and
|
|
174
|
+
`assertDiagnoseDegradedContinuation` must accept `metadata.diagnose`.
|
|
175
|
+
Unknown, missing, or extra fields allow no additional inspection or action.
|
|
176
|
+
The current agent alone inspects public local read-only evidence.
|
|
177
|
+
Return probable cause, inspected evidence, limitation, and safe plan. Do not claim protected workflow
|
|
178
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
179
|
+
|
|
172
180
|
### Compatibilidade para entrada grande
|
|
173
181
|
|
|
174
182
|
Use `--args` exatamente como mostrado acima para triggers normais e prompts
|
|
@@ -177,8 +185,8 @@ explicitamente uma story sintetica ou mega prompt grande demais para caber com
|
|
|
177
185
|
seguranca em um argumento de shell, use exatamente uma fonte de entrada grande:
|
|
178
186
|
|
|
179
187
|
```bash
|
|
180
|
-
neocortex-client invoke --stdin --
|
|
181
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
188
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
189
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
182
190
|
```
|
|
183
191
|
|
|
184
192
|
Nao force migracao para estas opcoes, nao combine com `--args`, e nao use estas
|
|
@@ -102,7 +102,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
102
102
|
┌────────────────────────────────────────────────────────────┐
|
|
103
103
|
│ │
|
|
104
104
|
│ ####### N E O C O R T E X │
|
|
105
|
-
│ ### ######## v4.66.
|
|
105
|
+
│ ### ######## v4.66.5 │
|
|
106
106
|
│ ######### ##### │
|
|
107
107
|
│ ## ############## Development Orchestrator │
|
|
108
108
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.5 | OrNexus Team"
|
|
4
4
|
model: opus
|
|
5
5
|
color: blue
|
|
6
6
|
permissionMode: bypassPermissions
|
|
@@ -113,7 +113,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
113
113
|
┌────────────────────────────────────────────────────────────┐
|
|
114
114
|
│ │
|
|
115
115
|
│ ####### N E O C O R T E X │
|
|
116
|
-
│ ### ######## v4.66.
|
|
116
|
+
│ ### ######## v4.66.5 │
|
|
117
117
|
│ ######### ##### │
|
|
118
118
|
│ ## ############## Development Orchestrator │
|
|
119
119
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -163,7 +163,6 @@ Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
|
163
163
|
```bash
|
|
164
164
|
neocortex-client invoke \
|
|
165
165
|
--args "{ARGS_DO_USUARIO}" \
|
|
166
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
167
166
|
--format plain
|
|
168
167
|
```
|
|
169
168
|
|
|
@@ -171,6 +170,15 @@ neocortex-client invoke \
|
|
|
171
170
|
4. Se `invoke` recusar com `private-execution-client-required` e
|
|
172
171
|
`next_action: retry-with-private-execution-beta`, repita uma vez com `--private-execution-beta`.
|
|
173
172
|
|
|
173
|
+
## Degraded diagnose continuation
|
|
174
|
+
|
|
175
|
+
For explicit selected payload, trigger is `diagnose` and
|
|
176
|
+
`assertDiagnoseDegradedContinuation` must accept `metadata.diagnose`.
|
|
177
|
+
Unknown, missing, or extra fields allow no additional inspection or action.
|
|
178
|
+
The current agent alone inspects public local read-only evidence.
|
|
179
|
+
Return probable cause, inspected evidence, limitation, and safe plan. Do not claim protected workflow
|
|
180
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
181
|
+
|
|
174
182
|
### Compatibilidade para entrada grande
|
|
175
183
|
|
|
176
184
|
Use `--args` exatamente como mostrado acima para triggers normais e prompts
|
|
@@ -179,8 +187,8 @@ explicitamente uma story sintetica ou mega prompt grande demais para caber com
|
|
|
179
187
|
seguranca em um argumento de shell, use exatamente uma fonte de entrada grande:
|
|
180
188
|
|
|
181
189
|
```bash
|
|
182
|
-
neocortex-client invoke --stdin --
|
|
183
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
190
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
191
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
184
192
|
```
|
|
185
193
|
|
|
186
194
|
Nao force migracao para estas opcoes, nao combine com `--args`, e nao use estas
|
|
@@ -32,29 +32,16 @@ Codex built-in commands or actions.
|
|
|
32
32
|
|
|
33
33
|
<!-- END: Plugin Conflict Prevention -->
|
|
34
34
|
|
|
35
|
-
# Neocortex v4.66.
|
|
35
|
+
# Neocortex v4.66.5 | OrNexus Team
|
|
36
36
|
|
|
37
37
|
You are a Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
38
38
|
|
|
39
39
|
## Auto-Update Check
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if [ -f "$UPDATE_MARKER" ] && [ "$(find "$UPDATE_MARKER" -mmin -1440 2>/dev/null)" ]; then
|
|
46
|
-
: # Recently checked, skip
|
|
47
|
-
else
|
|
48
|
-
PROJECT_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)
|
|
49
|
-
neocortex-client reconcile-registry --project-root "$PROJECT_ROOT" --check-latest >/dev/null 2>&1
|
|
50
|
-
mkdir -p "$HOME/.neocortex" && touch "$UPDATE_MARKER" 2>/dev/null
|
|
51
|
-
fi
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Rules:
|
|
55
|
-
- Run ONCE per session, NEVER repeat within the same conversation
|
|
56
|
-
- If ANY command fails, ignore and proceed with `neocortex-client invoke` normally
|
|
57
|
-
- Do NOT show output to user unless explicitly asked
|
|
41
|
+
Before first invoke per session, run `neocortex-client reconcile-registry
|
|
42
|
+
--check-latest` once from the workspace through native
|
|
43
|
+
execution, with output suppressed. Do not supply `--project-root` or interpolate
|
|
44
|
+
a shell command. Ignore failure; show output only when asked.
|
|
58
45
|
|
|
59
46
|
## Invocation Protocol
|
|
60
47
|
|
|
@@ -77,7 +64,6 @@ When the user invokes Neocortex, follow this protocol EXACTLY:
|
|
|
77
64
|
```bash
|
|
78
65
|
neocortex-client invoke \
|
|
79
66
|
--args "{USER_ARGS}" \
|
|
80
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
81
67
|
--format plain
|
|
82
68
|
```
|
|
83
69
|
|
|
@@ -85,6 +71,19 @@ neocortex-client invoke \
|
|
|
85
71
|
4. If `invoke` returns `private-execution-client-required` and
|
|
86
72
|
`next_action: retry-with-private-execution-beta`, rerun once with `--private-execution-beta`.
|
|
87
73
|
|
|
74
|
+
## Degraded diagnose continuation
|
|
75
|
+
|
|
76
|
+
Inspect `metadata.diagnose` only for the explicit selected payload when its
|
|
77
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
78
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
79
|
+
wrong literals, an absent contract, or another degraded reason: no additional inspection or action.
|
|
80
|
+
|
|
81
|
+
For an admitted continuation, the current agent alone inspects the explicit
|
|
82
|
+
request and public local read-only evidence, then returns probable cause,
|
|
83
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
84
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
85
|
+
All selected-payload exclusions above remain in force.
|
|
86
|
+
|
|
88
87
|
### Large input compatibility
|
|
89
88
|
|
|
90
89
|
Use `--args` exactly as shown above for normal triggers and delegated prompts; it
|
|
@@ -93,8 +92,8 @@ synthetic story or mega prompt that cannot safely fit in a shell argument, use
|
|
|
93
92
|
exactly one large-input source instead:
|
|
94
93
|
|
|
95
94
|
```bash
|
|
96
|
-
neocortex-client invoke --stdin --
|
|
97
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
95
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
96
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
98
97
|
```
|
|
99
98
|
|
|
100
99
|
Do not force migration to these options, do not combine them with `--args`, and
|
|
@@ -43,12 +43,26 @@ must not remove prose, select a target, or repair an outer command.
|
|
|
43
43
|
|
|
44
44
|
neocortex-client invoke \
|
|
45
45
|
--args "{DELEGATED_PROMPT}" \
|
|
46
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
47
46
|
--format plain
|
|
48
47
|
|
|
49
48
|
Then follow stdout exactly. If the thin client exits with a non-zero status,
|
|
50
49
|
report stderr and stop for user input.
|
|
51
50
|
|
|
51
|
+
## Degraded diagnose continuation
|
|
52
|
+
|
|
53
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
54
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
55
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
56
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
57
|
+
no additional inspection or action.
|
|
58
|
+
|
|
59
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
60
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
61
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
62
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
63
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
64
|
+
conversation history, or asset-derived text.
|
|
65
|
+
|
|
52
66
|
## Direct-intent canonicalization contract
|
|
53
67
|
|
|
54
68
|
Use only the latest explicit user-authored text addressed to `@neocortex`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.5 | OrNexus Team"
|
|
4
4
|
model: inherit
|
|
5
5
|
readonly: false
|
|
6
6
|
is_background: false
|
|
@@ -115,7 +115,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
115
115
|
┌────────────────────────────────────────────────────────────┐
|
|
116
116
|
│ │
|
|
117
117
|
│ ####### N E O C O R T E X │
|
|
118
|
-
│ ### ######## v4.66.
|
|
118
|
+
│ ### ######## v4.66.5 │
|
|
119
119
|
│ ######### ##### │
|
|
120
120
|
│ ## ############## Development Orchestrator │
|
|
121
121
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -165,12 +165,26 @@ Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
|
165
165
|
```bash
|
|
166
166
|
neocortex-client invoke \
|
|
167
167
|
--args "{ARGS_DO_USUARIO}" \
|
|
168
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
169
168
|
--format plain
|
|
170
169
|
```
|
|
171
170
|
|
|
172
171
|
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
173
172
|
|
|
173
|
+
## Degraded diagnose continuation
|
|
174
|
+
|
|
175
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
176
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
177
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
178
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
179
|
+
no additional inspection or action.
|
|
180
|
+
|
|
181
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
182
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
183
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
184
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
185
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
186
|
+
conversation history, or asset-derived text.
|
|
187
|
+
|
|
174
188
|
### Compatibilidade para entrada grande
|
|
175
189
|
|
|
176
190
|
Use `--args` exatamente como mostrado acima para triggers normais e prompts
|
|
@@ -179,8 +193,8 @@ explicitamente uma story sintetica ou mega prompt grande demais para caber com
|
|
|
179
193
|
seguranca em um argumento de shell, use exatamente uma fonte de entrada grande:
|
|
180
194
|
|
|
181
195
|
```bash
|
|
182
|
-
neocortex-client invoke --stdin --
|
|
183
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
196
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
197
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
184
198
|
```
|
|
185
199
|
|
|
186
200
|
Nao force migracao para estas opcoes, nao combine com `--args`, e nao use estas
|
|
@@ -27,7 +27,6 @@ payload as one argument:
|
|
|
27
27
|
```bash
|
|
28
28
|
neocortex-client invoke \
|
|
29
29
|
--args '{SELECTED_USER_PAYLOAD_VERBATIM}' \
|
|
30
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
31
30
|
--format plain
|
|
32
31
|
```
|
|
33
32
|
|
|
@@ -40,6 +39,21 @@ Follow the returned stdout instructions exactly. Do not treat a `*` trigger as a
|
|
|
40
39
|
DeepSeek Harness command, a local plugin action or an MCP tool name. Do not
|
|
41
40
|
invent missing Neocortex steps or publish protected prompt bodies.
|
|
42
41
|
|
|
42
|
+
## Degraded diagnose continuation
|
|
43
|
+
|
|
44
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
45
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
46
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
47
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
48
|
+
no additional inspection or action.
|
|
49
|
+
|
|
50
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
51
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
52
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
53
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
54
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
55
|
+
conversation history, or asset-derived text.
|
|
56
|
+
|
|
43
57
|
For an explicitly supplied oversized synthetic story that cannot fit in a shell
|
|
44
58
|
argument, use exactly one supported large-input mode (`--stdin` or
|
|
45
59
|
`--args-file`) instead of `--args`. Never use those modes for ambient context.
|
|
@@ -20,17 +20,19 @@ neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.sh/portal/
|
|
|
20
20
|
|
|
21
21
|
| File | Description |
|
|
22
22
|
|---|---|
|
|
23
|
-
| `agent.md` |
|
|
24
|
-
| `agents/neocortex.md` |
|
|
23
|
+
| `agent.md` | Historical root alias source retained for conservative migration; not installed by default |
|
|
24
|
+
| `agents/neocortex.md` | Public `neocortex` orchestrator profile |
|
|
25
|
+
| `agents/neocortex-sentinel.md` | Optional isolated child installed only with `--install-sentinel` |
|
|
25
26
|
| `gemini.md` | Thin-client GEMINI.md (no @import directives) |
|
|
26
27
|
| `settings-mcp.json` | MCP server configuration (Playwright) |
|
|
27
28
|
|
|
28
29
|
## How It Works
|
|
29
30
|
|
|
30
|
-
1. The `@neocortex
|
|
31
|
+
1. The `@neocortex` profile receives user invocations
|
|
31
32
|
2. It calls `neocortex-client invoke` with the user's arguments
|
|
32
33
|
3. The server returns full pipeline instructions
|
|
33
|
-
4.
|
|
34
|
-
|
|
34
|
+
4. By default no additional public profile is installed. With the explicit
|
|
35
|
+
`--install-sentinel` opt-in, only server-authorized task prompts may be passed
|
|
36
|
+
to `@neocortex-sentinel`; yoloop ownership stays with `@neocortex`.
|
|
35
37
|
|
|
36
38
|
For more information, visit: https://neocortex.sh
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex-root
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.5 | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
# File operations (Gemini CLI built-ins)
|
|
@@ -73,7 +73,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
73
73
|
┌────────────────────────────────────────────────────────────┐
|
|
74
74
|
│ │
|
|
75
75
|
│ ####### N E O C O R T E X │
|
|
76
|
-
│ ### ######## v4.66.
|
|
76
|
+
│ ### ######## v4.66.5 │
|
|
77
77
|
│ ######### ##### │
|
|
78
78
|
│ ## ############## Development Orchestrator │
|
|
79
79
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -123,12 +123,26 @@ Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
|
123
123
|
```bash
|
|
124
124
|
neocortex-client invoke \
|
|
125
125
|
--args "{ARGS_DO_USUARIO}" \
|
|
126
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
127
126
|
--format plain
|
|
128
127
|
```
|
|
129
128
|
|
|
130
129
|
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
131
130
|
|
|
131
|
+
## Degraded diagnose continuation
|
|
132
|
+
|
|
133
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
134
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
135
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
136
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
137
|
+
no additional inspection or action.
|
|
138
|
+
|
|
139
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
140
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
141
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
142
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
143
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
144
|
+
conversation history, or asset-derived text.
|
|
145
|
+
|
|
132
146
|
### Compatibilidade para entrada grande
|
|
133
147
|
|
|
134
148
|
Use `--args` exatamente como mostrado acima para triggers normais e prompts
|
|
@@ -137,8 +151,8 @@ explicitamente uma story sintetica ou mega prompt grande demais para caber com
|
|
|
137
151
|
seguranca em um argumento de shell, use exatamente uma fonte de entrada grande:
|
|
138
152
|
|
|
139
153
|
```bash
|
|
140
|
-
neocortex-client invoke --stdin --
|
|
141
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
154
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
155
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
142
156
|
```
|
|
143
157
|
|
|
144
158
|
Nao force migracao para estas opcoes, nao combine com `--args`, e nao use estas
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: neocortex
|
|
3
|
-
description: "🧠 Neocortex v4.66.
|
|
3
|
+
description: "🧠 Neocortex v4.66.5 | OrNexus Team"
|
|
4
4
|
kind: local
|
|
5
5
|
tools:
|
|
6
6
|
# File operations (Gemini CLI built-ins)
|
|
@@ -72,7 +72,7 @@ SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO outpu
|
|
|
72
72
|
┌────────────────────────────────────────────────────────────┐
|
|
73
73
|
│ │
|
|
74
74
|
│ ####### N E O C O R T E X │
|
|
75
|
-
│ ### ######## v4.66.
|
|
75
|
+
│ ### ######## v4.66.5 │
|
|
76
76
|
│ ######### ##### │
|
|
77
77
|
│ ## ############## Development Orchestrator │
|
|
78
78
|
│ ## ### ###### ## OrNexus Team │
|
|
@@ -122,12 +122,26 @@ Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
|
122
122
|
```bash
|
|
123
123
|
neocortex-client invoke \
|
|
124
124
|
--args "{ARGS_DO_USUARIO}" \
|
|
125
|
-
--project-root "$(git rev-parse --show-toplevel 2>/dev/null || pwd -P)" \
|
|
126
125
|
--format plain
|
|
127
126
|
```
|
|
128
127
|
|
|
129
128
|
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
130
129
|
|
|
130
|
+
## Degraded diagnose continuation
|
|
131
|
+
|
|
132
|
+
Inspect `metadata.diagnose` only when the explicit selected payload's canonical
|
|
133
|
+
trigger is `diagnose` and `assertDiagnoseDegradedContinuation` accepts the exact
|
|
134
|
+
`DiagnoseDegradedContinuation/1.0` object. Unknown, missing, or extra fields,
|
|
135
|
+
wrong literals, an absent contract, or an unrelated degraded reason authorizes
|
|
136
|
+
no additional inspection or action.
|
|
137
|
+
|
|
138
|
+
For an admitted continuation, the current agent alone may inspect only the
|
|
139
|
+
explicit request and public local read-only evidence. Return probable cause,
|
|
140
|
+
inspected evidence, limitation, and a safe plan. Do not claim protected workflow
|
|
141
|
+
execution, spawn or delegate, reinvoke Neocortex, create tasks, or write files.
|
|
142
|
+
Never include protected prompts, raw logs, secrets, PII, private URLs, ambient
|
|
143
|
+
conversation history, or asset-derived text.
|
|
144
|
+
|
|
131
145
|
### Compatibilidade para entrada grande
|
|
132
146
|
|
|
133
147
|
Use `--args` exatamente como mostrado acima para triggers normais e prompts
|
|
@@ -136,8 +150,8 @@ explicitamente uma story sintetica ou mega prompt grande demais para caber com
|
|
|
136
150
|
seguranca em um argumento de shell, use exatamente uma fonte de entrada grande:
|
|
137
151
|
|
|
138
152
|
```bash
|
|
139
|
-
neocortex-client invoke --stdin --
|
|
140
|
-
neocortex-client invoke --args-file ./synthetic.story.md --
|
|
153
|
+
neocortex-client invoke --stdin --format plain < synthetic.story.md
|
|
154
|
+
neocortex-client invoke --args-file ./synthetic.story.md --format plain
|
|
141
155
|
```
|
|
142
156
|
|
|
143
157
|
Nao force migracao para estas opcoes, nao combine com `--args`, e nao use estas
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
This project uses Neocortex, a Development Orchestrator.
|
|
4
4
|
|
|
5
5
|
All orchestration logic, standards, and skills are delivered by the remote Neocortex server.
|
|
6
|
-
Use the `@neocortex
|
|
7
|
-
`@neocortex`
|
|
6
|
+
Use the `@neocortex` orchestrator to interact with the root pipeline. An
|
|
7
|
+
optional `@neocortex-sentinel` child exists only when the operator installs it
|
|
8
|
+
explicitly; it is never a public entrypoint.
|
|
8
9
|
|
|
9
10
|
Keep this always-loaded memory file compact. Prefer references to
|
|
10
11
|
`docs/architecture/...` and `docs/arquitetura-software/...` over copying full
|
|
@@ -24,16 +25,16 @@ protected source material into this file.
|
|
|
24
25
|
|
|
25
26
|
## Usage
|
|
26
27
|
|
|
27
|
-
Invoke the `@neocortex
|
|
28
|
+
Invoke the `@neocortex` agent with your command. The agent will call
|
|
28
29
|
`neocortex-client invoke` to fetch instructions from the server.
|
|
29
30
|
|
|
30
31
|
Safe UI/UX review examples:
|
|
31
32
|
|
|
32
33
|
```text
|
|
33
|
-
@neocortex
|
|
34
|
-
@neocortex
|
|
35
|
-
@neocortex
|
|
36
|
-
@neocortex
|
|
34
|
+
@neocortex *ui-ux-review
|
|
35
|
+
@neocortex *ui-ux-review docs/architecture
|
|
36
|
+
@neocortex *ui-ux-review revise https://app.example.com com foco em onboarding
|
|
37
|
+
@neocortex *ui-ux-review --architecture-dir docs/architecture --url "$APP_BASE_URL"
|
|
37
38
|
```
|
|
38
39
|
|
|
39
40
|
For `*ui-ux-review`, flags are optional overrides. Free-form text after the
|