SkillAgentSearch skills...

pathmark

Pathmark — local-first memory for Codex, Claude Code, Gemini CLI, Cursor and MCP agents, created by B2B AI specialist Sergey Moloman.

Install / Use

claude mcp add hacksurvivor -- npx -y github:hacksurvivor/pathmark

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

83/100

Supported Platforms

Claude Code
Claude Desktop
Cursor
Gemini CLI
OpenAI Codex

Our assessment of pathmark

pathmark scores 83/100 on our quality scale, 1891st of 3,845 Development & Engineering skills we index (top 50%).

Its MCP Server is 29 KB long, well organised into 29 sections with 30 code examples: a thorough specification that gives an agent plenty to work with.

It has 3 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
30/30
Structure
20/20
Description
15/15
Adoption
3/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated yesterday, so pathmark is actively maintained.
  • Our last check on 2026-09-26 found the source still online.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-27. Automated pattern scan on 2026-09-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

pathmark compared with similar skills

All 4 of these similar skills score higher than pathmark; compare them before choosing.

SkillScoreStarsUpdatedFormat
pathmark (this skill)by hacksurvivor8331d agoMCP Server
Agent-Reachby Panniantong10086.3k14d agoCLAUDE.md
headroomby headroomlabs-ai10074.1ktodayCLAUDE.md
rufloby ruvnet10073.6ktodayCLAUDE.md
CowAgentby zhayujie10047.2ktodayCLAUDE.md

Frequently asked questions

How do I install pathmark?
Run claude mcp add hacksurvivor -- npx -y github:hacksurvivor/pathmark. The install tabs above show the steps for each supported agent.
Which AI agents does pathmark work with?
It is written for Claude Code, Claude Desktop, Cursor, Gemini CLI and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
Is pathmark safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is pathmark still maintained?
The repository was last updated yesterday, so pathmark is actively maintained.

Pathmark

Carry intent across agents without turning stale code facts into hidden memory.

<p align="center"> <a href="https://www.npmjs.com/package/pathmark"><img src="https://img.shields.io/npm/v/pathmark?label=version" alt="current Pathmark npm version"></a> <a href="https://www.npmjs.com/package/pathmark"><img src="https://img.shields.io/npm/dt/pathmark?label=npm%20downloads" alt="npm downloads"></a> <a href="https://www.npmjs.com/package/pathmark"><img src="https://img.shields.io/npm/dw/pathmark?label=weekly%20downloads" alt="weekly npm downloads"></a> <a href="https://scorecard.dev/viewer/?uri=github.com/hacksurvivor/pathmark"><img src="https://api.scorecard.dev/projects/github.com/hacksurvivor/pathmark/badge" alt="OpenSSF Scorecard"></a> </p>

What's New — v0.1.16

Pathmark v0.1.16 catches Claude Code up with Codex and makes Pathmark legible to current agent hosts:

  • pathmark setup claude-code now prints a user-scoped claude mcp add command and SessionStart/UserPromptSubmit/PostToolUse/Stop hooks, so Claude Code gets the same automatic capture and session-start recall as Codex and Gemini CLI;
  • pathmark import-native claude-code imports Claude Code's built-in auto-memory into the shared store, so other agents can recall it;
  • every MCP tool declares readOnlyHint/destructiveHint annotations, and the server sends instructions that reach the model even when the host defers tool schemas behind tool search;
  • PATHMARK_SYNTHESIS_PROVIDER=claude lets ask_memory synthesize through the Claude CLI's own login, fully isolated.

See the v0.1.16 release notes or the complete changelog. The npm badge above always shows the currently published version.

<p align="center"> <img src="https://raw.githubusercontent.com/hacksurvivor/pathmark/main/assets/pathmark-hero.png" alt="Pathmark local intent and provenance shared by Codex, Claude Code, opencode, and Gemini CLI" width="100%"> </p>

Pathmark gives Codex, Claude Code, opencode, Gemini CLI, Cursor, and any MCP-capable harness one local intent and provenance layer. Save decisions, constraints, preferences, and approved conclusions once. Use them from the next agent without pasting a recap.

Code remembers implementation. Pathmark remembers intent. Repository code, architecture, tests, CI, and intentional agent instructions remain authoritative for how the software works. Raw sessions are searchable evidence, not automatically trusted truth.

