Files
OpenViking/examples/trae-memory-hooks
t0saki 6f10e26361 perf(plugins): batch add-message writes and shared async detach across memory plugins (#3261)
* Batch add-message writes across memory plugins

* fix(plugins): stop batch enqueue at first failure and bump plugin versions

Keep pending-queue entries a contiguous prefix when a mid-stream enqueue
fails: consumers mark the first sent+queued payloads as captured, so a
queued entry after a gap could silently drop the gapped message.

Bump claude-code 0.4.3, codex 0.7.3, opencode 0.2.3, cursor/trae 0.1.2 so
existing installs pick up the batch write path.
2026-07-15 18:20:10 +08:00
..

OpenViking Memory Hooks for TRAE

This package provides dedicated TRAE and TRAE CN lifecycle adapters. It does not reuse Claude Code transcript parsing: TRAE capture reads prompt, text_content, and last_assistant_message from the Stop event and stores sessions with tr- or trcn- prefixes.

Its PreToolUse guard prevents viking:// virtual paths from being passed to local file or shell tools and points the Agent back to OpenViking MCP tools.

Use the shared installer:

bash examples/memory-plugin-shared/install.sh --harness trae,trae-cn

See the TRAE integration guide.