Cross agent memory
Skill VladimirGutuev/cross-agent-memory/skills/cross-agent-memory
Maintain broad, verified, client-neutral project memory across Claude Code, Codex, Kimi Code, Antigravity, and other coding-agent harnesses while preserving each client's native or auto-memory. Use when an agent must understand repository history, architecture, feature outcomes, decisions and rationale, reusable lessons, or memory drift; or when durable knowledge must be promoted, reconciled, consolidated, retired, or audited. Do not use for unfinished-work transfer; use cross-agent-handoff instead.From its SKILL.md
npx -y skills add VladimirGutuev/cross-agent-memory --skill cross-agent-memoryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.2 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
Cross-Agent Memory
Let every harness keep its own model-optimized native memory while all agents share one verified, repository-owned understanding of the project. Never merge or mirror proprietary native-memory stores.
Keep the shared memory broad but retrieval narrow
The shared layer may contain:
- semantic knowledge: architecture, system maps, integrations, feature behavior;
- distilled episodic knowledge: verified outcomes, incidents, and failed approaches;
- reflective knowledge: decisions, rationale, patterns, and reusable lessons.
Keep mandatory procedural rules in the repository's agent instructions. Keep raw session history and client-specific preferences in native memory.
MEMORY.md is a routing index, not the whole memory. Read only the topic files
needed for the task. Do not collapse the complete memory into startup context.
Choose the operation
- Recall: route through the index and load relevant durable context.
- Promote: verify a new candidate and add it to shared memory.
- Reconcile: correct drift, conflicts, or changed facts.
- Consolidate: link, split, merge, and synthesize topics without losing evidence.
- Retire: mark obsolete knowledge historical or superseded.
- Audit: validate structure, freshness, evidence, routing, and secret hygiene.
Unfinished work is not durable memory. For an explicit transfer or continuation
of work in progress, invoke cross-agent-handoff. Do not enumerate or open
handoffs during a new, unrelated task.
Resolve truth and scope
- Read the repository's agent instructions first.
- Use the shared-memory path named there. Otherwise look for
docs/agent-memory/MEMORY.mdfrom the Git root. - Do not invent or probe another client's native-memory path.
- If no shared layer exists, continue from repository instructions and live evidence. Create one only when project changes are authorized.
For mutable facts use:
- live code, Git, tests, CI, APIs, databases, or production evidence;
- shared project memory;
- the current client's native or auto-memory.
When sources disagree, verify reality before acting. Treat native-memory claims as candidates, never as silent authority.
Initialize only when requested
If the repository has no shared layer and project changes are authorized:
- inspect existing repository instructions and privacy boundaries;
- create
docs/agent-memory/MEMORY.md,topics/,handoffs/active/, andhandoffs/archive/; - give the index
type: index, a concise trust order, links to every topic, and anActive handoffsblock containing the exact marker pair from the handoff schema with- None.; - create at least one narrow, verified topic from the topic template;
- route repository instructions to the shared index while keeping normative rules in those instructions;
- run the memory validator and, if handoff directories are enabled, the separate handoff validator.
Do not import a native-memory dump. Promote only reviewed knowledge that belongs in the repository.
Recall
- Inspect repository root, worktree, branch, HEAD, and dirty state.
- Read the compact
MEMORY.mdindex. - Select topics from their routing descriptions, paths, and links.
- Read selected topics completely.
- Re-verify high-volatility or stale claims before relying on them.
- Report mismatches instead of blending incompatible versions.
Prefer deterministic index routing first. Use repository search for ambiguous queries. Treat any semantic or vector index as a derived fallback, never the source of truth.
Promote
Promote only knowledge that multiple future agents will need, such as:
- a durable owner or architecture decision;
- a verified feature merge, release, or behavior change;
- a costly incident with a reusable prevention lesson;
- a stable system map or integration boundary;
- a corrected belief that would otherwise cause repeated mistakes.
Read references/memory-schema.md, verify the candidate, then update the narrowest existing topic or create one from assets/topic-template.md. Add an index entry only for a new topic.
Do not promote temporary plans, speculative diagnoses, command transcripts, full logs, broad inventories, secrets, or cheaply derivable facts.
Reconcile
- Re-read the current index and target topic to preserve concurrent edits.
- Verify the disputed or changed fact with the strongest available evidence.
- Preserve dated context when it explains an important decision.
- Update
last_verifiedandverified_against. - Mark uncertainty explicitly when current verification is unavailable.
- Repair the shared entry; do not resolve conflicts by voting between memories.
Consolidate
Consolidate after meaningful growth or during a scoped maintenance audit:
- merge near-duplicate topics;
- split topics whose domains or concurrent owners have diverged;
- add useful links between related decisions, incidents, and systems;
- synthesize repeated evidence into a concise reusable conclusion;
- keep trace-back to the detailed topic and evidence;
- remove duplicate index prose without hiding reachable knowledge.
Do not repeatedly summarize summaries. Preserve source topics or dated history when further compression would make the result unverifiable.
Retire
- Use
historicalfor a useful dated checkpoint that must be re-verified. - Use
supersededwhen a named replacement exists. - Link the replacement and state what changed.
- Remove obsolete claims from active routing, but preserve evidence that explains past decisions or prevents repeated mistakes.
- Never keep a known-invalid fact active merely because it was once correct.
Audit
Check:
- every topic is reachable from the index;
- routing descriptions say when to read the topic;
- metadata, links, evidence locators, and replacement pointers are valid;
- high-volatility topics have recent verification or an explicit stale warning;
- duplicates and contradictions are resolved or recorded;
- no secrets, unnecessary personal data, or client-native absolute paths exist;
- a representative set of repository questions routes to the expected topics without loading the entire memory tree.
Run:
pwsh -NoProfile -File `
.agents/skills/cross-agent-memory/scripts/validate-memory.ps1
On Windows PowerShell 5.1, use powershell -ExecutionPolicy Bypass instead of
pwsh -NoProfile.
Work safely with concurrent agents
- Keep topics domain-scoped.
- Re-read a topic immediately before editing it.
- Preserve unrelated entries and user changes.
- Prefer a new dated historical note over rewriting evidence.
- Reconcile after durable events, not after every message or on a blind timer.
What ships with it: 14 files
100.8 KB alongside SKILL.md, 5 of them executable
agents/
- openai.yaml219 B
assets/
- topic-template.md499 B
references/
- benchmark-schema.md5.0 KB
- decision-benchmark.md5.3 KB
- incident-ledger.md2.9 KB
- index-anchors.md3.2 KB
- memory-schema.md6.0 KB
- rediscovery-report.md4.0 KB
- usage-report.md3.6 KB
scripts/
- estimate-rediscovery.ps1runs17.8 KB
- report-memory-usage.ps1runs16.1 KB
- run-benchmark.ps1runs16.7 KB
- sync-index-anchors.ps1runs7.0 KB
- validate-memory.ps1runs12.7 KB