memory-status
Show MemPalace memory system status — drawer counts, wings, rooms, knowledge graph stats, and embedding model state.
- License 许可
- MIT
- 所属仓库
- dimetron/pi-go
- 最近更新
- 2026-11-15
- Stars
- ★ 224
- Forks
- 34
01 前言 Front Matter
- name
- memory-status
- metadata
- { "author": "dimetron", "version": "1.0" }
- description
- Show MemPalace memory system status — drawer counts, wings, rooms, knowledge graph stats, and embedding model state.
- user_invocable
- true
02 资源文件 5
- 参考文档_AIWF_IMPORT.json380 B
- 资产文件assets/repository-template.cs16.4 KB
- 资产文件assets/service-template.cs12.2 KB
- 参考文档references/dapper-patterns.md15.1 KB
- 参考文档references/ef-core-best-practices.md8.7 KB
03 SKILL.md 正文
When to use
Use this skill when the user wants to:
- Check the current state of the palace memory system
- See how many drawers, wings, and rooms exist
- Verify the embedding model is loaded
- View knowledge graph statistics (entities, triples, predicates)
- Diagnose palace issues or verify mining results
What it does
Runs pi memory status to display a comprehensive overview of the palace:
- Drawer count: Total knowledge units stored
- Wing count: Number of project namespaces
- Room count: Number of topical areas
- Model status: Whether the embedding model is loaded
- Knowledge Graph: Entity count, triple count (active vs total), predicates in use
- Wing details: Per-wing breakdown of drawers and rooms
Steps
- Run the status command:
# Default: looks for .pi-go/palace.db in current directory
pi memory status
# Specify a custom database path
pi memory status --db ~/.pi-go/palace.db
- If no palace database is found, suggest running
pi memory init . - Present the output to the user in a clear format
Arguments
The user can pass arguments after /memory-status:
--db <path>to specify a custom palace database path
Examples:
/memory-status— show status for current project/memory-status --db ~/.pi-go/palace.db— show status for global palace
Additional diagnostics
If the user needs deeper insight, chain with other commands:
# Search for specific knowledge
pi memory search "auth middleware"
# Check recent observations
pi memory recent
# View knowledge graph for an entity
pi memory kg query "pi-go"
# Show L0+L1 context that would be injected
pi memory wake-up
Notes
- If the palace DB doesn't exist, the command exits gracefully with instructions
- Model "not loaded" means semantic search falls back to FTS5 keyword matching
- Run
pi memory model downloadto enable semantic embeddings
04 同仓库更多 Skills
verify-session-flow
Formally verify the interactive session flow before or after changing it. Use when editing internal/tui/tui.go's handleKey, handleInterruptKey, handleInputSubmit, ctrlCCount or quitting, internal/tui/agent_loop.go's enqueuePrompt, submit, steerPrompt, cancelAgent or handleAgentDone, or the deferred-init splash — or when a user reports that Ctrl+C quit on the first press, that Esc did not stop a turn or a goal loop, that a queued prompt was lost when they canceled, or that the TUI hung on a spinner nothing could clear.
verify-run-pipeline
Formally verify the /run phase machine before or after changing it. Use when editing internal/tui/run.go's phase transitions (handleRunAgentDone, runGates result handling, verifyRunComplete, retryRun, reportGateHang, merge), internal/sop/verdict.go's Passed, or the checklist refresh — or when a run merged work it should not have, retried a hung gate, lost a cycle at the retry budget, or merged on a stale PASS.
verify-history-rewrite
Formally verify the session-history rewrite path before or after changing it. Use when editing internal/session/autocompact.go, internal/session/compaction*.go, internal/session/store.go's Compact/ClearEvents/rewriteEvents, internal/agent/agent.go's Run/RunStreaming/runPreTurn, or internal/tui/commands.go's clearConversation/clearSessionContext and the context gauge — or when a turn is canceled mid-flight, a tool call and its result get separated, a session's history disappears while the agent is still working, or the model is sent a tool result whose call was compacted away.
verify-goal-loop
Formally verify the /goal automatic loop before or after changing it. Use when editing internal/tui/goal.go, internal/tui/agent_loop.go's handleAgentDone/cancelAgent/steerPrompt, or internal/tools/goal.go's GoalController — or when a goal loop will not stop, stops one cycle early, closes a goal that is not met, or restarts a goal you finished.
verify-agent-lifecycle
Formally verify the subagent lifecycle before or after changing it. Use when editing internal/subagent/orchestrator.go's Spawn, trackAgent, forwardAgentEvents, terminalStatus, Cancel, ShutdownWithTimeout or evictCompletedAgentsLocked, or internal/subagent/pool.go — or when a canceled agent is reported as failed, an agent vanishes from the list with no verdict, the orchestrator panics on a pool release, or an agent can be canceled twice.
test-new-skill
暂无简介