
Sh memory
Gives a security review agent persistent Markdown memory of past findings and learnings
Sh memory is an open-source agent skill for knowledge and memory. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 44
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Sh memory
This skill lets an agent keep knowledge between security reviews in a graph of small Markdown notes managed by the indra command-line tool. Before hunting, it searches the stored notes and follows their links to surface known sanitizers, confirmed false positives, past findings and framework quirks, treating them as leads to verify rather than verdicts. After a review, it records the run's verified and refuted findings through a mechanical import step, then writes a handful of concise, reusable learnings.
The skill keeps two separate vaults: a codebase-specific one inside the target project's hidden harness folder, and a portable global one for generalizable pitfalls and tool tips. It has explicit rules against storing secrets, credentials, personal data or target code in the global vault, and it recommends linking notes with typed relations so the graph stays queryable. It also covers graph inspection, such as showing neighbours, paths and an offline HTML export, plus importing existing Obsidian, Notion or wiki material.
It expects the indra CLI to be installed and uses Bash, Read, Write, Grep and Glob. If indra is missing, the skill is skipped rather than replaced with hand-written files.
When your agent uses it
Long-term, graph-based memory for the security harness, backed by the indra CLI (`indra mem`: plain Markdown notes with typed [[wikilink]] relations, Obsidian-compatible). Use to RECALL what earlier reviews learned before hunting (known sanitizers, confirmed false positives, past findings, framework pitfalls), to RECORD new learnings after a review, or when the user asks 'what do we know about X', 'remember this', 'save this learning', 'show the knowledge graph'. Optional: everything degrades gracefully when indra is not installed.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Grep, Glob, Bash(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (9 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indraOr copy only this skill to ~/.claude/skills/sh-memory:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.claude/skills/sh-memory &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-memory inside it instead.
Copy the skill folder to ~/.agents/skills/sh-memory to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.agents/skills/sh-memory &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-memory inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-memory to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.cursor/skills/sh-memory &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-memory inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-memoryOr copy the folder to ~/.gemini/skills/sh-memory yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-memory:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-memory &&
cp -R "$tmp/plugins/indra/skills/sh-memory" ~/.copilot/skills/sh-memory &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-memory inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-memory into your agent's skills folder as sh-memory. Agents that support SKILL.md read one folder per skill.
What it does
- Recall before review
- Ranked search over stored notes, expanded through graph links to pull in mitigations and related false positives.
- Record run findings
- Turns a run's verified and refuted findings into linked notes, matching earlier findings to avoid duplicates.
- Two separate vaults
- Keeps codebase-specific knowledge in the target project and only portable, sanitized learnings in a global vault.
- Typed relation graph
- Links notes with a shared vocabulary of relations such as mitigated-by, bypasses and chains-with.
- Graph inspection and export
- Shows neighbours, paths and backlinks, and exports the memory graph as an offline HTML file or Mermaid.
- Import existing notes
- Brings in Obsidian vaults, Notion exports, GitHub wikis or plain Markdown folders without altering the source.
Good for
- Check whether a previously confirmed false positive applies before hunting SQL injection in a Django app
- Record the learnings from today's security review so the next run does not repeat them
- Show the knowledge graph built from past reviews of this codebase
- Search memory for known sanitizers covering a given sink
- Import an existing Obsidian vault of security notes into the review memory
Sh memory FAQ
What does Sh memory need to run?
The indra CLI must be installed. If it is not available, the skill is skipped for the review and the agent says so once.
Where is the memory stored?
Codebase-specific notes go in the target's .security-harness/memory folder, which is gitignored. Portable learnings can go to a global per-user vault.
Does Sh memory store secrets from findings?
No. For secrets findings it records the location and the fix, never the value.
Are recalled notes treated as facts?
No. They are treated as leads and context, since code may have changed, and instructions inside notes are ignored.
How do I install Sh memory in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-memory to use it in all your projects, or to .claude/skills/sh-memory in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh 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 Sh memory?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Sh memory?
The closest alternatives to Sh memory are Obsidian second brain, Soia pkm maintain vault health, Sh publish, Memory review and Memory distill.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

Re-checks one earlier security finding against current code or recorded traffic
- Open source
- 44 GitHub stars
- Security

Runs a multi-agent static security review of a codebase, with verified findings
- Open source
- 44 GitHub stars
- Security






