# mecha

A Rust harness that turns a local, open-weight language model into a personal assistant with your context, your permissions, and a structurally safe way to reach the world.

mecha targets models running entirely on hardware the user owns. It gives the model memory, tool access and reach, while treating the combination of private data, untrusted content and the ability to send as a structural risk rather than something the model can simply be asked to handle carefully, so capabilities are enforced in code instead of being left to the model's judgment.

It is built as a provider-agnostic agent loop with MCP tool support, a path jail, a prompt-injection interlock, a sandboxed shell, scheduled triggers, and an evaluation rig that grades the agent's own trace.

It is written in Rust and ships as a CLI with a TUI.

Website: https://docs.mecha-factory.ai
