palim-memory

palim-memory is a skill for Claude Code, Codex from joleschmidt/palim-mcp-examples. It costs 50 tokens per session (476 once invoked), scanned A, original, MIT.

Instructions for using Palim as long-term memory across AI tools. Palim stores sessions, checkpoints, facts, preferences, and decisions so they can be retrieved later.

In plain words
What is it for?
Use it to resume work, find earlier sessions, save checkpoints, preserve decisions, or prepare a short summary from several saved sessions.
Why use it?
It helps an assistant continue earlier work without relying on the current chat history. It also gives specific ways to search by keywords, dates, or saved memories.

Skill for Claude CodeCodex

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

Good fit Use it to resume work, find earlier sessions, save checkpoints, preserve decisions, or prepare a short summary from several saved sessions.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/joleschmidt/palim-mcp-examples/palim-memory"><img src="https://agentmods.dev/badge/skills/joleschmidt/palim-mcp-examples/palim-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 476 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.00050 $0.00476
Opus 5 $0.00025 $0.00238
Sonnet 5 $0.00010 $0.00095
Haiku 4.5 $0.00005 $0.00048

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

Security

Grade A, and why

palim-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.

skills/palim-memory/SKILL.md · 36 lines

How it starts

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

Palim Memory

Use Palim as the durable context layer for work the user explicitly wants to retrieve across AI clients.

Resume and retrieve

  1. Call palim_resume when the user asks to continue recent work without naming a specific session.
  2. Use palim_search for concrete keywords across saved sessions.
  3. Use palim_search_by_date_range for date or metadata filters; do not expect it to search encrypted message bodies.
  4. Use palim_search_memories for durable facts, preferences, and decisions stored as memories.
  5. Use palim_get_context when the user needs a compact synthesis across several relevant sessions.

Palim currently uses PostgreSQL full-text and exact-text matching, not semantic embeddings. If an exact title phrase misses, retry with distinctive keywords, tags, or a date range.

Save useful context

  1. Prefer palim_save_context for a lightweight, self-contained checkpoint after a substantial result, decision, or change of direction.
  2. Keep one stable session_id for checkpoints in the same conversation so later saves update the same thread.
  3. When continuing a thread returned by palim_resume, pass its session ID as continues_from while keeping the current conversation's own stable session_id.
  4. Use palim_add_memory for a durable fact or preference that should be independently searchable.
  5. Use palim_save_session only when the user requests or genuinely needs the full transcript.

Never save secrets, trivial exchanges, or content the user asked not to persist. Do not claim a save succeeded unless the tool confirms it.

Safety and scope

  • Keep reads and writes within the authenticated user's Palim account.
  • Treat deletion as destructive and require clear scope before calling a delete tool.
  • Do not publish Palim content to external services unless the user separately requests and authorizes that action through an appropriate tool.
  • If a named Palim tool is unavailable, use the closest available Palim tool and state the limitation instead of inventing a result.

Read the full file on GitHub · 36 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 · 36 lines · 50 tokens per session scan A a6db317af689

Subscribe to this mod's changes

palim-memory is a skill published in the GitHub repository joleschmidt/palim-mcp-examples (0 stars, last pushed 1mo ago), licensed MIT. It adds 50 tokens to every session and 476 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-31.

Related

Other skills, from other repositories

memory-safety-c-cpp

Reference vocabulary for memory-safety vulnerabilities in native C/C++ code — bug-class taxonomy, common arithmetic patterns that lead to corruption, dispatch-family discipline, type-confusion idioms, use-after-free patterns, and exploitability factors. Read when analyzing, hypothesizing, designing harnesses for, or…

provos/ironcurtain · 113 tokens

lc-curate-context

Decide which files a task actually needs, record that as a reusable llm-context rule, verify it against the codebase - including the files your selection references but leaves out - and pack it for your own context, a chat, or a sub-agent you dispatch. Load when choosing what code to put in front of a model, packing…

cyberchitta/llm-context.py · 90 tokens

cortex-automate

Set up automation — prospective memory triggers, neuro-symbolic rules, and CLAUDE.md sync. Use when the user says 'remind me when', 'trigger when', 'create a rule', 'auto-remember', 'sync to CLAUDE.md', 'push insights', 'set up trigger', 'when I open this file', 'when this keyword appears', or when you want to…

cdeust/Cortex · 93 tokens

cortex-navigate-knowledge

Navigate the knowledge graph — trace entity relationships, explore causal chains, drill into memory clusters, and traverse co-access paths. Use when the user asks 'how are these related', 'what connects X to Y', 'show me the knowledge graph', 'trace the relationship', 'what caused X', 'drill down into', 'explore…

cdeust/Cortex · 95 tokens

cortex-profile

View and manage your cognitive profile — how you think, work patterns, blind spots, and cross-domain connections. Use when the user says 'show my profile', 'how do I work', 'what are my patterns', 'cognitive style', 'blind spots', 'methodology', or at the start of a session to load context. Also use 'rebuild profile'…

cdeust/Cortex · 98 tokens

cortex-recall-global

Search and retrieve global memories — knowledge that applies across all projects. Use when the user asks 'what are our coding standards', 'what conventions do we follow', 'what's our infrastructure setup', 'do we have a rule about', 'what applies to all projects', 'shared knowledge', 'global rules', or when you need…

cdeust/Cortex · 86 tokens