@ornexus/neocortex 4.0.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.
Potentially problematic release.
This version of @ornexus/neocortex might be problematic. Click here for more details.
- package/LICENSE +56 -0
- package/README.md +32 -0
- package/install.js +486 -0
- package/install.ps1 +1790 -0
- package/install.sh +1587 -0
- package/package.json +104 -0
- package/packages/client/dist/adapters/adapter-registry.d.ts +61 -0
- package/packages/client/dist/adapters/adapter-registry.js +106 -0
- package/packages/client/dist/adapters/antigravity-adapter.d.ts +18 -0
- package/packages/client/dist/adapters/antigravity-adapter.js +77 -0
- package/packages/client/dist/adapters/claude-code-adapter.d.ts +19 -0
- package/packages/client/dist/adapters/claude-code-adapter.js +79 -0
- package/packages/client/dist/adapters/codex-adapter.d.ts +19 -0
- package/packages/client/dist/adapters/codex-adapter.js +80 -0
- package/packages/client/dist/adapters/cursor-adapter.d.ts +19 -0
- package/packages/client/dist/adapters/cursor-adapter.js +115 -0
- package/packages/client/dist/adapters/gemini-adapter.d.ts +18 -0
- package/packages/client/dist/adapters/gemini-adapter.js +71 -0
- package/packages/client/dist/adapters/index.d.ts +19 -0
- package/packages/client/dist/adapters/index.js +21 -0
- package/packages/client/dist/adapters/platform-detector.d.ts +46 -0
- package/packages/client/dist/adapters/platform-detector.js +106 -0
- package/packages/client/dist/adapters/target-adapter.d.ts +70 -0
- package/packages/client/dist/adapters/target-adapter.js +12 -0
- package/packages/client/dist/adapters/vscode-adapter.d.ts +19 -0
- package/packages/client/dist/adapters/vscode-adapter.js +72 -0
- package/packages/client/dist/agent/refresh-stubs.d.ts +65 -0
- package/packages/client/dist/agent/refresh-stubs.js +234 -0
- package/packages/client/dist/agent/update-agent-yaml.d.ts +26 -0
- package/packages/client/dist/agent/update-agent-yaml.js +102 -0
- package/packages/client/dist/agent/update-description.d.ts +45 -0
- package/packages/client/dist/agent/update-description.js +251 -0
- package/packages/client/dist/cache/crypto-utils.d.ts +30 -0
- package/packages/client/dist/cache/crypto-utils.js +76 -0
- package/packages/client/dist/cache/encrypted-cache.d.ts +30 -0
- package/packages/client/dist/cache/encrypted-cache.js +94 -0
- package/packages/client/dist/cache/in-memory-asset-cache.d.ts +59 -0
- package/packages/client/dist/cache/in-memory-asset-cache.js +70 -0
- package/packages/client/dist/cache/index.d.ts +13 -0
- package/packages/client/dist/cache/index.js +13 -0
- package/packages/client/dist/cli.d.ts +14 -0
- package/packages/client/dist/cli.js +194 -0
- package/packages/client/dist/commands/activate.d.ts +55 -0
- package/packages/client/dist/commands/activate.js +390 -0
- package/packages/client/dist/commands/cache-status.d.ts +39 -0
- package/packages/client/dist/commands/cache-status.js +112 -0
- package/packages/client/dist/commands/invoke.d.ts +70 -0
- package/packages/client/dist/commands/invoke.js +490 -0
- package/packages/client/dist/config/resolver-selection.d.ts +40 -0
- package/packages/client/dist/config/resolver-selection.js +278 -0
- package/packages/client/dist/config/secure-config.d.ts +78 -0
- package/packages/client/dist/config/secure-config.js +269 -0
- package/packages/client/dist/constants.d.ts +25 -0
- package/packages/client/dist/constants.js +25 -0
- package/packages/client/dist/context/context-collector.d.ts +28 -0
- package/packages/client/dist/context/context-collector.js +222 -0
- package/packages/client/dist/context/context-sanitizer.d.ts +28 -0
- package/packages/client/dist/context/context-sanitizer.js +145 -0
- package/packages/client/dist/index.d.ts +55 -0
- package/packages/client/dist/index.js +38 -0
- package/packages/client/dist/license/index.d.ts +5 -0
- package/packages/client/dist/license/index.js +5 -0
- package/packages/client/dist/license/license-client.d.ts +79 -0
- package/packages/client/dist/license/license-client.js +257 -0
- package/packages/client/dist/machine/fingerprint.d.ts +34 -0
- package/packages/client/dist/machine/fingerprint.js +160 -0
- package/packages/client/dist/machine/index.d.ts +5 -0
- package/packages/client/dist/machine/index.js +5 -0
- package/packages/client/dist/resilience/circuit-breaker.d.ts +70 -0
- package/packages/client/dist/resilience/circuit-breaker.js +170 -0
- package/packages/client/dist/resilience/degradation-manager.d.ts +67 -0
- package/packages/client/dist/resilience/degradation-manager.js +164 -0
- package/packages/client/dist/resilience/freshness-indicator.d.ts +59 -0
- package/packages/client/dist/resilience/freshness-indicator.js +100 -0
- package/packages/client/dist/resilience/index.d.ts +8 -0
- package/packages/client/dist/resilience/index.js +8 -0
- package/packages/client/dist/resilience/recovery-detector.d.ts +59 -0
- package/packages/client/dist/resilience/recovery-detector.js +74 -0
- package/packages/client/dist/resolvers/asset-resolver.d.ts +79 -0
- package/packages/client/dist/resolvers/asset-resolver.js +13 -0
- package/packages/client/dist/resolvers/local-resolver.d.ts +26 -0
- package/packages/client/dist/resolvers/local-resolver.js +218 -0
- package/packages/client/dist/resolvers/remote-resolver.d.ts +91 -0
- package/packages/client/dist/resolvers/remote-resolver.js +282 -0
- package/packages/client/dist/telemetry/index.d.ts +5 -0
- package/packages/client/dist/telemetry/index.js +5 -0
- package/packages/client/dist/telemetry/offline-queue.d.ts +57 -0
- package/packages/client/dist/telemetry/offline-queue.js +131 -0
- package/packages/client/dist/tier/index.d.ts +5 -0
- package/packages/client/dist/tier/index.js +5 -0
- package/packages/client/dist/tier/tier-aware-client.d.ts +97 -0
- package/packages/client/dist/tier/tier-aware-client.js +260 -0
- package/packages/client/dist/types/index.d.ts +140 -0
- package/packages/client/dist/types/index.js +38 -0
- package/postinstall.js +272 -0
- package/targets-stubs/antigravity/README.md +36 -0
- package/targets-stubs/antigravity/gemini.md +22 -0
- package/targets-stubs/antigravity/install-antigravity.sh +44 -0
- package/targets-stubs/antigravity/mcp-config.json +9 -0
- package/targets-stubs/antigravity/skill/SKILL.md +67 -0
- package/targets-stubs/claude-code/README.md +20 -0
- package/targets-stubs/claude-code/neocortex.agent.yaml +24 -0
- package/targets-stubs/claude-code/neocortex.md +125 -0
- package/targets-stubs/codex/README.md +32 -0
- package/targets-stubs/codex/agents.md +61 -0
- package/targets-stubs/codex/config-mcp.toml +6 -0
- package/targets-stubs/codex/install-codex.sh +61 -0
- package/targets-stubs/cursor/README.md +33 -0
- package/targets-stubs/cursor/agent.md +94 -0
- package/targets-stubs/cursor/install-cursor.sh +35 -0
- package/targets-stubs/cursor/mcp.json +11 -0
- package/targets-stubs/gemini-cli/README.md +34 -0
- package/targets-stubs/gemini-cli/agent.md +101 -0
- package/targets-stubs/gemini-cli/gemini.md +16 -0
- package/targets-stubs/gemini-cli/install-gemini.sh +56 -0
- package/targets-stubs/gemini-cli/settings-mcp.json +11 -0
- package/targets-stubs/vscode/README.md +34 -0
- package/targets-stubs/vscode/agent.md +102 -0
- package/targets-stubs/vscode/copilot-instructions.md +16 -0
- package/targets-stubs/vscode/install-vscode.sh +42 -0
- package/targets-stubs/vscode/mcp.json +13 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<!-- CRITICAL: Plugin Conflict Prevention -->
|
|
2
|
+
## IMPORTANT: Do NOT Intercept Neocortex Arguments
|
|
3
|
+
|
|
4
|
+
**ALL text after `@neocortex` or trigger keywords MUST be passed VERBATIM to `neocortex-client invoke`.**
|
|
5
|
+
|
|
6
|
+
Tokens starting with `*` (e.g. `*commit-push`, `*implement`, `*status`, `*diagnose`,
|
|
7
|
+
`*yolo`, `*review`, `*create-epic`, `*help`) are **Neocortex server triggers**, NOT
|
|
8
|
+
Codex built-in commands or actions.
|
|
9
|
+
|
|
10
|
+
**Rules**:
|
|
11
|
+
- NEVER interpret `*`-prefixed arguments as Codex built-in commands or actions
|
|
12
|
+
- NEVER invoke any local tool, command, or plugin based on these arguments
|
|
13
|
+
- NEVER attempt to resolve or execute these tokens as anything other than neocortex-client args
|
|
14
|
+
- ALWAYS delegate the ENTIRE argument string to `neocortex-client invoke --args "..."`
|
|
15
|
+
- The ONLY action this agent takes is: collect args -> invoke thin client -> follow server instructions
|
|
16
|
+
|
|
17
|
+
<!-- END: Plugin Conflict Prevention -->
|
|
18
|
+
|
|
19
|
+
# Neocortex v4.0.1 | OrNexus Team
|
|
20
|
+
|
|
21
|
+
You are a Development Orchestrator. All orchestration logic is delivered by the remote Neocortex server.
|
|
22
|
+
|
|
23
|
+
## Invocation Protocol
|
|
24
|
+
|
|
25
|
+
When the user invokes Neocortex, follow this protocol EXACTLY:
|
|
26
|
+
|
|
27
|
+
1. **Collect user arguments** - Everything the user wrote after the trigger
|
|
28
|
+
2. **Execute the thin client** to get instructions from the server:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
neocortex-client invoke \
|
|
32
|
+
--args "{USER_ARGS}" \
|
|
33
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
34
|
+
--format plain
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
3. **Follow EXACTLY the instructions returned** by the thin client on stdout
|
|
38
|
+
|
|
39
|
+
## Examples
|
|
40
|
+
|
|
41
|
+
| User Input | invoke Command |
|
|
42
|
+
|---------------------|----------------|
|
|
43
|
+
| `*menu` | `invoke --args "*menu"` |
|
|
44
|
+
| `*status` | `invoke --args "*status"` |
|
|
45
|
+
| `*yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
46
|
+
| `*implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
47
|
+
|
|
48
|
+
## Error Handling
|
|
49
|
+
|
|
50
|
+
| Exit Code | Meaning | Action |
|
|
51
|
+
|-----------|---------|--------|
|
|
52
|
+
| 0 | Success | Follow stdout instructions |
|
|
53
|
+
| 1 | Server error | Show stderr to user |
|
|
54
|
+
| 2 | Not configured | Instruct: "Visit https://neocortex.ornexus.com/login to get your license key, then run: `neocortex activate YOUR-LICENSE-KEY`" |
|
|
55
|
+
|
|
56
|
+
## Rules
|
|
57
|
+
|
|
58
|
+
- NEVER invent orchestration logic - all logic comes from the server
|
|
59
|
+
- NEVER skip the thin client - always execute invoke
|
|
60
|
+
- ALWAYS follow the returned instructions literally
|
|
61
|
+
- If the thin client fails, show the error and wait for user input
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - OpenAI Codex CLI Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_codex() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local codex_target="$source_dir/targets-stubs/codex"
|
|
9
|
+
local codex_home="${CODEX_HOME:-$HOME/.codex}"
|
|
10
|
+
|
|
11
|
+
if [ ! -d "$codex_target" ]; then
|
|
12
|
+
echo "[CODEX] ERROR: Stub directory not found: $codex_target" >&2
|
|
13
|
+
return 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
echo "[CODEX] Installing Neocortex for OpenAI Codex CLI (thin-client mode)..."
|
|
17
|
+
|
|
18
|
+
# Create destination directories
|
|
19
|
+
mkdir -p "$codex_home"
|
|
20
|
+
|
|
21
|
+
# 1. Copy AGENTS.md stub to project root
|
|
22
|
+
if [ -f "$codex_target/agents.md" ]; then
|
|
23
|
+
cp "$codex_target/agents.md" "$dest_dir/AGENTS.md"
|
|
24
|
+
echo "[CODEX] Installed: AGENTS.md (project root)"
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# 2. Copy AGENTS.md stub to global
|
|
28
|
+
if [ -f "$codex_target/agents.md" ]; then
|
|
29
|
+
cp "$codex_target/agents.md" "$codex_home/AGENTS.md"
|
|
30
|
+
echo "[CODEX] Installed: ~/.codex/AGENTS.md (global)"
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# 3. Merge MCP config into config.toml
|
|
34
|
+
if [ -f "$codex_target/config-mcp.toml" ]; then
|
|
35
|
+
local config_file="$codex_home/config.toml"
|
|
36
|
+
if [ -f "$config_file" ]; then
|
|
37
|
+
if grep -q "# Neocortex MCP Servers" "$config_file" 2>/dev/null; then
|
|
38
|
+
local tmp_file="${config_file}.tmp"
|
|
39
|
+
sed '/# Neocortex MCP Servers/,$d' "$config_file" > "$tmp_file"
|
|
40
|
+
echo "" >> "$tmp_file"
|
|
41
|
+
echo "# Neocortex MCP Servers" >> "$tmp_file"
|
|
42
|
+
cat "$codex_target/config-mcp.toml" >> "$tmp_file"
|
|
43
|
+
mv "$tmp_file" "$config_file"
|
|
44
|
+
echo "[CODEX] Updated MCP config in ~/.codex/config.toml"
|
|
45
|
+
else
|
|
46
|
+
echo "" >> "$config_file"
|
|
47
|
+
echo "# Neocortex MCP Servers" >> "$config_file"
|
|
48
|
+
cat "$codex_target/config-mcp.toml" >> "$config_file"
|
|
49
|
+
echo "[CODEX] Appended MCP config to ~/.codex/config.toml"
|
|
50
|
+
fi
|
|
51
|
+
else
|
|
52
|
+
echo "# Neocortex MCP Servers" > "$config_file"
|
|
53
|
+
cat "$codex_target/config-mcp.toml" >> "$config_file"
|
|
54
|
+
echo "[CODEX] Created ~/.codex/config.toml with MCP config"
|
|
55
|
+
fi
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
echo "[CODEX] Thin-client installation complete!"
|
|
59
|
+
echo "[CODEX] Content delivered by remote server. Activate: neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login"
|
|
60
|
+
return 0
|
|
61
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Target Stub: Cursor IDE
|
|
2
|
+
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
|
+
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
16
|
+
neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Contents
|
|
20
|
+
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agent.md` | Thin-client agent stub (delegates to neocortex-client) |
|
|
24
|
+
| `mcp.json` | MCP server configuration (Playwright + Context7) |
|
|
25
|
+
|
|
26
|
+
## How It Works
|
|
27
|
+
|
|
28
|
+
1. The stub agent receives user invocations
|
|
29
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
30
|
+
3. The server returns full pipeline instructions
|
|
31
|
+
4. The agent follows the returned instructions exactly
|
|
32
|
+
|
|
33
|
+
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: neocortex
|
|
3
|
+
description: "🧠 Neocortex v4.0.1 | OrNexus Team"
|
|
4
|
+
model: fast
|
|
5
|
+
readonly: false
|
|
6
|
+
is_background: false
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<!-- CRITICAL: Plugin Conflict Prevention -->
|
|
10
|
+
## IMPORTANT: Do NOT Intercept Neocortex Arguments
|
|
11
|
+
|
|
12
|
+
**ALL text after `@neocortex` MUST be passed VERBATIM to `neocortex-client invoke`.**
|
|
13
|
+
|
|
14
|
+
Tokens starting with `*` (e.g. `*commit-push`, `*implement`, `*status`, `*diagnose`,
|
|
15
|
+
`*yolo`, `*review`, `*create-epic`, `*help`) are **Neocortex server triggers**, NOT
|
|
16
|
+
Cursor commands, actions, or built-in tools.
|
|
17
|
+
|
|
18
|
+
**Rules**:
|
|
19
|
+
- NEVER interpret `*`-prefixed arguments as Cursor built-in commands or actions
|
|
20
|
+
- NEVER invoke any local tool, command, or plugin based on these arguments
|
|
21
|
+
- NEVER attempt to resolve or execute these tokens as anything other than neocortex-client args
|
|
22
|
+
- ALWAYS delegate the ENTIRE argument string to `neocortex-client invoke --args "..."`
|
|
23
|
+
- The ONLY action this agent takes is: collect args -> invoke thin client -> follow server instructions
|
|
24
|
+
|
|
25
|
+
<!-- END: Plugin Conflict Prevention -->
|
|
26
|
+
|
|
27
|
+
# Neocortex - Thin Client Interface
|
|
28
|
+
|
|
29
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
30
|
+
|
|
31
|
+
## Banner
|
|
32
|
+
|
|
33
|
+
SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO output, dentro de um bloco de codigo (triple backticks). Copie o conteudo entre as tags `<banner>` EXATAMENTE como esta:
|
|
34
|
+
|
|
35
|
+
<banner>
|
|
36
|
+
┌────────────────────────────────────────────────────────────┐
|
|
37
|
+
│ │
|
|
38
|
+
│ ####### N E O C O R T E X │
|
|
39
|
+
│ ### ######## v4.0.1 │
|
|
40
|
+
│ ######### ##### │
|
|
41
|
+
│ ## ############## Development Orchestrator │
|
|
42
|
+
│ ## ### ###### ## OrNexus Team │
|
|
43
|
+
│ ## ### ### ## │
|
|
44
|
+
│ ## ###### ### ## │
|
|
45
|
+
│ ############### ## │
|
|
46
|
+
│ ##### ######## │
|
|
47
|
+
│ ######## ## │
|
|
48
|
+
│ ####### │
|
|
49
|
+
│ │
|
|
50
|
+
└────────────────────────────────────────────────────────────┘
|
|
51
|
+
</banner>
|
|
52
|
+
|
|
53
|
+
Apos imprimir o banner, prossiga com o protocolo de invocacao abaixo.
|
|
54
|
+
|
|
55
|
+
## Invocacao
|
|
56
|
+
|
|
57
|
+
Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
58
|
+
|
|
59
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
|
|
60
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
neocortex-client invoke \
|
|
64
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
65
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
66
|
+
--format plain
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
70
|
+
|
|
71
|
+
## Exemplos
|
|
72
|
+
|
|
73
|
+
| Invocacao do Usuario | Comando invoke |
|
|
74
|
+
|---------------------|----------------|
|
|
75
|
+
| `@neocortex *menu` | `invoke --args "*menu"` |
|
|
76
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
77
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
78
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
79
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
80
|
+
|
|
81
|
+
## Erros
|
|
82
|
+
|
|
83
|
+
| Exit Code | Significado | Acao |
|
|
84
|
+
|-----------|-------------|------|
|
|
85
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
86
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
87
|
+
| 2 | Nao configurado | Instruir: "Visite https://neocortex.ornexus.com/login para obter sua license key, depois execute: `neocortex activate SUA-LICENSE-KEY`" |
|
|
88
|
+
|
|
89
|
+
## Regras
|
|
90
|
+
|
|
91
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
92
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
93
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
94
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - Cursor IDE Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_cursor() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local cursor_target="$source_dir/targets-stubs/cursor"
|
|
9
|
+
|
|
10
|
+
if [ ! -d "$cursor_target" ]; then
|
|
11
|
+
echo "[CURSOR] ERROR: Stub directory not found: $cursor_target" >&2
|
|
12
|
+
return 1
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
echo "[CURSOR] Installing Neocortex for Cursor IDE (thin-client mode)..."
|
|
16
|
+
|
|
17
|
+
# Create destination directories
|
|
18
|
+
mkdir -p "$dest_dir/.cursor/agents"
|
|
19
|
+
|
|
20
|
+
# 1. Copy agent stub
|
|
21
|
+
if [ -f "$cursor_target/agent.md" ]; then
|
|
22
|
+
cp "$cursor_target/agent.md" "$dest_dir/.cursor/agents/neocortex.md"
|
|
23
|
+
echo "[CURSOR] Installed agent stub: .cursor/agents/neocortex.md"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
# 2. Copy MCP config
|
|
27
|
+
if [ -f "$cursor_target/mcp.json" ]; then
|
|
28
|
+
cp "$cursor_target/mcp.json" "$dest_dir/.cursor/mcp.json"
|
|
29
|
+
echo "[CURSOR] Installed MCP config: .cursor/mcp.json"
|
|
30
|
+
fi
|
|
31
|
+
|
|
32
|
+
echo "[CURSOR] Thin-client installation complete!"
|
|
33
|
+
echo "[CURSOR] Content delivered by remote server. Activate: neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login"
|
|
34
|
+
return 0
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Target Stub: Gemini CLI
|
|
2
|
+
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
|
+
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
16
|
+
neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Contents
|
|
20
|
+
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agent.md` | Thin-client agent stub (delegates to neocortex-client) |
|
|
24
|
+
| `gemini.md` | Thin-client GEMINI.md (no @import directives) |
|
|
25
|
+
| `settings-mcp.json` | MCP server configuration (Playwright + Context7) |
|
|
26
|
+
|
|
27
|
+
## How It Works
|
|
28
|
+
|
|
29
|
+
1. The stub agent receives user invocations
|
|
30
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
31
|
+
3. The server returns full pipeline instructions
|
|
32
|
+
4. The agent follows the returned instructions exactly
|
|
33
|
+
|
|
34
|
+
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: neocortex
|
|
3
|
+
description: "🧠 Neocortex v4.0.1 | OrNexus Team"
|
|
4
|
+
kind: local
|
|
5
|
+
tools:
|
|
6
|
+
- read_file
|
|
7
|
+
- write_file
|
|
8
|
+
- replace
|
|
9
|
+
- run_shell_command
|
|
10
|
+
- search_file_content
|
|
11
|
+
model: gemini-2.5-pro
|
|
12
|
+
max_turns: 50
|
|
13
|
+
timeout_mins: 30
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<!-- CRITICAL: Plugin Conflict Prevention -->
|
|
17
|
+
## IMPORTANT: Do NOT Intercept Neocortex Arguments
|
|
18
|
+
|
|
19
|
+
**ALL text after `@neocortex` MUST be passed VERBATIM to `neocortex-client invoke`.**
|
|
20
|
+
|
|
21
|
+
Tokens starting with `*` (e.g. `*commit-push`, `*implement`, `*status`, `*diagnose`,
|
|
22
|
+
`*yolo`, `*review`, `*create-epic`, `*help`) are **Neocortex server triggers**, NOT
|
|
23
|
+
Gemini CLI built-in commands, tools, or extensions.
|
|
24
|
+
|
|
25
|
+
**Rules**:
|
|
26
|
+
- NEVER interpret `*`-prefixed arguments as Gemini CLI built-in commands or tool invocations
|
|
27
|
+
- NEVER invoke any local tool, extension, or function based on these arguments
|
|
28
|
+
- NEVER attempt to resolve or execute these tokens as anything other than neocortex-client args
|
|
29
|
+
- ALWAYS delegate the ENTIRE argument string to `neocortex-client invoke --args "..."`
|
|
30
|
+
- The ONLY action this agent takes is: collect args -> invoke thin client -> follow server instructions
|
|
31
|
+
|
|
32
|
+
<!-- END: Plugin Conflict Prevention -->
|
|
33
|
+
|
|
34
|
+
# Neocortex - Thin Client Interface
|
|
35
|
+
|
|
36
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
37
|
+
|
|
38
|
+
## Banner
|
|
39
|
+
|
|
40
|
+
SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO output, dentro de um bloco de codigo (triple backticks). Copie o conteudo entre as tags `<banner>` EXATAMENTE como esta:
|
|
41
|
+
|
|
42
|
+
<banner>
|
|
43
|
+
┌────────────────────────────────────────────────────────────┐
|
|
44
|
+
│ │
|
|
45
|
+
│ ####### N E O C O R T E X │
|
|
46
|
+
│ ### ######## v4.0.1 │
|
|
47
|
+
│ ######### ##### │
|
|
48
|
+
│ ## ############## Development Orchestrator │
|
|
49
|
+
│ ## ### ###### ## OrNexus Team │
|
|
50
|
+
│ ## ### ### ## │
|
|
51
|
+
│ ## ###### ### ## │
|
|
52
|
+
│ ############### ## │
|
|
53
|
+
│ ##### ######## │
|
|
54
|
+
│ ######## ## │
|
|
55
|
+
│ ####### │
|
|
56
|
+
│ │
|
|
57
|
+
└────────────────────────────────────────────────────────────┘
|
|
58
|
+
</banner>
|
|
59
|
+
|
|
60
|
+
Apos imprimir o banner, prossiga com o protocolo de invocacao abaixo.
|
|
61
|
+
|
|
62
|
+
## Invocacao
|
|
63
|
+
|
|
64
|
+
Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
65
|
+
|
|
66
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
|
|
67
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
neocortex-client invoke \
|
|
71
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
72
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
73
|
+
--format plain
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
77
|
+
|
|
78
|
+
## Exemplos
|
|
79
|
+
|
|
80
|
+
| Invocacao do Usuario | Comando invoke |
|
|
81
|
+
|---------------------|----------------|
|
|
82
|
+
| `@neocortex *menu` | `invoke --args "*menu"` |
|
|
83
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
84
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
85
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
86
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
87
|
+
|
|
88
|
+
## Erros
|
|
89
|
+
|
|
90
|
+
| Exit Code | Significado | Acao |
|
|
91
|
+
|-----------|-------------|------|
|
|
92
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
93
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
94
|
+
| 2 | Nao configurado | Instruir: "Visite https://neocortex.ornexus.com/login para obter sua license key, depois execute: `neocortex activate SUA-LICENSE-KEY`" |
|
|
95
|
+
|
|
96
|
+
## Regras
|
|
97
|
+
|
|
98
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
99
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
100
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
101
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Neocortex - Gemini Configuration (Thin Client)
|
|
2
|
+
|
|
3
|
+
This project uses Neocortex, a Development Orchestrator.
|
|
4
|
+
|
|
5
|
+
All orchestration logic, standards, and skills are delivered by the remote Neocortex server.
|
|
6
|
+
Use the `@neocortex` agent to interact with the pipeline.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
Invoke the `@neocortex` agent with your command. The agent will call `neocortex-client invoke` to fetch instructions from the server.
|
|
11
|
+
|
|
12
|
+
## Activation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login
|
|
16
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Neocortex - Gemini CLI Install Adapter (Thin Client)
|
|
3
|
+
# Simplified installer for npm tarball mode (targets-stubs only)
|
|
4
|
+
|
|
5
|
+
install_gemini() {
|
|
6
|
+
local source_dir="${1:?SOURCE_DIR required}"
|
|
7
|
+
local dest_dir="${2:?DEST_DIR required}"
|
|
8
|
+
local gemini_target="$source_dir/targets-stubs/gemini-cli"
|
|
9
|
+
local gemini_home="${GEMINI_HOME:-$HOME/.gemini}"
|
|
10
|
+
|
|
11
|
+
if [ ! -d "$gemini_target" ]; then
|
|
12
|
+
echo "[GEMINI] ERROR: Stub directory not found: $gemini_target" >&2
|
|
13
|
+
return 1
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
echo "[GEMINI] Installing Neocortex for Gemini CLI (thin-client mode)..."
|
|
17
|
+
|
|
18
|
+
# Create destination directories
|
|
19
|
+
mkdir -p "$gemini_home/agents"
|
|
20
|
+
|
|
21
|
+
# 1. Copy agent stub
|
|
22
|
+
if [ -f "$gemini_target/agent.md" ]; then
|
|
23
|
+
cp "$gemini_target/agent.md" "$gemini_home/agents/neocortex.md"
|
|
24
|
+
echo "[GEMINI] Installed agent stub: ~/.gemini/agents/neocortex.md"
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
# 2. Copy GEMINI.md stub to project root
|
|
28
|
+
if [ -f "$gemini_target/gemini.md" ]; then
|
|
29
|
+
cp "$gemini_target/gemini.md" "$dest_dir/GEMINI.md"
|
|
30
|
+
echo "[GEMINI] Installed: GEMINI.md (project root)"
|
|
31
|
+
fi
|
|
32
|
+
|
|
33
|
+
# 3. Merge MCP config into settings.json
|
|
34
|
+
if [ -f "$gemini_target/settings-mcp.json" ]; then
|
|
35
|
+
local settings_file="$gemini_home/settings.json"
|
|
36
|
+
if [ -f "$settings_file" ]; then
|
|
37
|
+
if command -v jq >/dev/null 2>&1; then
|
|
38
|
+
local mcp_fragment
|
|
39
|
+
mcp_fragment=$(cat "$gemini_target/settings-mcp.json")
|
|
40
|
+
jq --argjson mcp "$mcp_fragment" '. * $mcp' "$settings_file" > "${settings_file}.tmp"
|
|
41
|
+
mv "${settings_file}.tmp" "$settings_file"
|
|
42
|
+
echo "[GEMINI] Merged MCP config into ~/.gemini/settings.json"
|
|
43
|
+
else
|
|
44
|
+
cp "$gemini_target/settings-mcp.json" "$gemini_home/settings-mcp.json"
|
|
45
|
+
echo "[GEMINI] WARN: jq not found - copy settings-mcp.json manually"
|
|
46
|
+
fi
|
|
47
|
+
else
|
|
48
|
+
cp "$gemini_target/settings-mcp.json" "$settings_file"
|
|
49
|
+
echo "[GEMINI] Created ~/.gemini/settings.json with MCP config"
|
|
50
|
+
fi
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
echo "[GEMINI] Thin-client installation complete!"
|
|
54
|
+
echo "[GEMINI] Content delivered by remote server. Activate: neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login"
|
|
55
|
+
return 0
|
|
56
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Target Stub: VSCode / GitHub Copilot
|
|
2
|
+
|
|
3
|
+
**Thin Client Mode** | Remote content delivery
|
|
4
|
+
|
|
5
|
+
This is a thin-client stub. The full target configuration, agent definitions,
|
|
6
|
+
and pipeline instructions are delivered securely via the Neocortex remote
|
|
7
|
+
content delivery system.
|
|
8
|
+
|
|
9
|
+
## Quick Start
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Install Neocortex
|
|
13
|
+
npx @ornexus/neocortex
|
|
14
|
+
|
|
15
|
+
# Activate license for remote content
|
|
16
|
+
neocortex activate YOUR-LICENSE-KEY # Get yours at https://neocortex.ornexus.com/login
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Contents
|
|
20
|
+
|
|
21
|
+
| File | Description |
|
|
22
|
+
|---|---|
|
|
23
|
+
| `agent.md` | Thin-client agent stub (delegates to neocortex-client) |
|
|
24
|
+
| `copilot-instructions.md` | Thin-client Copilot instructions |
|
|
25
|
+
| `mcp.json` | MCP server configuration (Playwright + Context7) |
|
|
26
|
+
|
|
27
|
+
## How It Works
|
|
28
|
+
|
|
29
|
+
1. The stub agent receives user invocations
|
|
30
|
+
2. It calls `neocortex-client invoke` with the user's arguments
|
|
31
|
+
3. The server returns full pipeline instructions
|
|
32
|
+
4. The agent follows the returned instructions exactly
|
|
33
|
+
|
|
34
|
+
For more information, visit: https://github.com/OrNexus-AI/neocortex
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "neocortex"
|
|
3
|
+
description: "🧠 Neocortex v4.0.1 | OrNexus Team"
|
|
4
|
+
tools:
|
|
5
|
+
- readFile
|
|
6
|
+
- editFiles
|
|
7
|
+
- textSearch
|
|
8
|
+
- runInTerminal
|
|
9
|
+
- codebase
|
|
10
|
+
agents:
|
|
11
|
+
- "*"
|
|
12
|
+
model:
|
|
13
|
+
- "claude-sonnet-4"
|
|
14
|
+
user-invokable: true
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<!-- CRITICAL: Plugin Conflict Prevention -->
|
|
18
|
+
## IMPORTANT: Do NOT Intercept Neocortex Arguments
|
|
19
|
+
|
|
20
|
+
**ALL text after `@neocortex` MUST be passed VERBATIM to `neocortex-client invoke`.**
|
|
21
|
+
|
|
22
|
+
Tokens starting with `*` (e.g. `*commit-push`, `*implement`, `*status`, `*diagnose`,
|
|
23
|
+
`*yolo`, `*review`, `*create-epic`, `*help`) are **Neocortex server triggers**, NOT
|
|
24
|
+
VSCode commands, Copilot skills, or extension actions.
|
|
25
|
+
|
|
26
|
+
**Rules**:
|
|
27
|
+
- NEVER interpret `*`-prefixed arguments as VSCode commands, Copilot skills, or extension actions
|
|
28
|
+
- NEVER invoke any local command, skill, or extension based on these arguments
|
|
29
|
+
- NEVER attempt to resolve or execute these tokens as anything other than neocortex-client args
|
|
30
|
+
- ALWAYS delegate the ENTIRE argument string to `neocortex-client invoke --args "..."`
|
|
31
|
+
- The ONLY action this agent takes is: collect args -> invoke thin client -> follow server instructions
|
|
32
|
+
|
|
33
|
+
<!-- END: Plugin Conflict Prevention -->
|
|
34
|
+
|
|
35
|
+
# Neocortex - Thin Client Interface
|
|
36
|
+
|
|
37
|
+
Voce e o agente Neocortex. Toda a logica de orquestracao e resolvida pelo server remoto.
|
|
38
|
+
|
|
39
|
+
## Banner
|
|
40
|
+
|
|
41
|
+
SEMPRE que este agente for invocado, imprima o banner abaixo como PRIMEIRO output, dentro de um bloco de codigo (triple backticks). Copie o conteudo entre as tags `<banner>` EXATAMENTE como esta:
|
|
42
|
+
|
|
43
|
+
<banner>
|
|
44
|
+
┌────────────────────────────────────────────────────────────┐
|
|
45
|
+
│ │
|
|
46
|
+
│ ####### N E O C O R T E X │
|
|
47
|
+
│ ### ######## v4.0.1 │
|
|
48
|
+
│ ######### ##### │
|
|
49
|
+
│ ## ############## Development Orchestrator │
|
|
50
|
+
│ ## ### ###### ## OrNexus Team │
|
|
51
|
+
│ ## ### ### ## │
|
|
52
|
+
│ ## ###### ### ## │
|
|
53
|
+
│ ############### ## │
|
|
54
|
+
│ ##### ######## │
|
|
55
|
+
│ ######## ## │
|
|
56
|
+
│ ####### │
|
|
57
|
+
│ │
|
|
58
|
+
└────────────────────────────────────────────────────────────┘
|
|
59
|
+
</banner>
|
|
60
|
+
|
|
61
|
+
Apos imprimir o banner, prossiga com o protocolo de invocacao abaixo.
|
|
62
|
+
|
|
63
|
+
## Invocacao
|
|
64
|
+
|
|
65
|
+
Quando o usuario invocar este agente, siga EXATAMENTE este protocolo:
|
|
66
|
+
|
|
67
|
+
1. **Coletar argumentos do usuario** - Tudo que o usuario escreveu apos `@neocortex`
|
|
68
|
+
2. **Executar o thin client** para obter instrucoes do server:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
neocortex-client invoke \
|
|
72
|
+
--args "{ARGS_DO_USUARIO}" \
|
|
73
|
+
--project-root "$(git rev-parse --show-toplevel)" \
|
|
74
|
+
--format plain
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
3. **Seguir EXATAMENTE as instrucoes retornadas** pelo thin client no stdout
|
|
78
|
+
|
|
79
|
+
## Exemplos
|
|
80
|
+
|
|
81
|
+
| Invocacao do Usuario | Comando invoke |
|
|
82
|
+
|---------------------|----------------|
|
|
83
|
+
| `@neocortex *menu` | `invoke --args "*menu"` |
|
|
84
|
+
| `@neocortex` (vazio) | `invoke --args ""` |
|
|
85
|
+
| `@neocortex *status` | `invoke --args "*status"` |
|
|
86
|
+
| `@neocortex *yolo @docs/stories/1.1.story.md` | `invoke --args "*yolo @docs/stories/1.1.story.md"` |
|
|
87
|
+
| `@neocortex *implement @docs/stories/1.1.story.md` | `invoke --args "*implement @docs/stories/1.1.story.md"` |
|
|
88
|
+
|
|
89
|
+
## Erros
|
|
90
|
+
|
|
91
|
+
| Exit Code | Significado | Acao |
|
|
92
|
+
|-----------|-------------|------|
|
|
93
|
+
| 0 | Sucesso | Seguir instrucoes do stdout |
|
|
94
|
+
| 1 | Erro do server | Mostrar stderr ao usuario |
|
|
95
|
+
| 2 | Nao configurado | Instruir: "Visite https://neocortex.ornexus.com/login para obter sua license key, depois execute: `neocortex activate SUA-LICENSE-KEY`" |
|
|
96
|
+
|
|
97
|
+
## Regras
|
|
98
|
+
|
|
99
|
+
- NUNCA invente logica de orquestracao - toda logica vem do server
|
|
100
|
+
- NUNCA pule o thin client - sempre execute o invoke
|
|
101
|
+
- SEMPRE siga as instrucoes retornadas literalmente
|
|
102
|
+
- Se o thin client falhar, mostre o erro e aguarde input do usuario
|