0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/mastracode/tui
History 2026-11-12 21:12:29 +00:00
..
e2e test(mastracode): make schedules multi-line e2e scenario independent of the clock (#30128) 2026-11-12 00:35:51 +01:00
scripts fix(mastracode): keep TUI responsive during streamed tools (#19376) 2026-07-13 16:30:32 -07:00
src Prevent /settings from crashing on missing mouse preferences (#30180) 2026-11-11 22:48:02 -08:00
CHANGELOG.md chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
e2e-list.ts refactor(mastracode): split into core, TUI, and standalone web packages (#18986) 2026-07-08 14:59:43 +02:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
oxlint.config.ts refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
package.json chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
README.md feat: automatic per-role memory model selection for Observational Memory (#24508) 2026-10-09 00:45:29 -07:00
tsconfig.build.json refactor(mastracode): split into core, TUI, and standalone web packages (#18986) 2026-07-08 14:59:43 +02:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
turbo.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
VERIFICATION.md feat(mastracode): separate model and model pack commands (#22429) 2026-08-27 13:28:19 -07:00
vitest.config.ts refactor(mastracode): split into core, TUI, and standalone web packages (#18986) 2026-07-08 14:59:43 +02:00

Mastra Code

Mastra Code is a terminal-based AI coding agent distributed as the mastracode package. It combines persistent project-scoped conversations, multiple model providers, coding tools, goals, plugins, dynamic workflows, and Observational Memory so long-running work does not depend on context-window compaction.

Installation

Mastra Code requires Node.js 22.19.0 or later. Install the CLI globally:

npm install -g mastracode

To use the programmatic API or build a custom TUI, install it as a project dependency instead:

npm install mastracode

Usage

Start Mastra Code from the project you want it to work in:

cd your-project
mastracode

Or run it without a global installation:

npx mastracode

On first launch, the onboarding wizard connects a model provider, configures main model packs, and asks whether tool calls should require approval. Run /setup to repeat onboarding later.

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.