cortex-memory

cortex-memory is a skill for Claude Code from FilippoPilo/cortex-connector. It costs 55 tokens per session (1,129 once invoked), scanned A, original, MIT.

A memory protocol for AI assistants connected to Cortex, a service identified as skynetlab-cortex.com. It requires the assistant to consult Cortex before answering about the user's work, projects, decisions, or preferences, and to save durable information.

In plain words
What is it for?
Use it in sessions where the Cortex connector is available and work-related context must be consulted or retained.
Why use it?
It gives the assistant a defined way to use stored context across work-related conversations. The input is cut off, so the full saving rules are not available.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cortex-semantic-memory plugin — 1 skill shipped together

Good fit Use it in sessions where the Cortex connector is available and work-related context must be consulted or retained.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/filippopilo/cortex-connector/cortex-memory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FilippoPilo/cortex-connector --skill cortex-memory
Clone the repo
git clone --depth 1 https://github.com/FilippoPilo/cortex-connector

Made for: Claude Code.

Or install cortex-semantic-memory, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cortex-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/filippopilo/cortex-connector/cortex-memory/github.svg)](https://agentmods.dev/skills/filippopilo/cortex-connector/cortex-memory)
Your own site
<a href="https://agentmods.dev/skills/filippopilo/cortex-connector/cortex-memory"><img src="https://agentmods.dev/badge/skills/filippopilo/cortex-connector/cortex-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cortex-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/filippopilo/cortex-connector/cortex-memory"><img src="https://agentmods.dev/badge/skills/filippopilo/cortex-connector/cortex-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,129 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01129
Opus 5.5 $0.00022 $0.00452
Sonnet 5.5 $0.00011 $0.00226
Haiku 4.5 $0.00006 $0.00113

Measured yesterday against content hash e8f24200f8ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cortex-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cortex-semantic-memory/skills/cortex-memory/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cortex-memory

You are connected to Cortex, this user's persistent memory. It survives between conversations: what you save here you will find again in a week, in another chat, even in another AI. These instructions are the cortex-memory protocol, version 1.2-2026-09. The full version is at https://skynetlab-cortex.com/skill

Act without waiting for the user to name Cortex:

  • Before answering, call search when earlier context could help with the user's work, decisions or stable preferences. Skip it when this chat has enough context or the question is general.
  • Call cortex_write on your own initiative when the user states a lasting decision, a stable preference or a useful project fact. Honor opt-outs; leave out sensitive, confidential, speculative or transient information. Ask only when genuinely unsure.
  • If a retrieved memory informs the reply, briefly name Cortex as the source. Report the actual save outcome and say saved only when the tool confirms it. Do not claim use on a miss or an error.

Tell the user, once

At the start of the first conversation after the connection, in their own language and in one short line: you are connected to Cortex, you will save on your own what looks worth keeping, and they can ask you to remember or to save something at any time, except passwords and other credentials, health information and other sensitive personal data, which are never saved. Say it once, not at every message, and never again in later conversations.

The five rules

  1. Look before you answer. Call search first when the user picks up earlier work, mentions their own projects, clients, team or plans, or asks anything that depends on who they are or on what you did together before. Skip it for general questions and when everything needed is already in the conversation. Not searching when it matters is the most common way to waste this memory: the user should not have to repeat themselves.

  2. Save before you are asked. With cortex_write, while the conversation goes on: decisions and the reason behind them, stable facts about the person and their work, preferences and constraints they state, conclusions reached after effort, mistakes made and what they cost. A good memory is one that will still be useful in a month. When the whole memory refers to one explicit date, pass it as event_time (the day it happened or was measured, never today and never guessed): it helps distinguish changes over time from contradictions. Proposing costs nothing: the filter rejects duplicates by itself. Tell the user in a few words what the tool returned (saved, queued, already present or refused), so they can always answer "do not keep that".

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -35 lines · -48 tokens per session e8f24200f8ab
  2. 2mo ago Changed · +10 lines 1a26d009b61e
  3. 3mo ago First seen · 113 lines · 103 tokens per session scan A 992e83e415ac

Subscribe to this mod's changes

cortex-memory is a skill published in the GitHub repository FilippoPilo/cortex-connector (2 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,129 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

cortex-memory compared with skills from other repositories

cortex-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cortex-memoryFilippoPilo/cortex-connectorSkill2yesterdayMITA55Claude Code
alice-memorysamrusani/AliceMemorySkill72d agoMITA28Claude Code, Codex
alice-project-memorysamrusani/AliceMemorySkill72d agoMITA33Claude Code, Codex
alice-continuity-recallsamrusani/AliceMemorySkill72d agoMITA34Claude Code, Codex
alice-correction-loopsamrusani/AliceMemorySkill72d agoMITA26Claude Code, Codex
alice-resumptionsamrusani/AliceMemorySkill72d agoMITA23Claude Code, Codex
memory-recallourmem/omemSkill1756mo agononeA27Claude Code