codex-harness: Skill for Claude Code

.codex/skills/_archived/cursor-mem/SKILL.md

cursor-mem is a skill for Claude Code, Codex from Chachamaru127/codex-harness. It costs 65 tokens per session (1,885 once invoked), scanned A, original, MIT.

A Cursor integration for Claude-mem, a shared memory database that stores information between coding sessions. It can search and record decisions, patterns, fixes, and handoff notes.

In plain words
What is it for?
Use it to retrieve past decisions and troubleshooting history, or to save reusable solutions, review notes, and context for future sessions.
Why use it?
It prevents developers from repeatedly hunting for why earlier choices were made or how similar problems were solved.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also installed under .codex/. Also seen: reads .claude/ paths; mentions Claude Code.

This is Chachamaru127/codex-harness's own configuration. It tells Claude Code and Codex how to work on codex-harness itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codex-harness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Chachamaru127/codex-harness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Chachamaru127/codex-harness/main/.codex/skills/_archived/cursor-mem/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Chachamaru127/codex-harness

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 cursor-mem

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/chachamaru127/codex-harness/cursor-mem"><img src="https://agentmods.dev/badge/skills/chachamaru127/codex-harness/cursor-mem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,885 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00065 $0.01885
Opus 5.5 $0.00026 $0.00754
Sonnet 5.5 $0.00013 $0.00377
Haiku 4.5 $0.00006 $0.00188

Measured 1mo ago against content hash 8e87b5d15682, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursor-mem scanned grade A 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. ヘルスチェック: `curl http://127.0.0.1:37777/health`
.codex/skills/_archived/cursor-mem/SKILL.md · 175 lines

How it starts

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

Cursor-Mem Integration Skill

CursorからClaude-memを活用するスキル。Claude CodeとCursorで同じメモリデータベースを共有し、セッション間の知識を引き継ぎます。

🎯 使用場面

検索(読み取り)

  • 過去の意思決定を確認: 「なぜこのアーキテクチャを選んだのか?」
  • パターンの参照: 「以前はどのように実装したか?」
  • バグ修正履歴: 「同様の問題を過去に解決したか?」
  • 技術選定の理由: 「なぜこのライブラリを使っているのか?」

記録(書き込み)

  • PMとしての判断をメモ: レビュー中の気付きや設計判断
  • パターンの記録: 再利用可能なソリューション
  • 引き継ぎ事項: 次のセッションやチームメンバーへの情報
  • 学習事項: トラブルシューティングで得た知見

📋 利用可能なMCPツール

Cursor上でclaude-memのMCPツールを直接利用できます:

検索系

  • mcp__claude-mem__search: キーワードでメモリを検索
  • mcp__claude-mem__timeline: 時系列で記録を取得
  • mcp__claude-mem__get_recent_context: 最近の文脈を取得
  • mcp__claude-mem__get_observation: 特定の観測を取得

書き込み系

  • mcp__claude-mem__create_entities: 新しいエンティティを作成
  • mcp__claude-mem__create_relations: エンティティ間の関連を作成
  • mcp__claude-mem__add_observations: 観測を追加

🔧 セットアップ

1. MCPラッパースクリプトの配置

# harness リポジトリ内に claude-mem-mcp がインストールされている前提
# 絶対パスで参照
HARNESS_PATH="/path/to/claude-code-harness"

2. Cursor MCP設定

プロジェクトルートに .cursor/mcp.json を作成:

{
  "mcpServers": {
    "claude-mem": {
      "type": "stdio",
      "command": "/absolute/path/to/claude-code-harness/scripts/claude-mem-mcp"
    }
  }
}

⚠️ 重要: command には絶対パスを指定してください。

3. Cursor再起動

設定後、Cursorを再起動してMCPサーバーを認識させます。

💡 使い方の例

詳細な使用例は examples.md を参照してください。

基本的な検索

ユーザー: 「認証方式の選定理由を確認したい」

Cursor(Composer):
→ 直接 mcp__claude-mem__search を呼び出し(auto mode により自動有効化)
→ クエリ: "認証 JWT Supabase 選定理由"
→ 過去の決定記録(decisions)を取得

v2.1.7+: MCP auto mode がデフォルト有効のため、MCPSearch による事前検索は不要です。

気付きの記録

ユーザー: 「この実装パターンを記録しておいて」

Cursor(Composer):
→ 直接 mcp__claude-mem__add_observations を呼び出し
→ タイプ: pattern
→ タグ: source:cursor, review, best-practice
→ 内容: 実装パターンの説明

🏷️ タグ規約

Claude CodeとCursorで統一されたタグ体系を使用します:

タグ 用途
source:cursor Cursorから記録された情報
source:claude-code Claude Codeから記録された情報
type:decision 意思決定の記録
type:pattern 再利用可能なパターン
type:bug バグ修正の記録
type:review レビューでの気付き
type:handoff 引き継ぎ事項

Read the full file on GitHub · 175 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 175 lines · 65 tokens per session scan A 8e87b5d15682

Subscribe to this mod's changes

cursor-mem is a skill published in the GitHub repository Chachamaru127/codex-harness (2 stars, last pushed 8mo ago), licensed MIT. It adds 65 tokens to every session and 1,885 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

knowledge-ingest

Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, timelines, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn). Routes meetings to knowledge-meeting-ingest and short thoughts…

openclaw/openclaw · 67 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens