/Aicoo Agent Skills:raw-memoryfrom Aicoo Agent Skills
Enables and manages automatic capture of completed Claude Code / Codex sessions into encrypted, immutable Aicoo Notes Raw records via the @aicoo/raw-memory collector.
Ships in Aicoo Agent Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You help the user enable and manage the Raw Memory collector (@aicoo/raw-memory on npm).
Once enabled, completed Claude Code and Codex sessions are captured into encrypted, immutable
Notes Raw records in Aicoo — automatically, on session end.
Explain the model to the user in one or two lines when relevant:
enable authorizes the device and installs SessionEnd hooks for Claude Code and Codex.PATHnode --version # need >= 18
gitleaks version 2>/dev/null || echo "MISSING gitleaks — brew install gitleaks (macOS)"
No API key is required: enable uses browser authorization. If AICOO_API_KEY (or legacy
PULSE_API_KEY) is exported it is used instead of the browser flow — the right path for
headless/remote machines.
npx @aicoo/raw-memory enable
Optional flags: --name "<device name>" (default: hostname), --base-url <url> or
AICOO_BASE_URL env (default https://www.aicoo.io/).
What happens, and what you must do:
Browser authorization (when no API key env var is set): the CLI prints
Open this URL to authorize Raw Memory: followed by a URL on stderr, and tries to
auto-open the browser. Relay that URL to the user as a clickable link — the
auto-open can fail. The user approves in the browser; the CLI polls for up to 10 minutes
and the link expires after that — so relay it immediately and ask the user to approve
right away. Do NOT send the user to register elsewhere or hunt for an API key.
On success the CLI prints one line of JSON on stdout:
{"command":"enable","enabled":true,"deviceId":"…","recoveryCode":"…","recoveryCodeStatus":"created","recoveryCodeCommand":null}
Recovery code (critical) — if recoveryCode is non-null (first enrollment for this
account), show it to the user once and tell them to store it outside this
computer (e.g. a password manager). It is the only way to recover encrypted records if
the device keys are lost. NEVER write the recovery code into notes, memory files,
Aicoo, or anything persistent. If recoveryCodeStatus is "existing", account keys
already exist and no new code is shown — it can be rotated with recovery-code below.
Codex requires reviewing and trusting the newly installed hook from /hooks before its
first run. Claude Code needs no extra step; the hook is active for new sessions
(the session that ran enable was already started, so it may not be captured).
npx @aicoo/raw-memory status
# → {"command":"status","configured":true,"enabled":true,"deviceId":"…"}
Server-side check (requires auth — OAuth token or AICOO_API_KEY):
curl -s "https://www.aicoo.io/api/v1/raw-memory/devices" \
-H "Authorization: Bearer $AICOO_API_KEY" | jq .
The enrolled device should be listed. The user can also see the device (and manage it) in Aicoo Settings → Integrations → Raw Memory. For an end-to-end test: finish a short session, then confirm a new Notes Raw record appears.
npx @aicoo/raw-memory status # local collector state
npx @aicoo/raw-memory disable # remove hooks, delete stored credential, stop capture
npx @aicoo/raw-memory recovery-code # rotate: prints a NEW code, the old one stops working
recovery-code output goes through the same handling as Step 1: show once, store outside
this machine, never persist.
Revoke a device server-side (e.g. a lost laptop):
curl -X DELETE "https://www.aicoo.io/api/v1/raw-memory/devices/{deviceId}" \
-H "Authorization: Bearer $AICOO_API_KEY"
| Symptom | Cause / fix |
|---|---|
Enable fails, gitleaks not found | Install Gitleaks (brew install gitleaks), re-run enable |
Raw Memory collector belongs to another account | Device was enrolled under a different Aicoo account — run disable first, or sign in as the original account |
| Browser never opens | Use the URL the CLI printed; on headless boxes export AICOO_API_KEY and re-run |
| Authorization link expired | Pairing links are single-use with a ~10-minute window — relay the URL the moment it prints and have the user approve right away; re-run enable for a fresh link |
Enable fails in a sandboxed agent (e.g. Codex): network blocked, or EACCES on ~/.npm | Sandbox restrictions, not this machine. Run from a normal terminal, or allow network and point npm's cache inside the workspace: npm_config_cache=./.npm-cache npx @aicoo/raw-memory enable |
| A session didn't upload | Fail-closed by design (redaction/encryption/signing failed), or the retry queue is backing off — check status, don't force anything |
| Codex sessions not captured | Hook not trusted yet — run /hooks in Codex and approve it |
| No Raw Memory card in Settings | Deployment may be behind; the CLI path above still works |
enable is idempotent for the same account/device — safe to re-run after partial failures.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/autonomous-syncUse this skill when the user wants to keep their Aicoo agent updated automatically, set up scheduled syncs, configure triggers for knowledge updates, use CRON jobs, /loop commands, file watchers, or hooks to push changes to Aicoo. Triggers on: 'auto sync', 'keep updated', 'schedule', 'CRON', 'loop', 'trigger', 'watch files', 'auto update', 'periodic sync', 'hook', 'autonomous'./build-memoryUse this skill when the user wants to build, refresh, or teach their Aicoo agent memory from their real context — files, repo, git history, docs, or Claude/agent memory. Triggers on: 'build my memory', 'build my agent memory', 'teach my agent about me', 'what should my agent know', 'update my memory', 'refresh memory', 'import my context', 'sync my knowledge', 'make my agent know me', 'ingest my repo'./check-messagesUse this skill when the user wants to see messages their Aicoo agent received, check what people asked, review conversation history, or see agent inbox activity. Triggers on: 'check messages', 'check my messages', 'what did my agent receive', 'who talked to my agent', 'agent inbox', 'show conversations', 'any new messages', 'what did people ask', 'agent activity', 'conversation history'./compile-identityUse this skill when the user wants to hand a session off to another agent, share their working context, compile a session into something another agent can read, write a POSITIONS file, record which decisions were overruled, prepare a handoff folder, or measure whether a shared folder actually transfers their judgment. Triggers on: 'hand this off', 'share my context', 'compile this session', 'POSITIONS.md', 'what did we decide', 'another agent needs to pick this up', 'agent handoff', 'make this readable by another agent'./connect-local-agentUse this skill when the user wants to make THIS machine's coding agent reachable for live agent-to-agent collaboration — start the Aicoo local-agent bridge so paired peers can send requests to their running Claude Code / Codex, with per-tool owner approval. Triggers on: 'connect my local agent', 'start the bridge', 'make my agent reachable', 'set up local agent', 'local agent collaboration', 'let others reach my agent', 'run the Aicoo bridge', 'connect this device', or after the in-app 'Set up your local agent' prompt. NOTE: this is the RECEIVING side (be reachable); to CONTACT someone else's agent use talk-to-agent./context-syncUse this skill when the user wants to upload files to Aicoo, sync context, add knowledge to their agent, update what their agent knows, push local files to Aicoo, search or read existing notes, browse folders, or accumulate context. Triggers on: 'sync files', 'upload to Aicoo', 'add context', 'update my agent', 'search my notes', 'what does my agent know', 'list folders', 'browse workspace', or wanting their shared agent to know about specific files, projects, or topics.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: name: Plugin name cannot contain spaces. Use kebab-case (e.g., "my-plugin"), author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job