This release is a pre-release and may not be stable for production use.
Cosmos Platform
A durable World for whatever coding agent and model you use.
Cosmos is a Semantic Operating Environment for Interchangeable Intelligence. It is not another coding agent. It gives the agent you already use a World: the durable .cosmos/ state attached to a Git repository. The World holds the project graph, decisions, rules, task context and provenance, so a new session, a different model, or a different harness starts from the same ground truth instead of a blank chat.
"Use whatever agent or model you want. Cosmos gives it a World."
The model may disappear. Cosmos persists.
What you get
| Capability | What it does | How to use it |
|---|---|---|
| Guard | Enforces write boundaries and TaskContracts before an agent edit or command runs. | Installed as a harness hook by cosmos setup. |
| Watchdog | Catches an agent that is stuck, looping, or drifting away from the task. | cosmos watchdog status --project . |
| Cross-harness continuity & MCP | Serves one World to Claude Code, OpenCode, and Codex through MCP, so work continues across tools and sessions. | cosmos setup once per machine; cosmos status . to inspect the World. |
| Brain / Hands | Produces dependency-aware execution briefs, write-allowlist TaskContracts, and an honest diff/command verification. | cosmos packet brief, cosmos packet contract, cosmos packet verify. |
| Health & Delta | Reports World health, self-checks the install, and attributes what Cosmos contributed. | cosmos status ., cosmos doctor ., cosmos delta. |
Install
Option A: one-line installer (tracks main)
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/cosmos-semantic/cosmos/main/install.sh | sh
Windows (PowerShell):
irm https://raw.githubusercontent.com/cosmos-semantic/cosmos/main/install.ps1 | iex
The installer installs from the main branch of this repository, runs cosmos setup for you, and only reports success after the installed cosmos command has run. If it prints an error, nothing was installed. Set COSMOS_PYTHON to choose a specific interpreter (for example C:\Python312\python.exe).
Option B: PyPI Developer Preview
pip install --pre cosmos-platform
cosmos setup
pip install only installs the cosmos CLI. It does not edit repositories, agent settings, hooks, or MCP configuration. cosmos setup is the one machine-wide activation step: it registers the Cosmos MCP server with Claude Code, OpenCode, and Codex when they are installed, and installs the Guard and Watchdog hooks. Run it once per machine.
Option C: from a clone
git clone https://github.com/cosmos-semantic/cosmos.git
cd Cosmos
Then run sh install.sh (macOS / Linux) or .\install.ps1 (Windows PowerShell) from inside the clone. This installs your checkout in editable mode and runs cosmos setup.
The two-layer model
- Once per machine:
cosmos setupregisters Cosmos with the agent tools you have and installs the Guard and Watchdog hooks. Every project you open afterwards uses that one registration. - Per repository: the World attaches on first use, with nothing to run. You can also prepare it explicitly:
cosmos init .pre-creates the World (cosmos.environment.json,.cosmos/graph.json, the first inspection, the retrieval index). It writes no per-project tool configuration and installs no Git hooks.cosmos init . --pinadditionally writes project-local configs:.mcp.json,CLAUDE.local.md,opencode.json,.codex/config.toml,.cosmos/CURRENT.md, and.cosmos/AGENT-RULES.md. Use this when you want the project to carry its own connection instead of relying on the global one.
cd /path/to/my-project
cosmos init .
cosmos open .
Tool compatibility
| Tool | How Cosmos connects |
|---|---|
| Claude Code | Automatic: cosmos setup registers the MCP server and hooks. |
| OpenCode | Automatic: cosmos setup registers the MCP server and watchdog plugin. |
| Codex | Automatic: cosmos setup registers the MCP server; cosmos init --pin can also write .codex/config.toml. |
| Cursor | File-based: point it at the project's AGENTS.md when present and the World files (cosmos.environment.json, .cosmos/graph.json). |
| Cline / Roo / VS Code | File-based: read the project's AGENTS.md when present, plus the World files. |
| Aider | File-based: read the project's AGENTS.md when present, plus the World files. |
Repository map
| Path | What lives there |
|---|---|
tools/ |
The cosmos CLI, hooks, MCP server, merge gate, Studio, and Observatory. |
runtime/ |
The execution runtime and its tests. |
docs/ |
Product, operator, architecture, and governance documentation. |
governance/ |
Policies, decisions, and obligations. |
spec/ |
Interface and contract specifications. |
fixtures/ |
Reference Worlds for developer, personal, company, and execution-stack use. |
catalogs/ |
Capability and model catalogs. |
releases/ |
Immutable release baselines. |
research/ |
Background research and design notes. |
Documentation
- 2-Minute Quickstart — install, activate, and get a first win.
- Operator Guide — the practical first-project workflow.
- Architecture — how the runtime, World, Guard, and gate fit together.
- Vision and Principles — why Cosmos exists and the rules it holds itself to.
- Universe and World model — the vocabulary behind Worlds, Cosmos Prime, and world families.
- Versioning — release policy and the current Developer Preview line.
- Original plan — the immutable record of the approved original plan.
- Runtime entry point and read-only Observatory.
- Contributing and Security.
The Tripartite Attribution Doctrine
Cosmos enforces an explicit separation of roles:
- Environment (Cosmos): Sovereign semantic operating environment providing durable memory, ground truth, and capability envelopes.
- Harness (IDE / CLI Shell): Client interface (Cursor, Claude Code, Cline, Codex CLI, OpenCode) executing processes and managing tool I/O.
- Model (Cognitive Runtime): Ephemeral reasoning engine (Gemini, Claude, DeepSeek, local models) synthesizing language and logic.
Principle: Cosmos persists. The model reasons. The harness bridges.
Core equation
Intelligence = Model + Bound Context + Capabilities + Current Objective
Cosmos externalizes durable memory, semantic structure, task context, provenance, execution boundaries, artifacts, and learning so that intelligence does not depend on one model session retaining everything.
License
Cosmos is licensed under the Apache License 2.0. The Community tier is free and open source; trust features such as the merge gate, the vault, the watchdog, and the scorecard are never paywalled.
Metadata
Release files for cosmos-platform 1.6.0.dev3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cosmos_platform-1.6.0.dev3.tar.gz | 2.9 MB | With provenance | Details for cosmos_platform-1.6.0.dev3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cosmos_platform-1.6.0.dev3-py3-none-any.whl | Python 3 | none | any | Details for cosmos_platform-1.6.0.dev3-py3-none-any.whl |
Total release size: 6.0 MB
Release files / cosmos_platform-1.6.0.dev3.tar.gz
| Download URL | cosmos_platform-1.6.0.dev3.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18e7f39bec619dfe40f0d2c5ff5150ade542a41f408685ac342eaff0e72511e9
|
|
BLAKE2b-256 checksum How to use checksums |
a8607a44156917625cb1776829c7574da5dd388ae482164af404f6911d5274f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logRelease files / cosmos_platform-1.6.0.dev3-py3-none-any.whl
| Download URL | cosmos_platform-1.6.0.dev3-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8aa4e584a9e04c846fd69af575ab81a17f2b002d782ce892f76ef29966ce7de
|
|
BLAKE2b-256 checksum How to use checksums |
701521c21d4889b85b1edc7f5bc09ea489603261be5bd151d5740c206e64828a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logSecurity for cosmos-platform 1.6.0.dev3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cosmos_platform-1.6.0.dev3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.