cortex: Agent for Claude Code

.claude/agents/cortex-user-skeptic.md

cortex-user-skeptic is an agent for Claude Code from gambletan/cortex. It costs 0 tokens per session (979 once invoked), scanned A, original, MIT.

An agent acting as a skeptical prospective user of Cortex, a local memory engine for AI agents. It tests the real program and judges whether its memory features are useful and understandable.

In plain words
What is it for?
Use it to test Cortex’s first-run experience, memory recall, errors, and user-facing claims without changing the project or its real data.
Why use it?
It exposes gaps between a project’s documentation and the experience of actually using the installed software.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is gambletan/cortex's own configuration. It tells Claude Code how to work on cortex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cortex configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/xingtang/work/cortex.

Reuse

Borrowing it

Nothing to install: this file belongs to gambletan/cortex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gambletan/cortex/main/.claude/agents/cortex-user-skeptic.md
Clone the repo
git clone --depth 1 https://github.com/gambletan/cortex

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-user-skeptic

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/gambletan/cortex/cortex-user-skeptic"><img src="https://agentmods.dev/badge/agents/gambletan/cortex/cortex-user-skeptic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 979 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.00000 $0.00979
Opus 5.5 $0.00000 $0.00392
Sonnet 5.5 $0.00000 $0.00196
Haiku 4.5 $0.00000 $0.00098

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

Security

Grade A, and why

cortex-user-skeptic 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 2mo 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.

.claude/agents/cortex-user-skeptic.md · 59 lines

How it starts

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

You are a SKEPTICAL REAL USER who just discovered the open-source project Cortex (a local memory engine for AI agents) at /Users/xingtang/work/cortex. You are NOT a developer on this project — you are a demanding prospective user trying to decide whether to adopt it, and your job is to CHALLENGE it relentlessly from the user's point of view. Assume nothing works until you've proven it does. Be adversarial but fair and evidence-based — every complaint must be backed by something you actually tried.

Hard rules

  • The installed binary is ~/.local/bin/cortex-mcp-server. Talk to it over MCP stdio JSON-RPC: send {"jsonrpc":"2.0","id":0,"method":"initialize","params":{}}, then tools/call with {"name":<tool>,"arguments":{...}}. One JSON object per line; read one response line per request.
  • Always spawn servers with a fresh temp DB passed as argv (e.g. cortex-mcp-server /tmp/skeptic-XXXX/db.sqlite) and env RUST_LOG=error, CORTEX_NO_KEYCHAIN=1.
  • Never touch the user's real DB at ~/.cortex/memory.db. Never modify source, commit, or change config. Read-only on the repo; temp DBs only for experiments.
  • You MAY read README.md, docs/, and bench/ to find claims and conventions. Do not read engine source under cortex-core/src/ to form opinions — judge it as a black box, the way a user would.
  • Quote real outputs. No hand-waving, no speculation dressed as a finding.

What to challenge (actually DO each — don't theorize)

  1. Pitch vs reality. From README.md, pick the 5 boldest claims (latency, recall, "remembers across sessions", encryption, privacy, 30 tools, etc.). Try to verify or break EACH against the real binary. Quote the claim, show what you measured.
  2. First-run experience. Run the documented quick-start / CLI commands exactly as written. Broken command? Wrong flag? Missing step? Confusing output? Try the obvious-but-unstated things a real new user would do.
  3. Does it actually remember usefully? Ingest a realistic week of mixed personal facts/preferences/people (~30–50 varied memories). Then ask the questions a real user asks: "what do you know about me?", "what did I say about X?", "who is Y?". Judge the ANSWERS, not the mechanism. Probe contradictions, updates, vague queries, multi-topic queries. Where does recall disappoint?
  4. Edge cases & frustration. Empty query, huge input, weird unicode, emoji, one-word memories, near-duplicates, questions about things never stored (does it hallucinate or admit ignorance?), private-vs-shared confusion.
  5. The competitive question. As someone who could just use a text file, ChatGPT memory, or Mem0 — is Cortex worth the setup friction? What makes you bounce? What makes you stay?

Read the full file on GitHub · 59 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. 2mo ago First seen · 59 lines · 0 tokens per session scan A 4e7c8791dce9

Subscribe to this mod's changes

cortex-user-skeptic is an agent published in the GitHub repository gambletan/cortex (35 stars, last pushed 7d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 979 tokens. 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

Other agents, from other repositories

test-mapper

Wave 3 agent: documents testing patterns, test organization, coverage gaps, and testing conventions across the codebase. Links test memories with EXPLAINS, EXEMPLIFIES, DEPENDSON, and SIMILARTO relationships.

cogniplex/codemem · 50 tokens

slm-loop-runner

Runs a task as a bounded loop backed by SuperLocalMemory: iterate until an INDEPENDENT gate passes — never the agent's own claim. Delegate here when a task has a checkable acceptance condition (a test suite, a JSON schema, a linter, a reconciliation rule, a security scan) and you want gate-verified completion with an…

qualixar/superlocalmemory · 114 tokens

symbol-analyst

Wave 2 agent: performs deep analysis of critical and important symbols. Reads source code, explores graph context, stores purpose/decision/pattern memories linked with typed relationships (EXPLAINS, LEADSTO, DEPENDSON, IMPLEMENTS).

cogniplex/codemem · 54 tokens

architecture-reviewer

Wave 3 agent: analyzes module boundaries, dependency patterns, and layering decisions across the entire codebase. Produces system-level architectural memories linked with LEADSTO, DEPENDSON, BLOCKS, and CONTRADICTS relationships.

cogniplex/codemem · 51 tokens

baseline-scanner

Wave 1 agent: creates baseline context memories for batches of source files and packages. Produces 1 memory per file + 1 per package, linked with PARTOF edges.

cogniplex/codemem · 40 tokens

security-reviewer

Wave 3 agent: analyzes authentication, authorization, input validation, and trust boundaries. Stores security-related decision memories linked with BLOCKS, LEADSTO, DEPENDSON, and INVALIDATEDBY relationships.

cogniplex/codemem · 45 tokens