locus-memory

locus-memory is a skill for Claude Code from Magnifico4625/locus. It costs 64 tokens per session (950 once invoked), scanned A, original, MIT.

A project-memory skill that stores and retrieves useful context between coding sessions. It can track decisions, recent work, project structure and memory health.

In plain words
What is it for?
Use it to recall past work, search project notes, inspect the file tree, save architecture decisions and review recent activity.
Why use it?
It reduces the need to repeat earlier decisions or reconstruct what changed in a project. It also helps check whether stored information is current.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the locus plugin — 9 skills, 3 hooks shipped together

Good fit Use it to recall past work, search project notes, inspect the file tree, save architecture decisions and review recent activity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnifico4625/locus/locus-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 Magnifico4625/locus --skill locus-memory
Clone the repo
git clone --depth 1 https://github.com/Magnifico4625/locus

Made for: Claude Code.

Or install locus, the plugin that ships this one along with the rest of its 9 skills, 3 hooks.

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 locus-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/magnifico4625/locus/locus-memory.svg)](https://agentmods.dev/skills/magnifico4625/locus/locus-memory)
Your own site
<a href="https://agentmods.dev/skills/magnifico4625/locus/locus-memory"><img src="https://agentmods.dev/badge/skills/magnifico4625/locus/locus-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 950 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.00064 $0.00950
Opus 5 $0.00032 $0.00475
Sonnet 5 $0.00013 $0.00190
Haiku 4.5 $0.00006 $0.00095

Measured 8d ago against content hash 0a662ef5eb4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

locus-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 8d 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.

packages/codex/skills/locus-memory/SKILL.md · 58 lines

How it starts

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

Locus -- Persistent Project Memory

You have access to Locus memory tools via MCP. Use them to maintain project context across sessions.

Core Tools

  1. memory_recall -- Summary-first recall for past-work questions
  2. memory_calendar -- Discover day/week/month activity buckets by project and time range
  3. memory_project_state -- Verify current project identity, package/git state, freshness, and active next steps
  4. memory_search -- FTS5 search across all memory layers
  5. memory_remember -- Save architecture decisions with auto-redaction
  6. memory_explore -- Navigate the project file tree
  7. memory_timeline -- View recent conversation history
  8. memory_status -- Memory health and storage info
  9. memory_scan -- Re-index project structure after file changes
  10. memory_review -- Inspect durable memories, states, confidence, and evidence

Key Behaviors

  • Always check Locus before saying you do not remember prior work or prior decisions
  • Use memory_recall first for questions about past work, prior decisions, or recent progress such as:
    • "what did we do yesterday?"
    • "what did we decide about auth?"
    • "what did we just fix?"
  • Use memory_calendar for broad period discovery such as "what did we work on this month?" or "show May work" before drilling into specific days, weeks, or topics
  • For user period questions, pass this_month, last_month, or an explicit range instead of relying on the default last_30d
  • For date-scoped recall, report the searched date buckets from memory_recall so the user can see which days/weeks/months were checked
  • Use memory_project_state before relying on old memories when project identity, package version, git state, latest conversation timestamp, or active next steps matter
  • current-project recall must not mix other project memories unless the user explicitly asks for global recall
  • In Codex, recent dialogue is auto-imported before memory_recall, memory_search, and memory_calendar
  • If memory_recall returns needs_clarification, inspect candidateGroups and ask a focused follow-up question after the lookup instead of guessing or asking before checking Locus
  • If memory_recall returns no_memory, then fall back to memory_search, memory_calendar, or memory_timeline only when raw search, broad period discovery, or chronology is still useful
  • If recent Codex history does not appear, inspect memory_status before trying manual recovery steps
  • Use memory_import_codex only for manual catch-up, older sessions, or filtered imports
  • Use memory_review when the user asks what Locus stored, why a memory exists, what can be cleaned up, or which durable facts are active/stale/superseded
  • Save important decisions when the user makes architecture choices
  • Use memory_remember for architectural choices, trade-offs, and why a path was chosen, not only for end-of-task summaries
  • Use memory_scan after significant file structure changes
  • Prefer memory_search over re-reading files when looking for past context after memory_recall has already been tried
  • After completing a major task, call memory_remember with a concise summary when the outcome should persist across sessions
  • Treat capture modes precisely:
    • metadata means ingestion and diagnostics first, with limited conversational recall
    • redacted is the recommended practical rich-recall mode for Codex because it stores high-value snippets with privacy filtering
    • full is maximum local capture and must be described with an explicit privacy warning, never as risk-free
  • If the task clearly involves secrets, tokens, passwords, or highly sensitive material, remind the user that LOCUS_CODEX_CAPTURE=full / LOCUS_CAPTURE_LEVEL=full may store sensitive local memory content
  • Codex Desktop MCP path is validated when LOCUS_CODEX_SURFACE=desktop and Track D marker acceptance passes; otherwise do not claim desktop or extension parity without testing the target surface

Read the full file on GitHub · 58 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. 8d ago First seen · 58 lines · 64 tokens per session scan A 0a662ef5eb4d

Subscribe to this mod's changes

locus-memory is a skill published in the GitHub repository Magnifico4625/locus (14 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 950 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

memory-audit

An entry point for reviewing and maintaining an AI agent's stored memories. It describes how to remove repetition, preserve useful reasoning, and update memories when old conclusions no longer fit.

Dataojitori/nocturne_memory · 31 tokens

memory-audit-belief-duel

A guided review process for conflicting beliefs or memories. It examines cases where two conclusions cannot both be true, including conflicts between a general rule and a more specific memory.

Dataojitori/nocturne_memory · 38 tokens

memory-audit-discoverability

A review guide for checking whether stored memories can be found at the right time. It focuses on where memories are attached, when they are triggered, whether aliases are missing, and whether a parent has too many children.

Dataojitori/nocturne_memory · 35 tokens

memory-audit-pattern-extraction

A method for investigating repeated mistakes by comparing related memories and checking whether an earlier reminder failed. It looks at where the reminder was stored, when it was created, and whether it was strong enough to prevent the mistake.

Dataojitori/nocturne_memory · 48 tokens

init-workspace-documentation

Skill "init-workspace-documentation" from griddynamics/rosetta, covering agent memory.md, agent memory, preventive rules, what worked and what failed.

griddynamics/rosetta · 10 tokens

handover

Use when wrapping up or capturing the current state of a coding session — writes a short, dated entry to the repo's RepoHandover.md so a future agent or you can resume without grepping archived sessions. Triggers on "handover", "hand off", "write handover", "capture state", "checkpoint this session".

jazzyalex/agent-sessions · 71 tokens