AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
CoCalc는 파일·노트북·터미널·이력·복구 기능을 갖춘 지속적인 공유 Linux 환경으로, 사람과 AI 에이전트가 같은 프로젝트에서 협업합니다
CoCalc is a persistent shared computer for technical work, where people and AI agents collaborate in the same Linux project with files, notebooks, terminals, history, and recovery.
개발 도구TypeScript · JavaScriptGitHub @sagemathinc온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
CoCalc.ai: Collaborative Calculation with AI
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
CoCalc-AI is a complete rewrite of CoCalc. This repository is the codebase for the next generation of CoCalc products:
• CoCalc Plus: a local, single-user CoCalc runtime
• CoCalc Launchpad: a multi-user CoCalc with project hosts
• CoCalc CLI: the operator and agent CLI used to drive projects, browsers, workspaces, and automation
• CoCalc Rocket: the multi-bay scalable architecture built on the same core ideas as LaunchpadREADME 전문 보기 ↗CoCalc-AI is a complete rewrite of CoCalc. This repository is the codebase for the next generation of CoCalc products:
CoCalc Rocket: the multi-bay scalable architecture built on the same core ideas as LaunchpadThe relaunch is AI-native: Codex is integrated as a first-class agent runtime, browser automation is built into the platform, and the same project/workspace concepts are intended to work across local, self-hosted, and large-scale deployments.
Short illustrated guides for using CoCalc-AI are published at sagemathinc.github.io/cocalc-guides.
flowchart TD
A["CoCalc-AI<br/>one codebase"]:::core
A --> P["CoCalc Plus<br/>local, single-user"]
A --> L["CoCalc Launchpad<br/>multi-user, project-host"]
A --> C["CoCalc CLI<br/>browser + ops + automation"]
A --> R["CoCalc Rocket<br/>multi-bay scale-out"]
P --> S["Workspaces"]
L --> S
C --> S
R --> S
P --> G["Codex agents"]
L --> G
C --> G
R --> G
P --> T["Notebooks • Files • Terminals • Apps"]
L --> T
C --> T
R --> T
classDef core fill:#1f2937,color:#fff,stroke:#111827,stroke-width:2px;
At a product level, CoCalc-AI combines:
Compared to the older CoCalc architecture, the important shift is this:
Single-user, local-first CoCalc. This is the lightweight path for running CoCalc on one machine without the full multi-host control plane.
The current multi-user direction. A hub manages auth, routing, and orchestration while project-hosts run project workloads and own project storage, proxies, backups, and runtime state.
The CLI is increasingly important. It is not just an admin tool; it also provides browser automation, workspace inspection, notebook execution helpers, and agent-facing control surfaces.
Rocket is the scalable form of Launchpad: many bays, many project hosts, and the same basic architecture extended to much larger deployments.
The repo has both product names and package/runtime names. The important mapping is:
lite <-> CoCalc Plushub <-> CoCalc Launchpad control planehub + multibay/project-host deployment <-> CoCalc RocketIn concrete terms:
src/packages/lite is the local single-user runtime used by Plus-style development.src/packages/hub is the multi-user control-plane server used by Launchpad-style development.src/packages/project-host and related runtime packages are part of the Launchpad/Rocket host architecture, not the Lite runtime.The current architecture centers on:
src/packagesUseful architecture docs:
Also note that src/.agents/ contains many working design docs and implementation plans. Those files are valuable, but some describe target state or active rollout work rather than fully shipped behavior.
CoCalc-AI includes both VM/systemd bay tooling and a Rocket Helm chart for Kubernetes. These are different deployment paths; the presence of either in this repository is not evidence that a particular installation has been tested.
The similarities are conceptual:
The differences are important:
ncc JavaScript bundles and installed/rolled out as software artifacts. OCI/rootfs/container tooling is used for project runtimes and related isolation, but it is not the main packaging model for the control plane or project-host daemon stack.CoCalc operator tooling uses its own APIs and recorded operations across deployment paths. CoCalc-AI exposes describe, logs, events, top, rollout, reconcile, and drain-style operations through audited CoCalc APIs and the cocalc CLI, whether the underlying deployment is a single VM, a VM fleet, or a partially Kubernetes-backed installation.
Top-level:
docs/ - architecture notes, operational docs, and implementation referencessrc/ - the actual application monorepoAGENTS.md - repo-specific guidance for coding agents and contributorsInside src/:
package.json - the main build, test, Lite, and local dev scriptsworkspaces.py - the workspace build/install helper used across packagespackages/ - the monorepo packagesscripts/dev/ - Lite and hub local dev helpers, smoke scripts, and local dev toolingpython/ - the Python API client and related Python build surfaceNotable package areas:
src/packages/frontend - main browser UI
src/packages/conat - RPC, persistence, and routing primitives
src/packages/lite - local single-user runtime
src/packages/hub - hub/control-plane server
src/packages/cli - cocalc CLI
src/packages/ai - agent and Codex integration
src/packages/file-server - project storage, quotas, snapshots, and backup plumbing
src/packages/cloud / src/packages/launchpad - cloud and Launchpad-specific functionality
If you are working on the codebase itself, almost everything starts in src/.
22.15.0 or newer, as required by src/package.jsonpnpm3.10 or newer for the Python API packagemake for the Python API buildFor full Launchpad / project-host work you will also want a Linux environment with the host/runtime tooling used by that stack. For general frontend, Lite, CLI, and many agent workflows, the local Lite path is enough.
git clone https://github.com/sagemathinc/cocalc-ai.git
cd cocalc-ai/src
pnpm build
That command installs package dependencies and builds the development bundles across the monorepo.
This is the fastest way to get a local server running.
cd src
pnpm dev:lite:init
pnpm dev:lite:start
pnpm dev:lite:status
To load the matching environment in your current shell:
cd src
eval "$(pnpm -s dev:lite:env)"
That prints and exports the current Lite API URL, browser target, auth context, and helper paths. It is the recommended starting point for browser automation and local bug reproduction.
For the fuller control-plane path:
cd src
pnpm dev:hub:init
pnpm dev:hub:start
pnpm dev:hub:status
And load the corresponding shell environment:
cd src
eval "$(pnpm -s dev:hub:env)"
That environment matters for CLI commands, browser automation, host operations, and any live Launchpad control-plane testing.
Run these from src/ unless stated otherwise.
pnpm build:dev # debug frontend - uses a lot more browser memory but better for some development
pnpm tsc
pnpm lint
pnpm version-check
pnpm test
cd src/packages/<package>
pnpm tsc --build
pnpm build
pnpm prettier --write <file>
pnpm dev:lite:status
pnpm lite:test:e2e
pnpm lite:test:e2e:headed
pnpm smoke:self-host
pnpm smoke:cloud-host
pnpm smoke:codex-launchpad
If you are new to this repository, start here:
Then browse src/.agents/ for deeper design notes on the specific subsystem you are touching.
The old top-level description of CoCalc as a single hosted collaboration app is no longer enough.
This repo now includes:
So the right mental model is:
src/ is the real monorepodocs/ and src/.agents/ are newer and more accurate than older public-facing descriptionsThis repository is source-available under the Microsoft Reference Source License. See LICENSE.md.
Important implication: this is not an ordinary permissive open source license. Read the license carefully before building, running, redistributing, or hosting CoCalc outside of an authorized context.
If you need:
contact SageMath, Inc. through the commercial CoCalc channels:
CoCalc has been developed over many years by SageMath, Inc. and a long list of contributors. See AUTHORS.md and the contributor history in GitHub for the broader picture.