auto-skill-build-memsearch-codex-memory
Skill3 starsChanged 7 months agoMITView on GitHub
Use memsearch as an on-demand semantic index for project markdown memory (search → expand → optional deep drill). Use when the user asks to recall past decisions, prior debugging, or “have we seen this before?” and a `.memsearch/memory/` store exists (or the user wants to set one up). Skip when the question is only about current code state (use Read/Grep) or when the user explicitly does not want semantic indexing / installs.
- Pipes a download into a shell
In this repository30 other files it gives its agents.
- agent-memory-ledgerSkill
- agent-observabilitySkill
- automation-skill-forgeSkill
- auto-skill-audit-codex-supercharge-installed-driftSkill
- auto-skill-build-agent-reliability-loopSkill
- auto-skill-build-agent-run-ledger-dashboardSkill
- auto-skill-build-mcp-conformance-harnessSkill
- auto-skill-build-source-pattern-synthesisSkill
- auto-skill-build-sources-inventorySkill
- auto-skill-build-supercharge-feedback-loopSkill
- auto-skill-ops-supercharge-maintenance-passSkill
- auto-skill-safety-external-skill-intakeSkill
- auto-skill-safety-mcp-secret-guardSkill
- auto-skill-trend-github-discovery-radarSkill
- codebase-graph-scoutSkill
- codex-prompt-template-builderSkill
- codex-supercharge-routerSkill
- experiment-loop-runnerSkill
- low-token-contextSkill
- mcp-safety-reviewSkill
- mcp-server-labSkill
- model-cost-routerSkill
- openapi-to-mcp-skillSkill
- open-design-ui-librarySkill
- repo-intelligence-briefSkill
- repo-to-wikiSkill
- sandbox-source-intakeSkill
- skill-pack-factorySkill
- skill-quality-gateSkill
- workflow-launchpadSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Prefer .memsearch/memory/ if it exists.
- Very specific: line 24
If there is no .memsearch/memory/, fall back to $agent-memory-ledger and rg across .codex-memory/.
- Very specific: line 26
If memsearch is not installed, stop and ask the user whether they want to install it.
- Distinctive: line 43
If indexing fails because the ONNX embedding model needs a first-run download, either:
- Distinctive: line 48
Search for relevant chunks and expand the best hit:
- Very specific: line 55
If expand fails, read the source file directly using the source and line-range fields from JSON output:
- Distinctive: line 65
if nothing relevant: say so, and propose a tighter query
- Very specific: line 75
If memsearch exists: memsearch --version and a dry run search against a small collection.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
memsearch + Codex memory recall (on-demand)
Generated by: Codex Supercharge maintenance automation.
This skill is for manual recall using the memsearch CLI. It does not
install hooks or run upstream installers.
Reference notes: references/memsearch-codex-memory.md.
Preconditions
- Prefer
.memsearch/memory/if it exists. - If there is no
.memsearch/memory/, fall back to$agent-memory-ledgerandrgacross.codex-memory/. - If
memsearchis not installed, stop and ask the user whether they want to install it. Do not runcurl | shinstallers.
Workflow
- Confirm the memory store location:
PROJECT_ROOT/.memsearch/memory/(preferred)- otherwise
.codex-memory/+rgfallback
- Derive a stable project collection, then index memory when needed:
PROJECT_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
COLLECTION="$(plugins/codex-supercharge/scripts/derive_memsearch_collection.sh "$PROJECT_ROOT")"
memsearch index "$PROJECT_ROOT/.memsearch/memory" --collection "$COLLECTION"If indexing fails because the ONNX embedding model needs a first-run download, either:
- temporarily allow network access, or
- switch to a provider you already have configured (high-trust only).
- Search for relevant chunks and expand the best hit:
memsearch search "<query>" --top-k 5 --json-output --collection "$COLLECTION"
memsearch expand <chunk_hash> --collection "$COLLECTION"- If
expandfails, read the source file directly using thesourceand line-range fields from JSON output:
sed -n '<start_line>,<end_line>p' "<source>"- Return a curated summary:
- focus on decisions, constraints, prior fixes, and “why”
- cite the memory file/date (and heading if present)
- if nothing relevant: say so, and propose a tighter query
Skip when
- The task is purely about the current repo state (prefer Read/Grep/tests).
- The user asked to ignore memory or avoid semantic tools.
- There is no
.memsearch/memory/and the user does not want to create one.
Validation
- If
memsearchexists:memsearch --versionand a dry run search against a small collection. - Otherwise: ensure the fallback path uses
$agent-memory-ledger+rg. - Validate the helper with
plugins/codex-supercharge/scripts/derive_memsearch_collection.sh "$PWD".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

