cogos
CogOS — an autonomous software engineering agent built on the Viable System Model.
Prerequisites
CogOS uses Claude on AWS Bedrock. You need an AWS account with Bedrock model access enabled for us.anthropic.claude-sonnet-4-5-* in your region (default: us-east-1). Configure credentials via aws configure or AWS SSO.
Getting Started
# 1. Install
uv init my-cogent && cd my-cogent
uv add cogos
# 2. Boot the default image
uv run cogos local cogos image boot cogos --clean
# 3. Start the interactive shell
uv run cogos local shell
Inside the shell, start a conversation:
cogos:/$ llm -i
llm> hello, what can you do?
That's it. The shell calls Bedrock directly — no executor loop, no extra services.
What just happened
cogos localuses a JSON-backed local store (.local/cogos/cogos_data.json) instead of AWS RDS/Lambda. No cloud infrastructure needed beyond Bedrock.image boot cogos --cleanloaded the default cogent image fromimages/cogos/— capabilities, processes, handlers, and files.shellopened an interactive session.llm -istarts a multi-turn conversation with your cogent via Bedrock.
Other shell commands: help, llm -v <prompt> (verbose with tool traces), files ls, caps ls, procs ls.
Running the Executor Loop
The shell is good for interactive use. For event-driven execution (channel messages triggering processes), run the local executor:
# Terminal 1: start the executor (polls every 2s, replaces Lambda dispatch)
uv run cogos local cogos run-local
# Terminal 2: send a message to trigger a process
uv run cogos local cogos channel send io:discord:dm \
--payload '{"content":"hello","author":"tester","author_id":"1","channel_id":"2","message_type":"discord:dm","is_dm":true,"is_mention":false,"attachments":[],"embeds":[]}'
# Or run a single tick
uv run cogos local cogos run-local --once
# Inspect runs
uv run cogos local cogos run list --limit 5
Dashboard
The dashboard gives you a web UI for processes, files, capabilities, handlers, runs, and events.
# Install frontend dependencies (one-time)
cd dashboard/frontend && npm ci && cd ../..
# Start both backend and frontend
uv run cogos local cogos dashboard start
The URL will be printed (usually http://localhost:29489).
uv run cogos local cogos dashboard reload # stop + start
uv run cogos local cogos dashboard stop # stop both
Logs: /tmp/cogos-backend.log, /tmp/cogos-frontend.log
To run backend and frontend separately:
# Terminal 1
USE_LOCAL_DB=1 uv run uvicorn dashboard.app:app --host 0.0.0.0 --port 8100
# Terminal 2
cd dashboard/frontend && npm run dev
Deploying to AWS
Local mode is good for development. To deploy a cogent with persistent infrastructure (RDS, Lambda, ECS, Discord bridge), see the deployment guide.
The short version:
polis create # shared infrastructure (one-time)
cogos <name> cogtainer create # per-cogent infrastructure
cogos <name> cogos image boot cogos # load application image
cogos <name> cogos io discord start # start Discord bridge
This requires AWS Organizations, a domain for DNS, and secrets configured in AWS Secrets Manager. See AGENTS.md for the full operational reference.
Troubleshooting
LLM calls fail: Ensure AWS credentials are configured and Bedrock model access is enabled for Claude Sonnet 4.5 in us-east-1. Check with aws bedrock list-foundation-models --region us-east-1 | grep claude.
image boot shows no capabilities: Make sure you used --clean to wipe stale state.
Executor runs but nothing happens: Check that handlers exist with uv run cogos local cogos handler list. If empty, re-run image boot cogos --clean.
Dashboard frontend fails to start: Run cd dashboard/frontend && npm ci first.
References
- AGENTS.md — repo operating notes, deployment reference, infrastructure details
- docs/deploy.md — deployment guide
- docs/cogos/guide.md — CogOS concepts and architecture
- docs/polis/ — shared infrastructure (polis) design and CLI reference
- tests/cogos/local_validation.md — step-by-step local validation checklist
Metadata
Release files for cogos 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cogos-0.1.1.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cogos-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / cogos-0.1.1.tar.gz
| Download URL | cogos-0.1.1.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37f8584dfebdd6740b35410542fdc18eb4072012f3016c6c3612896f91529bb7
|
|
BLAKE2b-256 checksum How to use checksums |
ad790ae06533c9523151500b043b49d48093eed893713f0109e38673a6f35d96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 20, 2026.
Transparency logRelease files / cogos-0.1.1-py3-none-any.whl
| Download URL | cogos-0.1.1-py3-none-any.whl |
|---|---|
| Size | 586.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3fcbe2a7981ede1f72f72e3a037c69bd169d8d32ca0ebcf2aee88d36abc5c08
|
|
BLAKE2b-256 checksum How to use checksums |
9680178ed07c0a890465bf940d409f06ed4e5eb134191cd59205302de999b02e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 20, 2026.
Transparency log