Autonomous software engineering agent built on the Viable System Model
Project description
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 sync --all-extras
# 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cogos-0.1.0.tar.gz.
File metadata
- Download URL: cogos-0.1.0.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6461d0f8eb1699dae844e7d55e566b7e74d07675f0660a1987ad5d0f849035a
|
|
| MD5 |
d32757bcf9ebbbcb235a6b491ed8a90f
|
|
| BLAKE2b-256 |
9a866dfe8ee423ce232f351a9967481859f1ba912104f1f552db947f93c88f3c
|
Provenance
The following attestation bundles were made for cogos-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on Metta-AI/cogos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogos-0.1.0.tar.gz -
Subject digest:
d6461d0f8eb1699dae844e7d55e566b7e74d07675f0660a1987ad5d0f849035a - Sigstore transparency entry: 1139999914
- Sigstore integration time:
-
Permalink:
Metta-AI/cogos@b48403cbd39a9c1ab58dab556584df4f21609fe8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Metta-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@b48403cbd39a9c1ab58dab556584df4f21609fe8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cogos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cogos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 438.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6450d2554b72f65b5058227eedc898ab5f70d0f7cd3235e449f081e56de73ef6
|
|
| MD5 |
71caa51e9513105c0746ff4857f34e41
|
|
| BLAKE2b-256 |
30dd022101a279a514e666b47b66a9741b14acef9b7eaa68f08f5634e48043c5
|
Provenance
The following attestation bundles were made for cogos-0.1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on Metta-AI/cogos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cogos-0.1.0-py3-none-any.whl -
Subject digest:
6450d2554b72f65b5058227eedc898ab5f70d0f7cd3235e449f081e56de73ef6 - Sigstore transparency entry: 1139999961
- Sigstore integration time:
-
Permalink:
Metta-AI/cogos@b48403cbd39a9c1ab58dab556584df4f21609fe8 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Metta-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@b48403cbd39a9c1ab58dab556584df4f21609fe8 -
Trigger Event:
release
-
Statement type: