agent-notepad

A plugin that gives a coding agent persistent working memory for each objective. It stores notes and an append-only journal in a separate Git repository and can cover several code repositories.

In plain words
What is it for?
Use it to track ongoing coding objectives, maintain session history, share handoffs, and keep related repositories coordinated.
Why use it?
It preserves useful context when a conversation is shortened and provides a durable record that can be continued across sessions or machines.

Plugin for Claude Code

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.

Claude Code
/plugin marketplace add OneDro1d/dark-factory
agentmods
npx agentmods add plugins/onedro1d/dark-factory/plugin
Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade B, and why

agent-notepad 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 today.

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.

"$comment": "The four USER-LEVEL Notes hooks declared here mirror what install.sh merges into ~/.claude/settings.json (that path uses ${HOME}/.claude/hooks/agent-notepad/...; this plugin path uses ${CLAUDE_PLUGIN_ROOT} p
skills/agent-notepad/plugin/.claude-plugin/plugin.json · 65 lines

How it starts

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

{
  "name": "agent-notepad",
  "version": "1.0.0",
  "description": "Persistent, per-objective working memory for coding agents — one standalone git notepad per objective that survives compaction, spans multiple code repos from a single session, keeps an append-only journal, and mirrors into an episodic memory index. Evolves and supersedes handoff-auto.",
  "author": {
    "name": "Loom / Dark Factory Process"
  },
  "keywords": [
    "memory",
    "working-memory",
    "handoff",
    "compaction",
    "context",
    "notepad",
    "dark-factory"
  ],
  "$comment": "The four USER-LEVEL Notes hooks declared here mirror what install.sh merges into ~/.claude/settings.json (that path uses ${HOME}/.claude/hooks/agent-notepad/...; this plugin path uses ${CLAUDE_PLUGIN_ROOT} per DESIGN §15). The PreToolUse commit gate is intentionally NOT declared here — it ships in the notepad template's .claude/settings.json so it arms ONLY inside a notepad session (DESIGN §7.6/§15). The digest builder (hooks/digest-build.sh) is a standalone script triggered by a debounced Stop or a scheduled job, not a native hook event, so it is not declared here either.",
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup|resume|clear|compact",
        "hooks": [
          {
            "type": "command",
            "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh\""
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/user-prompt.sh\""
          }
        ]
      }
    ],
    "PreCompact": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/pre-compact.sh\""
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/stop.sh\""
     

Read the full file on GitHub · 65 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. today First seen · 65 lines scan B 61dcfdecd760

Subscribe to this mod's changes

agent-notepad is a plugin published in the GitHub repository OneDro1d/dark-factory (0 stars, last pushed today), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-09-01.