builder-smoke-test
Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current…
Testing mastracode TUI features interactively in Konsole. Covers model configuration, thread lifecycle, task state isolation, and common blockers.
Claude Code
$ npx -y skills add mastra-ai/mastra --skill testing-mastracode-tui --agent claude-code
Codex
$ npx skills add mastra-ai/mastra --skill testing-mastracode-tui -a codex -y
Cursor
$ npx skills add mastra-ai/mastra --skill testing-mastracode-tui -a cursor -y
Gemini CLI
$ npx skills add mastra-ai/mastra --skill testing-mastracode-tui -a gemini-cli -y
GitHub Copilot
$ npx skills add mastra-ai/mastra --skill testing-mastracode-tui -a github-copilot -y
OpenCode
$ npx skills add mastra-ai/mastra --skill testing-mastracode-tui -a opencode -y
Windsurf
$ npx skills add mastra-ai/mastra --skill testing-mastracode-tui -a windsurf -y
name: testing-mastracode-tui description: Testing mastracode TUI features interactively in Konsole. Covers model configuration, thread lifecycle, task state isolation, and common blockers.
Guide for interactive testing of mastracode's terminal UI in Konsole.
1. Build mastracode and its dependencies:
cd /home/ubuntu/repos/mastra COREPACK_ENABLE_STRICT=0 pnpm build:mastracode
This may take a few minutes. If `pnpm` has corepack issues, install directly: `npm install -g pnpm@10.11.0`
2. If the build fails due to pre-existing DTS errors in `@mastra/core` or `@mastra/memory`, use `--continue` to let downstream packages (including mastracode) still build:
COREPACK_ENABLE_STRICT=0 pnpm turbo build --filter ./mastracode --continue
3. If unit tests fail with missing `@mastra/core/workspace`, run `pnpm build:core` first.
If you don't have a direct Anthropic/OpenAI API key, configure OpenRouter as a custom provider:
1. Edit `~/.local/share/mastracode/settings.json`:
{
"customProviders": [
{
"name": "OpenRouter",
"url": "https://openrouter.ai/api/v1",
"apiKey": "<OPENROUTER_API_KEY value>",
"models": ["minimax/minimax-m2.7"]
}
],
"models": {
"activeModelPackId": "custom:Custom",
"modeDefaults": {
"build": "openrouter/minimax/minimax-m2.7",
"plan": "openrouter/minimax/minimax-m2.7",
"fast": "openrouter/minimax/minimax-m2.7"
}
},
"customModelPacks": [
{
"name": "Custom",
"models": {
"build": "openrouter/minimax/minimax-m2.7",
"plan": "openrouter/minimax/minimax-m2.7",
"fast": "openrouter/minimax/minimax-m2.7"
},
"createdAt": "2026-01-01T00:00:00.000Z"
}
]
}2. After launching mastracode, you may also need to activate the custom pack via `/models` → select "Custom" → "Activate".
3. Verify the status bar at the bottom shows the correct model (e.g., `build openrouter/minimax/minimax-m2.7`).
cd /home/ubuntu/repos/mastra/mastracode COREPACK_ENABLE_STRICT=0 pnpm cli
On first launch, mastracode may show a setup wizard. Select "Skip" to proceed to the main TUI without configuring models interactively.
| Command | Action | | ---------- | ------------------------------------------------ | | `/new` | Create a new empty thread | | `/threads` | Open thread selector (↑↓ navigate, Enter select) | | `/clone` | Clone current thread | | `/models` | Switch model pack | | `/help` | Show all available commands |
For visual/rendering bugs (e.g., border alignment, padding, wrapping), writing a quick `tsx` script that directly renders the component is more reliable than visual inspection alone:
cd /home/ubuntu/repos/mastra/mastracode npx tsx test-script.ts
Key approach:
This approach catches bugs that are hard to see visually and provides concrete pass/fail evidence.
The key scenario for thread state testing:
1. **Generate tasks**: Ask the model to use the `task_write` tool explicitly. Some models (e.g., minimax) may not call it automatically — you may need to say something like: "Please use the task_write tool to create a task list with 3 items: Fix login bug, Add unit tests, Update docs"
2. **Verify tasks visible**: Look for the "Tasks [0/N completed]" section with ○/▶/✓ icons between the status line and the editor input.
3. **Test `/new`**: The task progress component should completely disappear. The screen should show only "Ready for new conversation" and an empty input.
4. **Test `/threads` switch**: Switch back to the original thread — messages and tasks should restore correctly.
5. **Test `/clone`**: Cloned threads should start with empty tasks (tasks are ephemeral, not persisted to clones).
cd /home/ubuntu/repos/mastra COREPACK_ENABLE_STRICT=0 pnpm --filter mastracode exec
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack. It includes everything you need to go from early prototypes to production-ready applications.
Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current…
Use early when debugging a medium or hard bug, especially when tests alone may not reveal the real runtime failure. Trigger this…
Autonomous, report-only documentation review for Mastra docs. Use when auditing changed docs against source, validating…
Convert existing docs diagram images to Mermaid, and author new Mermaid diagrams for Mastra docs. Use when replacing an…
REQUIRED when modifying any file in packages/playground-ui or packages/playground. Triggers on: React component…
Review open mastra-ai/mastra GitHub issues, identify direct @mastra/core bugs, and apply the @mastra/core label. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.