goal

goal is a command for Claude Code from hamza-ali-shahjahan/hamzaish. It costs 74 tokens per session (1,685 once invoked), scanned A, original, MIT.

An autonomous workflow for reaching a measurable objective. It scores progress against a rubric, fixes the largest shortfall, verifies the result, records each run, and stops after confirmation or when its budget is used.

In plain words
What is it for?
Use it for tasks with a numeric target and a way to score success, such as improving test coverage or closing quality gaps.
Why use it?
It reduces the need to repeatedly inspect progress, choose the next fix, and decide whether the objective is complete.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

Good fit Use it for tasks with a numeric target and a way to score success, such as improving test coverage or closing quality gaps.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hamza-ali-shahjahan/hamzaish/goal
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.

Clone the repo
git clone --depth 1 https://github.com/hamza-ali-shahjahan/hamzaish

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 goal

README.md
[![agentmods](https://agentmods.dev/badge/commands/hamza-ali-shahjahan/hamzaish/goal/github.svg)](https://agentmods.dev/commands/hamza-ali-shahjahan/hamzaish/goal)
Your own site
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/hamzaish/goal"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/hamzaish/goal/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 goal

Your own site · 80×15
<a href="https://agentmods.dev/commands/hamza-ali-shahjahan/hamzaish/goal"><img src="https://agentmods.dev/badge/commands/hamza-ali-shahjahan/hamzaish/goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 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,685 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.00074 $0.01685
Opus 5.5 $0.00030 $0.00674
Sonnet 5.5 $0.00015 $0.00337
Haiku 4.5 $0.00007 $0.00169

Measured 2mo ago against content hash 60df028cdeef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo 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.

factory/commands/goal.md · 86 lines

How it starts

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

You are running a goal loop: an autonomous, self-verifying improvement loop that drives an artifact toward a stated objective and does not stop until the goal is achieved and independently verified (or the run budget is exhausted).

The objective is in $ARGUMENTS. If empty, ask the user for it once, then proceed.

Sibling of /hamzaish. /hamzaish walks an engineering cycle with human gates; /goal replaces the human gate with a rubric + fresh-eyes verification gate so it can iterate unattended toward a target.

The non-negotiable: the run log IS the loop

The loop's memory and state live in a run log, and writing it is not optional bookkeeping — it is a step of the loop the loop cannot skip. The rule:

No run advances until its log entry is written. If you implemented a change but have not appended the run entry, the run is not finished. The log is written before the next fresh-eyes assessment begins.

This makes the loop resumable (re-invoking /goal reads the log and continues), auditable (every change traces to a gap and a score delta), and honest (regressions are recorded, not hidden).

Where the log lives

In the target project, not the skill dir:

  • .goal/<goal-slug>/log.md — human-readable: header block + scoreboard + one section per run.
  • .goal/<goal-slug>/runs.jsonl — one JSON object per run (machine-readable, for resume and trend).

<goal-slug> is a short kebab-case slug of the objective.

Header block (write once, at loop start)

# Goal: <objective>
Started: <date>  ·  Target: <artifact/project>  ·  Category: <category + named comparables>
Bar: <e.g. weighted ≥ 9.0/10, sustained 2 consecutive runs, no criterion < 8>
Max runs: <N, default 20>

## Rubric (weighted)
| # | Criterion | Weight | What a 10 looks like |
...

## Scoreboard
| Run | Weighted | <crit1> | <crit2> | ... | Gap targeted | Decision |

Per-run entry (append every run, before the next assessment)

### Run K — <date>
- **Score before:** <weighted> (<per-criterion>)
- **Top gap (fresh-eyes):** <the single highest-impact intuitiveness/quality gap>
- **Change made:** <one focused change — what & why>
- **Files touched:** <paths>
- **Verification:** <build/test/preview result — evidence>
- **Score after:** <weighted> (<per-criterion>)  ·  Δ <+/->
- **Decision:** continue | achieved | blocked | budget-exhausted

Also append the matching JSONL line to runs.jsonl.

Read the full file on GitHub · 86 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. 2mo ago Changed 60df028cdeef
  2. 3mo ago First seen · 86 lines · 74 tokens per session scan A 2e9060cae202

Subscribe to this mod's changes

goal is a command published in the GitHub repository hamza-ali-shahjahan/hamzaish (11 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 1,685 once invoked, about $0.0003 per session on Opus 5.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.

Related

goal compared with commands from other repositories

goal next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
goalhamza-ali-shahjahan/hamzaishCommand111mo agoMITA74Claude Code
startalifanov/ai-garage-launchCommand23mo agoMITA28Claude Code
statusalifanov/ai-garage-launchCommand23mo agoMITA25Claude Code
channelalifanov/ai-garage-launchCommand23mo agoMITA27Claude Code
paymentsalifanov/ai-garage-launchCommand23mo agoMITA27Claude Code
validatealifanov/ai-garage-launchCommand23mo agoMITA28Claude Code
analyticsalifanov/ai-garage-launchCommand23mo agoMITA25Claude Code