## Summary
Move all slash command files to `.mastracode/commands/` and replace the
files in `.claude/commands/`, `.cursor/commands/`, and
`.opencode/command/` with symlinks pointing back to
`.mastracode/commands/`.
This means edits to any command file only need to happen in one place.
## Changes
- Created `.mastracode/commands/` with all 12 command files (canonical
copies)
- Replaced all files in `.claude/commands/`, `.cursor/commands/`,
`.opencode/command/` with symlinks
- Updated `AGENTS.md` to reference `.mastracode/commands/changeset.md`
## Test Plan
- Verified all symlinks resolve correctly (`cat` through each directory
returns identical content)
- No code changes — only config/docs files affected
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added comprehensive command documentation and workflow guidance for
managing GitHub issues, pull requests, changesets, and CI/CD processes.
* Introduced structured command specifications for bulk issue
resolution, debugging workflows, and collaborative code review
processes.
* **Documentation**
* Added detailed instructions for conventional commits, PR creation,
linting fixes, and changelog management.
* Centralized command definitions across development tools.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Mastra Code (anthropic/claude-opus-4-6) <noreply@mastra.ai>
Adds `@mastra/opencode` — a plugin that brings Mastra Observational
Memory into [OpenCode](https://opencode.ai) sessions. Also enhances the
core `observe()` API to support external integrations.
The plugin hooks into OpenCode's lifecycle to automatically observe
conversations, inject compressed observations into the system prompt,
and discard already-observed messages — keeping context lean as
conversations grow.
```ts
// .opencode/mastra.json
{ "model": "google/gemini-2.5-flash", "scope": "thread" }
```
```ts
// Standalone observe() with external messages and lifecycle hooks
await om.observe({
threadId,
messages: externalMessages,
hooks: {
onObservationStart: () => showToast('Observing...'),
onObservationEnd: () => showToast('Done!'),
},
});
```
Core `@mastra/memory` changes: `observe()` now takes object params
(breaking), accepts external messages without double-storing, includes
threshold checks, and exports `OBSERVATION_CONTEXT_PROMPT` /
`OBSERVATION_CONTINUATION_HINT` for reuse by integrations.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* OpenCode plugin integration for Observational Memory with session
wiring and status reporting
* Standalone observe() API that accepts external messages and lifecycle
hooks
(onObservationStart/onObservationEnd/onReflectionStart/onReflectionEnd)
* New public observation helpers and prompts for injecting observations
and continuation hints
* Progress/status tools and a memory observations command plus an
example standalone observe script
* **Breaking**
* observe() signature changed to an object parameter: update calls to
use { threadId, resourceId, messages, hooks }
* **Tests**
* Added test suite covering the standalone observe() API and hook
behavior
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
Co-authored-by: Mastra Code <noreply@mastra.ai>
The Convex threads table schema was missing the `title` field, causing
this error when creating threads:
```
Error: Failed to insert or update a document in table "mastra_threads"
because it does not match the schema: Object contains extra field `title`
that is not in the validator.
```
The root cause was that the Convex schema was hardcoded and got out of
sync with the core `TABLE_SCHEMAS`. This happened because importing from
`@mastra/core/storage` pulls in Node.js dependencies that break in
Convex's sandboxed schema evaluation environment.
The fix adds a new `@mastra/core/storage/constants` export path that
only includes schema constants without Node.js deps. The Convex schema
now dynamically builds from `TABLE_SCHEMAS`, so it stays in sync
automatically.
Also added schema sync tests to catch drift early.
Fixes#11319
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Fixed a schema mismatch in the Convex threads table that prevented
inserts/updates.
* **New Features**
* Dynamic schema construction aligned with core storage constants to
keep table definitions in sync.
* Public exports added for mastraThreadsTable and mastraMessagesTable
(and related table name constants) for easier integration.
* **Tests**
* Added schema synchronization tests to detect missing fields between
core schemas and Convex tables.
* **Documentation**
* Added contributor workflow and PR guidance docs and a build/config
helper.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->