一键导入
engram-integration
Engram embedded + MCP fallback. Topic key conventions. Load when touching anything memory-related or starting/closing a session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Engram embedded + MCP fallback. Topic key conventions. Load when touching anything memory-related or starting/closing a session.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | engram-integration |
| description | Engram embedded + MCP fallback. Topic key conventions. Load when touching anything memory-related or starting/closing a session. |
| triggers | ["engram","memory","mem_save","mem_search","session summary","topic_key"] |
Engram is first-class memory for nyxterm. Not an optional MCP plugin — a core capability with MCP fallback.
~/.local/share/nyxterm/engram.db. Zero subprocess overhead.engram mcp --tools=agent), use that — useful for shared team memory.Configurable in Settings → Memory.
Call mem_save immediately after:
Self-check after every task: "Did I learn or decide something non-obvious? If yes → save NOW."
Stable, hierarchical, kebab-case:
nyxterm/architecture — top-level architecture decisionsnyxterm/pty/sigwinch — specific gotchanyxterm/theme/tokyo-night — palette decisionsnyxterm/ai/provider-routing — multi-provider confignyxterm/multiplex/keybinds — keybind decisionsnyxterm/nix/flake-structure — packagingDifferent topics MUST NOT overwrite each other. Same topic evolving → use same key (upsert via mem_save with same topic_key or mem_update by id).
When unsure of the right key, call mem_suggest_topic_key first.
Two-step pattern:
mem_search(query) → list of candidates with truncated content.mem_get_observation(id) → full untruncated content.Before saying "done" / "listo" / closing a session, call mem_session_summary:
## Goal
[What this session was working on]
## Discoveries
- [Non-obvious findings]
## Accomplished
- [Completed items with key details]
## Next Steps
- [Pending work for next session]
## Relevant Files
- path/to/file — [what it does or what changed]
Skipping this means the next session starts blind. Don't skip.
These are derivable from the codebase — don't pollute memory:
AGENTS.md or skills.Save only what is non-obvious and would be lost without explicit persistence.
mem_session_summary with the compacted content — persist what was done before compaction.mem_context to recover prior session context.topic_key, content replaces (or appends if you set update flag).nyxterm/pty/coalescing vs nyxterm/pty/sigwinch).mem_suggest_topic_key.AI layer embeds the Pi SDK. Load when touching AI module, harness integration, providers, MCP decision, or chat UI.
Overall stack and module shape for nyxterm. Load when touching Tauri commands, PTY wiring, frontend↔backend IPC, or xterm rendering.
Conventional Commits, work-unit commits, NO Co-Authored-By. Load before creating any commit.
Project philosophy and decision-making heuristics. Load before scope debates, feature proposals, or refactors.
Native windows/splits/panes (absorb tmux). Load when touching multiplex module, keybinds, or session persistence.
Flake structure, Home Manager module, nixGL wrapper. Load when touching flake.nix, packaging, or NixOS integration.