Skip to main content

URACE Runtime

Python 3.11+, no third-party runtime dependencies.

→ Full UX reference · 5-minute guide


Run locally (without pip install)

cd /path/to/project
pip install -e runtime           # installs `urace` command from local source
urace start

Or without installing:

cd /path/to/project/runtime
python3 -m urace start
python3 -m urace status

Both forms are equivalent. The installed urace command and python3 -m urace share the same launcher.


Core commands

urace start
urace stop
urace status [goals|decisions|vitals|blockers|compliance|plan|watch]
urace config show
urace config evolution auto|never
urace config budget set --daily 20 --monthly 200
urace update download /path/to/new/URACE.md
urace update explain
urace update apply

Shell (interactive)

urace                            # open interactive shell

Type goals, rules, context, or questions in plain language. Slash shortcuts:

/status   /events   /events --follow   /peers   /config   /stop   /exit

Connect sources

urace source add mydb            --kind file     --connect ./data.json
urace source add metrics         --kind csv      --connect ./metrics.csv --direction read
urace source add claude          --kind executor --command claude-code --adapter claude-cli
urace source add                 --kind github   --repo owner/repo
urace source add coverage        --kind metric   --metric-source mydb --metric-path $.coverage
urace source add pass-rate       --kind vital    --numerator passed_tests --denominator total_tests
urace source list
urace source status
urace source enable <id>
urace source disable <id>
urace source remove <id>
urace source remove <id>         --kind metric
urace source remove <id>         --kind vital

Kinds: file csv json sqlite api connector executor metric vital github product peer


Goals and context

urace add context "Customers need CSV export" --source "repository owner"
urace add goal "Deliver CSV export" --success-measure "A user can download a valid CSV" --target product --priority 80
urace goal list [--json]
urace goal cancel OBJECTIVE_ID
urace goal prioritize OBJECTIVE_ID --priority 80
urace goal schedule OBJECTIVE_ID --deadline 2027-02-01T00:00:00+00:00
urace goal pin OBJECTIVE_ID
urace goal defer OBJECTIVE_ID --until 2027-01-01T00:00:00+00:00
urace goal forecast [--json]

Executors

urace executor status
urace executor attach
urace executor attach --id codex-secondary --command /path/to/codex --priority 90 --max-calls-24h 100 --max-calls-30d 1000
urace executor attach --id claude-secondary --adapter claude-cli --command /path/to/claude --priority 90
urace executor retry-policy --id codex-primary --retry-mode automatic --retry-delay-ms 60000 --retry-fallback-seconds 18000
urace executor detach --id codex-secondary

P2P / Exchange

urace exchange node roles                        # show roles
urace exchange node roles --set bootstrap,relay  # restrict to relay+bootstrap only
urace exchange setup-node                        # check NAT, configure roles, print next steps
urace exchange network serve --host 0.0.0.0 --port 7301
urace exchange bootstrap add --address https://<ip>:<port>   # announce to network

Verify reachability:

urace status          # network_mode: internet | intranet | hybrid + peer count

Inside the shell:

> /peers              # connected peers
> /status             # node roles: relay, bootstrap, consumer, creator

For internet-wide discovery: network_mode: internet + accumulated peers → your node participates in DHT routing. Other nodes discover peers through yours.


Autonomous mode

python3 -m urace autonomous --cycles infinity    # persistent, 30s interval
python3 -m urace autonomous --cycles 1           # single cycle
python3 -m urace autonomous --cycles 1 --force-discovery

Reports and evaluation

urace report status [--json]
urace report export --output urace/generated/reports/latest [--xlsx]
urace evaluation show [--json]
urace evaluation set-weight goal_completion 0.4
urace vitals [--json]
urace check [--json]

Portfolio (power)

python3 -m urace portfolio preflight urace/state/portfolio-workflow.json
python3 -m urace portfolio launch urace/state/portfolio-workflow.json
python3 -m urace portfolio auto urace/state/portfolio-workflow.json --cycles 10
python3 -m urace portfolio feedback [--json]
python3 -m urace portfolio status
python3 -m urace portfolio commands

Tests

python3 -m unittest discover -s tests -v

v0.7.0 · State boundary: urace/state/ (never committed) · Spec: ../../URACE.md

Metadata

Release files for urace 0.7.0

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

Source distribution (sdist)

Source distribution for urace 0.7.0
File Size Uploaded Provenance Actions
urace-0.7.0.tar.gz 973.8 kB Without provenance Details for urace-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urace 0.7.0
File Interpreter ABI Platform Actions
urace-0.7.0-py3-none-any.whl Python 3 none any Details for urace-0.7.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / urace-0.7.0.tar.gz

Download URL urace-0.7.0.tar.gz
Size 973.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c7c24fffe99629d6318a251ffcf517221bd8b1748b53670f6e592f56202bd535
BLAKE2b-256 checksum
How to use checksums
4f4ca3166b4fb3e534c6b38c6d65125aeec131f86e2ebbb98f00b8ac80dc7921
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / urace-0.7.0-py3-none-any.whl

Download URL urace-0.7.0-py3-none-any.whl
Size 671.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b8d61bd6ee3110772e775de441a9df91764d0511e6963b7f2f3911bd0663b2d
BLAKE2b-256 checksum
How to use checksums
078136b636bdeb2adc113d1c700be10237d375bb4c84e2d8a215d45f6b27ff61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for urace 0.7.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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