This is a self-audit routine that checks whether Claude's workspace memory has been corrupted by hallucinations or bad state. It fires automatically after two consecutive task failures or runs as a nightly job around 3 AM. The grounding check is clever: it forces the auditor model (must be Opus 4.6) to run actual bash commands and paste verbatim output before reading any logs, which prevents it from confabulating about system state. If it detects poisoned entries, it quarantines them in MEMORY.md and pings the operator via Slack. Honestly feels like overkill for most use cases, but if you're running long-lived agents that make consequential decisions, having a higher-tier model periodically sanity-check the lower-tier model's memory seems reasonable.

GitHub stars
2.8K
last updated
May 28, 2026

Install

$ npx -y skills add open-gitagent/opengap --skill narco-check --agent claude-code

Installs into .claude/skills of the current project.

Files

Narco-Check — Memory Integrity Audit

When This Runs

  1. Failure trigger: 2 consecutive failures on the same task or tool
  2. End-of-day trigger: Nightly deep dive audit (~3 AM)

Audit Model

Must use openrouter/anthropic/claude-opus-4.6. Never run narco-check on a tier-0 or tier-1 model.

openclaw agent --model openrouter/anthropic/claude-opus-4.6 \
  --message "$(cat ~/.openclaw/workspace/skills/narco-check/audit-prompt.md)" \
  --mode now

5-4-3-2-1 Grounding Check

Run this first — before reading any logs. Anchors the audit in real system state.

5 — Run five commands, paste raw output verbatim:

date
hostname
df -h /
docker ps --format "table {{.Names}}\t{{.Status}}"
cat ~/.openclaw/workspace/HEARTBEAT.md | head -3

4 — Confirm four workspace files exist, paste first line:

head -1 ~/.openclaw/workspace/IDENTITY.md
head -1 ~/.openclaw/workspace/SOUL.md
head -1 ~/.openclaw/workspace/MEMORY.md
head -1 ~/.openclaw/workspace/HEARTBEAT.md

Sponsors

Details

Repository
github.com/open-gitagent/opengap
License
MIT
First seen
Jun 11, 2026

More from open-gitagent/opengap

All 18

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs