Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Thea

Agents write the code. Thea makes every change prove it can be trusted before it lands.

Thea Desktop engineering intelligence.

Thea Desktop macOS preview

Atlas CI contract version OpenSSF Scorecard PyPI version Python versions MIT License

Protocol: a change maps to proof; Thea selects evidence and the build enforces the verdict (evidence). Agents: llms.txt; chats: CHAT.md.

Start: install/use · macOS preview · agents · chat · adapters

Why this exists

An agent can report a change as done without running a single check. A check that never ran looks the same as a check that passed, and the change ships. Thea closes that gap in three ways:

  • Every change maps to proof. atlas.yaml lists the checks each kind of file owes, and the gate runs them before the change is called finished.
  • Refusal happens at commit, for any agent. A git hook runs the same check-only command whether Claude, Codex, Cursor or a person made the commit. Agents do not have to read the instructions to be held to them.
  • A skipped check is never a pass. A missing tool is reported as SKIP, counted, and kept out of the pass count. Gates report PASS, FAIL or NOT RUN; missing tools never become green.
---
config:
  theme: base
  themeVariables:
    primaryColor: "#e6f2e7"
    primaryBorderColor: "#6f9f73"
    primaryTextColor: "#14301a"
    lineColor: "#7f9483"
    fontSize: "15px"
  flowchart:
    padding: 6
    nodeSpacing: 14
    rankSpacing: 18
---
flowchart LR
  accTitle: How Thea is built
  accDescr: a contract maps a change to proof obligations, selects fast-loop evidence, and records a verdict; Thea Desktop presents the workspace, agent controls, verification, and history as one workflow
  R[Contract] --> O[Change to proof] --> I[Fast-loop evidence] --> C[One core verdict] --> D[Workspace] --> A[Agents and tools] --> V[Verify] --> H[Receipts]
  classDef core fill:#cfe9d2,stroke:#4f9a58,color:#103d17
  class C core
$ thea gate scripts/doctor.py
1. formatter: ruff format --check scripts/doctor.py
2. compiler_or_typechecker: python3 -c 'import ast,sys; [ast.parse(open(f, encoding="utf-8").read(), f) for f in sys.argv[1:]]' scripts/doctor.py
3. unit_tests: pytest

Quickstart

# no checkout
uv tool install thea-software && thea doctor
# or, editable
git clone --depth 1 --branch v3.60.0 https://github.com/HLIntel/thea-software ~/thea && uv tool install --editable ~/thea && thea doctor

In your repository:

cd path/to/your-repo && thea init   # checks, Claude Code + Codex wiring, first run
thea verify && thea report          # after a change: verdicts, then what is unverified

With an impact map, thea verify --changed runs planted groups with moved dependencies or no record. It speeds feedback; thea verify remains the final verdict.

Read-only MCP: thea-mcp. No-shell chat: CHAT.md. Add Thea to another repository: CONSUMING.

Where it fits

  • Any agent. One contract for Claude Code, Codex, Cursor, opencode and Hermes. The adapters are in models/README.md; the commit gate does not depend on which one is running.
  • Any repository. thea init wires a repository in one step. Consumers add the reusable CI workflow from CONSUMING so the verdict on a laptop and in CI is the same command.
  • Any language we route. Each language × check pair is either answered by a command or declared as having no tool, so an unanswered pair cannot hide.

Thea Desktop preview

Thea Desktop is the native macOS workspace over the same core: the workspace, agent controls, verification and history in one window. The CLI is ready now. Desktop is available by preview request — no secrets or private code. A public Desktop installer is not published yet. Limits.

$ thea port scripts/doctor.py --line
◉ scripts/doctor.py │ ⠟backend │ python │ ⌂scripts │ ✓3 │ ⚠1 │ → thea gate scripts/doctor.py
$ thea port scripts --line
◎ scripts │ ⠟136 │ ⌂scripts │ → thea brainstorm
$ thea port . --line
○ . │ ⠟164 ⠁5 ⠿4 │ → thea check

What it measurably buys

What the recorded instruments have caught in real runs. Each line names the instrument that produced it. They prove routing and refusals, not end-to-end task success (limits).

Failures caught

  • 26/26 planted breaks refused at commit, across 18 of 42 languages. 19 more have an example that has not run yet; 5 have no runnable example (enforce.py v3.59.0).
  • 630 mistake kinds planted in the tests, each refused.
  • 118 failure shapes recorded from real runs: 205 sightings, 47 recurred, 97 now guarded.
  • 1076 refusals in daily use (37 shapes, 654 re-fired). Verify: 39 passed and 187 failed, of 485 runs. 112 of 115 lands armed; 701 lessons shown (agents.py --field v3.59.0).
  • 24/24 solo commits clean with or without the hook; a planted broken commit is refused.
  • 6 agent controls block, never warn: narrow_tools, sandbox, budget, approval, effects, audit.

Cost

  • 1,734 tokens read before routing; 196 more documents (624 KiB) load only when a route names one.
  • 89% fewer tokens than pasting every tool list; 50% fewer than blind.
  • 10 KiB install: 1 module, 1 dependency.

Coverage

  • 378 language × check pairs (42 × 9), all answered: 146 by a command, 232 by a declared no tool, 0 silent.

Agent contract

  • Route: thea port <file>, or parse .agent/bootstrap.json; load only its names.
  • Automate: add --json; records follow the output schema.
  • Before shell: thea shell --json "<cmd>"; exit 3 means its verdict would be misread.
  • Land: python scripts/branchstate.py --land; check thea landed <branch> before deletion.
  • Judge and report: use the judgment rungs; file breaks with the thea skill.

Counts, computed

Generated on every build; check refuses drift. Machine-readable: .agent/facts.json.

  • 401 tool entries — across 42 manifests and 5 kinds, validated against tools/tools.schema.json
  • 345 agreement edges — each a file tied to the declaration it answers for
  • 90 instruments — each stating what it proves, what it does not, and what closes the gap
  • 8 change classes — and 14 task profiles, in atlas.yaml
  • 134 harness Python files — every one held by lint · format · typecheck
  • 3.60.0 contract version — VERSION, asserted in 8 other files

Find your way

Project

Version tracks the contract, not content (versioning). Built by HLIntel LLC, public on purpose (about). Contributions pass thea verify. MIT License.

Updated: contract v3.60.0

Metadata

Release files for thea-software 3.60.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 thea-software 3.60.0
File Size Uploaded Provenance Actions
thea_software-3.60.0.tar.gz 19.2 kB With provenance Details for thea_software-3.60.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for thea-software 3.60.0
File Interpreter ABI Platform Actions
thea_software-3.60.0-py3-none-any.whl Python 3 none any Details for thea_software-3.60.0-py3-none-any.whl

Total release size: 30.8 kB

Release files / thea_software-3.60.0.tar.gz

Download URL thea_software-3.60.0.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8fb62dd851d03a50d12ce63688839335955dee129b70484c35602e44f241f900
BLAKE2b-256 checksum
How to use checksums
7b2130de6021a2e192af810733297fae2b492389f1bcedd0b513e7a1ebf3abca
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 Oct 23, 2026.

Transparency log

Release files / thea_software-3.60.0-py3-none-any.whl

Download URL thea_software-3.60.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c83f987ece8f902b8f10d2f53da0e4eb8c5b11144f8bf6fe96e905029f6969ee
BLAKE2b-256 checksum
How to use checksums
d41b32799129846c1404127b4ad0b6229e2121012e1e73f6662b4d814ee3eed2
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 Oct 23, 2026.

Transparency log

Security for thea-software 3.60.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for thea_software-3.60.0.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 Oct 23, 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