cocosuperintelligence 1.5.0

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/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Coco Inc
4
+
5
+ SCOPE: This MIT license governs the CoCo core — all contents of this
6
+ repository EXCEPT the directory `systems/superintelligence/`. The Super
7
+ Intelligence System in `systems/superintelligence/` is proprietary and is
8
+ licensed separately under `systems/superintelligence/LICENSE`; the grant
9
+ below does not apply to it. Certain vendored third-party components (for
10
+ example, some skills under `skills/`) carry their own upstream licenses,
11
+ which continue to govern those components; see `CREDITS.md`.
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,791 @@
1
+ <div align="center">
2
+
3
+ <br>
4
+
5
+ <picture>
6
+ <source media="(prefers-color-scheme: dark)" srcset="assets/logo-si.svg">
7
+ <img src="assets/logo-si-light.svg" alt="CoCo Super Intelligence" width="300">
8
+ </picture>
9
+
10
+ # CoCo Super Intelligence
11
+
12
+ ### Summon an advisory board of 495 world-class minds — right inside your AI coding session.
13
+
14
+ CoCo Super Intelligence is the orchestration layer that turns Claude Code, Cursor, or Codex into an entire engineering department: routed expert panels that deliberate and decide, then **226 skills**, **386 commands**, and disk-persistent state that ship what they decided.
15
+
16
+ Open-core (MIT core · proprietary Super Intelligence) · installs in 90 seconds · 100% local · no telemetry
17
+
18
+ <br>
19
+
20
+ [![License: Open-core](https://img.shields.io/badge/License-Open--core-yellow.svg?style=for-the-badge)](LICENSE)
21
+ [![Version](https://img.shields.io/badge/version-1.5.0-blue?style=for-the-badge)](CHANGELOG.md)
22
+ [![Skills](https://img.shields.io/badge/skills-226-emerald?style=for-the-badge)](skills/)
23
+ [![Commands](https://img.shields.io/badge/commands-386-indigo?style=for-the-badge)](commands/)
24
+ [![Personas](https://img.shields.io/badge/personas-495-violet?style=for-the-badge)](systems/superintelligence/)
25
+ [![CI](https://img.shields.io/github/actions/workflow/status/coco-research/coco/ci.yml?branch=main&style=for-the-badge&label=CI)](https://github.com/coco-research/coco/actions)
26
+
27
+ <br>
28
+
29
+ <p>
30
+ &nbsp;&nbsp;<a href="#install"><kbd> &nbsp; Install &nbsp; </kbd></a>&nbsp;&nbsp;
31
+ <a href="#the-board"><kbd> &nbsp; The Board &nbsp; </kbd></a>&nbsp;&nbsp;
32
+ <a href="#the-framework-underneath"><kbd> &nbsp; Framework &nbsp; </kbd></a>&nbsp;&nbsp;
33
+ <a href="#skills-catalog"><kbd> &nbsp; Skills &nbsp; </kbd></a>&nbsp;&nbsp;
34
+ <a href="#system-bundles"><kbd> &nbsp; Systems &nbsp; </kbd></a>&nbsp;&nbsp;
35
+ <a href="#see-it-run"><kbd> &nbsp; Demos &nbsp; </kbd></a>
36
+ </p>
37
+
38
+ <br>
39
+
40
+ </div>
41
+
42
+ <p align="center">
43
+ <img src="assets/demo.gif" alt="/SI-Decide --debate: a routed expert panel argues in reacting rounds before an attributed verdict" width="720" />
44
+ </p>
45
+
46
+ <div align="center"><sub><em>A real <code>/SI-Decide --debate</code> run — CoCo routes an expert panel, deliberates in reacting rounds, and returns an attributed verdict with named dissent.</em></sub></div>
47
+
48
+ ---
49
+
50
+ <div align="center">
51
+
52
+ > **One developer writing single prompts? That was last year.**
53
+ >
54
+ > CoCo Super Intelligence convenes a cross-team board of 495 named experts to pressure-test your hardest calls — then puts an orchestrated team of agents to work executing the verdict: parallel build waves, deterministic verification gates, and phase state that survives every `/clear`.
55
+
56
+ </div>
57
+
58
+ <a id="install"></a>
59
+
60
+ ```bash
61
+ git clone https://github.com/coco-research/coco.git && cd coco && bash install.sh
62
+ bash install.sh --systems superintelligence
63
+ ```
64
+
65
+ <div align="center"><sub>90 seconds. Override with <code>--adapter cursor</code> or <code>--adapter claude-code</code>; narrow bundles with <code>--systems</code>. Per-adapter detail: <a href="docs/install.md">docs/install.md</a>.</sub></div>
66
+
67
+ ---
68
+
69
+ ## What CoCo Is (and Isn't)
70
+
71
+ **CoCo is not a new AI model, and it is not another agent harness.** It doesn't run a model or an agent loop of its own. It's a portable layer of Markdown and YAML that installs *into* the agent harness you already use — Claude Code, Cursor, Codex CLI, or any `AGENTS.md`-compatible tool — and upgrades it with an expert advisory board, a skills library, persistent project memory, specialized subagents, and verification gates.
72
+
73
+ Your model, your tool, your keys, your machine. When you see "parallel subagent waves," those subagents are executed by your host harness's own agent machinery; CoCo supplies the orchestration structure that makes it all behave like a coordinated team. That is exactly why CoCo is vendor-neutral: it's the operating layer, not the engine.
74
+
75
+ ---
76
+
77
+ <a id="the-board"></a>
78
+
79
+ ## ⭐ The Board — CoCo Super Intelligence
80
+
81
+ ### A cross-team advisory board of 495 world-class minds
82
+
83
+ Super Intelligence is CoCo's signature capability. It lets you summon custom, real-world expert panels directly inside your coding session to guide architectural, engineering, risk, finance, and business decisions — each contribution attributed to a named expert, grounded in cited public sources.
84
+
85
+ ```bash
86
+ /SI-Decide "Should we migrate our database to pgvector?"
87
+ /SI-AI-Decide "Which embedding model gives the best cost/performance?"
88
+ /SI-Eng-Pre-Mortem "Review our zero-downtime cache migration strategy"
89
+ /SI-GRC-Review "Check this customer onboarding flow for GDPR compliance"
90
+ ```
91
+
92
+ **495 expert personas**, organized across 13 specialized departments:
93
+
94
+ | Department | Experts | Focus |
95
+ |---|---:|---|
96
+ | **Engineering** | 70 | Software architecture, cloud systems, systems coding, compilers, infrastructure |
97
+ | **AI** | 59 | Neural-network research, LLM optimization, safety, alignment, vector databases |
98
+ | **Product & Design** | 56 | Design systems, UX, product strategy, growth loops |
99
+ | **Finance** | 47 | Valuation, corporate finance, macro modeling, fintech infrastructure |
100
+ | **Trading** | 46 | Quant analysis, market microstructure, derivatives pricing, crypto liquidity |
101
+ | **Legal & IP** | 31 | Privacy law, antitrust, patent and copyright policy, digital rights |
102
+ | **Risk & Compliance (GRC)** | 30 | GDPR, HIPAA, SOC 2, security auditing, international regulation |
103
+ | **Strategy** | 29 | Platform economics, business models, competitive analysis |
104
+ | **Data & Analytics** | 29 | Data engineering, pipeline optimization, predictive modeling |
105
+ | **Climate & Energy** | 25 | Decarbonization policy, clean-energy economics, carbon markets, circular economy |
106
+ | **Education & EdTech** | 25 | Learning science, curriculum design, education policy, assessment |
107
+ | **Healthcare & Life Sciences** | 25 | Health economics, genomics, clinical medicine, public health policy |
108
+ | **Sales / GTM / Marketing** | 23 | Product-market fit, sales ops, growth marketing, enterprise GTM |
109
+
110
+ - **342 generated slash commands.** 17 cross-team meta commands (like `/SI-Decide` or `/SI-Tradeoff`, routing across domains) plus 325 per-team commands (25 verbs × 13 teams, such as `/SI-AI-Decide` or `/SI-Eng-Pre-Mortem`). These are generated locally at install time from the team registries — no command files are transmitted or stored remotely.
111
+ - **70 expertise cells.** Each department is subdivided into focused cells (e.g. Engineering has 11, AI has 8) so the router can assemble a precise panel rather than a generic crowd.
112
+ - **Cross-team meta-orchestration.** For complex queries spanning domains ("build and sell an AI audit tool"), a local router scores your prompt against team registries and cells, then greedily assembles a proportional 16–32-person panel.
113
+ - **Citable and grounded.** Every stance is verified from public sources and carries a direct evidence URL. Personas are validated against a strict anti-fabrication gate.
114
+ - **`--debate` deliberation.** Panels can argue in reacting rounds before returning a verdict, surfacing named dissent instead of false consensus.
115
+
116
+ ### The selection algorithm (two-stage routing + approval)
117
+
118
+ The meta-orchestrator uses a staged algorithm so it never has to load the entire persona filesystem at runtime:
119
+
120
+ 1. **Stage A — team & cell routing (cheap).** Reads the meta-registry (`systems/superintelligence/registry.json`) and scans only team descriptions and cell definitions, scoring relevance by keyword and domain overlap to select the top 1–4 teams. If one team dominates, it delegates to that team's own orchestrator.
121
+ 2. **Stage B — scoped persona selection.** Loads compact persona records (slugs, cells, domains, stances, conflict mappings) for only the selected teams, allocates the 16–32-person budget proportionally, runs the greedy scorer (`0.40·domain + 0.30·cell-coverage + 0.30·conflict-pairing`), and applies a cross-team tension pass to pair opposing viewpoints (e.g. security vs. growth).
122
+ 3. **Stage C — approval & execution.** Presents the roster grouped by team with a one-line rationale. The action verb then consumes the approved roster and returns output with full line-by-line attribution (e.g. "Aswath Damodaran (Finance): …").
123
+
124
+ ### Persona build & validation pipeline
125
+
126
+ The 495-persona roster was compiled with a systematic multi-tier workflow. Candidate generation was evaluated across local Qwen (via LM Studio), a hosted small model, and Gemini Flash, but **Claude research agents proved the quality winner** for resolving historical data and citing verifiable signal. Personas are checked by an advisory validation gate (`validate_persona.py`) that enforces five things: every required frontmatter field is present; at least 4 cited URLs resolve live (non-404); every `public_stance` carries an `evidence_url`, so no stance is uncited; at least 2 recent signals within 12 months (or 2 persistent signals for historical archetypes); and any `pairs_well_with` / `productive_conflict_with` slug refers to a real roster member. Two limits are worth stating plainly: the gate confirms that a stance is *cited*, not that a quotation is authentic, and `home_team` is only checked for presence, not validated against the list of real teams. A `NEEDS-TOPUP` verdict is advisory — it does not currently affect which personas a council selects at runtime.
127
+
128
+ ---
129
+
130
+ <a id="the-framework-underneath"></a>
131
+
132
+ ## The Framework Underneath
133
+
134
+ The board decides. The framework ships. Three pillars turn the verdict into merged, verified code.
135
+
136
+ <table>
137
+ <tr>
138
+ <td width="33%" valign="top">
139
+
140
+ ### 1. Autonomous team execution
141
+ `/team:ship` runs a fully coordinated build pipeline — 6 development stages, 7 hard verification gates, and 2 architecture conformance gates. Specialized agents act in their domains (Research, Architecture, Plan, Review, Build, QA). Code must clear the Test Evidence Protocol (independent re-runs, strict coverage, skip-prevention) **and land where the plan said it would** before a pull request is opened.
142
+
143
+ </td>
144
+ <td width="33%" valign="top">
145
+
146
+ ### 2. Disk-persistent state
147
+ AI chat context is fragile and wipes on `/clear`. CoCo persists phase state, decisions, and progress logs to disk across resets, with atomic git commits for every successful step — so you can review history, roll back a bad design path, or resume a long-running migration from any checkpoint.
148
+
149
+ </td>
150
+ <td width="33%" valign="top">
151
+
152
+ ### 3. Vendor-neutral portability
153
+ CoCo compiles its rules, templates, and agent definitions into pure Markdown and YAML frontmatter. Native IDE adapters inject the same library into Claude Code, Cursor, Codex CLI, PI-Desktop, VS Code, or any `AGENTS.md` tool — so your workflows follow you even if you switch AI editors.
154
+
155
+ </td>
156
+ </tr>
157
+ </table>
158
+
159
+ ---
160
+
161
+ ## Architecture conformance: the gate tests cannot give you
162
+
163
+ Every test suite in existence shares one blind spot. **Tests fail when behaviour breaks — not when your architecture quietly dissolves.** A component can be relocated, folded into another module, or deleted outright, and a green build will tell you nothing. Requirements pass. Coverage holds. The design you agreed to is gone.
164
+
165
+ `/team` now closes that gap in both directions, and both are enforced by Python scripts with real exit codes — not by instructions an agent can narrate its way around.
166
+
167
+ <table>
168
+ <tr>
169
+ <td width="50%" valign="top">
170
+
171
+ ### ◀ Backwards — drift detection
172
+
173
+ A commit-pinned index at **`.arch/index.json`** maps every architectural component to the real directories and files that implement it. `/team:verify` gained failure mode **`(e)`**: structural drift against that index.
174
+
175
+ Twelve validator checks run on every index. The central one is blunt and unfakeable: **every claimed path must resolve on disk.** A fabricated path exits non-zero and names itself.
176
+
177
+ </td>
178
+ <td width="50%" valign="top">
179
+
180
+ ### ▶ Forwards — built as declared
181
+
182
+ `/team:ship` Stage 3 now declares its intended architecture to **`.team-ship/ARCH-PLAN.json`** — where each component will live, and what is explicitly out of scope.
183
+
184
+ After the build, the **built-as-declared gate** checks it. A component you declared and then quietly dropped is a **BLOCK**. A file that lands in a path the plan ruled out of scope is a **BLOCK**. Neither appears in any test result.
185
+
186
+ </td>
187
+ </tr>
188
+ </table>
189
+
190
+ **Why this works.** Path existence cannot be checked at planning time, because nothing is built yet. So the plan is *written* when the knowledge exists and *tested* when the evidence exists. Deferring the check rather than weakening it is exactly what makes a forward architecture declaration enforceable.
191
+
192
+ ### Use it
193
+
194
+ ```bash
195
+ /team arch build # map this repository into a committed, commit-pinned index
196
+ /team arch drift # reconcile an existing index against the current tree
197
+ /team arch check # run the validator alone — no model calls, no writes to the index
198
+ /team verify # now includes failure mode (e): architecture abandoned
199
+ /team ship # declares intended architecture, then proves the build matches
200
+ /team ship --no-arch # opt out entirely; every gate reports DISABLED, never a silent pass
201
+ ```
202
+
203
+ The approval gate now shows you the intended architecture as a table before the build starts. That is the cheapest moment to disagree with it.
204
+
205
+ ### What it does not do
206
+
207
+ A gate that overstates its reach is worse than no gate, so these limits are stated in the artifacts themselves and are not marketing hedges.
208
+
209
+ - **Structural drift only.** A component whose datastore was swapped *inside* its own already-claimed directory produces no drift. Every artifact says "structural drift only" in those words, deliberately.
210
+ - **Not a work-allocation mechanism.** The index sits at C4-Container altitude, so one component can legitimately own thousands of files. Three separate design reviews rejected deriving per-agent file ownership from it.
211
+ - **Currency is not yet mechanically enforced.** Comparing the index pin to `HEAD` is prose an agent follows, not a script. A stale index degrades every gate to `UNVERIFIED` rather than to a pass — but instrumenting this is the next piece of work, and it is named as such.
212
+ - **A clean result licenses no claim** about whether the code at those paths does what the component promised. That remains a review judgement.
213
+
214
+ Requires only Python 3 and `git`. No new dependencies. Design adapted from [lak7/devildev](https://github.com/lak7/devildev) (Apache-2.0); no upstream code was copied — see [`CREDITS.md`](CREDITS.md).
215
+
216
+ ---
217
+
218
+ ## The CoCo Asset Library
219
+
220
+ A standard install equips your workspace with a lightweight core; full activation unlocks up to **947 total assets** to orchestrate any software-engineering workflow.
221
+
222
+ <table align="center">
223
+ <tr>
224
+ <td align="center" width="20%"><h3>226</h3><sub>Skills</sub><br><small>74 Core + 152 Bundle</small></td>
225
+ <td align="center" width="20%"><h3>386</h3><sub>Slash Commands</sub><br><small>44 Core + 342 Generated</small></td>
226
+ <td align="center" width="20%"><h3>35</h3><sub>Specialized Agents</sub><br><small>11 Core + 24 Bundle</small></td>
227
+ <td align="center" width="20%"><h3>495</h3><sub>Expert Personas</sub><br><small>Super Intelligence Board</small></td>
228
+ <td align="center" width="20%"><h3>15</h3><sub>Cross-IDE Rules</sub><br><small>Cursor MDC Rules</small></td>
229
+ </tr>
230
+ </table>
231
+
232
+ <div align="center">
233
+ <sub><strong>Core install:</strong> 144 active assets (74 Skills, 44 Commands, 11 Agents, 15 Rules)</sub><br>
234
+ <sub><strong>A plain install ships every bundle except the security-testing tooling</strong>, which stays opt-in via <code>--systems reverse-skill</code>.</sub><br>
235
+ <sub><strong>Orchestration bundles:</strong> <strong>+68 GSD skills</strong> · <strong>+24 GSD agents</strong> · <strong>+6 Brain skills</strong> · <strong>+13 Super Intelligence skills</strong> · <strong>+342 SI commands</strong> · <strong>3 Workflows</strong></sub>
236
+ </div>
237
+
238
+ ---
239
+
240
+ <a id="skills-catalog"></a>
241
+
242
+ ## Skills Catalog
243
+
244
+ CoCo ships **226 skills** (74 core + 152 across bundles). These are not prompt snippets — each is a full agent instruction set with state management, verification logic, and error handling. A representative slice by category:
245
+
246
+ ### Visual design & styling
247
+ `ui-ux-pro-max` (50 styles, 21 palettes, 50 font pairings, 9 stacks) · `frontend-design` · `design-taste-frontend` · `redesign-existing-projects` · `axiom-liquid-glass` (Apple Liquid Glass, WWDC 2025) · `swiftui-liquid-glass` · `web-design-guidelines` · `tailwind-patterns` (Tailwind v4) · `vercel-react-best-practices` · `clone-website` · `c4-architecture` · `arb-review` · `expo-api-routes` · `ai-product` · `scroll-world` (scroll-scrubbed, cut-free camera flythrough landing pages, generated end to end via Higgsfield).
248
+
249
+ ### Engineering discipline & quality
250
+ `brainstorming` · `writing-plans` · `executing-plans` · `subagent-driven-development` · `dispatching-parallel-agents` · `test-driven-development` · `systematic-debugging` · `requesting-code-review` · `receiving-code-review` · `verification-before-completion` · `finishing-a-development-branch` · `using-git-worktrees` · `code-verification` (7 bug-vector audit) · `generate-tests` · `api-design-principles` · `cli-anything` · `workflow-routing`.
251
+
252
+ ### AI / LLM engineering
253
+ `openai-agents` · `openai-api` · `openai-apps-mcp` · `openai-whisper` · `agent-lightning` (Microsoft Agent Lightning, RL) · `voice-ai` · `ai-marketing-videos`.
254
+
255
+ ### Product management & communication
256
+ `prd-generator` · `prd-mastery` · `task-prd-creator` · `project-docs` · `pmstudio` · `nfr-tracker` · `stakeholder-comms` · `meeting-notes` · `change-log`.
257
+
258
+ ### Operations, safety & recovery
259
+ `dr-plan` (RTO/RPO) · `irp` (incident response) · `recovery-plan`.
260
+
261
+ ### Media, memory & analysis
262
+ `coco-ads` (launch videos via HyperFrames) · `media-memory` (multimodal embeddings) · `doc-sync` · `ultra-think` · `browser-automation`.
263
+
264
+ ### The CoCo platform itself
265
+ `coco` (conversational router) · `coco-cli` · `coco-loop` (compiles a plain-language goal into a confirmed charter, then runs a bounded, propose-only autonomous loop) · `skill-creator` · `writing-skills` · `find-skills`.
266
+
267
+ <details>
268
+ <summary><strong>▸ Full catalog — every one of the 226 skills</strong></summary>
269
+
270
+ <br>
271
+
272
+ **Core skills (66)**
273
+
274
+ `agent-lightning` · `ai-marketing-videos` · `ai-product` · `api-design-principles` · `arb-review` · `axiom-liquid-glass` · `brainstorming` · `browser-automation` · `c4-architecture` · `change-log` · `cli-anything` · `clone-website` · `coco` · `coco-ads` · `coco-cli` · `coco-loop` · `code-verification` · `design-taste-frontend` · `dispatching-parallel-agents` · `doc-sync` · `dr-plan` · `executing-plans` · `expo-api-routes` · `find-skills` · `finishing-a-development-branch` · `frontend-design` · `generate-tests` · `irp` · `media-memory` · `meeting-notes` · `nfr-tracker` · `openai-agents` · `openai-api` · `openai-apps-mcp` · `openai-whisper` · `pmstudio` · `prd-generator` · `prd-mastery` · `project-docs` · `receiving-code-review` · `recovery-plan` · `redesign-existing-projects` · `requesting-code-review` · `scroll-world` · `skill-creator` · `stakeholder-comms` · `subagent-driven-development` · `swiftui-liquid-glass` · `systematic-debugging` · `tailwind-patterns` · `task-prd-creator` · `test-driven-development` · `ui-ux-pro-max` · `ultra-think` · `using-git-worktrees` · `using-superpowers` · `vercel-react-best-practices` · `verification-before-completion` · `voice-ai` · `web-design-guidelines` · `workflow-routing` · `writing-plans` · `writing-skills`
275
+
276
+ **GSD bundle skills (68)** — the full `gsd-*` project-orchestration lifecycle: `gsd-new-project`, `gsd-plan-phase`, `gsd-execute-phase`, `gsd-verify-work`, `gsd-autonomous`, `gsd-debug`, `gsd-ui-phase`, `gsd-secure-phase`, `gsd-workstreams`, `gsd-forensics`, `gsd-milestone-summary`, `gsd-map-codebase`, `gsd-profile-user`, and 55 more (see [`systems/gsd/skills/`](systems/gsd/skills/)).
277
+
278
+ **Brain bundle skills (6)** — `brain` · `brain-init` · `brain-rescan` · `brain-update` · `brain-export` · `brain-wiki`.
279
+
280
+ **Super Intelligence bundle (13)** — one orchestration skill per built team (ai, engineering, product-design, finance, trading, risk-compliance, strategy, data-analytics, gtm, climate-energy, education-edtech, healthcare-life-sciences, legal-ip), which generate the 342 `/SI-*` commands at install.
281
+
282
+ </details>
283
+
284
+ ---
285
+
286
+ <a id="system-bundles"></a>
287
+
288
+ ## System Bundles
289
+
290
+ Bundles are opt-in packages that extend the workspace with specialized databases, pipelines, and rosters. Enable them with `--systems <name>`.
291
+
292
+ One further bundle, `reverse-skill`, is deliberately not part of any default install and is not counted among the four below: it vendors reverse-engineering and penetration-testing methodology under [`systems/reverse-skill/`](systems/reverse-skill/), and it is security tooling that stays installed only when it is asked for by name, with `--systems reverse-skill`. See [`systems/reverse-skill/README.md`](systems/reverse-skill/README.md) for what it contains and how it was curated.
293
+
294
+ ### 1. GSD (Get Shit Done)
295
+ An orchestration engine of **68 skills and 24 agents** that manages the lifecycle of complex codebases. A disk-backed phase database records goals, decisions, milestones, and blockers; **workstreams** spin up isolated git checkouts to test refactors without polluting main; **forensics** performs post-mortem root-cause audits when a phase fails; and **autonomous mode** runs parallel waves of subagents through plan milestones end-to-end.
296
+
297
+ ### 2. Brain
298
+ A local knowledge-graph engine of **6 skills** connecting email, chat, code, and docs. A local SQLite store indexes code entities, business decisions, project terms, and stakeholder feedback; a **wiki generator** builds hyperlinked articles for every recorded entity; and mail sync links project email threads to related files.
299
+
300
+ ### 3. Team
301
+ A multi-agent product-team pipeline (`/team:ship`, `/team:plan`, `/team:review`, `/team:verify`, and more). It spawns specialized subagents — Research, Architect, QA — to execute changes, review diffs, and write tests, with deterministic gates that intercept merges to run lints, import audits, reference checks, and verification suites.
302
+
303
+ ### 4. Super Intelligence
304
+ The **495-persona advisory board** and its **342 generated `/SI-*` commands** across 13 teams — the hero capability described [above](#the-board).
305
+
306
+ ---
307
+
308
+ ## YOLO Mode: True Autonomy
309
+
310
+ <table>
311
+ <tr>
312
+ <td valign="top">
313
+
314
+ ```bash
315
+ /coco yolo
316
+ ```
317
+
318
+ </td>
319
+ <td valign="top">
320
+
321
+ **Bypass approval gates and let the team run unattended.**<br>
322
+ <sub>Activates autonomous multi-stage execution — pipelines advance phase to phase without manual confirmation. Combine with <code>/gsd-autonomous</code> and <code>--systems gsd</code> to run code migrations or test sweeps overnight. Revert to safety any time with <code>/coco careful</code> or <code>/coco normal</code>.</sub>
323
+
324
+ </td>
325
+ </tr>
326
+ </table>
327
+
328
+ ---
329
+
330
+ ## Before CoCo vs. After CoCo
331
+
332
+ <table>
333
+ <tr>
334
+ <th width="20%">Scenario</th>
335
+ <th width="38%">Standard AI Assistant (Claude Code / Cursor / Codex)</th>
336
+ <th width="42%">CoCo-Orchestrated Workspace</th>
337
+ </tr>
338
+ <tr>
339
+ <td><strong>Hard decisions</strong></td>
340
+ <td>One model's single opinion, no attribution, no dissent.</td>
341
+ <td>A routed 16–32-person expert panel deliberates and returns an attributed verdict with named dissent.</td>
342
+ </tr>
343
+ <tr>
344
+ <td><strong>Feature development</strong></td>
345
+ <td>Generates a single component, misses side-effects, needs hand-holding.</td>
346
+ <td>Scans repo, designs the interface, plans phases, runs parallel build agents, tests, and verifies.</td>
347
+ </tr>
348
+ <tr>
349
+ <td><strong>Code auditing</strong></td>
350
+ <td>Suggests basic syntax fixes; misses architectural constraints.</td>
351
+ <td>Applies a 7-category audit (TDZ errors, import mismatches, dead code, CSS regressions, mock leaks).</td>
352
+ </tr>
353
+ <tr>
354
+ <td><strong>System debugging</strong></td>
355
+ <td>Repeats similar suggestions; loses track of prior attempts.</td>
356
+ <td>Systematic loop (Reproduce → Isolate → Hypothesize → Fix → Verify) with saved checkpoints.</td>
357
+ </tr>
358
+ <tr>
359
+ <td><strong>Context resets</strong></td>
360
+ <td>Forgets the active plan; starts over from scratch.</td>
361
+ <td>Reads workspace state from disk and resumes the active phase immediately.</td>
362
+ </tr>
363
+ </table>
364
+
365
+ ---
366
+
367
+ <a id="see-it-run"></a>
368
+
369
+ ## High-Impact Command Demos
370
+
371
+ <table>
372
+ <tr>
373
+ <td width="50%" valign="top">
374
+
375
+ ### Cross-team decision
376
+ ```bash
377
+ /SI-Decide --debate "Buy vs. build our vector store"
378
+ ```
379
+ > Routes a proportional expert panel, deliberates in reacting rounds, and returns an attributed verdict with named dissent.
380
+
381
+ </td>
382
+ <td width="50%" valign="top">
383
+
384
+ ### Code-integrity verification
385
+ ```bash
386
+ /code-verification
387
+ ```
388
+ > Audits fresh code against 7 bug vectors, preventing broken references, imports, and mock leakage.
389
+
390
+ </td>
391
+ </tr>
392
+ <tr>
393
+ <td valign="top">
394
+
395
+ ### Website re-engineering
396
+ ```bash
397
+ /clone-website https://stripe.com
398
+ ```
399
+ > Extracts colors, typography, spacing, shadows, and SVG assets from a live URL into a single-file responsive template.
400
+
401
+ </td>
402
+ <td valign="top">
403
+
404
+ ### Systematic debugging
405
+ ```bash
406
+ /systematic-debugging
407
+ ```
408
+ > Drives a methodical root-cause isolation workflow, preserving hypotheses and findings across API limits.
409
+
410
+ </td>
411
+ </tr>
412
+ <tr>
413
+ <td valign="top">
414
+
415
+ ### Spec & PRD generation
416
+ ```bash
417
+ /prd-generator
418
+ ```
419
+ > Produces a comprehensive PRD — user stories, metrics, risks, architecture.
420
+
421
+ </td>
422
+ <td valign="top">
423
+
424
+ ### Launch video
425
+ ```bash
426
+ /coco-ads
427
+ ```
428
+ > Turns the project you just shipped into a short, shareable launch video, rendered locally via HyperFrames.
429
+
430
+ </td>
431
+ </tr>
432
+ </table>
433
+
434
+ ---
435
+
436
+ ## Power Features
437
+
438
+ <table>
439
+ <tr>
440
+ <td width="50%" valign="top">
441
+
442
+ ### CoCo conversational router
443
+ ```bash
444
+ /coco
445
+ ```
446
+ > A central dashboard that routes plain-English asks — "what's blocking?", "summarize files", "run tests" — to the right sub-command.
447
+
448
+ </td>
449
+ <td width="50%" valign="top">
450
+
451
+ ### Multimodal memory
452
+ ```bash
453
+ /media-memory
454
+ ```
455
+ > A local embedding database (Gemini Embedding + ChromaDB) that indexes, searches, and associates diagrams, audio, and docs with your code.
456
+
457
+ </td>
458
+ </tr>
459
+ <tr>
460
+ <td valign="top">
461
+
462
+ ### Scheduled & loop agents
463
+ ```bash
464
+ # Point your host CLI's scheduler at any CoCo command:
465
+ /schedule run /team:review every Monday
466
+ /loop 5m /team:verify
467
+ ```
468
+ > CoCo ships no scheduler of its own. Where your host CLI provides scheduling or looping (such as Claude Code's `/schedule` and `/loop`), point it at any CoCo command to run reviews or watches unattended.
469
+
470
+ </td>
471
+ <td valign="top">
472
+
473
+ ### Email triage suite
474
+ ```bash
475
+ /email:summary
476
+ /email:today
477
+ ```
478
+ > Reads your active Outlook instance (Legacy AppleScript or New Outlook MIME cache) to fetch, search, thread, and draft replies to project mail.
479
+
480
+ </td>
481
+ </tr>
482
+ <tr>
483
+ <td valign="top">
484
+
485
+ ### Workspace branching
486
+ ```bash
487
+ /gsd-workstreams create feature-a
488
+ /gsd-new-workspace
489
+ ```
490
+ > Branch development workstreams within one repo — isolated, sandboxed checkouts with separate project state.
491
+
492
+ </td>
493
+ <td valign="top">
494
+
495
+ ### AGENTS.md compiler
496
+ ```bash
497
+ bash adapters/codex/install.sh
498
+ ```
499
+ > Compiles all active rules, skills, and command definitions into a standard `AGENTS.md` recognized by Aider, Cline, and Continue.
500
+
501
+ </td>
502
+ </tr>
503
+ </table>
504
+
505
+ ---
506
+
507
+ ## How CoCo Works
508
+
509
+ ```mermaid
510
+ flowchart LR
511
+ U["You<br/>(Slash command, plain English)"] --> AI["Your AI Harness<br/>(Claude Code, Cursor, Codex…)"]
512
+ AI --> A["IDE Adapter"]
513
+ A --> S["CoCo Assets<br/>skills · agents · commands · rules · personas"]
514
+ S -. Read at runtime .-> AI
515
+ AI --> Agents["Parallel Subagents<br/>(executed by your harness)"]
516
+ Agents --> AI
517
+ ```
518
+
519
+ <div align="center"><sub>CoCo is the asset + orchestration layer. Your harness runs the model and executes the agents.</sub></div>
520
+
521
+ ---
522
+
523
+ ## Installation Matrix
524
+
525
+ <table>
526
+ <tr>
527
+ <td width="50%" valign="top">
528
+
529
+ **Standard 90-second setup**
530
+
531
+ ```bash
532
+ git clone https://github.com/coco-research/coco.git
533
+ cd coco
534
+ bash install.sh
535
+ ```
536
+ *The installer auto-detects your active IDE/CLI.*
537
+
538
+ </td>
539
+ <td width="50%" valign="top">
540
+
541
+ **Via the npm CLI wrapper**
542
+
543
+ ```bash
544
+ # The package name is reserved as `cocosuperintelligence` but is not published
545
+ # on npmjs.com yet (registry 404). Until it is, run the wrapper from a clone:
546
+ git clone --branch v1.5.0 --depth 1 https://github.com/coco-research/coco.git
547
+ node coco/bin/coco.js --help
548
+ ```
549
+ *Do not `npx cocosuperintelligence` until the name is published — npx would
550
+ resolve whatever first claims that name. The wrapper clones the pinned
551
+ release tag, not floating `main`.*
552
+
553
+ </td>
554
+ </tr>
555
+ <tr>
556
+ <td valign="top">
557
+
558
+ **Narrow the install (optional)**
559
+
560
+ ```bash
561
+ # Every bundle installs by default. To take a subset instead:
562
+ bash install.sh --systems gsd,brain
563
+ bash install.sh --systems superintelligence
564
+
565
+ # Or the core set alone, with no bundles:
566
+ bash install.sh --core-only
567
+ ```
568
+
569
+ </td>
570
+ <td valign="top">
571
+
572
+ **Manual adapter overrides**
573
+
574
+ ```bash
575
+ bash install.sh --adapter claude-code
576
+ bash install.sh --adapter cursor
577
+ bash install.sh --adapter grok
578
+ bash install.sh --adapter vscode
579
+ bash install.sh --adapter codex
580
+ bash install.sh --adapter pi-desktop
581
+ bash install.sh --adapter generic
582
+ ```
583
+
584
+ </td>
585
+ </tr>
586
+ <tr>
587
+ <td colspan="2" valign="top">
588
+
589
+ **One-line remote install**
590
+
591
+ ```bash
592
+ bash <(curl -fsSL https://raw.githubusercontent.com/coco-research/coco/main/bin/coco-bootstrap.sh)
593
+ ```
594
+ *Clones the pinned release tag (currently `v1.5.0`, not floating `main`) to `~/.coco`, then pauses and prints the commit hash, date, and message so you can verify it against [that release](https://github.com/coco-research/coco/releases/tag/v1.5.0) before it runs `install.sh`. Type `y` to proceed. Pass `--yes` or set `COCO_BOOTSTRAP_YES=1` to skip the prompt for CI or scripted installs, and pass adapter/systems flags after `--`, e.g. `-- --adapter cursor --systems gsd`.*
595
+
596
+ </td>
597
+ </tr>
598
+ </table>
599
+
600
+ Adapter flags, bundle selection, and per-adapter targets: [`docs/install.md`](docs/install.md).
601
+
602
+ The install paths above are deliberately conservative: the remote bootstrap never runs code before you have confirmed the commit it cloned, `install.sh` only ever reads and symlinks files already inside the repository, the CI workflows that build and publish Coco pin their `setup-node` and `setup-python` Actions to commit SHAs rather than mutable tags, and nothing Coco does locally or in CI sends data anywhere. See [`SECURITY.md`](SECURITY.md) for the full policy.
603
+
604
+ ---
605
+
606
+ ## Staying Current
607
+
608
+ CoCo tells you when a newer version is available — it checks the GitHub repository at most once per day, prints a one-line banner, and sends **no telemetry**. Disable with `COCO_NO_UPDATE_CHECK=1`.
609
+
610
+ <table>
611
+ <tr>
612
+ <td width="50%" valign="top">
613
+
614
+ **git clones**
615
+
616
+ ```bash
617
+ # print version + update status
618
+ bash scripts/check-update.sh
619
+
620
+ # apply an update
621
+ git pull --ff-only && bash install.sh
622
+ ```
623
+
624
+ </td>
625
+ <td width="50%" valign="top">
626
+
627
+ **CLI wrapper (from a clone)**
628
+
629
+ ```bash
630
+ # print version + check for updates
631
+ node bin/coco.js version
632
+
633
+ # apply an update (checks out the pinned release tag)
634
+ node bin/coco.js update
635
+ ```
636
+ Until `cocosuperintelligence` is published on npmjs.com, do not use `npx` for this.
637
+
638
+ </td>
639
+ </tr>
640
+ </table>
641
+
642
+ <sub>Releases are tracked in [`CHANGELOG.md`](CHANGELOG.md) and on the <a href="https://github.com/coco-research/coco/releases">GitHub Releases</a> page.</sub>
643
+
644
+ ---
645
+
646
+ ## System Compatibility
647
+
648
+ <table>
649
+ <tr>
650
+ <th>AI Tool / CLI</th>
651
+ <th>Adapter Name</th>
652
+ <th>Status</th>
653
+ <th>Details</th>
654
+ </tr>
655
+ <tr>
656
+ <td><strong><a href="https://docs.anthropic.com/en/docs/claude-code">Claude Code</a></strong></td>
657
+ <td><code>claude-code</code></td>
658
+ <td>Stable</td>
659
+ <td>Full support for slash commands, agents, and local settings.</td>
660
+ </tr>
661
+ <tr>
662
+ <td><strong><a href="https://cursor.com/">Cursor</a></strong></td>
663
+ <td><code>cursor</code></td>
664
+ <td>Stable</td>
665
+ <td>Links MDC rules and custom workspace skills.</td>
666
+ </tr>
667
+ <tr>
668
+ <td><strong>Grok Build / Grok CLI</strong></td>
669
+ <td><code>grok</code></td>
670
+ <td>Stable</td>
671
+ <td>Links skills, commands, agents and rules into <code>~/.grok/</code>. Registers <code>coco-platform</code> MCP and m0 hooks when those binaries are present.</td>
672
+ </tr>
673
+ <tr>
674
+ <td><strong><a href="https://github.com/openai/codex">Codex CLI</a></strong></td>
675
+ <td><code>codex</code></td>
676
+ <td>Stable</td>
677
+ <td>Compiles assets into root context.</td>
678
+ </tr>
679
+ <tr>
680
+ <td><strong>Aider / Cline / Windsurf</strong></td>
681
+ <td><code>generic</code></td>
682
+ <td>Stable</td>
683
+ <td>Generates a portable, root-level <code>AGENTS.md</code> definition.</td>
684
+ </tr>
685
+ <tr>
686
+ <td><strong><a href="https://code.visualstudio.com/">VS Code</a> / Copilot CLI</strong></td>
687
+ <td><code>vscode</code></td>
688
+ <td>Stable</td>
689
+ <td>Links skills, agents and rules into <code>~/.copilot/</code> and commands into the VS Code prompts folder. No extension needed.</td>
690
+ </tr>
691
+ <tr>
692
+ <td><strong>Antigravity (Google)</strong></td>
693
+ <td><code>antigravity</code></td>
694
+ <td>Planned</td>
695
+ <td>Integration planned for the v0.2 release.</td>
696
+ </tr>
697
+ </table>
698
+
699
+ ---
700
+
701
+ ## Technical Specifications
702
+
703
+ <table>
704
+ <tr><td><strong>Spec Version</strong></td><td>1.5.0</td></tr>
705
+ <tr><td><strong>License</strong></td><td>Open-core — <a href="LICENSE">MIT</a> core; Super Intelligence is <a href="systems/superintelligence/LICENSE">proprietary</a></td></tr>
706
+ <tr><td><strong>Total Skills</strong></td><td>226 with all bundles installed (74 Core + 152 Bundle)</td></tr>
707
+ <tr><td><strong>Slash Commands</strong></td><td>386 with all bundles — 44 Core (shipped) + 342 Super Intelligence (325 per-team + 17 cross-team, generated at install)</td></tr>
708
+ <tr><td><strong>Specialized Agents</strong></td><td>35 (11 Core + 24 Bundle)</td></tr>
709
+ <tr><td><strong>Expert Personas</strong></td><td>495 across 13 departments and 70 cells</td></tr>
710
+ <tr><td><strong>System Bundles</strong></td><td>6 (GSD, Brain, Cognee, HyperFrames, Super Intelligence, M0) — installed by default. <code>reverse-skill</code>, the security-testing bundle, stays opt-in with <code>--systems reverse-skill</code>. <code>/team</code> is core and needs no flag.</td></tr>
711
+ <tr><td><strong>Cross-IDE Rules</strong></td><td>15 (.mdc files)</td></tr>
712
+ <tr><td><strong>Workflows Defined</strong></td><td>3 (.md pipelines)</td></tr>
713
+ <tr><td><strong>Total Addressable Assets</strong></td><td>947 with all bundles enabled</td></tr>
714
+ <tr><td><strong>Install Time</strong></td><td>&le; 90 seconds</td></tr>
715
+ <tr><td><strong>Telemetry / SaaS</strong></td><td>None — 100% local files</td></tr>
716
+ </table>
717
+
718
+ <sub>Core install ships 74 skills + 44 commands + 11 agents + 15 rules (144 active assets). The totals above are what a plain <code>bash install.sh</code> delivers: every bundle in the default allow-list (GSD, Brain, Cognee, HyperFrames, Super Intelligence, M0) is installed by default. <code>--core-only</code> installs the core set alone, and <code>--systems &lt;list&gt;</code> installs an explicit subset — including <code>reverse-skill</code>, the security-testing bundle, which stays opt-in and is never part of the default set. Super Intelligence slash commands are generated locally at install time from the team registries — no command files are transmitted or stored remotely. <code>adapters/INDEX.md</code> records what each adapter actually delivers, measured by running it.</sub>
719
+
720
+ ---
721
+
722
+ ## Frequently Asked Questions
723
+
724
+ <details>
725
+ <summary><strong>Is CoCo an AI model or an agent harness?</strong></summary>
726
+ Neither. CoCo is a portable layer of Markdown and YAML that installs into the agent harness you already use (Claude Code, Cursor, Codex CLI, or any AGENTS.md tool). Your host harness runs the model and executes the agents; CoCo supplies the skills, commands, agents, rules, and persona board that make it act like a coordinated team.
727
+ </details>
728
+
729
+ <details>
730
+ <summary><strong>Is my codebase or data sent to a third party?</strong></summary>
731
+ No. CoCo is entirely local — Markdown, configuration, and shell scripts on your machine. Your existing AI tool's privacy policy is unchanged, and CoCo adds no telemetry.
732
+ </details>
733
+
734
+ <details>
735
+ <summary><strong>How do I modify or customize a skill?</strong></summary>
736
+ Every skill lives at <code>skills/&lt;name&gt;/SKILL.md</code>. Edit it directly to refine instructions or add tools, then run <code>bash install.sh</code> to refresh the symlinks.
737
+ </details>
738
+
739
+ <details>
740
+ <summary><strong>How do I cleanly uninstall CoCo?</strong></summary>
741
+ Because CoCo uses symbolic links, removal is non-destructive:
742
+ <pre>CLONE="$(pwd)"
743
+ find ~/.claude ~/.cursor ~/.grok ~/.copilot -type l -lname "${CLONE}/*" -delete</pre>
744
+ This removes only links whose target is inside this clone. A contains-match such as
745
+ <code>*$(pwd)*</code> would also delete links into any path that merely contains the
746
+ folder name (for example <code>coco-research</code> when the clone is <code>coco</code>).
747
+
748
+ For the Hermes adapter, profiles live under <code>~/.hermes/profiles</code>:
749
+ <pre>CLONE="$(pwd)"
750
+ find ~/.hermes/profiles -type l -lname "${CLONE}/*" -delete</pre>
751
+ The appended rules block between <code>&lt;!-- coco:rules-start --&gt;</code> and
752
+ <code>&lt;!-- coco:rules-end --&gt;</code> in each profile's CLAUDE.md is stripped automatically on the next install run without the repo.
753
+ </details>
754
+
755
+ <details>
756
+ <summary><strong>What happens if I switch my AI assistant later?</strong></summary>
757
+ Re-run the installer with the new adapter flag (e.g. <code>bash install.sh --adapter cursor</code>). All your custom skills and workflows follow you.
758
+ </details>
759
+
760
+ ---
761
+
762
+ ## Contributing & Community
763
+
764
+ CoCo is open-core: the core is MIT-licensed and contributions are welcome. The Super Intelligence System (`systems/superintelligence/`) is proprietary — see [`systems/superintelligence/LICENSE`](systems/superintelligence/LICENSE).
765
+
766
+ - **Start here:** [`CONTRIBUTING.md`](CONTRIBUTING.md) — how to add a skill, command, agent, or adapter.
767
+ - **Good first issues:** [help wanted / good first issue](https://github.com/coco-research/coco/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) — small, well-scoped tasks for newcomers.
768
+ - **Report a bug / request a feature:** [open an issue](https://github.com/coco-research/coco/issues/new/choose).
769
+ - **Security:** see [`SECURITY.md`](SECURITY.md) for responsible disclosure.
770
+ - **Conduct:** see [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md).
771
+
772
+ Before opening a PR, validate locally — CI runs a frontmatter linter, manifest validation, and an install-script syntax check.
773
+
774
+ ---
775
+
776
+ ## Built On
777
+
778
+ CoCo Super Intelligence stands on the shoulders of excellent open-source work. Special thanks to:
779
+
780
+ - **[obra/superpowers](https://github.com/obra/superpowers)** (Jesse Vincent) — the foundational engineering-discipline skills (brainstorming, systematic debugging, TDD, plan writing/execution, git worktrees, code-review flows, verification, and skill authoring).
781
+ - **[gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done)** — the 68-skill / 24-agent GSD project-orchestration bundle.
782
+ - **[heygen-com/hyperframes](https://github.com/heygen-com/hyperframes)** (HeyGen, Inc., Apache License 2.0) — the 20-skill HyperFrames video/motion bundle vendored under `systems/hyperframes/` (composition engine, CLI, animation, creative direction, registry, and the video-authoring suite).
783
+ - **[JCodesMore/ai-website-cloner-template](https://github.com/JCodesMore/ai-website-cloner-template)** — the site-cloning structure behind `clone-website`.
784
+ - **[agents.md](https://agents.md/)** community — the vendor-neutral agent-context standard CoCo's adapters follow.
785
+ - **[nickwinder/synthteam](https://github.com/nickwinder/synthteam)** (Nick Winder) — the multi-agent debate protocol behind `--debate` deliberation.
786
+ - **[latent-spaces/brag](https://github.com/latent-spaces/brag)** (Shunit Haviv) and **[HyperFrames](https://www.npmjs.com/package/hyperframes)** (HeyGen) — the launch-video flow and local render engine behind `coco-ads`.
787
+ - **[leonxlnx/taste-skill](https://github.com/leonxlnx/taste-skill)** (Leon) — the design-taste enforcement behind `design-taste-frontend` and `redesign-existing-projects`.
788
+ - **[HKUDS/CLI-Anything](https://github.com/HKUDS/CLI-Anything)** — the "wrap any CLI into a structured skill" methodology behind `cli-anything`.
789
+ - **[Vercel](https://vercel.com/)** and **[vercel-labs/web-interface-guidelines](https://github.com/vercel-labs/web-interface-guidelines)** — the source material behind `vercel-react-best-practices` and `web-design-guidelines`.
790
+
791
+ Full attributions — including feature-level inspirations, bundled audio ([ende.app](https://ende.app), [Kenney.nl](https://kenney.nl)), and licenses — live in [CREDITS.md](CREDITS.md). If something influenced CoCo and isn't listed, that's a bug: [open an issue](https://github.com/coco-research/coco/issues/new/choose).
@@ -0,0 +1,133 @@
1
+ #!/usr/bin/env bash
2
+ # coco-bootstrap.sh — one-shot installer
3
+ #
4
+ # Usage:
5
+ # bash <(curl -fsSL https://raw.githubusercontent.com/coco-research/coco/main/bin/coco-bootstrap.sh)
6
+ # bash <(curl -fsSL ...) -- --adapter cursor --systems gsd
7
+ # bash <(curl -fsSL ...) -- --dry-run
8
+ # COCO_DIR=~/tools/coco bash <(curl -fsSL ...)
9
+ #
10
+ # Flags (passed through to install.sh after --, or set via env):
11
+ # --adapter <name> claude-code | cursor | grok | vscode | codex | generic
12
+ # --systems <list> e.g. gsd,brain,team
13
+ # --dry-run preview only, no writes
14
+ # --yes skip the commit-verification prompt (for CI/scripted installs)
15
+ #
16
+ # Security:
17
+ # This script does NOT execute anything from the network directly. It uses
18
+ # `git clone` to fetch the full repository (TLS-verified), then pauses so
19
+ # you can inspect the commit hash before proceeding.
20
+ # To skip the pause in CI, set COCO_BOOTSTRAP_YES=1 or pass --yes. Only the exact
21
+ # value 1 (or --yes) skips it; anything else, including 0, keeps the prompt.
22
+ set -euo pipefail
23
+
24
+ REPO_URL="https://github.com/coco-research/coco.git"
25
+ # Keep in sync with package.json version. Clone the last tagged release, not floating main.
26
+ PINNED_TAG="v1.5.0"
27
+ INSTALL_DIR="${COCO_DIR:-$HOME/.coco}"
28
+ YES="${COCO_BOOTSTRAP_YES:-}"
29
+ PASS_THROUGH=()
30
+
31
+ # Parse our own flags; collect the rest for install.sh
32
+ while [[ $# -gt 0 ]]; do
33
+ case "$1" in
34
+ --yes|-y) YES=1 ;;
35
+ --dry-run|--adapter|--systems)
36
+ PASS_THROUGH+=("$1")
37
+ [[ "$1" != "--dry-run" ]] && { shift; PASS_THROUGH+=("$1"); }
38
+ ;;
39
+ --) shift; PASS_THROUGH+=("$@"); break ;;
40
+ *) PASS_THROUGH+=("$1") ;;
41
+ esac
42
+ shift
43
+ done
44
+
45
+ detect_adapter() {
46
+ if [[ -n "${CLAUDECODE:-}" || -d "$HOME/.claude/skills" ]]; then
47
+ echo "claude-code"
48
+ elif [[ -d "$HOME/.cursor" ]]; then
49
+ echo "cursor"
50
+ elif [[ -d "$HOME/.grok" ]]; then
51
+ echo "grok"
52
+ elif command -v codex >/dev/null 2>&1; then
53
+ echo "codex"
54
+ else
55
+ echo "generic"
56
+ fi
57
+ }
58
+
59
+ # Inject --adapter if not already in pass-through args
60
+ if ! printf '%s\0' "${PASS_THROUGH[@]+"${PASS_THROUGH[@]}"}" | grep -qz -- '--adapter'; then
61
+ PASS_THROUGH=("--adapter" "$(detect_adapter)" "${PASS_THROUGH[@]+"${PASS_THROUGH[@]}"}")
62
+ fi
63
+
64
+ echo "Coco bootstrap"
65
+ echo "Install directory: $INSTALL_DIR"
66
+ echo "Adapter: $(printf '%s\n' "${PASS_THROUGH[@]+"${PASS_THROUGH[@]}"}" | grep -A1 '\-\-adapter' | tail -1 || echo auto)"
67
+
68
+ if ! command -v git >/dev/null 2>&1; then
69
+ echo "Error: git is required but not installed." >&2
70
+ exit 1
71
+ fi
72
+
73
+ # ── Clone or update ──────────────────────────────────────────────────────────
74
+ if [ -d "$INSTALL_DIR/.git" ]; then
75
+ # Detached HEAD is the tagged install. A branch checkout (typical prior bootstrap
76
+ # of main) must not be force-moved onto an older pin.
77
+ if git -C "$INSTALL_DIR" symbolic-ref -q HEAD >/dev/null; then
78
+ echo "Coco already exists at $INSTALL_DIR. Pulling latest..."
79
+ git -C "$INSTALL_DIR" pull --ff-only
80
+ else
81
+ echo "Coco already exists at $INSTALL_DIR (detached). Updating to $PINNED_TAG..."
82
+ git -C "$INSTALL_DIR" fetch --tags --force --depth 1 origin "refs/tags/${PINNED_TAG}:refs/tags/${PINNED_TAG}"
83
+ git -C "$INSTALL_DIR" checkout --force "$PINNED_TAG"
84
+ fi
85
+ else
86
+ if [ -e "$INSTALL_DIR" ]; then
87
+ echo "Error: $INSTALL_DIR exists but is not a Coco clone." >&2
88
+ echo "Remove it manually or set COCO_DIR to a different path." >&2
89
+ exit 1
90
+ fi
91
+ echo "Cloning Coco $PINNED_TAG..."
92
+ git clone --quiet --branch "$PINNED_TAG" --depth 1 "$REPO_URL" "$INSTALL_DIR"
93
+ fi
94
+
95
+ # ── Commit verification gate ─────────────────────────────────────────────────
96
+ COMMIT_HASH="$(git -C "$INSTALL_DIR" rev-parse HEAD)"
97
+ COMMIT_DATE="$(git -C "$INSTALL_DIR" log -1 --format='%ci' HEAD)"
98
+ COMMIT_MSG="$(git -C "$INSTALL_DIR" log -1 --format='%s' HEAD)"
99
+
100
+ echo ""
101
+ echo "┌─ Verify before you run ──────────────────────────────────────────────┐"
102
+ echo "│ Commit : $COMMIT_HASH"
103
+ echo "│ Date : $COMMIT_DATE"
104
+ echo "│ Message: $COMMIT_MSG"
105
+ echo "│"
106
+ echo "│ Confirm this matches the $PINNED_TAG release on GitHub:"
107
+ echo "│ https://github.com/coco-research/coco/releases/tag/$PINNED_TAG"
108
+ echo "└──────────────────────────────────────────────────────────────────────┘"
109
+ echo ""
110
+
111
+ if [[ "$YES" != "1" ]]; then
112
+ read -r -p "Proceed with installation? [y/N] " REPLY
113
+ case "$REPLY" in
114
+ [yY][eE][sS]|[yY]) ;;
115
+ *)
116
+ echo "Aborted. The clone is at $INSTALL_DIR — inspect it, then run:"
117
+ echo " bash \"$INSTALL_DIR/install.sh\" ${PASS_THROUGH[*]+"${PASS_THROUGH[*]}"}"
118
+ exit 0
119
+ ;;
120
+ esac
121
+ fi
122
+
123
+ # ── Install ──────────────────────────────────────────────────────────────────
124
+ if [ ! -f "$INSTALL_DIR/install.sh" ]; then
125
+ echo "Error: install.sh not found in cloned repo." >&2
126
+ exit 1
127
+ fi
128
+
129
+ bash "$INSTALL_DIR/install.sh" "${PASS_THROUGH[@]+"${PASS_THROUGH[@]}"}"
130
+
131
+ echo ""
132
+ echo "Coco installed successfully at $INSTALL_DIR"
133
+ echo "Commit: $COMMIT_HASH"
package/bin/coco.js ADDED
@@ -0,0 +1,258 @@
1
+ #!/usr/bin/env node
2
+ // Coco CLI — clones Coco into a target dir and runs the installer.
3
+ //
4
+ // Usage:
5
+ // npx cocosuperintelligence # clones to ./coco and installs (auto-detect adapter)
6
+ // npx cocosuperintelligence install # same as above
7
+ // npx cocosuperintelligence install --adapter cursor
8
+ // npx cocosuperintelligence install --systems gsd,brain,m0
9
+ // npx cocosuperintelligence update # checkout the pinned release tag
10
+ // npx cocosuperintelligence uninstall # remove symlinks + clone
11
+ // npx cocosuperintelligence --help
12
+
13
+ 'use strict';
14
+
15
+ const { execSync, spawnSync } = require('child_process');
16
+ const path = require('path');
17
+ const fs = require('fs');
18
+ const os = require('os');
19
+
20
+ const https = require('https');
21
+
22
+ const REPO = 'https://github.com/coco-research/coco.git';
23
+ const DEFAULT_DIR = path.join(process.cwd(), 'coco');
24
+
25
+ // ── Update notifier ─────────────────────────────────────────────────────────
26
+ // Privacy: contacts only github.com (the source), no analytics/telemetry. Result
27
+ // is cached for 24h in ~/.coco/.update-check.json. Disable with COCO_NO_UPDATE_CHECK=1.
28
+ const PKG_VERSION = (() => {
29
+ try { return require('../package.json').version || '0.0.0'; } catch (_) { return '0.0.0'; }
30
+ })();
31
+ const PINNED_TAG = 'v' + PKG_VERSION;
32
+ const UPDATE_CACHE = path.join(os.homedir(), '.coco', '.update-check.json');
33
+ const LATEST_URL = 'https://raw.githubusercontent.com/coco-research/coco/main/package.json';
34
+
35
+ function semverGt(a, b) {
36
+ const pa = String(a).split('.').map(n => parseInt(n, 10) || 0);
37
+ const pb = String(b).split('.').map(n => parseInt(n, 10) || 0);
38
+ for (let i = 0; i < 3; i++) { if ((pa[i] || 0) > (pb[i] || 0)) return true; if ((pa[i] || 0) < (pb[i] || 0)) return false; }
39
+ return false;
40
+ }
41
+
42
+ function readCache() {
43
+ try { return JSON.parse(fs.readFileSync(UPDATE_CACHE, 'utf8')); } catch (_) { return null; }
44
+ }
45
+ function writeCache(latest) {
46
+ try {
47
+ fs.mkdirSync(path.dirname(UPDATE_CACHE), { recursive: true });
48
+ fs.writeFileSync(UPDATE_CACHE, JSON.stringify({ checkedAt: Date.now(), latest }));
49
+ } catch (_) { /* best-effort */ }
50
+ }
51
+
52
+ function fetchLatestVersion(cb) {
53
+ let done = false;
54
+ const finish = (v) => { if (!done) { done = true; cb(v); } };
55
+ try {
56
+ const req = https.get(LATEST_URL, { headers: { 'User-Agent': 'coco-cli' } }, (res) => {
57
+ if (res.statusCode !== 200) { res.resume(); return finish(null); }
58
+ let body = '';
59
+ res.on('data', (d) => { body += d; });
60
+ res.on('end', () => { try { finish(JSON.parse(body).version || null); } catch (_) { finish(null); } });
61
+ });
62
+ req.setTimeout(2500, () => { req.destroy(); finish(null); });
63
+ req.on('error', () => finish(null));
64
+ } catch (_) { finish(null); }
65
+ }
66
+
67
+ function banner(latest) {
68
+ if (latest && semverGt(latest, PKG_VERSION)) {
69
+ console.log(`\n ⬆ Coco ${latest} is available (you have ${PKG_VERSION}).`);
70
+ console.log(` Update: node bin/coco.js update (or: git -C <clone> pull --ff-only && bash install.sh)\n`);
71
+ }
72
+ }
73
+
74
+ // Non-blocking: prints a one-line banner if a newer version exists. Silent on
75
+ // offline/error. `force` bypasses the 24h cache (used by the `version` command).
76
+ function checkForUpdate(force) {
77
+ if (process.env.COCO_NO_UPDATE_CHECK) return;
78
+ const cache = readCache();
79
+ const fresh = cache && (Date.now() - (cache.checkedAt || 0) < 24 * 3600 * 1000);
80
+ if (fresh && !force) { banner(cache.latest); return; }
81
+ fetchLatestVersion((latest) => {
82
+ if (latest) { writeCache(latest); banner(latest); }
83
+ else if (cache) { banner(cache.latest); }
84
+ });
85
+ }
86
+
87
+ function cmdVersion() {
88
+ console.log(`cocosuperintelligence v${PKG_VERSION}`);
89
+ checkForUpdate(true);
90
+ }
91
+
92
+ function help() {
93
+ console.log(`Coco — open-source AI workflow framework
94
+
95
+ Usage:
96
+ npx cocosuperintelligence clone + install (auto-detect)
97
+ npx cocosuperintelligence install [flags] clone + install with flags
98
+ npx cocosuperintelligence update [dir] checkout the pinned release tag
99
+ npx cocosuperintelligence uninstall [dir] remove symlinks + clone
100
+ npx cocosuperintelligence version show version + check for updates
101
+ npx cocosuperintelligence --help this message
102
+
103
+ Update checks contact only github.com (no telemetry); disable with COCO_NO_UPDATE_CHECK=1.
104
+
105
+ Install flags (passed to install.sh):
106
+ --adapter <name> claude-code | cursor | grok | vscode | codex | generic
107
+ --systems <list> gsd | brain | cognee | hyperframes | m0 |
108
+ superintelligence (comma-separated)
109
+ --dry-run preview, no writes
110
+
111
+ Examples:
112
+ npx cocosuperintelligence
113
+ npx cocosuperintelligence install --adapter cursor
114
+ npx cocosuperintelligence install --systems gsd,brain --adapter claude-code
115
+ npx cocosuperintelligence update
116
+ npx cocosuperintelligence uninstall
117
+
118
+ Repo: https://github.com/coco-research/coco
119
+ Install clones the ${PINNED_TAG} release tag, not floating main.
120
+ The npm name cocosuperintelligence is reserved; until it is published, prefer
121
+ git clone or bin/coco-bootstrap.sh over npx.
122
+ `);
123
+ }
124
+
125
+ function which(cmd) {
126
+ const r = spawnSync('which', [cmd], { encoding: 'utf8' });
127
+ return r.status === 0 ? r.stdout.trim() : null;
128
+ }
129
+
130
+ function run(cmd, args, opts = {}) {
131
+ const r = spawnSync(cmd, args, { stdio: 'inherit', ...opts });
132
+ if (r.status !== 0) {
133
+ process.exit(r.status || 1);
134
+ }
135
+ }
136
+
137
+ function cloneOrUpdate(dir) {
138
+ if (fs.existsSync(dir) && fs.existsSync(path.join(dir, '.git'))) {
139
+ // Detached HEAD is the tagged install. A branch checkout (typical `git clone` of
140
+ // main) must not be force-moved onto an older pin.
141
+ const head = spawnSync('git', ['symbolic-ref', '-q', 'HEAD'], { cwd: dir });
142
+ if (head.status !== 0) {
143
+ console.log(`Coco already at ${dir} (detached). Updating to ${PINNED_TAG}...`);
144
+ run('git', ['fetch', '--tags', '--force', '--depth', '1', 'origin', `refs/tags/${PINNED_TAG}:refs/tags/${PINNED_TAG}`], { cwd: dir });
145
+ run('git', ['checkout', '--force', PINNED_TAG], { cwd: dir });
146
+ } else {
147
+ console.log(`Coco already at ${dir}. Pulling latest...`);
148
+ run('git', ['pull', '--ff-only'], { cwd: dir });
149
+ }
150
+ } else {
151
+ if (fs.existsSync(dir)) {
152
+ console.error(`Error: ${dir} exists but is not a git repo. Move it or pick a different location.`);
153
+ process.exit(1);
154
+ }
155
+ console.log(`Cloning Coco ${PINNED_TAG} to ${dir}...`);
156
+ run('git', ['clone', '--branch', PINNED_TAG, '--depth', '1', REPO, dir]);
157
+ }
158
+ }
159
+
160
+ function cmdInstall(argv) {
161
+ if (!which('git')) {
162
+ console.error('Error: git is required. Install git first.');
163
+ process.exit(1);
164
+ }
165
+ if (!which('bash')) {
166
+ console.error('Error: bash is required. Install bash first.');
167
+ process.exit(1);
168
+ }
169
+
170
+ const dir = DEFAULT_DIR;
171
+ cloneOrUpdate(dir);
172
+
173
+ const installScript = path.join(dir, 'install.sh');
174
+ if (!fs.existsSync(installScript)) {
175
+ console.error(`Error: ${installScript} not found.`);
176
+ process.exit(1);
177
+ }
178
+
179
+ console.log(`Running ${installScript}...`);
180
+ run('bash', [installScript, ...argv]);
181
+
182
+ console.log(`\nDone. Coco installed at ${dir}.`);
183
+ console.log(`Re-run install / update later with:\n npx cocosuperintelligence update`);
184
+ }
185
+
186
+ function cmdUpdate(argv) {
187
+ const dir = argv[0] && !argv[0].startsWith('--') ? argv[0] : DEFAULT_DIR;
188
+ if (!fs.existsSync(path.join(dir, '.git'))) {
189
+ console.error(`Error: ${dir} is not a Coco clone. Run \`npx cocosuperintelligence install\` first.`);
190
+ process.exit(1);
191
+ }
192
+ cloneOrUpdate(dir);
193
+ console.log(`\nCoco updated at ${dir}. Re-run install if you want to refresh symlinks:\n bash ${path.join(dir, 'install.sh')}`);
194
+ }
195
+
196
+ function cmdUninstall(argv) {
197
+ const dir = path.resolve(argv[0] && !argv[0].startsWith('--') ? argv[0] : DEFAULT_DIR);
198
+ // Prefix match on the resolved clone path plus a trailing slash, so a clone
199
+ // named `coco` cannot also delete links into `coco-research` / `coco-connect`.
200
+ const prefix = dir.endsWith(path.sep) ? dir : dir + path.sep;
201
+ console.log(`Removing symlinks pointing into ${dir}...`);
202
+ const homes = [
203
+ path.join(os.homedir(), '.claude'),
204
+ path.join(os.homedir(), '.cursor'),
205
+ path.join(os.homedir(), '.grok'),
206
+ path.join(os.homedir(), '.copilot'),
207
+ ];
208
+ for (const home of homes) {
209
+ if (!fs.existsSync(home)) continue;
210
+ run('find', [home, '-type', 'l', '-lname', `${prefix}*`, '-delete']);
211
+ }
212
+ console.log(`Removing clone at ${dir}...`);
213
+ if (fs.existsSync(dir)) {
214
+ fs.rmSync(dir, { recursive: true, force: true });
215
+ }
216
+ console.log('Uninstalled.');
217
+ }
218
+
219
+ function main() {
220
+ const argv = process.argv.slice(2);
221
+ if (argv.length === 0) {
222
+ cmdInstall([]);
223
+ return;
224
+ }
225
+
226
+ const sub = argv[0];
227
+ const rest = argv.slice(1);
228
+
229
+ switch (sub) {
230
+ case '--help':
231
+ case '-h':
232
+ case 'help':
233
+ help();
234
+ checkForUpdate(false);
235
+ break;
236
+ case 'version':
237
+ case '--version':
238
+ case '-v':
239
+ cmdVersion();
240
+ break;
241
+ case 'install':
242
+ cmdInstall(rest);
243
+ checkForUpdate(false);
244
+ break;
245
+ case 'update':
246
+ cmdUpdate(rest);
247
+ break;
248
+ case 'uninstall':
249
+ cmdUninstall(rest);
250
+ break;
251
+ default:
252
+ // any unknown subcommand → pass through to install (e.g., npx cocosuperintelligence --adapter cursor)
253
+ cmdInstall(argv);
254
+ checkForUpdate(false);
255
+ }
256
+ }
257
+
258
+ main();
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "cocosuperintelligence",
3
+ "version": "1.5.0",
4
+ "description": "CoCo Super Intelligence \u2014 summon an advisory board of 495 world-class minds inside your AI coding session. A vendor-neutral orchestration layer for Claude Code, Cursor, and Codex: 226 skills, 386 commands, 35 agents, and disk-persistent state. 100% local, no telemetry. Open-core: MIT core, proprietary Super Intelligence.",
5
+ "bin": {
6
+ "coco": "bin/coco.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ "README.md",
11
+ "LICENSE"
12
+ ],
13
+ "scripts": {
14
+ "test": "node bin/coco.js --help"
15
+ },
16
+ "keywords": [
17
+ "ai",
18
+ "ai-agents",
19
+ "agent-skills",
20
+ "agents-md",
21
+ "claude-code",
22
+ "cursor",
23
+ "codex",
24
+ "mcp",
25
+ "llm-tools",
26
+ "developer-tools",
27
+ "productivity"
28
+ ],
29
+ "author": "Coco Inc",
30
+ "license": "SEE LICENSE IN LICENSE",
31
+ "homepage": "https://github.com/coco-research/coco",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/coco-research/coco.git"
35
+ },
36
+ "bugs": {
37
+ "url": "https://github.com/coco-research/coco/issues"
38
+ },
39
+ "engines": {
40
+ "node": ">=14"
41
+ }
42
+ }