harvest-agent

An agent that reads project-notes Markdown files and turns starred items into grouped draft notes. Markdown is a plain-text format commonly used for structured notes.

In plain words
What is it for?
Collecting ⭐-marked notes from a chosen time period, clustering them by theme, and drafting titles and summaries for permanent notes.
Why use it?
It reduces the manual work of finding important notes, grouping related ideas, and preparing them for permanent reference.

Agent

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 agents/shdennlin/agent-plugins/harvest-agent
Clone the repo
git clone --depth 1 https://github.com/shdennlin/agent-plugins
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,727 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01727
Opus 5 $0.00000 $0.00864
Sonnet 5 $0.00000 $0.00345
Haiku 4.5 $0.00000 $0.00173

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

Security

Grade A, and why

harvest-agent 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.

plugins/project-notes/agents/harvest-agent.md · 201 lines

How it starts

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

Project Notes Harvest Agent

Scan project-notes markdown files for -marked items within a time window, group by semantic theme, and produce permanent-note draft candidates. Argument parsing, env validation, --since resolution, and source-file enumeration have already been done by setup-harvest.sh before you were dispatched. Your job is the LLM judgment work: extraction, clustering, theme titles, framing.

Input

You will receive a JSON config (from setup-harvest.sh):

{
  "since": "7d",
  "cutoff_date": "2026-05-11",
  "theme": "",
  "draft": false,
  "project_notes_dir": "/Users/me/Documents/project-notes",
  "source_files": [
    "/Users/me/Documents/project-notes/Photo Plan.md",
    "/Users/me/Documents/project-notes/Adhoc 2026-05.md"
  ],
  "harvest_dir": "/Users/me/Documents/project-notes/_harvest",
  "today": "2026-05-18"
}
  • cutoff_date: keep entries with date heading >= cutoff_date
  • source_files: canonical list (already excludes _template.md) — do NOT re-glob
  • harvest_dir: pre-created and writable when draft=true; for draft=false, do not create it

Behavior

You operate in 4 phases. Run them in order.

Phase 1: Collect ⭐ items

For each path in source_files:

  1. Read the file
  2. Walk through ## Sessions, parsing each ### YYYY-MM-DD <weekday> block (heading may optionally have — <topic> suffix in adhoc files)
  3. For each block where the date >= cutoff_date:
    • Find lines starting with - ⭐ under any field header
    • Capture for each ⭐ line:
      • content: text after - ⭐
      • field: which field (Decisions / Snags / Touched / Re-learn / Next)
      • source_file: relative path (basename) from project_notes_dir
      • source_date: the YYYY-MM-DD heading

Build a flat list of {content, field, source_file, source_date}.

If theme filter is set (non-empty), retain only items whose content (case-insensitive) contains the keyword.

If the list is empty, report: "No ⭐ items found in window (since=<since>, cutoff=<cutoff_date>). Either capture more or widen --since."

Read the full file on GitHub · 201 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 · 201 lines · 0 tokens per session scan A a7ce5be1b940

Subscribe to this mod's changes

harvest-agent is an agent published in the GitHub repository shdennlin/agent-plugins (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,727 tokens. 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.