harbor-clerk

harbor-clerk is a skill for Claude Code, Codex from r0shi/harborclerk. It costs 42 tokens per session (450 once invoked), scanned A, original, MIT.

A command-line search and reading tool for a local collection of documents, such as notes, emails, contracts, and other personal files. It combines text and meaning-based search and can return citation details.

In plain words
What is it for?
It helps search documents, list every matching file, read a known document, expand context around a result, and check whether a document has been imported.
Why use it?
It lets an agent find relevant stored information and inspect the surrounding context without manually opening the entire document collection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps search documents, list every matching file, read a known document, expand context around a result, and check whether a document has been imported.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/r0shi/harborclerk/harbor-clerk
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.

Any agent
npx skills add r0shi/harborclerk --skill harbor-clerk
Clone the repo
git clone --depth 1 https://github.com/r0shi/harborclerk

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 harbor-clerk

README.md
[![agentmods](https://agentmods.dev/badge/skills/r0shi/harborclerk/harbor-clerk/github.svg)](https://agentmods.dev/skills/r0shi/harborclerk/harbor-clerk)
Your own site
<a href="https://agentmods.dev/skills/r0shi/harborclerk/harbor-clerk"><img src="https://agentmods.dev/badge/skills/r0shi/harborclerk/harbor-clerk/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 harbor-clerk

Your own site · 80×15
<a href="https://agentmods.dev/skills/r0shi/harborclerk/harbor-clerk"><img src="https://agentmods.dev/badge/skills/r0shi/harborclerk/harbor-clerk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 450 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00042 $0.00450
Opus 5 $0.00021 $0.00225
Sonnet 5 $0.00008 $0.00090
Haiku 4.5 $0.00004 $0.00045

Measured 12d ago against content hash 9dc489cce37c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

harbor-clerk 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 12d 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.

skills/harbor-clerk/SKILL.md · 25 lines

What it actually says

Harbor Clerk - extended memory for agents

Harbor Clerk is a local document corpus with hybrid FTS+vector search and citation-ready reads. This skill exposes it via the harbor-clerk CLI.

First step: discover the surface

Run harbor-clerk --help for the full command list, then harbor-clerk <cmd> --help for any specific command. The help is comprehensive: JSON return shapes, examples, and common mistakes are all there.

Four patterns you'll use most

  1. Search → expand: harbor-clerk search "..." then harbor-clerk expand-context <chunk_id> -n 3 on the best hit.
  2. Find every matching document: harbor-clerk find-all "..." --text-contains "literal phrase" --presentation full when the task asks to list or enumerate.
  3. Read a known document: harbor-clerk read-document <doc_id> for full text with pagination.
  4. Check ingest status before searching for new content: harbor-clerk ingest-status <doc_id> returns per-stage state.

What you can trust

  • Search returns top-level .hits[]; Find All returns top-level .results[]. Result-bearing commands include source, citation, and chunk_id when available. Use those fields as the citation trail, then call read-passages when you need exact surrounding text.
  • possible_conflict: true means top hits span multiple similarly scored documents; inspect the relevant sources before answering.
  • ingest-status, read-document, and entity commands may require a Full-tier API key. If access is denied, continue with search and passage reads, and tell the user the key may be scoped too narrowly for that command.
  • The CLI exits non-zero on failure. Exit code 3 specifically means an admin has disabled CLI access; tell the user.
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. 12d ago First seen · 25 lines · 42 tokens per session scan A 9dc489cce37c

Subscribe to this mod's changes

harbor-clerk is a skill published in the GitHub repository r0shi/harborclerk (2 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 450 once invoked, about $0.0002 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-31.