Your context stays on disk at ~/.pathmark/memory/memory.jsonl. You do not need an account, hosted database, API key, or vendor backend to start.

OpenAI Build Week 2026

Pathmark is a Developer Tools submission for OpenAI Build Week 2026. The project existed before the challenge, so the submission is deliberately scoped to the meaningful extension built after the submission period opened on July 13, 2026.

During the eligible period, Codex with GPT-5.6 helped audit and extend Pathmark from a working local memory layer into safer long-running developer infrastructure:

  • fixed a reproduced multi-process SQLite index race;
  • added revision history, superseding, expiration, retention, diagnostics, backup, compaction, and preview-first hard purge;
  • added namespace-scoped reads and writes plus default secret redaction;
  • added scoped import/export, optional AES-256-GCM portable exports, local hybrid reranking, and portable harness ingestion;
  • hardened CI and npm delivery with required CodeQL and dependency review, immutable Action pins, protected tags, OpenSSF analysis, and SLSA provenance.

The primary Codex session for this work is 019f5fc3-d7e6-7b41-8a30-d161c90b98fb. The qualifying release range is v0.1.6 through v0.1.7; the pre-challenge baseline is commit 4c0e87dfdbd2ba4c643abd8b887cc228bdb08b73.

See the Build Week implementation record for the before/after boundary, commit evidence, Codex collaboration details, and a fast judge test.

Why Pathmark

You do not work in one tool. You ask Codex to patch, Claude Code to review, opencode to clean up, and Gemini CLI to challenge the plan. Each tool starts cold unless you carry the context across.

Pathmark gives those tools one place to read and write intent and evidence:

  • One local JSONL store across harnesses.
  • Standard MCP tools include remember, search_memory, recall_memory, session_trace, rate_recall, consolidate_memory, audit_memory, and conclusion-first chat / ask_memory.
  • Client-side synthesis by default, so your coding agent reads the context and answers.
  • Optional Codex CLI, local command, and OpenAI-compatible synthesis modes.
  • Plain files you can inspect, back up, delete, or migrate.

Pathmark stays provider-neutral. Codex gets one optional synthesis preset. The core server works with any MCP client that can use local tools.

Pathmark requires Node.js 22.5 or newer.

Cross-Harness Memory

You switch tools during a coding session:

  • Codex fixes the failing test.
  • Claude Code reviews the patch.
  • opencode cleans the diff.
  • Gemini CLI challenges the approach.

Pathmark keeps the notes in one store.

Point each harness at the same store:

Codex       \
Claude Code \
opencode     >  Pathmark MCP  >  ~/.pathmark/memory/memory.jsonl
Gemini CLI  /
Cursor     /

Install Pathmark in each harness and point them at the same PATHMARK_STORE_DIR. One tool saves raw context with remember or proposes a durable conclusion with create_conclusion; an approved conclusion and raw evidence can then be recovered with recall_memory, search_memory, get_context, or ask_memory.

Pathmark sits below the agents as an intent, evidence, and provenance bus for your coding workflow.

Tools

Pathmark exposes these MCP tools:

| Tool | Purpose | | --- | --- | | remember | Save raw searchable evidence. Raw evidence is not treated as durable approved intent. | | create_conclusion | Propose a higher-signal durable conclusion or preference. Approval is required by default before recall. | | search_memory | Search memories and conclusions. | | recall_memory | Transparent recall: returns context plus the exact memory IDs, timestamps, sources, matches, tags, and previews used. Accepts optional tags, exact ids, and compact includeRecords: false output. | | session_trace | Return a bounded chronological audit trail for one session: prompts, exact injected memory IDs, redacted tool inputs/results, and answers. | | rate_recall | Label exact IDs from a chat / ask_memory recall as relevant or irrelevant so audit precision is measured. | | get_context | Return compact context for a task or question. | | list_conclusions | List approved saved conclusions. | | list_pending_conclusions | Review bounded, paginated pending conclusion proposals. | | approve_conclusion | Atomically approve a proposal, optionally correcting text/tags and recording the reviewer. | | reject_conclusion | Retain a rejected proposal in the audit trail while permanently excluding it from recall. | | get_memory_snapshot | Generate a bounded USER/PROJECT/AGENT snapshot from approved canonical conclusions. | | consolidate_memory | Review a bounded unsynthesized evidence batch and optionally stage evidence-backed proposals. Nothing is auto-approved. | | delete_memory | Soft-delete a memory or conclusion by id. | | update_memory | Correct a record while preserving prior versions. | | supersede_memory | Replace an outdated record with a linked current record. | | purge_memory | Preview or apply permanent deletion by id, namespace, tags, source, or date. | | audit_memory | Measure capture-to-recall behavior, unused records, recall age, duplicates, stale raw hits, and whether precision labels exist. | | doctor_memory | Report duplicates, deleted/expired records, conclusions, and index health. | | compact_memory | Preview or apply deduplication, retention, and physical cleanup with an automatic backup. | | backup_memory | Create a point-in-time canonical JSONL backup. | | export_memory | Export a scoped mergeable JSONL bundle, optionally encrypted. | | ask_memory | Return an approved-conclusion answer or scoped raw context, exact provenance, and a recall ID for feedback. | | chat | Chat-compatible alias for ask_memory, including multi-intent conclusion retrieval and explicit abstention. | | get_config | Show local store configuration. |

