Skip to main content

Motus CLI

Motus records command, CI, and instrumented agent runs in a local SQLite work ledger and projects the stored records into receipts.

Install And Record A Run

pip install motusos
motus wrap -- python3 -c "print('first recorded run')"

The command runs normally and Motus prints a run_... ID plus the exact receipt command. List recent runs or inspect one directly:

motus run list
motus run receipt run_...

What Is Recorded

motus wrap stores:

  • one bounded run,
  • metadata-only output events,
  • exit state and terminal outcome,
  • a deterministic receipt projection after close.

Raw stdout, stderr, environment variables, credentials, and unbounded transcripts are not persisted by default.

The project-local Store is .motus/kernel-store.db. Set MOTUS_KERNEL_STORE_PATH only when another location is intentional.

Structured Work

Use the structured work loop when the work needs an explicit claim, evidence event, and close:

motus work claim BILLING-114 --intent "Fix rounding in invoice totals"
motus work evidence WORK_HANDLE test_result --passed 1 --failed 0
motus work release WORK_HANDLE success
motus work receipt WORK_HANDLE

The claim command prints a temporary work handle and the next evidence command. The linked Store run is the durable record; the handle coordinates the work loop.

Agents And CI

For an MCP-capable agent runtime:

pip install "motusos[mcp]"
motus mcp

For Claude Code:

claude mcp add motus -- motus mcp

The runtime must call the MCP tools; Motus does not capture agent sessions automatically. The tools start, append to, close, snapshot, and list Store runs, with optional fenced locks. Use motus run receipt after an MCP-created run is closed; the MCP server does not expose a receipt tool.

For GitHub Actions:

- uses: motus-os/motus@v0.6.4
  with:
    command: "pytest"
    export-path: "motus-run-export.json"
    receipt-path: "motus-receipt.json"

Insights

motus insights self-audit --json
motus insights agent-sessions ~/.claude/projects --json

The commands return deterministic findings or data-density diagnostics. agent-sessions returns derived counts and fixed tool categories, not transcript text or file paths.

Trust Boundary

The Store is controlled by its owner. While its SQLite triggers remain installed, they block run deletion, run-identity changes, changes to closed outcomes, and updates or deletion of event and schema rows. Stored JSON carries unkeyed SHA-256 digests. motus doctor checks structural health, required guards, relationships, and stored digests. These properties support deterministic local reconstruction; they do not authenticate the producer or make the database tamper-proof.

Motus has no signing or independent attestation layer.

Metadata

Release files for motusos 0.6.4

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

Source distribution (sdist)

Source distribution for motusos 0.6.4
File Size Uploaded Provenance Actions
motusos-0.6.4.tar.gz 116.7 kB With provenance Details for motusos-0.6.4.tar.gz

Built distribution (wheel)

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

Total release size: 276.5 kB

Release files / motusos-0.6.4.tar.gz

Download URL motusos-0.6.4.tar.gz
Size 116.7 kB
Tags Source
SHA-256 checksum
How to use checksums
56907090c5bce93be45b8c14fd44c603049e801ab520969449eff44ac15f3f4f
BLAKE2b-256 checksum
How to use checksums
c225ade2b645483fb64b2293b59451bdda817959f055224002d9c67bf04f1baa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 20, 2026.

Transparency log

Release files / motusos-0.6.4-py3-none-any.whl

Download URL motusos-0.6.4-py3-none-any.whl
Size 159.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60afffe059cee2ecffede79d58c3ad8d2ed89d6267837eaa339e5cd37bce30bb
BLAKE2b-256 checksum
How to use checksums
73c4d7ab675cb86eaf7ad013cad5d70921aa3de91b5110ec0d8dde56f69a5115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 20, 2026.

Transparency log

Security for motusos 0.6.4

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 motusos-0.6.4.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 Jul 20, 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