# Development

> Repository layout, building, and validating changes.

The [open-max repository](https://github.com/Max17190/open-max) contains the Rust agent, terminal UI, examples, and reference documentation.

## Build and test

From a clone of the product repository:

```sh
cargo check
cargo test
cargo build --release -p openmax
```

Run the local binary with `cargo run --release -p openmax`. See [Install](https://useopenmax.dev/docs/install) to install it from source instead.

## Repository layout

| Path | Responsibility |
| --- | --- |
| `crates/core/` | Agent loop, model clients, tools, context, sessions, trust, and permissions |
| `crates/tui/` | The `openmax` binary, terminal UI, headless mode, and stdio frontend |
| `docs/` | Usage, configuration, design, and extension contracts |
| `examples/` | Workflows built from the agent's tools and extension contracts |
| `scripts/` | Repository checks and reports |

Prefer tools, skills, templates, hooks, and native processes for new workflows. The [design guide](https://useopenmax.dev/docs/design) explains the core's boundaries.

## Validate a change

Inspect the relevant code, keep the diff focused, and run the checks that exercise the changed behavior. [Testing](https://useopenmax.dev/docs/testing) explains functional tests, test-count gates, and mutation checks.

The [development reference](https://github.com/Max17190/open-max/blob/main/docs/development.md) lists the current CI checks, performance targets, and measurement commands. Follow the repository's contributor instructions when preparing a change.
