Build.
This is where you go from understanding Motus to using it. Install the CLI. Run your first workflow. Add gates. Wire into CI. Scale to your team.
From site to software.
Control, Define, and Verify explained the model. Build is where you use it. Everything from installing the CLI through configuring your environment and scaling to your team.
I understand the concept. Now I want to see it work.
What you need.
Python 3.9+, git, and a repo. That's it.
Motus doesn't replace your stack. It doesn't require a platform account, a hosted service, or a new database. Contracts live in your repo. Receipts export as JSON. The CLI runs locally.
You choose where data lives. You choose what to surface. You choose how to integrate. This is ownership by design, not missing features.
Get the CLI.
One pip install. Then init in your repo.
One command. If it breaks, I haven't lost anything.
# install the CLI $ pip install motusos $ motus --help # init in your repo $ cd your-repo $ motus init --integrate . $ motus doctor --json
Claim, evidence, release.
One workflow end to end. This is the pattern you will repeat for every piece of work. People, automation, or agents.
I want to see the full loop before I customize anything.
# set your agent ID $ export MC_AGENT_ID=you-local # claim work $ motus work claim TASK-001 --intent "Add hello script" --json # returns LEASE_ID # make your change, then attach evidence $ motus work evidence <LEASE_ID> test_result --passed 1 --failed 0 --json # release $ motus work release <LEASE_ID> success --json # receipt recorded
Check your work.
After release, query your receipts and verify integrity locally. Local acceptance is authoritative. The Ledger is optional. Use it when you need proof across environments.
I need proof I can point to. For myself, first.
# list recent work $ motus work list --json # show receipt $ motus receipt show <RECEIPT_ID> --json # verify receipt integrity $ motus receipt verify <RECEIPT_ID>
Define what must be true.
A work contract specifies scope, required checks, required evidence, and ownership before execution begins. The contract locks the decision so execution can move without reopening what was already settled.
I need to define what done looks like before anyone starts.
# example work contract work_id: TASK-042 scope: paths: ["src/auth/**", "tests/auth/**"] checks: - pytest tests/auth - ruff check src/auth evidence: - test_result: passed > 0, failed = 0 - coverage: >= 80% owner: @security-team
Two options to start.
Gates are userland policy. You have two practical paths: use the built-in policy runner or create a custom script.
I need checks that can't be bypassed.
# Option A: Motus policy gate $ motus policy plan --repo . --files README.md --json $ motus policy run --repo . --files README.md --json # deterministic evidence bundle output
# Option B: Custom gate script # scripts/gates/gate-001-no-todo.sh #!/usr/bin/env bash set -euo pipefail if grep -RInE 'TODO|FIXME' . --exclude-dir=.git --exclude-dir=.motus --exclude='*.md' >/dev/null; then echo "FAIL: TODO/FIXME markers found in code." exit 1 fi echo "PASS: no TODO/FIXME markers in code."
Wire gates into your pipeline.
Gates run in CI like any other check. The verifier runs from a pinned reference so execution cannot modify the rules it is judged by.
I need this wired into my existing pipeline, not a new system.
# .github/workflows/gate-001.yml
name: gate-001
on:
pull_request:
branches: [main]
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run gate-001
run: ./scripts/gates/gate-001-no-todo.sh
# commit your gate + workflow $ git add scripts/gates/gate-001-no-todo.sh .github/workflows/gate-001.yml $ git commit -m "gate: add no-todo gate and CI workflow"
Leverage GitHub correctly.
Motus complements GitHub governance. It does not replace it. Configure these controls in your repo settings.
I need Motus to work with what I already have, not replace it.
What Motus secures. What you secure.
Motus is open source and local-first. Local acceptance is authoritative. You own security and controls. Motus gives workflow discipline and evidence structure. It is not a security appliance.
I need to know what's my job and what's Motus's job.
Request access to the research preview.
The research preview is open to teams who want to pressure-test the control plane with real work.