Quick Start

npm install -g pathmark

Then add the MCP server to your client.

Prefer npm for normal installs. To test the current GitHub main branch directly:

npm install -g --install-links=true github:hacksurvivor/pathmark

Generate a setup snippet for your harness:

pathmark setup list
pathmark setup claude-code
pathmark setup opencode --json
pathmark setup gemini-cli
pathmark setup kimi

See docs/compatibility.md for Codex, Claude Code, opencode, Gemini CLI, OpenClaw, Hermes Agent, Grok CLI, Kimi, GLM, and generic MCP setups.

Codex

codex mcp add pathmark -- pathmark

Codex users can also enable auto-capture:

pathmark codex install --replace-legacy-hooks

When you want the visible "what memory did you use?" entry in Codex, Claude Code, Cursor, opencode, Gemini CLI, Grok-compatible MCP hosts, or any other MCP harness, call the recall_memory tool before answering. Codex session start injects an approved conclusion snapshot. Before non-trivial prompts, Codex recalls approved conclusions first and uses fresh scoped raw evidence only as a bounded fallback. recall_memory remains the portable visible trace across harnesses.

Claude Code

claude mcp add --scope user pathmark -- pathmark

--scope user makes Pathmark available in every project; Claude Code's default scope only covers the current directory. For automatic capture and session-start recall (including after context compaction), merge the hooks block from pathmark setup claude-code into ~/.claude/settings.json.

Claude Code's built-in auto-memory lives in per-project folders the other agents cannot see. Bring it into the shared store as evidence (re-runnable; edits update in place with history, and records you delete in Pathmark stay deleted):

pathmark import-native claude-code --dry-run
pathmark import-native claude-code

opencode / Gemini CLI

Use the generated snippets:

pathmark setup opencode
pathmark setup gemini-cli

Claude Desktop

Add this to your Claude Desktop MCP config:

{
  "mcpServers": {
    "pathmark": {
      "command": "pathmark",
      "env": {
        "PATHMARK_STORE_DIR": "~/.pathmark/memory"
      }
    }
  }
}

Cursor

Add the same command to Cursor's MCP server settings:

{
  "mcpServers": {
    "pathmark": {
      "command": "pathmark"
    }
  }
}

Local Development

npm install
npm test
npm run coverage

Run directly:

PATHMARK_STORE_DIR=.pathmark npm run dev

Import Legacy Memory

Pathmark can import a compatible local JSONL memory store without deleting or moving the source files.

npm run import:legacy -- --source-dir ~/old-codex-memory

Defaults:

Legacy source:   ~/.pathmark/legacy/codex
Pathmark target: ~/.pathmark/memory/memory.jsonl

The importer creates a memory.jsonl.backup-* file before writing, uses deterministic ids so reruns skip duplicates, and redacts obvious KEY=..., TOKEN=..., PASSWORD=..., and Bearer ... values. It uses the same store lock as live MCP and Codex writers, so an import cannot overwrite records captured concurrently.

Use a dry run first when migrating another machine:

npm run import:legacy -- --source-dir ~/old-codex-memory --dry-run

Codex Auto-Capture

Install Pathmark as the Codex memory adapter:

pathmark codex install --replace-legacy-hooks

This registers t

Truncated for display — read the full file on GitHub.

Related Skills

View on GitHub
GitHub Stars3
CategoryDevelopment
Updated1d ago
Forks0

Languages

TypeScript

Trust signals

92/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 low