better-goal

better-goal is a plugin for Claude Code from fledgeling-co/fledgeling-plugins. Its manifest loads nothing; the 1 skill it bundles cost 357 tokens per session together, scanned A, original, MIT.

A plugin for keeping a long coding-agent run focused on a defined finish line using repository worklists, command-based checks, and session monitoring.

In plain words
What is it for?
Use it for multi-step tasks that need completion checks, session recovery information, and detection of stalled or incorrectly configured runs.
Why use it?
It checks whether the actual work is complete instead of relying only on what the agent says, and records runs that stop because of errors or stalled sessions.

Plugin for Claude Code

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.

Claude Code
/plugin marketplace add fledgeling-co/fledgeling-plugins
agentmods
npx agentmods add plugins/fledgeling-co/fledgeling-plugins/better-goal
Clone the repo
git clone --depth 1 https://github.com/fledgeling-co/fledgeling-plugins

Made for: Claude Code.

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 better-goal

README.md
[![agentmods](https://agentmods.dev/badge/plugins/fledgeling-co/fledgeling-plugins/better-goal.svg)](https://agentmods.dev/plugins/fledgeling-co/fledgeling-plugins/better-goal)
Your own site
<a href="https://agentmods.dev/plugins/fledgeling-co/fledgeling-plugins/better-goal"><img src="https://agentmods.dev/badge/plugins/fledgeling-co/fledgeling-plugins/better-goal.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 1 skill cost 357 tokens a session between them.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

better-goal 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 3d 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/better-goal/.claude-plugin/plugin.json · 10 lines

What it actually says

{
  "name": "better-goal",
  "description": "Hold a long autonomous run to a finish line using command hooks and a stall watcher this skill creates itself, rather than the built-in /goal. /goal is a prompt Stop hook judged by a small model on transcript text alone, so it grades what the run said rather than what is true, and Claude Code overrides any Stop hook after 8 consecutive blocks while reporting that turn as completed. better-goal (formerly goal-harness) grounds the finish line in the repo's real worklist, writes the brief to docs/goals/goal-<slug>.md, turns \"done\" into gate commands judged by exit code, preflights the settings that silently end a run, and registers four events rather than one: Stop runs the gates, StopFailure records a turn that ended on an API error, SessionEnd records a session that closed while armed, and a SessionStart sentinel tells the next session what is still armed and cold. It proves the hook actually loaded instead of assuming it, because a hook registered mid-session into a .claude/ Claude Code is not watching is written correctly and never fires. Its watcher reads the session transcript, so a long turn is not mistaken for a dead run. It stops deliberately when a gate fails identically turn after turn rather than re-sending the same failure, and answers \"has it been met?\" and \"why did you stop?\" from a ledger instead of a guess.",
  "version": "2.2.0",
  "author": {
    "name": "Fledgeling",
    "email": "[email protected]"
  }
}
Contents

What it installs

The manifest is a name and a version. 1 skill travel with it, and installing the plugin installs all of them — 357 tokens a session between them. Each is measured on its own page, and each can be installed alone.

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. 3d ago First seen · 10 lines scan A 689bee78bd1a

Subscribe to this mod's changes

better-goal is a plugin published in the GitHub repository fledgeling-co/fledgeling-plugins (2 stars, last pushed 3d ago), licensed MIT. Its token cost is not measured: this kind of file is read by the harness, not the model. 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.