# Mastra Code Mastra Code is a terminal-based AI coding agent built on Mastra's [Harness](https://mastra.ai/reference/harness/harness-class), [Agent](https://mastra.ai/docs/agents/overview), and [Memory](https://mastra.ai/docs/memory/overview) primitives. It runs in your terminal, connects to thousands of AI models, and provides tools for reading, searching, editing, and executing code. ## Docs - [Overview](https://code.mastra.ai/index.md) - [Modes](https://code.mastra.ai/modes.md) - [Goals](https://code.mastra.ai/goals.md) - [Tools](https://code.mastra.ai/tools.md) - [Configuration](https://code.mastra.ai/configuration.md) - [Terminal notifications](https://code.mastra.ai/terminal-notifications.md) - [Customization](https://code.mastra.ai/customization.md) - [Headless mode](https://code.mastra.ai/headless.md) - [API Reference](https://code.mastra.ai/reference.md)