pad CLAUDE.md

Development instructions for Pad, a project-management tool for developers and AI agents. It uses a Go backend, a Svelte web interface, and SQLite, a file-based database.

In plain words
What is it for?
Building and testing Pad, developing its web interface, changing its Go backend or CLI, and working with its agent skill.
Why use it?
They provide the project map and standard commands needed to make changes consistently across the backend, web interface, and command-line tool.

Instructions file

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.

agentmods
npx agentmods add instructions/perpetualsoftware/pad/claude-md
Clone the repo
git clone --depth 1 https://github.com/PerpetualSoftware/pad
Per session 15,292 This file is loaded in full into every session.
When invoked 15,292 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.15292 $0.15292
Opus 5 $0.07646 $0.07646
Sonnet 5 $0.03058 $0.03058
Haiku 4.5 $0.01529 $0.01529

Measured 2d ago against content hash c48ca81d7fc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pad CLAUDE.md scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 459 lines

How it starts

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

Pad — Development Guide

What This Is

Pad is a project management tool for developers and AI agents. Single Go binary with embedded SvelteKit web UI, SQLite storage, and multi-agent skill support (Claude Code, Cursor, Windsurf, Codex, OpenCode, Copilot, Amazon Q, Junie).

Related repo: The marketing website (getpad.dev) lives at ../pad-web — a separate SvelteKit site deployed to Vercel.

Architecture

  • Backend: Go (cmd/pad/main.go) → REST API (internal/server/) → SQLite (internal/store/)
  • Frontend: SvelteKit 2 + Svelte 5 (web/src/) → static build embedded in Go binary
  • Data model: Workspaces → Collections (typed with JSON schemas) → Items (structured fields + rich content)
  • CLI: Cobra commands in cmd/pad/main.go, HTTP client in internal/cli/
  • Agent skill: Single natural-language /pad skill in skills/pad/SKILL.md

Build & Install

make build      # Build web UI + Go binary (./pad)
make install    # Build, kill server, install to ~/.local/bin/pad, restart
make build-go   # Build Go only (skip web — faster when only backend changes)
make test       # Run Go tests
make web        # Build web UI only
make dev-web    # Run SvelteKit dev server (hot reload on :5173)

After making changes, always run make install to rebuild the binary, install it, and restart the server. The web UI at http://localhost:7777 will reflect the changes.

Quick iteration loop

  • Backend only: make install (skips web rebuild if no frontend changes — edit Makefile to use build-go instead of build in the install target)
  • Frontend only: make web && make install or use make dev-web for hot reload during development
  • Full rebuild: make install

Working in a git worktree

Agent sessions take a git worktree per task rather than sharing the main checkout (a shared checkout means a shared stash stack, branch state, and dirty files across sessions). Three rules keep web tooling working there:

  • Symlinking web/node_modules to the main checkout's copy is fine (and fast). Vitest, vite build, and npm run check all work through the symlink.
  • A fresh worktree has no web/.svelte-kit (gitignored, generated). Run npx svelte-kit sync in web/ before any vitest/vite command — or npm run check, which syncs first. Without it, vitest fails with Failed to load tsconfig '.svelte-kit/tsconfig.json': Tsconfig not found regardless of how node_modules was set up. (This missing generated dir was historically misdiagnosed as a symlink problem — npm ci "fixed" it only because its prepare script runs svelte-kit sync.)
  • Never run npm ci in a worktree whose web/node_modules is a symlink — including via make. npm ci lives in the web target, so every target whose dependency chain reaches it is off-limits too: currently web, build, install, serve, web-check, and check (via web-check). Everything else — build-go, dev, restart, test, test-pg, lint, vuln, web-test, dev-web, clean — never reaches npm ci. npm ci deletes through the symlink into the shared tree, breaking every other worktree and session at once with a confusing vitest: not found. If you want a real, isolated node_modules instead of a symlink, npm ci in an un-symlinked web/ is ~5s on a warm cache and regenerates .svelte-kit as a side effect.

Read the full file on GitHub · 459 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. 2d ago First seen · 459 lines · 15,292 tokens per session scan A c48ca81d7fc8

Subscribe to this mod's changes

pad CLAUDE.md is an instructions file published in the GitHub repository PerpetualSoftware/pad (146 stars, last pushed 3d ago), licensed Apache-2.0. It adds 15,292 tokens to every session, about $0.0765 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.