# Agent debug memory

> Agent debug memory is an open-source agent skill for knowledge and memory. Has the agent check Noosphere shared debugging memory before fixing bugs and upload. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JinNing6/Noosphere/tree/main/shared_skills/active/agent-debug-memory
- **Repository:** https://github.com/jinning6/noosphere
- **GitHub stars:** 18
- **License:** Apache-2.0
- **Skill name:** agent-debug-memory
- **Collection:** https://github.com/JinNing6/Noosphere
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill tells a coding agent to treat Noosphere, a shared memory layer, as a first stop when a failure shows up. Before changing code, the agent builds a focused query from the exact error text, stack frame, failing command or test, and the relevant framework, runtime or environment, then calls the Noosphere MCP tool consult_noosphere, optionally with topic tags. Any returned fragments are treated as leads to check against the local codebase, official documentation and runnable reproduction steps rather than as established answers.

The workflow also covers the fix itself and what happens afterward. The agent is asked to prefer the smallest complete fix for the verified root cause and to avoid copying a fragment when the local versions or data flow differ. Once a fix is verified and the user explicitly approves the external write, the agent can upload a concise memory via upload_consciousness, typed as a warning, pattern or decision, that records the symptom, root cause, fix, verification evidence and environment details. Secrets and private data are to be kept out of tool calls and uploads.

Using the memory requires the Noosphere MCP server to be configured in the agent's environment. Reading the public registry works anonymously, but uploading requires a GitHub token in that MCP environment. The skill also expects the agent to run local verification before declaring a fix complete, or to state clearly what could not be run.

## When your agent uses it

> Use when debugging code, tests, builds, deployments, CI failures, runtime errors, framework issues, API migrations, or UI state bugs where a coding Agent should consult Noosphere shared memory before fixing and upload the verified lesson afterward.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/agent-debug-memory)
- [License: Apache-2.0](https://github.com/JinNing6/Noosphere/tree/HEAD/shared_skills/active/agent-debug-memory)

## Features

- **Shared memory lookup:** Queries Noosphere for prior fragments about a failure before the agent edits any code.
- **Query construction guidance:** Explains which details to extract from an error, such as stack frames, commands, and environment versions.
- **Verification before reuse:** Requires checking any retrieved lead against the local codebase, docs, and reproduction steps.
- **Verified lesson upload:** Describes uploading a distilled warning, pattern, or decision memory after an approved, verified fix.
- **Secret handling rules:** Keeps credentials, tokens, customer data, and private code out of tool calls and uploaded memories.

## Good for

- Find out whether a known fix exists for a failing CI build
- Debug a React or Vite runtime error using past shared memory
- Check a framework API migration issue before patching it
- Record a verified fix for a flaky test as a reusable memory
- Investigate a deployment failure with environment details captured

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/agent-debug-memory` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-debug-memory &&
cp -R "$tmp/shared_skills/active/agent-debug-memory" ~/.claude/skills/agent-debug-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/agent-debug-memory` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/agent-debug-memory` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-debug-memory &&
cp -R "$tmp/shared_skills/active/agent-debug-memory" ~/.agents/skills/agent-debug-memory &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/agent-debug-memory` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/agent-debug-memory` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-debug-memory &&
cp -R "$tmp/shared_skills/active/agent-debug-memory" ~/.cursor/skills/agent-debug-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/agent-debug-memory` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/JinNing6/Noosphere.git --path shared_skills/active/agent-debug-memory
```

Or copy the folder to `~/.gemini/skills/agent-debug-memory` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agent-debug-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JinNing6/Noosphere.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-debug-memory &&
cp -R "$tmp/shared_skills/active/agent-debug-memory" ~/.copilot/skills/agent-debug-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/agent-debug-memory` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JinNing6/Noosphere.git
```

Then copy `Noosphere/shared_skills/active/agent-debug-memory` into your agent's skills folder as `agent-debug-memory`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to work?

The Noosphere MCP server must be configured in the agent's environment. Reading the public registry works anonymously, but uploading requires a GitHub token in that MCP environment.

### Does Agent debug memory upload memories automatically?

No. Uploads happen only after the fix is verified, the lesson is reusable, and the user explicitly approves the external GitHub write.

### Which tool does the agent call to look up past fixes?

It calls the consult_noosphere MCP tool with a query built from the failure, optionally with focused topic_tags.

### What kinds of memories can be uploaded?

Warnings for pitfalls and version traps, patterns for reusable fixes and workflows, and decisions for tradeoff-heavy engineering choices, sent with upload_consciousness.

### How do I install Agent debug memory in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-debug-memory to use it in all your projects, or to .claude/skills/agent-debug-memory in one project.

### Does Agent debug memory run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Agent debug memory?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Agent debug memory?

The closest alternatives to Agent debug memory are Upload debug memory, Using noosphere, Codebase memory MCP, Memory timing debugging and Agent architecture audit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Upload debug memory](https://ai-powered.com/skills/upload-debug-memory-jinning6): Upload debug memory is an open-source agent skill for knowledge and memory.
- [Using noosphere](https://ai-powered.com/skills/using-noosphere): Using noosphere is an open-source agent skill for developer tools.
- [Codebase memory MCP](https://ai-powered.com/skills/codebase-memory-mcp): Codebase memory MCP is an open-source agent skill for knowledge and memory.
- [Memory timing debugging](https://ai-powered.com/skills/memory-timing-debugging): Memory timing debugging is an open-source agent skill for knowledge and memory.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Dynamic shared skills](https://ai-powered.com/skills/dynamic-shared-skills): Dynamic shared skills is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Interactive debugging](https://ai-powered.com/skills/interactive-debugging): Interactive debugging is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/agent-debug-memory
