Skip to main content

mtor

Agent-first coding task dispatcher for Temporal workflows. Dispatches AI coding tasks to workers, reviews results automatically, and merges approved changes.

Install

uvx mtor
# or
pip install mtor

Quick start

# Dispatch a coding task
mtor "Add logging to server.py"

# Check status
mtor status ribosome-zhipu-abc123

# List recent runs
mtor list --since 24

# Health check
mtor doctor

Configuration

All config via environment variables:

Variable Default Description
TEMPORAL_HOST ganglion:7233 Temporal server address

Other settings (task queue, output paths) are configured in mtor/__init__.py.

Features

Auto-routing

Tasks are automatically routed to the best provider based on keywords:

  • Exploration queries → droid
  • Bug fixes → goose
  • Build tasks → zhipu (default)

Override with --provider:

mtor "Fix the login bug" --provider goose

Risk classification

Tasks are classified as low / medium / high risk. High-risk tasks (deletions, config changes) are flagged in the dispatch response.

Spec file support

Pass a markdown file as the prompt — mtor reads it and strips YAML frontmatter:

mtor path/to/spec.md

Spec decomposition

Multi-task specs (with ## Task 1, ## Task 2 sections) are automatically split into individual workflows sharing the same preamble.

Dedup

Same prompt → same workflow ID. Temporal prevents duplicate dispatches natively.

Experiment mode

mtor -x "Try a new approach to caching"

Experiment tasks don't auto-merge — they stay on branches for manual review.

Deferred approvals

Gate high-risk tasks behind manual approval:

mtor approve ribosome-zhipu-abc123
mtor deny ribosome-zhipu-abc123

Commands

Command Description
mtor "prompt" Dispatch a task
mtor list List recent workflows
mtor status <id> Get workflow details
mtor logs <id> Fetch last 30 lines of output
mtor cancel <id> Cancel a workflow
mtor approve <id> Approve a deferred task
mtor deny <id> Deny a deferred task
mtor doctor Health check
mtor deploy Sync + restart worker
mtor history Recent run history from JSONL log
mtor checkpoints List saved checkpoints from failed runs
mtor schema Emit JSON schema of all commands

Every response is a JSON envelope with ok, command, result/error, and next_actions — designed for programmatic consumption by agents and tools.

Exit Codes

Code Meaning
0 Success
1 Generic error
2 Usage error (missing required arguments)
3 Temporal unreachable
4 Workflow not found

Requirements

  • Python ≥ 3.11
  • A running Temporal server
  • A worker process executing coding tasks (e.g., ribosome + translocase)

License

MIT

Metadata

Release files for mtor 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 mtor 0.7.0
File Size Uploaded Provenance
mtor-0.7.0.tar.gz 33.4 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 52.6 kB

Release files / mtor-0.7.0.tar.gz

Download URL mtor-0.7.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
37883e1dad841dde17a916b689d06c5078d2a52be2ccf434c74e88ba3276b9b6
BLAKE2b-256 checksum
How to use checksums
ff3e255fe8e950437e089b9dcf6208d60e4984287548acf2c4aaf887ace20ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL mtor-0.7.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
324bde2262f8aa6afbf9e41589d3d41dee763a00d381d44e8823f047f19325c2
BLAKE2b-256 checksum
How to use checksums
9f46b6b37f742cea627a4dd096da3eaaa502eec08af0a30bebdd54740491897f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mtor 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.

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