goal

goal is a skill for Claude Code, Codex from coco-research/coco. It costs 85 tokens per session (1,594 once invoked), scanned A, original, Apache-2.0.

A persistent project goal keeps an objective across sessions and tools. It also supports a loop for continuing work, checking progress, and resuming until the objective is achieved.

In plain words
What is it for?
Use it to set a goal, check its status, resume it, or keep working on a task until it is done.
Why use it?
It prevents a long-running objective from being lost when a session ends or work moves between tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to set a goal, check its status, resume it, or keep working on a task until it is done.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/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.

Any agent
npx skills add coco-research/coco --skill goal
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code, Codex.

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/skills/coco-research/coco/goal/github.svg)](https://agentmods.dev/skills/coco-research/coco/goal)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/goal"><img src="https://agentmods.dev/badge/skills/coco-research/coco/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/skills/coco-research/coco/goal"><img src="https://agentmods.dev/badge/skills/coco-research/coco/goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,594 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.00085 $0.01594
Opus 5.5 $0.00034 $0.00638
Sonnet 5.5 $0.00017 $0.00319
Haiku 4.5 $0.00009 $0.00159

Measured 2mo ago against content hash d0369360d9a1, 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.

skills/goal/SKILL.md · 139 lines

How it starts

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

Goal — persistent project objective

A goal is a single objective the agent keeps pursuing across turns and sessions until it is marked done. Inspired by Prime Agent's thread goal: state lives outside any one conversation, so any tool with this skill installed (Claude Code, Cursor, Codex, ...) picks up where another left off.

State file

One file per project: .goal.md in the repository root. Human-readable and human-editable on purpose — pause, resume, edit, and clear are controlled by the user editing the file directly.

---
objective: Ship release notes for v2.3
status: active        # active | paused | done
created: 2026-08-22
---

## Progress
- 2026-08-22 14:02 — drafted changelog from git log

Optional sections the loop reads if present: ## Queue (ordered work items), ## Standing constraints (owner-set rules that bind every session), ## Decisions (recorded owner calls — binding, never re-litigated), ## Done criteria.

API

  • get — read .goal.md. No file means no goal is set. Report the objective, status, and latest progress entries when asked about goal status.
  • create(objective) — write .goal.md with status: active and today's date. If an active goal already exists, do NOT silently replace it; show it and ask whether to complete, pause, or replace. Only create a goal when the user explicitly asks for a persistent goal; do not infer goals from ordinary tasks.
  • update(note) — append one dated line to ## Progress after each meaningful work session toward the goal. Keep notes short and factual.
  • complete() — set status: done. Only when the objective has actually been achieved and no required work remains — not because the session is ending or momentum ran out.

Session behavior

At the start of a session in a repo containing .goal.md:

  • status: active — surface the objective to the user, then ENTER THE WORK LOOP below before starting unrelated work.
  • status: paused — mention it exists; resume only if the user asks.
  • status: done — leave it as history; offer to archive or replace.

Read the full file on GitHub · 139 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 First seen · 139 lines · 85 tokens per session scan A d0369360d9a1

Subscribe to this mod's changes

goal is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 85 tokens to every session and 1,594 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-09-15.

Related

goal compared with skills from other repositories

goal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
goalcoco-research/cocoSkill323yesterdayApache-2.0A85Claude Code, Codex
session-handoffwanshuiyin/HERO-Anti-OverDefenseSkill92912d agoMITA34Claude Code, Codex
planning-with-filesmxyhi/ok-skillsSkill51810d agoApache-2.0A117Claude Code
caldav-calendarmarcusquinn/aidevopsSkill476todayMITA31Claude Code
the-pragmatic-programmerciembor/agent-rules-booksSkill3.4k2mo agoMITA36Claude Code, Codex
side-conversationChemaclass/agnostic-aiSkill31todayMITA38Claude Code, Codex
infrastructure-toolsdocxology/templateSkill25todayApache-2.0A168Claude Code, Codex