From pce-memory-plugin
Core pce-memory v2 workflow skill. Guides raw observe, distill/promote, intent-aware activate, feedback, rollback, and the narrow upsert escape hatch. Triggered by: 'memory workflow', 'activate context', 'record to memory', 'promotion pipeline'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pce-memory-plugin:pce-coreThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manages the v2 pce-memory workflow:
Manages the v2 pce-memory workflow:
observe -> distill -> promote -> activate(intent) -> feedback -> rollback
pce_memory_upsert still exists, but only as a narrow escape hatch for already-distilled durable knowledge.
Parse $ARGUMENTS:
activate [query] → Intent-aware recall modeobserve [text] → Raw micro-memory capturedistill [source ids or guidance] → Promotion candidate creationpromote [candidate-id] → Durable promotionrollback [claim-id] [reason] → Durable repair/supersessionupsert [kind] [text] → Escape hatch for already-distilled durable knowledgefeedback [claim-id] [signal] → Feedback modepce_memory_stateUninitialized, run pce_memory_policy_applyUse pce_memory_observe for raw inputs:
single_claim_v0.extract: { mode: "noop" } is only a compatibility knob and still preserves raw-only behavior.boundary_class: secret only in observe, never in upsert.{
"source_type": "chat|tool|file|http|system",
"content": "...",
"boundary_class": "public|internal|pii|secret",
"tags": ["..."],
"ttl_days": 7
}
Use pce_memory_distill to convert observations, claims, or an active context into a reviewable candidate.
source_observation_ids: Raw observations to abstractsource_claim_ids: Existing durable claims to refine or supersedeactive_context_id: Promote from a planned working setproposed_kind: fact | preference | task | policy_hintproposed_scope: project | principleproposed_memory_type: working_state | knowledge | procedure | normnote: Distillation hint for reviewersevidence is micro-only and cannot become a durable promoted claim.Use pce_memory_promote to accept a pending candidate and create a durable claim.
candidate_id is requiredprovenance.at is requiredreviewers and review_note are recommended, especially for macro/principle promotionrollback_token for later repair.Use pce_memory_activate as the task-facing recall planner.
The current API still uses scope and allow, and adds v2 planning controls:
{
"q": "...",
"scope": ["project", "principle"],
"allow": ["answer:task"],
"intent": "resume_task|debug_incident|design_decision|policy_check",
"kind_filter": ["task", "fact"],
"memory_type_filter": ["working_state", "knowledge"],
"include_observations": true,
"top_k": 10
}
intent tunes ranking for the task shape.kind_filter narrows recall before ranking.memory_type_filter narrows semantic memory classes before ranking.include_observations: true pulls transient micro observations into recall when short-term context matters."JWT auth token expiry" is better than "auth".resume_task: Use for branch/task recovery, often with kind_filter: ["task"] and memory_type_filter: ["working_state"]debug_incident: Use when recent evidence matters; often add include_observations: truedesign_decision: Bias toward durable design knowledge and procedurespolicy_check: Bias toward norms and policy hintsReport quality of activated durable knowledge with pce_memory_feedback.
claim_id from activated knowledgehelpful: Contributed to problem solvingharmful: Was incorrect, caused bugsoutdated: Information is staleduplicate: Same content exists in another claimpce_memory_feedbackUse pce_memory_rollback when a durable claim must be repaired or superseded without destructive mutation.
claim_idreasonprovenance.atUse pce_memory_upsert only for already-distilled durable knowledge when the full promotion pipeline is unnecessary.
scope: project)scope: principle)pce_memory_upsert_entity / pce_memory_upsert_relationentities and relations directly on pce_memory_upsert.{
"text": "The retrieval pipeline uses apps/pce-memory/src/store/hybridSearch.ts to expand queries with graph neighbors before reranking.",
"kind": "fact",
"scope": "project",
"boundary_class": "internal",
"memory_type": "knowledge",
"provenance": {
"at": "2026-03-25T00:00:00Z",
"actor": "claude"
},
"entities": [
{
"id": "ent_hybrid_search",
"type": "Artifact",
"name": "apps/pce-memory/src/store/hybridSearch.ts",
"canonical_key": "apps/pce-memory/src/store/hybridsearch.ts"
},
{
"id": "ent_query_expansion",
"type": "Concept",
"name": "query expansion",
"canonical_key": "query-expansion"
}
],
"relations": [
{
"id": "rel_hybrid_search_uses_query_expansion",
"src_id": "ent_hybrid_search",
"dst_id": "ent_query_expansion",
"type": "USES"
}
]
}
scope: session is rejected. Use pce_memory_observe for session-scoped working context.boundary_class: secret is rejected. Use pce_memory_observe for secret material.memory_type when known.provenance.at is required for project and principle writes.See workflow-patterns.md.
npx claudepluginhub caphtech/pce-memory --plugin pce-memory-pluginManages persistent memory for PACT agents: stores context, goals, lessons learned, decisions, entities; provides semantic search and graph-enhanced retrieval across sessions.
Implements CoALA memory architecture for Claude: stores working, episodic, semantic, procedural memories in filesystem for recall, reflection, learning across sessions.
Cross-host durable memory for AI agents using the ling-mem CLI. Maintains a three-tier model of who the user is across sessions and hosts (Claude Code, Codex, OpenClaw).