Cortex

Cortex is a skill for Claude Code from danielmiessler/LifeOS. It costs 184 tokens per session (1,990 once invoked), scanned A, original, MIT.

A system for storing and recalling connected knowledge about people, companies, ideas, research, blogs, and books, along with earlier work sessions and conversations. It links related notes so the collection works more like a map than a folder of isolated files.

In plain words
What is it for?
Use it to search, add, develop, import, connect, navigate, and summarize knowledge, and to recall earlier sessions or conversations by topic or date.
Why use it?
It makes old information easier to find and shows connections or contradictions between notes. It also helps recover useful context from previous work.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to search, add, develop, import, connect, navigate, and summarize knowledge, and to recall earlier sessions or conversations by topic or date.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielmiessler/lifeos/cortex
About the project

LifeOS is an AI-assisted personal operating system that records a person’s goals, values, context, and current situation to help move them toward a desired future state. It supports work such as building applications, starting businesses, and creative projects. Its catalogue entries extend the system through skills, hooks, agents, and commands.

danielmiessler/LifeOS · 20,687 stars · on GitHub · ourlifeos.ai

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 danielmiessler/LifeOS --skill cortex
Clone the repo
git clone --depth 1 https://github.com/danielmiessler/LifeOS

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielmiessler/lifeos/cortex/github.svg)](https://agentmods.dev/skills/danielmiessler/lifeos/cortex)
Your own site
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/cortex"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/cortex/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielmiessler/lifeos/cortex"><img src="https://agentmods.dev/badge/skills/danielmiessler/lifeos/cortex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,990 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. Third-party audits
  • Snyk warn 7 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 506
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Rogue Agent · line 18
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 105
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 444
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 458
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00184 $0.01990
Opus 5.5 $0.00074 $0.00796
Sonnet 5.5 $0.00037 $0.00398
Haiku 4.5 $0.00018 $0.00199

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

Security

Grade A, and why

Cortex 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (Tools/ContextSearch.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

LifeOS/install/skills/Cortex/SKILL.md · 122 lines

How it starts

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

Cortex

Contents: Ideal State · Anti-criteria · Intent Routing · Tool contract · Data & Config · Gotchas · Examples

Search and manage the typed Knowledge Archive, recall prior LifeOS work, or capture and digest problem-solving learnings. Every archive note is typed into one of six canonical entity domains (KnowledgeSchema.ts CANONICAL_TYPES): People (individuals, public figures, contacts with relationship context), Companies (organizations, businesses, teams with structure and positioning), Ideas (concepts, theses, frameworks, thought patterns across work and life), Research (findings, studies, deep-dive topics with source citations and evidence), Books (published works with claim summaries, key quotes, and implications), and Blogs (blog posts and articles with takeaways, relationships to other notes).

Ideal State

  • A recall answer names the prior sessions, ISAs and decisions that match, ranked, each with its date and path, and states what was decided or done there rather than only the topic; when nothing matches, it says so and names the query and the sources searched.
  • An archive search returns a deduplicated table of matching notes (title, domain, status, tags), or an explicit "no matches" with a suggested next step; retrieve returns the top matching notes ranked, with compressed summaries.
  • A captured learning tells the problem, assumption, reality, journey with its dead ends, solution and takeaway, filed under LEARNING/SYSTEM/YYYY-MM/ or LEARNING/ALGORITHM/YYYY-MM/; a recent-history digest lists the files it read and says nothing they do not.
  • All archive operations (add, harvest, develop, ingest) classify each note into one of the six canonical KNOWLEDGE note types and add typed cross-links (related: frontmatter) between notes to keep the graph connected: every new note carries the eight envelope fields and 2-4 typed related: links, each naming a slug that exists in the archive.
  • Every result comes from the command's loaded deterministic tools, and any verification that was unavailable is named in the result as unavailable, never reported as passed.

Read the full file on GitHub · 122 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -411 lines · -12 tokens per session f232ab844528
  2. 3mo ago First seen · 533 lines · 196 tokens per session scan A e01d09b2c2c1

Subscribe to this mod's changes

Cortex is a skill published in the GitHub repository danielmiessler/LifeOS (20,687 stars, last pushed 14d ago), licensed MIT. It adds 184 tokens to every session and 1,990 once invoked, about $0.0007 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-30.

Related

Cortex compared with skills from other repositories

Cortex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Cortexdanielmiessler/LifeOSSkill21k14d agoMITA184Claude Code
wiki-dashboardAr9av/obsidian-wikiSkill3.8kyesterdayMITA42Claude Code
session-compactcodeaholicguy/ai-devkitSkill1.7k4d agoApache-2.0A39Claude Code
company-braincoreyhaines31/makerskillsSkill96713d agoMITA230Claude Code
context-shuntalinaqi/maggySkill7136d agoMITA28Claude Code
deja-reflectvshulcz/deja-vuSkill1.7ktodayMITA49Claude Code
claude-reflectBayramAnnakov/claude-reflectSkill2.0k2mo agoMITA46Claude Code