Persistent global memory across conversations. An agent skill from lokikill123/codex-token-skills.

MITAuto-check passedAI & LLM Engineering

Install Memory

skills CLI
$ npx skills add lokikill123/codex-token-skills --skill memory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lokikill123/codex-token-skills memory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lokikill123/codex-token-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/memory .claude/skills/memory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory
GitHub stars
119
Token cost
~304 tokens
SKILL.md length
132 words
Files
2
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Persistent global memory across conversations. An agent skill from lokikill123/codex-token-skills.

  • Tasks that involve LLM cost and token optimization
  • SKILL.md covers Memory File, On Conversation Start (MUST DO…, During Conversation (MUST DO) and Format, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Memory is an agent skill from lokikill123/codex-token-skills. Persistent global memory across conversations. Read memory file at start of every conversation, write important context during conversation so it survives context compression. Use ALWAYS. Triggered automatically.

Its SKILL.md is about 300 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in AI & LLM Engineering, covering LLM cost and token optimization. It works with DeepSeek. The repository describes itself as: ⚡ Cut 60-80% token cost for DeepSeek V4 Pro on Codex CLI. token-saver + memory skills with prefix-cache optimization. The licence is MIT.

When your agent uses it

  • Tasks that involve LLM cost and token optimization

Example prompts

  • “/memory”

What it can do on your machine

Read from SKILL.md and the folder at commit f198d5f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Memory loads about 304 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 132 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~304

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lokikill123/codex-token-skills at commit f198d5f, republished under its MIT licence (© lokikill123). 132 words, ~304 tokens.

Download SKILL.mdSave it as .claude/skills/memory/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
memory
description
Persistent global memory across conversations. Read memory file at start of every conversation, write important context during conversation so it survives context compression. Use ALWAYS. Triggered automatically.

Memory

Memory File

C:\Users\lokik.codex\MEMORY.md

On Conversation Start (MUST DO FIRST)

Read the memory file. If it doesn't exist, create empty and note "no prior memory".

During Conversation (MUST DO)

When any of these happen, APPEND to MEMORY.md immediately:

  • User states a preference or habit
  • A project is created or its structure changes significantly
  • User gives feedback about your behavior
  • A decision is made that affects future work
  • Skills are installed or modified
  • Important file paths or configs are established

Format

Append entries as: `

YYYY-MM-DD

  • [category] fact `

Categories: pref (preference), proj (project), skill (skill), cfg (config), decision

Rules

  • Append only. Never delete old entries.
  • One line per fact. Be specific.
  • If user contradicts old memory, append correction, don't delete old.
  • Don't write trivial/temporary facts.
  • Max 20 most recent entries. Archive older to MEMORY_archive.md.

© lokikill123, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/memory of lokikill123/codex-token-skills.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit f198d5f

Compare with similar skills

Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory this skilllokikill123/codex-token-skills119—~304Automated safety check: PassMIT
ClawRouter LLM GatewayBlockRunAI/ClawRouter6.6k—~6.8kAutomated safety check: PassMIT
Together Fireworksericrisco/rsc-harness167—~3.3kAutomated safety check: PassMIT
Context Compressionguanyang/open-agent-hub9752 repos~4.6kAutomated safety check: PassMIT
Bounty Hunter1sadjlk/bounty-hunter-skill2821 repos~761Automated safety check: PassMIT
Skill Shortenerluongnv89/asm953—~3.8kAutomated safety check: NotesMIT

Similar skills

  • ClawRouter LLM Gateway

    BlockRunAI/ClawRouter

    Describes ClawRouter, a local proxy that forwards each LLM request to the blockrun.ai gateway, which routes to a cheaper capable model, paid by USDC wallet or API key credit.

    6.6k GitHub stars~6.8k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • Together Fireworks

    ericrisco/rsc-harness

    A skill your agent uses when calling open-weight LLMs on Together AI or Fireworks AI's OpenAI-compatible endpoints — baseurl plus namespaced model id, the cheapest model that clears the bar…

    167 GitHub stars~3.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Context Compression

    guanyang/open-agent-hub

    This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve…

    975 GitHub starsUsed in 2 repos~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Bounty Hunter

    1sadjlk/bounty-hunter-skill

    A professional AI bounty hunter persona named Atlas. An agent skill from 1sadjlk/bounty-hunter-skill.

    282 GitHub starsUsed in 1 repo~761 tokens
    AI & LLM EngineeringAuto-check passed
  • Skill Shortener

    luongnv89/asm

    Refactor a too-long SKILL.md by progressive disclosure: measure token cost, classify every section KEEP/CUT/MOVE, shorten the body into references/ and scripts/, verify nothing was lost.

    953 GitHub stars~3.8k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check: notes
  • Dingo Verify

    MigoXLab/dingo

    A skill your agent uses when the user wants to fact-check an article or verify factual claims in a document.

    757 GitHub stars~833 tokensUpdated 10 days ago
    AI & LLM EngineeringAuto-check passed

More from lokikill123/codex-token-skills

  • Token Saver

    lokikill123/codex-token-skills

    Minimize token consumption & maximize prompt cache hit rate.

    119 GitHub stars~298 tokensUpdated 3 mo ago
    Auto-check passed

Works with

Questions about Memory

What does Memory do?

Persistent global memory across conversations. An agent skill from lokikill123/codex-token-skills. Memory is an agent skill from lokikill123/codex-token-skills. Persistent global memory across conversations.

When should I use Memory?

Memory fits situations like: tasks that involve LLM cost and token optimization.

How do I install Memory in Claude Code?

Run `npx skills add lokikill123/codex-token-skills --skill memory -a claude-code`. Or copy the skill folder (skills/memory in lokikill123/codex-token-skills) into .claude/skills/memory in your project. Claude Code loads it when a task matches its description.

How do I install Memory in Codex?

Run `npx skills add lokikill123/codex-token-skills --skill memory -a codex`. Or copy the skill folder (skills/memory in lokikill123/codex-token-skills) into .agents/skills/memory in your project. Codex loads it when a task matches its description.

Can I use Memory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lokikill123/codex-token-skills --skill memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory, .gemini/skills/memory, .github/skills/memory and .opencode/skills/memory in your project.

What does Memory need to run?

SKILL.md names no scripts, command-line tools or credentials: Memory is instructions for the agent only.

Does Memory access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memory use?

Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory use?

About 304 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memory?

Skills that share tags, products or a category with Memory: ClawRouter LLM Gateway (BlockRunAI/ClawRouter, 6.6k stars), Together Fireworks (ericrisco/rsc-harness, 167 stars), Context Compression (guanyang/open-agent-hub, 975 stars) and Bounty Hunter (1sadjlk/bounty-hunter-skill, 282 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory?

lokikill123 (a GitHub user) maintains it in lokikill123/codex-token-skills, which has 119 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on June 15, 2026.

Source: lokikill123/codex-token-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.