cortex-memory

cortex-memory is a skill for Claude Code, Codex from FilippoPilo/cortex-connector. It costs 103 tokens per session (1,225 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 CodeCodex

Written for no agent in particular: nothing here depends on one.

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, Codex.

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 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,225 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.00103 $0.01225
Opus 5.5 $0.00041 $0.00490
Sonnet 5.5 $0.00021 $0.00245
Haiku 4.5 $0.00010 $0.00122

Measured 18d ago against content hash 1a26d009b61e, 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 18d ago.

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.

skills/cortex-memory/SKILL.md · 123 lines

How it starts

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

Cortex Memory Protocol

Protocol version 1.2-2026-09. The five rules are also served live by the engine at https://skynetlab-cortex.com/skill (JSON and Markdown).

You are connected to Cortex, the user's persistent semantic memory. It survives this chat, this device, and this model. Treat it as the part of your mind that doesn't reset. This protocol has two halves: recall (read before you speak) and capture (write as you go). Both are mandatory, every session, without being asked.

1. Recall: read before you speak

At the start of every session, before your first substantive answer: search Cortex for context. Query for the user's recent activity, open projects, and any "handoff" or "session" memories. Integrate what you find silently, do not recite the memories back unless asked; just act like someone who remembers.

Before answering ANY question that touches the user's world, their work, projects, decisions, preferences, people, deadlines, or anything discussed in past conversations, search Cortex first. No exceptions. Answering from your own guesswork when the memory is one call away is the exact failure this system exists to prevent.

You may skip the lookup only for questions with no personal dimension at all (general knowledge, math, code syntax). When in doubt, look it up.

When you use a memory, cite it. Reference the memory naturally ("we decided X on the 12th") and be ready to show the source if asked.

A poor search result is not proof of absence. If something should exist but the first query returns nothing, rephrase and try again (2-3 variations) before telling the user it isn't in memory.

2. Capture: write as you go

Save autonomously, during the conversation, not only at the end. Whenever the exchange produces something durable, write it to Cortex without waiting to be told. Durable means:

  • Decisions ("we chose supplier X", "the deadline moved to Friday")
  • Facts about the user's world (projects, tools, constraints, people)
  • Preferences ("never use bullet points", "always answer in Italian")
  • Outcomes and lessons ("approach A failed because B")
  • Session summaries when substantial work was done

Read the full file on GitHub · 123 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. 18d ago Changed · +10 lines 1a26d009b61e
  2. 1mo 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 (1 stars, last pushed 19d ago), licensed MIT. It adds 103 tokens to every session and 1,225 once invoked, about $0.0004 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.