cortex-memory
Persistent cognitive memory for AI agents — query, record, review, and consolidate knowledge across sessions with spreading activation, FSRS scheduling, and…
Skill by Fozikio
Chalk Labs
Need help deploying cortex-memory?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fozikio-cortex-memory
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cortex-memory
What's inside
- Skill name
cortex-memory- Description
- Persistent cognitive memory for AI agents — query, record, review, and consolidate knowledge across sessions with spreading activation, FSRS scheduling, and NLI contradiction detection.
- License
- MIT
- Instructions
- 146 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Cortex Memory
Persistent memory engine for AI agents. Knowledge survives across sessions — recall what you learned last week, track evolving beliefs, detect contradictions, and build a knowledge graph over time.
**Source:** [github.com/Fozikio/cortex-engine](https://github.com/Fozikio/cortex-engine) (MIT) | [npm](https://www.npmjs.com/package/@fozikio/cortex-engine)
## Prerequisites
This skill requires [cortex-engine](https://github.com/Fozikio/cortex-engine) running as an MCP server. Install it separately before using this skill:
```bash
npm install -g @fozikio/cortex-engine
```
> **Install the scoped package, unpinned.** The unscoped `cortex-engine` on npm is the old name and is deprecated — but old versions of it still resolve, so pinning one installs an ancient engine that works just well enough to hide the problem. Always use `@fozikio/cortex-engine`, and let it take the latest.
Then initialize and start:
```bash
fozikio init my-agent # scaffold a workspace
fozikio up # start ollama + nli, wait until they answer
fozikio serve # start the MCP server (stdio)
```
If anything goes wrong, `fozikio doctor` diagnoses the install and tells you how to fix it.
Runs locally with SQLite + Ollama. No cloud accounts needed. The skill instructions below are read-only — they teach your agent how to use cortex tools, they don't execute anything.
## Managing the services
`cortex-engine` 1.4.0+ ships a service supervisor, so you do not have to babysit Ollama:
| Command | What it does |
|---|---|
| `fozikio up` | start every service and wait until it actually answers |
| `fozikio status` | service health (HTTP probe, not PID liveness); exits 1 if unhealthy |
| `fozikio doctor` | diagnose the install and say how to fix what is broken |
| `fozikio dashboard` | live service and memory view |
| `fozikio down` | stop services it started |
`status` and `up` use an HTTP probe rather than checking whether a process exists, because a wedged process still holds the port. They also **adopt rather than kill**: if fozikio did not start a process, it will not stop it — which matters when the Ollama desktop app or another agent already owns `:11434`.
## Core Loop
**Read before you write.** Always check what you already know before adding more.
### Search
```
query("authentication architecture decisions")
```
Be specific. `query("JWT token expiry policy")` beats `query("auth")`. Results include relevance scores and connected concepts.
Explore around a result:
```
neighbors(memory_id)
```
### Record
**Facts** — things you confirmed:
```
observe("The API rate limits at 1000 req/min per API key, not per user")
```
**Questions** — unresolved:
```
wonder("Why does the sync daemon stall after 300k seconds?")
```
**Hypotheses** — unconfirmed ideas:
```
speculate("Connection pooling might fix the timeout issues")
```
### Update beliefs
```
believe(concept_id, "Revised understanding based on new evidence", "reason")
```
### Track work across sessions
```
ops_append("Finished auth refactor, tests passing", project="api-v2")
ops_query(project="api-v2") # pick up where you left off
```
## Memory-Grounded Reviews
Review code or designs by comparing against accumulated knowledge:
1. **Ground:** `query("the domain being reviewed")` — load past decisions and patterns
2. **Compare:** Does the work align with or diverge from established patterns?
3. **Record:** `observe()` new patterns, `wonder()` about unclear choices, `believe()` updated understanding
4. **Output:**
```markdown
## Review — Grounded in Memory
### Aligned with known patterns
- [matches cortex context]
### Divergences
- [what differs, intentional or accidental]
### New patterns to capture
- [novel approaches worth observing]
```
## Session Pattern
1. **Start:** `query()` the topic you're working on
2. **During:** `observe()` facts, `wonder()` questions as they come up
3. **End:** `ops_append()` what you did and what's unfinished
4. **Periodically:** `dream()` to consolidate memories (compress, abstract, prune)
## Available ToolsFrom Fozikio/cortex-engine, MIT.
More from Fozikio/cortex-engine
- 0.657score
learn-project
Fozikio
Bootstrap cortex with project knowledge — reads key files and observes what it learns into the project namespace
SkillAFreshness: A★ 51Claude Code +9 - 0.652score
cortex-query
Fozikio
[DEPRECATED] This skill has been merged into cortex-engine.
SkillAFreshness: A★ 51Claude Code +9 - 0.652score
cortex-review
Fozikio
[DEPRECATED] This skill has been merged into cortex-engine.
SkillAFreshness: A★ 51Claude Code +9
Signals
- Stars
- 51
- Forks
- 6
- Open issues
- 13
- Last commit (this folder)
- Jul 31, 2026 (3 months ago)
- Last release
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Fozikio/cortex-engine
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Fozikio
- 0.657score
learn-project
Fozikio
Bootstrap cortex with project knowledge — reads key files and observes what it learns into the project namespace
SkillAFreshness: A★ 51Claude Code +9 - 0.652score
cortex-query
Fozikio
[DEPRECATED] This skill has been merged into cortex-engine.
SkillAFreshness: A★ 51Claude Code +9 - 0.652score
cortex-review
Fozikio
[DEPRECATED] This skill has been merged into cortex-engine.
SkillAFreshness: A★ 51Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get cortex-memory running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
cortex-memory skill. Agent Mart. https://agentmart.dev/skills/fozikio-cortex-memory (last updated 2026-10-24)