get_recent_context
Recover lost session context after restart
How to use it
get_recent_context is exposed by the Piia Engram MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_recent_context tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Piia Engram
claude mcp add piia-engram -- piia-engram-mcpOther tools in Piia Engram (39)
Record a key decision with reasoning
Store a reusable lesson learned
Record an operational playbook (multi-step procedure with trigger keywords)
Archive a lesson or decision by ID
Owner-only confirmation stamp via human, test, or anchor provenance
Run memory system self-diagnosis
Extract lessons and decisions from session text
Optional local integration: look up a registered local tool by name
Read a human-friendly project timeline for a day
List key decisions; threadseedid / historyquestion reconstruct decision threads and revision history
Owner-gated export: write and return a Markdown identity card for non-MCP tools
Read identity facets via facet: profile, preferences, trustboundaries, workstyle, qualitystandards, domains, or all
Build cross-project knowledge starter pack
List reusable lessons learned
Playbook reads via mode: list, get (full content), recent, management (incl. archived/deleted metadata)
Read a saved project snapshot
Return one structured identity + recent activity + relevant knowledge recall payload
Find knowledge relevant to current project
Build a cross-session/cross-tool resume brief
Startup — Load identity + knowledge at session start (supports tokenbudget for context size control)
Parse free-form notes into structured knowledge
Browse saved session records across tools
List saved project snapshots
Optional local integration: list registered local tools (optionally filter by category)
Playbook lifecycle via action: update, archive, delete, restore (mutations stay confirm-gated)
Writeback — Unified write endpoint: routes to addlesson / adddecision / addplaybook by kind
Owner-only repo scan: create staging repo-fact candidates from anchors
SOUL.md / MEMORY.md / USER.md import and export
Guided execution via action: prepare a step plan, updatestep, status rollup (passive reference; no auto-execution)
Advanced owner-gated preview: build safe-context, freshness/conflict, replay, or evidence proposals without applying changes
Refresh local quickcontext.md snapshot for offline/cross-tool use
Optional local integration governed write: register a local tool, runtime, or CLI to the environment map
Save AI session checkpoint (also runs automatically)
Persist project state for future sessions
Retrieval — Search lessons, decisions, and playbooks (supports filtersjson for domain/tier/date filtering)
Update profile, preferences, or quality standards
Update a lesson or decision by ID
action: get / save / compare the AI-maintained user portrait
Session end — Save insights + sync at session end