MechaHarness documentation
Build model-backed applications with configurable inference providers, agent loops, tool grants, cost accounting, event logs, and resumable execution graphs. Requires Python 3.9+. This documentation describes version 0.18.0.
Start without a provider account:
pip install mechaharness
mechaharness run "Hello" --backend mock --family pass_through --model mock
Use Install & quick start for a first run, Local OpenAI-compat backend (openai_local) for cloud or local endpoints, and Dependency injection to configure a host. See Architecture for component ownership and integration boundaries.
Guides
More guides
Reference
Maintainer requirements and research
These pages describe contracts, acceptance gaps, and their sources. Start with installation and the task guides above when integrating MechaHarness in a host.
- Dependency injection requirements
- Durable graph generators (driven execution)
- Dynamic tool graph and node components
- Event analytics schema requirements
- Host integration requirements
- Job lanes and JobLaneBroker (JL-*)
- Reusable graph recipes and typed decision-plane requirements
- Repository secrets and local-config hygiene
- Stepped graph execution (SG-*)
- Transactional durable graph resume requirements
- AI assistant project host-friction inspiration
- AI assistant project host-friction requirements map
- Developer Blog Inspiration for MechaHarness
- Inspiration: Inversion-of-Control Execution via Durable Graph Generators
- Durable graph generators requirements map
- MechaHarness Eval Research Brief
- FineEnvs multi-harness RL requirements map
- Inspiration: Gastronomic Guided Development (alternative to guided_coding)
- Cursor execution plan: Gastronomic guided development
- Jev typed-judgment inspiration for MechaHarness
- Jev typed-judgment requirements map
- Multi-Harness RL Inspiration for MechaHarness
- Recommended architecture additions
- Ownership boundary: MechaHarness vs the AI assistant host
- Priority
- Acceptance-direction sketch
- Attribution
- Inspiration: OpenAI Dots, Scoped Execution and Agent Safety
- OpenAI Dots agent safety requirements map
- Inspiration: Reliable Personal Agent Execution Patterns
- Personal agent reliability requirements map
- Inspiration requirements map
- Inspiration: Evaluation-driven evolution of composed recipes
- Self-revising recipe evolution requirements map
- Trouble research and implementation
- Video production project → MechaHarness: audited infer-accept migration
- WalkingLabs + eval research requirements map
- WalkingLabs Harness Engineering inspiration for MechaHarness
API
- mechaharness
- mechaharness.config
- mechaharness.di
- mechaharness.factory
- mechaharness.core.completer
- mechaharness.core.types
- mechaharness.core.contract
- mechaharness.core.events
- mechaharness.core.access
AbilityAccessControlAccessPolicyCapabilityCapabilityKindCapabilityProfileCompoundPolicyCoreGrantCostAccountantCostEntryCostReportExtensionBlockExtensionObserveExtensionReplaceExtensionRewriteFsReadFsWriteGrantGraphEscalateGraphExecuteInMemoryAccessControlInMemoryCostAccountantMediaAudioMediaImageMediaVideoNetHttpProcessExecdefault_capability_profile()grant_key()inference_cost_entry()tool_cost_entry()
- mechaharness.core.environment
- mechaharness.inference.base
- Experimental research reports
- mechaharness.harness.base
- mechaharness.tools.base
- mechaharness.graph_executor
- mechaharness.checkpoint_store
- mechaharness.sqlite_checkpoint_store
- mechaharness.external_effect