ClaudeMap

Agent Crop

A local measurement plugin for coding agents: records where session time actually goes, makes the agent reflect when it stalls, and writes the retrospective back into how it works — data never leaves your machine

Plugins & Agentspluginsobservabilitymetricsworkflow

Agent Crop (npm package agent-crop-dsh) instruments coding-agent sessions the way backend teams instrument requests: a probe records tool names with success/failure, per-turn stop times, user waits and rework signals into a local JSONL store (~/.agentcrop/data, mode 0700), and when a turn crosses the timeout lines it injects a reminder and requires the agent to self-report cause, verdict and category via the crop_update tool — category being a locked nine-value enum (serial-wait, repeat-pitfall, design-churn, decision-batching, tool-misuse, no-evidence, spec-drift, human-wait, other). The session panel draws a per-work lane timeline with nudge positions marked, and the summary is written only after you confirm the work is done; a global view adds five friction metrics, daily active/wait stacked bars, and a collector-health view for whether the instrumentation itself is still reporting. DeepSeek Harness is the primary host (native plugin plus system-prompt protocol plus panel); on Claude Code the crop tool is exposed via .mcp.json and injections run through hooks. Self-reported judgments are never treated as conclusions on their own — they are read against the automatically collected times and failure counts.

What it does

  • Records tool names with success/failure, per-turn stop times, user waits (gaps between turns of up to 15 minutes count as waiting; anything longer, or outside working hours, becomes idle_gap) and rework signals such as repeated tool calls, into a local ~/.agentcrop/data JSONL store (mode 0700, overridable via KIT_DATA_DIR)
  • When a turn crosses the yellow line (10 minutes per work) or the red line (30 minutes single-turn), it injects a reminder and the agent must fill cause/verdict/category via crop_update; category is a locked nine-value enum, not free text
  • The session panel draws a per-work lane timeline (active stretches as blue bars, nudge positions marked) and writes the completion summary only after you confirm the work is done — the single human-feedback node
  • The global view adds five friction metrics, daily active/wait stacked bars (blue active, yellow waiting), self-reported improvements and repeat-pitfall lists; a collector-health view checks whether the probes themselves are still reporting (crop health --json for scripts)

When to use it

Use it when you run concurrent agent sessions and cannot tell whether an afternoon of work produced value or churn — the README's own case is an agent repeatedly paging through help for a multi-subcommand deploy tool until the retrospective surfaced the missing skill page.

Getting started

git clone https://github.com/oriliz/agent-crop.git ~/agent-crop
claude plugin marketplace add ~/agent-crop
claude plugin install agent-crop@agent-crop -s user
claude plugin list

Things to know

DeepSeek Harness is the recommended primary host (native plugin; the plugin declares engines.dsh ">=0.2.1 <0.3.0"); on Claude Code the crop tool arrives via .mcp.json and injections via hooks, so a new session is required after install. The README is candid that coverage is incomplete: type/difficulty fields are often empty, verdict samples are sparser, and the health thresholds (coverage >= 80%, field completeness >= 95%) were set by hand without calibration — with fewer than 3 sessions it only reports too-few-samples. Uninstalling removes the plugin and protocol sections but keeps the data directory; clearing it is a separate rm -rf ~/.agentcrop.

Repository

oriliz/agent-crop

Charted

Related on the map

  • clawd-conduit

    Plugin / Agent

    Wire all 15 Claude Code hook events into the Clawd on Desk desktop pet — and turn permission requests into a blocking desktop card.

    • hooks
    • desktop
    • notifications
    • claude-code
  • CometixCode

    Plugin / Agent

    An unofficial Rust 1:1 reimplementation of the Claude Code terminal UI, ported file-for-file onto an iocraft TUI framework.

    • terminal-ui
    • rust
    • reimplementation
    • unofficial
  • Abide

    Plugin / Agent

    Hook-level enforcement for the natural-language rules in AGENTS.md and CLAUDE.md — every edit is judged and violations are repaired in the same turn.

    • hooks
    • code-review
    • rules
    • agents-md
  • fast-jev-compaction

    Plugin / Agent

    A Claude Code plugin that replaces the lossy compaction summary with Jev-scored pruning: stale tool calls are dropped, and everything kept stays verbatim.

    • plugin
    • context-management
    • compaction
    • function-hooks
  • Anthropic's official Claude Cowork plugin for financial advisors — eight ready-to-run compliance-aware workflows over the firm's own connectors.

    • official
    • plugin
    • finance
    • cowork
  • Claude ADHD

    Plugin / Agent

    A Claude Code plugin for ADHD brains that remembers what you said but never finished — two-layer capture, session digests, gentle nudges and a focus mode. Yours, not the model's.

    • plugin
    • adhd
    • memory
    • reminders