Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

multiagent-memory-setup

Skill by topoteretes

Imports your Claude Code and Codex session history into one cognee dataset so you can ask questions over past coding work. It is for developers who want several coding agents to share one memory of earlier sessions.

  • Score 91
  • 34k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install multiagent-memory-setup

Built from the published package, never by AI.

git clone --depth 1 https://github.com/topoteretes/cognee /tmp/cognee && mkdir -p ~/.claude/skills && cp -r /tmp/cognee/.agents/skills/multiagent-memory-setup ~/.claude/skills/multiagent-memory-setup

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install multiagent-memory-setup in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill loads a user's previous Claude Code and Codex sessions, meaning the prompts they typed and the agents' answers, into one cognee dataset named imported_agent_sessions. It first checks which coding agents are installed and how many sessions each has kept. The user then chooses the agents and projects to import, and the skill answers questions over all of them or over each agent separately.

The skill runs locally and reads ~/.claude and ~/.codex in read-only mode. It needs one LLM key, and every imported session is sent to the provider of that key. A demo mode uses sample sessions for a made-up web shop instead of the user's own history. The skill is for people who want to backfill or search their earlier coding-agent sessions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Find installed agentsChecks which coding agents are installed and how many sessions each one has kept.
  • Import sessionsLoads chosen agents' sessions into the imported_agent_sessions cognee dataset.
  • Filter by project or dateLimits the import with project paths, a --since date and a session limit.
  • Ask across agentsAnswers a question over all imported sessions, with one answer per agent when two are chosen.
  • Ask laterRuns new questions over the existing dataset without importing again.
  • Demo modeImports sample Claude Code and Codex sessions for a made-up web shop.

What you need

  • One LLM key: LLM_API_KEY, OPENAI_API_KEY or ANTHROPIC_API_KEY
  • Claude Code and/or Codex session history on the machine
  • uv to run the cookbook scripts

Try asking

  • Import my Claude Code sessions from this project and ask what I worked on.
  • Ask my imported Codex sessions what I changed in the login code.
  • Which of my earlier coding sessions covered database migrations?

Good to know

  • Claude desktop chats, Cursor's own agent and ChatGPT are not imported.
  • Every imported session is sent to the LLM provider of the key cognee runs on.
  • Redaction only catches common key formats and secret-named values.
  • Clearing the dataset with --clear forgets everything it holds.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/multiagent-memory-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to multiagent-memory-setup

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

multiagent-memory-setup: common questions

Does this change my Claude Code or Codex history?

No. It reads ~/.claude and ~/.codex read-only and writes only to cognee's memory.

Can I import only one project?

Yes. Pass one --project path per chosen project, or leave it out to import all projects.

Do I need to re-import to ask new questions?

No. Later questions run over the existing dataset with the ask.py script.

How do I install multiagent-memory-setup?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is multiagent-memory-setup free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is multiagent-memory-setup safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to multiagent-memory-setup?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

multiagent-memory-setup Install

Add to stack

Loading.