cubicore 0.0.0-stage → 1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cubicore
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,148 @@
1
- # Temporary Holding Version
1
+ <div align="center">
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <!-- Linguistic Languages for README are placed here. Must be redirected to that Lingual README. -->
4
+
5
+ # Cubicore
6
+
7
+ **Just an MCP that follows the classic engineering process, simultaneously like humans do.**
8
+
9
+ Cubicore is a Dynamic Multi-Agentic Factory of Sub-agents tasked to make a project, utilizing the Decrease-and-Conquer Technique to split a large prompt into multiple tasks, where one task is given to each sub-agent.
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/cubicore"><img src="https://img.shields.io/npm/v/cubicore?color=blue" alt="npm version"></a>
13
+ <a href="https://www.npmjs.com/package/cubicore"><img src="https://img.shields.io/npm/last-update/cubicore?color=blue" alt="npm last published"></a>
14
+ <a href="https://img.shields.io/badge/node-%3E%3D18-brightgreen"><img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="Node.js 18+"></a>
15
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-yellow" alt="MIT license"></a>
16
+ </p>
17
+
18
+ `npx cubicore@latest setup`
19
+
20
+ </div>
21
+
22
+ ---
23
+
24
+ What if you wished to make a "company" right at home, where you are the founder of the project, and your fellow sub-agents do the work for you? Cubicore does that for you.
25
+
26
+ ## Introduction
27
+
28
+ Cubicore is originated as "Cores in a Cubicle", and informally, "A Fleet of Engineers in a Company". The "Cubicle" in this idea is Dynamic, which increases its size dynamically, depending on the plan on the **size of the project**.
29
+
30
+ The Core philosphy it presents is simple: Suppose a user gives a prompt to the "Cubicle". The "Cubicle" changes its size according to what the user said about. The size stops increasing when the planning is done, and all is left is to wait for the user to "execute" the plan.
31
+
32
+ This upon execution will summon sub-agents, where 1 task is recieved by 1 agent. This eventually fills up the "Cubicle" where all tasks are done simultaneously. The execution is done where all sub-agents have completed their tasks provided in the planning file.
33
+
34
+ Cubicore can debug any broken layout, buttons, syntax errors, loose code, etc. and fix them automatically until issues disappear. Cubicore also allows the user to "preview" its project to see how it runs. Finally, if the user satisfies with the project, it then commands the "Cubicle" to deploy the application, making things ready while also giving instructions on how to deploy.
35
+
36
+ ## Supported AI Agents
37
+
38
+ | AI Agent | Status | Progress |
39
+ |-----------------|--------|------------------------------------------------------------------------|
40
+ | Opencode | ✅ | Done Further token reduction and Optimize productivity of sub-tasks. |
41
+ | Claude Code | ⏰ | Will be implementing Inline Sub-tasks. Not Started. |
42
+ | Codex | ⏰ | Has Inline-Sub tasks; Needs Further token reduction. Not Started. |
43
+ | Cursor | ⏰ | Uses Sessions; Tedious to implement as first Session-only integration. |
44
+ | Windsurf | ⏰ | May use Inline Sub-tasks or Sessions. Not Started. |
45
+
46
+ Want to add host support, a command, or translations of this README into other languages? See [CONTRIBUTING.md](CONTRIBUTING.md) — it covers what each kind of contribution needs to look like before it merges.
47
+
48
+ ## Architecture
49
+
50
+ <p align="center">
51
+ <img src="docs/assets/workflow.svg" alt="Cubicore workflow: plan → execute → preview → debug → deploy" width="640">
52
+ </p>
53
+
54
+ The five core commands, one loop: **plan → execute → preview → debug → deploy**. `refine` is the companion for changing the plan without re-running everything (basically editing a project).
55
+
56
+ The plan stage lets the agent to plan what would be the recommended styles, frameworks or software to fit this project.
57
+
58
+ Execute unleashes sub-tasks according to CUBICORE_PLAN.md file. Preview lets you see the changes the agent has made on the web application (by localhost), or on software/CLI/TUI tools (by local binary).
59
+
60
+ Debug fixes your code wherever if the position is incorrect, or the button cannot be interacted, as it can utilize the agent's built-in skills. Finally, Deploy marks the final state to publish your project either from a Free or a paid tier service.
61
+
62
+ The brief process of the Cubicore workflow is shown below.
63
+
64
+ <details>
65
+ <summary>The brief process</summary>
66
+
67
+ ```mermaid
68
+ flowchart LR
69
+ P[plan] --> X[execute]
70
+ X --> PV[preview]
71
+ PV --> DB[debug]
72
+ DB -.->|fix & redo| X
73
+ DB --> D[deploy]
74
+ ```
75
+
76
+ </details>
77
+
78
+
79
+ ## Using Cubicore
80
+
81
+ Ask in plain words. No spec, no schema. The planner reads the repo, asks you what it can't answer, writes `CUBICORE_PLAN.md` / `CUBICORE_PLAN.json` / `CUBICORE_CONTEXT.md`, and stops — nothing dispatches until you approve.
82
+
83
+ Examples: [`docs/examples.md`](docs/examples.md) · Full reference: [`docs/commands.md`](docs/commands.md) · FAQ: [`docs/faq.md`](docs/faq.md)
84
+
85
+ ### Installation
86
+
87
+ ```bash
88
+ npx cubicore@latest setup
89
+ ```
90
+
91
+ > [!IMPORTANT]
92
+ > Currently, the only source of installation is on the README, or as an npm package.
93
+
94
+
95
+ Then in any project directory, type:
96
+
97
+ ```
98
+ /cubicore:plan-demo
99
+ ```
100
+
101
+ See [OpenCode Installation](opencode/opencode.md) for full installation instructions,
102
+ troubleshooting, FAQs, and AI agent installation.
103
+
104
+ ### How the associates are kept apart
105
+
106
+ Three checks, applied at three different moments — the moment the plan is written, the moment an associate is working, and the moment its work is handed back. None of them trusts the others.
107
+
108
+ **At plan time**, overlapping write scopes are rejected before a single token is spent. It's a conservative glob intersection: `src/routes/` and `src/routes/users.ts` collide; `src/a.ts` and `src/b.ts` don't. Reporting a collision that doesn't exist costs one re-plan. Missing one costs two associates in the same file, which is worse.
109
+
110
+ **During the work**, each associate gets its own git worktree and is told its own scope. A worker writing to `src/api/` has no line of sight into `src/ui/`, and the worktree is the enforcement — not the prompt. An associate that strayed is caught when its diff is checked against what was declared. Where git is unavailable, the work happens in the shared tree and Cubicore says so plainly.
111
+
112
+ **After the work**, the scope gate compares what changed against what was declared. Over-powered edits are refused; unchecked edits are unverified, which is not the same as passing; a check that couldn't run is recorded as unavailable rather than an error to be fixed.
113
+
114
+ One housekeeping detail: OpenCode cannot restrict agents to paths. Its permission system is per-action, not per path or glob. So the boundary is never a rule — it's the worktree, plus everything after it.
115
+
116
+ ## What Cubicore is for
117
+
118
+ Cubicore takes a real project and splits it into **contracts** — small, checkable pieces — and dispatches those pieces to associates that work in parallel without colliding. It earns its keep in these situations:
119
+
120
+ - **Multi-file changes in an existing codebase**, where one agent would need the whole tree in context at once and still miss things.
121
+ - **Founders who want to review a plan before anything gets built** — the plan is the product, and you get to veto it.
122
+ - **Work where "done" has a definition** — a build that compiles, a test that passes, a lint that is clean. Vague asks don't fit through the contract layer well, and that's deliberate.
123
+
124
+ Cubicore is not a faster agent. Speed is whatever the task, the host, and the model make of it. The value is that parallel agents stay safe and auditable: everyone reads only what they're assigned, nobody overwrites anybody by accident, and the result of the run is a record of what passed each check — not a model's opinion of itself.
125
+
126
+ ## What Cubicore does — and what it doesn't
127
+
128
+ - **It plans.** `CUBICORE_PLAN.md` for you, `CUBICORE_PLAN.json` for the associates, `CUBICORE_CONTEXT.md` for the pitch. Review before dispatch; nothing happens until you approve.
129
+ - **It dispatches.** Inline sub-agents where the host supports them, sessions otherwise — both are gated the same way. The session path speaks to OpenCode 2.x's `/api/*` endpoints; the v1 SDK it originally used has been retired by the host.
130
+ - **It gates.** Each associate gets its own worktree; its writes are copied back only after the checks pass. A scope violation or a failing check blocks integration — it never slips through silently.
131
+ - **It loops, bounded.** Plan → execute → debug → execute, and the number of cycles is capped. "Until the debug file is empty" is not a termination condition; an agent that never stops finding things to fix is not a loop, it's a haunting.
132
+ - **It is judgemental only where it's safe to be.** Warnings block work. Opinions about whether the feature is useful go in advisory notes that never gate anything.
133
+
134
+ What it doesn't do: no judgment in the checks (the validator rejects them), no unattended autonomy, no silent merges. Mechanical gates only — a worker that edits outside its scope or fails a check keeps its work in its own worktree and gets nothing.
135
+
136
+ ## Known limits
137
+
138
+ - **The gate is mechanical, not judgemental.** It checks commands, statuses and scopes. It cannot tell you your build is bad — only that the check failed.
139
+ - **The shell is still unrestricted.** A worker can run anything. The worktree limits the blast radius, not the command.
140
+ - **Benchmarks do not exist yet.** No honest Cubicore-vs-one-agent number has been published; the measurements taken so far are not comparative. Until there is one, the honest answer to "is it faster/cheaper?" is "it depends, and we're not going to guess."
141
+ - **Only OpenCode runs today.** Every claim in this file is about OpenCode. Assume nothing about other agents until their adapter exists.
142
+ - **It runs on what's installed.** Cubicore doesn't bring a runtime; it uses the host's. It doesn't manage your toolchain, and it won't pretend otherwise.
143
+
144
+ ---
145
+
146
+ ## Contributing
147
+
148
+ Hello there, incoming contributors! Do support us in adding or improving a feature or command, or support Cubicore into an AI agent, or provide another language for the README, or potentially unseen bug fixes or optimizations. More info under [contributing guidelines](CONTRIBUTING.md).