Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Cosmos Platform

License Release Python

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

  1. Once per machine: cosmos setup registers Cosmos with the agent tools you have and installs the Guard and Watchdog hooks. Every project you open afterwards uses that one registration.
  2. 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 . --pin additionally 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

The Tripartite Attribution Doctrine

Cosmos enforces an explicit separation of roles:

  1. Environment (Cosmos): Sovereign semantic operating environment providing durable memory, ground truth, and capability envelopes.
  2. Harness (IDE / CLI Shell): Client interface (Cursor, Claude Code, Cline, Codex CLI, OpenCode) executing processes and managing tool I/O.
  3. 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.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cosmos-platform 1.6.0.dev2
File Size Uploaded Provenance Actions
cosmos_platform-1.6.0.dev2.tar.gz 2.9 MB With provenance Details for cosmos_platform-1.6.0.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cosmos-platform 1.6.0.dev2
File Interpreter ABI Platform Actions
cosmos_platform-1.6.0.dev2-py3-none-any.whl Python 3 none any Details for cosmos_platform-1.6.0.dev2-py3-none-any.whl

Total release size: 6.0 MB

Release files / cosmos_platform-1.6.0.dev2.tar.gz

Download URL cosmos_platform-1.6.0.dev2.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
fc7fb077352c7c0b8b558fb822fc6a1bef2e283a3d3a8d1399d33350301ee6a1
BLAKE2b-256 checksum
How to use checksums
e1f9af0f58cf469bfb6321b037549df4e99ff9a54d6e1a71d9f2ed3767bb402f
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 log

Release files / cosmos_platform-1.6.0.dev2-py3-none-any.whl

Download URL cosmos_platform-1.6.0.dev2-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
b5f8db205cfd90bf89488aefca96497e939858c31807f4901ed2efff425aad39
BLAKE2b-256 checksum
How to use checksums
6154e65c2c298acccb6e7d4d64786f18fc38927ebf9fa27609b659dc3beca352
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 log

Security for cosmos-platform 1.6.0.dev2

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.

Select from 2 files

Attestation for cosmos_platform-1.6.0.dev2.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page