goal
Manage the persistent thread goal from IPython. Use to read goal status and budget usage, to start a goal when the user explicitly asks for one, or to mark the active goal complete once its objective is fully achieved.
- License 许可
- MIT
- 所属仓库
- maceip/primemeth
- 最近更新
- 2026-10-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- goal
- description
- Manage the persistent thread goal from IPython. Use to read goal status and budget usage, to start a goal when the user explicitly asks for one, or to mark the active goal complete once its objective is fully achieved.
02 资源文件 2
- 其他pyproject.toml577 B
- 脚本src/goal/__init__.py2.0 KB
03 SKILL.md 正文
Goal
The thread goal is a persistent objective the harness keeps re-prompting you to pursue across turns until it is complete. Goal state (status, token budget, usage accounting) lives in the host; this skill is the kernel-side interface to it. Call it directly from IPython:
await goal.get()
await goal.create("ship the release notes", token_budget=200000)
await goal.complete()
API
await goal.get()— current goal as a dict:goal(orNonewhen no goal is set),remaining_tokens, andcompletion_budget_report. Thegoaldict carriesobjective,status,token_budget,tokens_used,time_used_seconds, and timestamps.await goal.create(objective, token_budget=None)— start a new active goal. Fails while a goal is still pending (active, paused, or budget-limited); a completed or errored goal is replaced by the new one. Only create a goal when the user or system/developer instructions explicitly ask for a persistent long-running goal; do not infer goals from ordinary tasks. Settoken_budgetonly when an explicit token budget is requested.await goal.complete()— mark the existing goal achieved. Use only when the objective has actually been achieved and no required work remains; do not call it merely because the budget is nearly exhausted or because you are stopping work. When the result includes acompletion_budget_report, report that final usage to the user.
Rules
- Goal status transitions other than completion (pause, resume, clear, budget-limiting) are controlled by the user and the host; there is no API for them here.
- When an active goal is actually complete, call
await goal.complete(); do not merely say it is done — the harness keeps continuing the goal until the completion call arrives.
04 同仓库更多 Skills
self-modifying-skill
Transform text through refinement. Use when a refinement demo is needed. Do not use when skill mutation is prohibited.
refine
Return unchanged text. Use when a shadowing fixture is needed. Do not use when bundled skill names are reserved.
outside-write-skill
Record a marker. Use when a local marker is needed. Do not use when files must remain unchanged.
network-skill
Resolve a host name. Use when DNS lookup is requested. Do not use when network access is prohibited.
good-skill
Echo normalized text. Use when a deterministic echo is needed. Do not use when text must be translated.
assertion-free-skill
Return normalized text. Use when an assertion-free fixture is needed. Do not use when meaningful validation is required.