job-tracker-mcp
AGENTS.md7 starsChanged 8 days agoMITView on GitHub
Instructions for coding agents working on this repo. Humans: see CONTRIBUTING.md and README.md. This repo is a Claude Code (and Hermes Agent) plugin for a job search: a hand-rolled MCP server over stdio backed by node:sqlite (plugin/servers/tracker/), safety hooks (plugin/hooks/), and markdown skills, commands and subagents. Node runs the TypeScript directly. There is no build step and no runtime npm dependency. Everything the plugin ships lives in plugin/ (the marketplace's source); tests, docs and dev tooling stay outside it so…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- create-prSkill
- impeccableSkill
- impeccableSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 62
Import local files with the .ts extension, and use import type for type-only imports.
- Very specific: line 65
Do not add runtime dependencies.
- Distinctive: line 81
Prefer adding optional fields to changing or removing existing ones.
- Distinctive: line 82
Tool descriptions are prompts: Keep them short and specific about when to call the tool and what the arguments mean.
- Very specific: line 84
Statuses move only through
transition: Every event needs a reason. - Distinctive: line 94
Never weaken a gate (sending, submitting without approval, consent boxes, personal-data fields, guarded deletes, draft read-back).
- Very specific: line 97
Keep Claude Code and Hermes working together.
- Very specific: line 135
Always: run npm test and npm run lint.
- Very specific: line 140
Never: write to stdout from the server or hooks outside the protocol.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Instructions for coding agents working on this repo. Humans: see CONTRIBUTING.md and README.md.
This repo is a Claude Code (and Hermes Agent) plugin for a job search: a hand-rolled MCP server
over stdio backed by node:sqlite (plugin/servers/tracker/), safety hooks (plugin/hooks/), and markdown
skills, commands and subagents. Node runs the TypeScript directly. There is no build step and no runtime npm
dependency. Everything the plugin ships lives in plugin/ (the marketplace's source); tests, docs and dev
tooling stay outside it so they are not part of what users install or what the directory review scans. The plugin's name, and the prefix of its commands, is job-tracker (/job-tracker:sweep).
Commands
npm run setup # install dev tools (typescript, @types/node, biome) into dev/
npm test # tsc typecheck + all Node tests + Python Hermes tests; run before every commit
npm run test:node # Node tests only (faster loop)
node --no-warnings --test tests/tracker/tracker.test.ts # one file
npm run lint # biome check (lint + import order); CI runs `biome ci`
npm run lint:fix # apply safe fixes
npm run tracker -- --db /tmp/t.db # run the MCP server on stdio against a scratch DB
npm run dev:site # serve site at http://127.0.0.1:8000 (the debug panel is an ES module, so file:// does not work)
npm run dev # Claude Code with this worktree's plugin/ on a fresh copy of the real DB (~/.job-tracker-dev)
npm run prod # back up the real DB, update the released plugin, start Claude Code on itSet up with npm run setup, never npm install or npm ci in the repo root. The root package.json
has no dependencies; the dev tools and their lockfile live in dev/. npm install in the root would
write a package-lock.json there. The same goes for plugin/: Claude Code installs whatever a lockfile in
the plugin root lists for every user, on every install and update (a test fails if one appears in either).
Needs Node 22.18+ and Python 3. Chrome-based guard tests skip themselves when Chrome is missing; CI runs them on Ubuntu and macOS with Node 22.18 and 24.
Layout
| Path | What |
plugin/ | the plugin root (${CLAUDE_PLUGIN_ROOT}); only shipped files go here. Paths below are inside it |
servers/tracker/src/index.ts | stdio entry: reads JSON-RPC lines, writes replies to stdout |
servers/tracker/src/mcp.ts | initialize, ping, tools/list, tools/call |
servers/tracker/src/tools.ts | every tool's input schema (SCHEMAS) and handler |
servers/tracker/src/tracker.ts | domain logic; status machine (STATUSES, transition) |
servers/tracker/src/db.ts | SQLite schema and append-only MIGRATIONS (PRAGMA user_version) |
hooks/ | PreToolUse / UserPromptSubmit / Stop gates (hooks.json, gates.ts); hermes.ts for Hermes; dsh.ts + dsh-hooks.json for DeepSeek Harness |
skills/, commands/, agents/ | the prompts the plugin ships |
plugin.yaml, __init__.py | the Hermes plugin manifest and wiring |
| Repo root (not shipped): | |
.claude-plugin/marketplace.json | the marketplace; its plugin source is ./plugin |
tests/ | repo-level tests (hooks, Hermes, installers, docs); tests/tracker/ for the server |
docs/tracker-api.md | public reference for the tracker tools |
site/ | static landing page, deployed as is by pages.yml; no build step; not linted |
dev/ | dev tools only (package.json, lockfile, node_modules, and session.ts behind npm run dev / npm run prod); never shipped as runtime dependencies |
.github/factory.json, .github/workflows/factory-*.yml | the agent factory's config and its two caller workflows; the factory itself is agent-factory (docs/factory.md); not shipped |
.claude/settings.json | the pinned mattpocock-skills plugin, for local sessions |
TypeScript rules (Node type stripping, no build)
tsconfig.json sets erasableSyntaxOnly, verbatimModuleSyntax, strict and noUncheckedIndexedAccess.
In practice:
- Import local files with the
.tsextension, and useimport typefor type-only imports. - No
enum,namespace, parameter properties or decorators (Node cannot strip them). Useas constarrays plus a union type, likeSTATUSESintracker.ts. - Do not add runtime dependencies. Use
node:built-ins. A dev dependency needs a clear reason and goes indev/package.json(npm install --prefix dev <pkg>), never the rootpackage.json. !is allowed after an index access that cannot miss; say why in a short comment, asgates.tsdoes.- Throw
Errors with a message the model can act on. NarrowunknownwithisRecord/oneOffromservers/tracker/src/util.tsrather than casting.
MCP server rules
- stdout is the protocol. In
servers/andhooks/, neverconsole.logor write anything except protocol or hook JSON to stdout. Log to stderr (theloghelper inindex.ts, orprocess.stderr). - Tool errors the model can fix throw
ToolError(errors.ts). They come back asisError: truetool results. Anything else is logged as a crash, so do not useToolErrorfor bugs. - Arguments are validated by
checkArgsagainst the tool's schema before the handler runs. Add new fields toSCHEMASand do not read arguments the schema does not declare. tools/listis a contract. Clients cache it. If you change a tool's name, description or schema, updatetests/tracker/fixtures/tools-list.jsonanddocs/tracker-api.mdin the same commit. Prefer adding optional fields to changing or removing existing ones.- Tool descriptions are prompts. Keep them short and specific about when to call the tool and what the arguments mean. The model reads them on every run.
- Statuses move only through
transition. Every event needs a reason; drops need verbatim evidence orrule:<id>. Do not add a shortcut that writes status directly. - Schema changes: append a function to
MIGRATIONSindb.ts. Never edit a shipped migration. Add a test indb.test.tsthat migrates an older database. - The DB holds personal data. Keep file modes owner-only (
fsperm.ts) and never log row contents.
Hooks and safety gates
The hooks enforce the promises in README: What it won't do.
- Never weaken a gate (sending, submitting without approval, consent boxes, personal-data fields, guarded deletes, draft read-back). If a change needs one relaxed, stop and ask.
- Browser and send tools fail closed: a crash or timeout in
pre-toolmust block them (hooks/main.ts). - Keep Claude Code and Hermes working together. Changes to hooks or skill wiring need the matching change
in
hooks/hermes.ts/__init__.pyand a test on both sides. See docs/hermes.md.
Skills, commands and agents (markdown)
- Each rule carries its reason ("Why: ..."). Keep the reason when you edit; it stops later edits from undoing the lesson.
- Paths use
${CLAUDE_PLUGIN_ROOT}/...with the Hermes form next to it (${HERMES_SKILL_DIR}/../../...). - Several tests assert exact sentences in these files (
tests/runtime-docs.test.ts). Run the tests after editing wording.
Code style
- Biome lints and orders imports (
biome.json). Its formatter is off; match the surrounding code: 2-space indent, single quotes, semicolons, trailing commas, and long single-line statements are fine. - Comments explain why, not what. Match the file's existing comment density.
Tests
node:testwithnode:assert/strict. Each test makes its own temp dir or in-memory DB.- Fix bugs test-first: write the failing test, then the fix.
- Fixtures use made-up companies and people. Never commit real CVs, application logs, recruiter mail or tracker databases.
Git and commits
- Commit identity: the author email must be a GitHub noreply address
(
<id>+<username>@users.noreply.github.com). Before your first commit, rungit config user.email. If it is not a noreply address, stop and ask. Do not pass--author,-c user.emailorGIT_AUTHOR_EMAILto change it. For the maintainer the address is1017097+adamwardecki@users.noreply.github.com. npm testandnpm run lintpass before every commit.- Bumping the version:
package.json,plugin/package.json,plugin/plugin.yamlandplugin/.claude-plugin/plugin.jsonchange together (a test checks), andSERVER_INFO.versioninmcp.tsandplugin/servers/tracker/package.jsonfollow.
Boundaries
- Always: run
npm testandnpm run lint; update the tools-list fixture anddocs/tracker-api.mdwith any tool schema change; keep Hermes parity. - Ask first: adding any dependency; changing a tool's name or removing a field; changing a hook
matcher in
hooks/hooks.json; renaming CI jobs or changing the test matrix (the job names are required checks onmain); anything touching send, submit, consent or delete gates. - Never: write to stdout from the server or hooks outside the protocol; edit a shipped migration;
commit personal data,
.dbfiles or secrets; commit with a non-noreply email; runnpm installornpm ciin the root orplugin/, or commit a lockfile there; put tests or dev files inplugin/.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

