Nexus
English | 简体中文
Nexus is a transparent, async-first coding-agent runtime with a CLI adapter, durable PostgreSQL sessions/checkpoints, policy-governed native and MCP tools, bounded repository context, validated code editing, repository/user Skills, safe structured telemetry, and a deterministic evaluation harness. LangGraph and concrete providers remain behind Nexus-owned boundaries.
This branch prepares the Nexus v0.1.0 Release Candidate. It does not create the final Git tag;
tagging remains a Product Owner action after review and merge to main.
Requirements
- Python 3.12+
- uv
- Git
- PostgreSQL 16 with the
vectorextension - an OpenAI-compatible model deployment for live coding tasks
- Docker with Compose when using the included development database
Install
uv sync --locked --dev
docker compose up -d postgres
uv run alembic upgrade head
uv run nexus --help
The Compose development URL is
postgresql+asyncpg://nexus:nexus@localhost:5432/nexus. Override it with
NEXUS_DATABASE_URL when necessary. Credentials in compose.yaml are development-only.
Configure secrets through environment variables, never CLI arguments or repository TOML:
$env:NEXUS_MODEL_NAME = "your-model"
$env:NEXUS_MODEL_API_KEY = "your-api-key"
$env:NEXUS_MODEL_BASE_URL = "https://your-compatible-endpoint.example/v1" # optional
Non-secret repository configuration can be stored at .nexus/config.toml:
[model]
provider = "openai_compatible"
name = "your-model"
base_url = "https://your-compatible-endpoint.example/v1"
[database]
url = "postgresql+asyncpg://nexus:nexus@localhost:5432/nexus"
[runtime]
approval_mode = "approval"
max_steps = 20
max_repair_attempts = 3
max_replans = 2
Configuration precedence is resolved per field:
CLI > repository TOML > user ~/.nexus/config.toml > NEXUS_* environment > defaults
MCP process configuration and LangSmith configuration are trusted only from user-level TOML or approved environment variables; API keys are environment-only.
Quick start
Run Nexus from the repository that it is allowed to inspect and change:
uv run nexus chat "Find the smallest cause of the failing test and fix it."
Nexus explores bounded context, proposes a Plan, asks for approval when required, performs policy-governed sequential Tool calls, validates changes, and renders a final result or a truthful failure/limit stop. Useful commands are:
uv run nexus --help
uv run nexus chat --help
uv run nexus index --help
uv run nexus session list --help
uv run nexus session resume --help
uv run nexus eval --help
Release documentation
The Nexus V1 release guide is the authoritative Day 10 guide. It
contains the architecture overview and diagram, complete CLI/configuration reference, validation,
observability and evaluation procedures, canonical FastAPI walkthrough, known limitations,
post-V1 roadmap, release checklist, and v0.1.0 release notes.
Focused subsystem guides remain available for MCP, Skills, observability, and the architecture decisions.
Development and release gates
uv run ruff check .
uv run mypy src tests
uv run pytest --cov=nexus --cov-report=term-missing --cov-report=json:coverage.json
uv run coverage report --precision=2 --fail-under=70
uv run coverage report --include="src/nexus/application/runtime.py" --precision=2 --fail-under=80
uv run coverage report --include="src/nexus/security/*" --precision=2 --fail-under=80
uv run coverage report --include="src/nexus/application/validation.py" --precision=2 --fail-under=80
uv lock --check
uv build
Live provider, LangSmith, evaluation, fresh-install, fixture, and real-repository results are kept separate from deterministic regression evidence in the Day 10 release evidence.
Metadata
Release files for nexus-coding-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nexus_coding_agent-0.1.0.tar.gz | 586.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nexus_coding_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 785.4 kB
Release files / nexus_coding_agent-0.1.0.tar.gz
| Download URL | nexus_coding_agent-0.1.0.tar.gz |
|---|---|
| Size | 586.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a2349f638c42a7242d92f23d45f08b8612af48089715d9b9efda293cb6f4b63
|
|
BLAKE2b-256 checksum How to use checksums |
cfcaeb0f8de4925923c7674e80edc37de17cfadf56763384392baa44fd7d6fa4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 15, 2026.
Transparency logRelease files / nexus_coding_agent-0.1.0-py3-none-any.whl
| Download URL | nexus_coding_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 198.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20e0e959e2b8a66bdd4acd384c705d58689f1e41d70c26390b1d2279a6550c6f
|
|
BLAKE2b-256 checksum How to use checksums |
3e7e83ba63b4497cadcc09809b83eceadb4a188256c140a2fdb8f02656aeccfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 15, 2026.
Transparency log