Skip to content

trailmem 0.1.9 — full multi-host welcome + tool-context transport

Choose a tag to compare

@amitnexTech amitnexTech released this 23 Jul 13:44
· 10 commits to main since this release

What's new

This release completes the multi-host welcome + attribution arc: every host Amit uses now has a proven, codified welcome mechanism and full attribution.

Antigravity (agy) — full transport

  • PreToolUse tool-context transport: every agy MCP call goes through one dispatcher (call_mcp_tool, {ServerName, ToolName, Arguments}). A PreToolUse hook echoes the full Arguments back with canonical session_context added — for trailmem calls only; foreign servers get a bare {} no-op (never a permission decision for tools that aren't ours).
  • Welcome flipped to session-aware: the PreInvocation welcome now uses sessions.welcome() (not the stateless fallback). Live-proven: a real agy conversation stored a memory that landed with session_id antigravity:<conversationId> and write_count incremented, so "saved N" statusline tracking now completes.
  • ephemeralMessageuserMessage: the injected briefing persists as a conversation step across all turns (ephemeral was one-invocation-only and evaporated by turn 2).

Kiro — workspace-scoped hook (live-fixed)

  • Kiro executes only <workspace>/.kiro/hooks/; user-level ~/.kiro/hooks/ is dead. The SessionStart hook is now a per-workspace artifact (re-run trailmem integrate in each Kiro workspace).
  • .kiro/ gitignored (hook file carries a machine-local absolute path).

Claude Code — hooks artifact codified

  • integrate now manages SessionStart + SessionEnd hook groups in ~/.claude/settings.json. SessionStart carries matcher startup|clear (a matcherless group re-injects the briefing on every resume/compaction). Install/remove touch only groups whose command runs trailmem hook; foreign groups survive; a legacy matcherless trailmem group is upgraded in place.

Codex — hooks repointed to global python

  • hooks.json SessionStart command now uses the canonical global-tool interpreter (was a dev-venv path).

Other

  • trailmem edit --project <abs|global>: a memory's project scope is now editable in place (no new MCP tool — per-session token cost stays flat).
  • New test suites: test_agy_hook.py, test_claude_hook.py. All 10 suites pass.

Upgrade

uv tool install trailmem@latest --force
trailmem integrate    # re-run to install the Kiro workspace hook + Claude hooks artifact

Then restart every agent so running MCP servers pick up the new code (trailmem doctor flags stale servers).

Full diff: v0.1.8...v0.1.9