codex

codex is a skill for Claude Code, Codex from udjin-labs/mnemostack. It costs 0 tokens per session (788 once invoked), scanned B, original, Apache-2.0.

A setup guide for connecting mnemostack, a memory service, to the Codex command-line tool through MCP, a standard way for programs to provide tools to an AI assistant.

In plain words
What is it for?
It is for adding a mnemostack server to Codex, checking a memory backend, and configuring local, hosted, or graph-backed memory.
Why use it?
It removes the need to work out the configuration, credentials, provider options, and local or remote connection details by hand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

Good fit It is for adding a mnemostack server to Codex, checking a memory backend, and configuring local, hosted, or graph-backed memory.

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

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 codex

README.md
[![agentmods](https://agentmods.dev/badge/skills/udjin-labs/mnemostack/codex/github.svg)](https://agentmods.dev/skills/udjin-labs/mnemostack/codex)
Your own site
<a href="https://agentmods.dev/skills/udjin-labs/mnemostack/codex"><img src="https://agentmods.dev/badge/skills/udjin-labs/mnemostack/codex/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 codex

Your own site · 80×15
<a href="https://agentmods.dev/skills/udjin-labs/mnemostack/codex"><img src="https://agentmods.dev/badge/skills/udjin-labs/mnemostack/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 788 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00788
Opus 5.5 $0.00000 $0.00315
Sonnet 5.5 $0.00000 $0.00158
Haiku 4.5 $0.00000 $0.00079

Measured 6d ago against content hash 02e34263ec98, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

codex scanned grade B with 1 finding 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 6d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

2. Add the server. Codex stores it in `~/.codex/config.toml`:
integrations/codex/SKILL.md · 88 lines

How it starts

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

Codex

Wire mnemostack into the Codex CLI as an MCP server.

Install

  1. Make sure the binary and a working backend are ready:

    pip install 'mnemostack[mcp]'
    mnemostack health --provider gemini
    
  2. Add the server. Codex stores it in ~/.codex/config.toml:

    codex mcp add mnemostack --env GEMINI_API_KEY=your-key-here -- \
      mnemostack mcp-serve --provider gemini --collection my-memory
    

    The resulting entry:

    [mcp_servers.mnemostack]
    command = "mnemostack"
    args = ["mcp-serve", "--provider", "gemini", "--collection", "my-memory"]
    
    [mcp_servers.mnemostack.env]
    GEMINI_API_KEY = "your-key-here"
    

    Swap --provider gemini for ollama or huggingface if that's what health validated. For graph tools, add --memgraph-uri bolt://localhost:7687.

  3. For a deployment on another host, connect to its authenticated HTTP endpoint (mnemostack mcp-serve --transport http --auth) instead. Codex reads the service key from the named environment variable:

    codex mcp add mnemostack --url https://memory.example.com/mcp \
      --bearer-token-env-var MNEMOSTACK_API_KEY
    
  4. For a collection built with a custom embedding provider, use the launcher from docs/mcp.md:

    codex mcp add mnemostack -- /path/to/venv/bin/python /path/to/mnemostack_mcp.py
    
  5. Start a new Codex session.

Verify

codex mcp list shows the entry as enabled. In a new session, ask Codex:

List the MCP tools you have available from mnemostack.

You should see mnemostack_health, mnemostack_search, mnemostack_answer, mnemostack_feedback, mnemostack_resolve, mnemostack_invalidate, and mnemostack_remember (plus the graph tools if a Memgraph URI was passed). Then:

Use mnemostack to search for "VPN failover" with limit 1.

The reply should include at most one result with its text and sources.

Read the full file on GitHub · 88 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. 6d ago First seen · 88 lines · 0 tokens per session scan B 02e34263ec98

Subscribe to this mod's changes

codex is a skill published in the GitHub repository udjin-labs/mnemostack (11 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 788 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

codex compared with skills from other repositories

codex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codexudjin-labs/mnemostackSkill114d agoApache-2.0B0Claude Code, Codex
goodmem:mcpPAIR-Systems-Inc/goodmem-claude-code-pluginSkill102d agoMITA51Claude Code
goodmem:helpPAIR-Systems-Inc/goodmem-claude-code-pluginSkill102d agoMITA46Claude Code
goodmem:javaPAIR-Systems-Inc/goodmem-claude-code-pluginSkill102d agoMITA45Claude Code
goodmem:pythonPAIR-Systems-Inc/goodmem-claude-code-pluginSkill102d agoMITA49Claude Code
agent-memory-disciplinesickn33/agentic-awesome-skillsSkill51ktodayMITA36Claude Code
memanto-companionmoorcheh-ai/memantoSkill2.5kyesterdayApache-2.0A72Claude Code