Borrowing it
Nothing to install: this file belongs to PDgit12/knitbrain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PDgit12/knitbrain/main/.gemini/commands/goal.tomlgit clone --depth 1 https://github.com/PDgit12/knitbrainWrote 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.
[](https://agentmods.dev/commands/pdgit12/knitbrain/goal)<a href="https://agentmods.dev/commands/pdgit12/knitbrain/goal"><img src="https://agentmods.dev/badge/commands/pdgit12/knitbrain/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.
<a href="https://agentmods.dev/commands/pdgit12/knitbrain/goal"><img src="https://agentmods.dev/badge/commands/pdgit12/knitbrain/goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00355 |
| Opus 5.5 | $0.00000 | $0.00142 |
| Sonnet 5.5 | $0.00000 | $0.00071 |
| Haiku 4.5 | $0.00000 | $0.00036 |
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 14d 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.
What it actually says
description = "Drive a goal to a verify gate WITH YOU in this session (in-chat orchestration)" prompt = """ Drive the goal in the arguments to done WITH YOU in THIS session (single context). The verify gate is the truth, not your judgment.
- Treat the arguments as the goal (or a
goal.mdcheckbox file if one is named). - ORCHESTRATE FIRST — call the knitbrain_run tool with the goal and ADHERE to its verdict: adopt the returned SKILL (refine it, then knitbrain_skill_save); if it proposes agents, spawn them via your host's sub-agent mechanism and coordinate on knitbrain_team_post.
- Pick the verify command by precedence: an explicit --verify > the goal file's
VERIFY:line >npm testwhen a package.json exists. If none is derivable, ASK the user for the gate — do NOT invent a command that passes. - Read an optional --for <30m|1h> and convert it to deadline_ms.
- Drive the knitbrain_run_loop tool each cycle with { goal, verify_cmd, max_iters, deadline_ms }: make the smallest real fix, then call knitbrain_run_loop again with the SAME goal so iteration + the time budget carry across calls.
- NEVER fake met=true. Stop only at a real met=true, OR max_iters, OR the --for deadline, then report the honest final state (what passed, what is still open) and close the loop: knitbrain_record_learning + knitbrain_skill_outcome.
For a HANDS-OFF autonomous run (a FRESH agent per iteration, in the background), use /loop instead — it launches the external runner (knitbrain loop). """
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.
- 14d ago First seen · 13 lines · 0 tokens per session scan A f0682412b567
goal is a command published in the GitHub repository PDgit12/knitbrain (6 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 355 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-10-23.
goal compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| goalPDgit12/knitbrain | Command | 6 | 6d ago | MIT | A | 0 | Gemini CLI |
| lians-integrateLians-ai/Lians | Command | 17 | 4d ago | Apache-2.0 | A | 17 | Claude Code |
| ijfw-auditFerroxLabs/ijfw | Command | 214 | 4d ago | MIT | A | 28 | Claude Code |
| ui-aqa-flow-test-report-analysisgriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 19 | Claude Code |
| api-aqa-flow-execution-and-report-analysisgriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 28 | Claude Code |
| constraintsvinvcn/addyosmani-agent-skills-zh | Command | 46 | 17d ago | MIT | A | 20 | Claude Code |
| playwright-executekatalon-labs/true-skills | Command | 10 | 17d ago | MIT | A | 117 | GitHub Copilot |