agentleFS
karanmrnkaranmrn/kstack/skills/gnhf/SKILL.md

gnhf

Skill11 starsChanged 24 days agoMITView on GitHub

Use when the user asks to run GNHF, says they are going to sleep or leaving and wants an agent-managed coding run, asks to supervise, steer, or review an active GNHF run, or gives feedback on GNHF results.

5 other projects use a version of this, 3 of them edited; 3 of 3 edited versions we compared changed its rules.

How people change it

3 of 3 edited versions changed its rules, and some changes recur.

Of the 3 edited versions we compared: 3 made changes of their own.

Rules people drop

  1. Use --model <model> to select a model for a run. For config defaults and agent-specific restrictions, follow the README [Configuration](../../README.md#configuration).dropped by 2 of 3
  2. Default to the agent the user explicitly requested, or the one already configured and authenticated locally.dropped by 1 of 3

Rules people add

  1. If GNHF has no --model flag, put model requirements in the worker prompt or backend config. Do not invent unsupported flags.added by 2 of 3

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. 18 are common, 0 are distinctive, and 2 are very specific to this project.

  • 18

    Common

    Most of the 3 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Common:

    Use when the task is bounded, verification is clear, and the user wants one configured run to proceed without steering.

    line 22
  2. Common:

    Use when the task is uncertain, exploratory, design-heavy, research-heavy, or likely to need course correction.

    line 36
  3. Very specific:

    Default to Companion when the user asks to iterate until satisfied, requests multi-round work, provides review findings, asks for …

    line 38
  4. Common:

    Keep a note of original intent, branch, session id, and last known result.

    line 40
  5. Common:

    Treat review findings as the next acceptance criteria.

    line 43
  6. Common:

    Prefer a new bounded GNHF prompt over manually taking over implementation.

    line 44
  7. Common:

    Check the installed CLI before relying on flags:

    line 53
  8. Very specific:

    Use --model <model> to select a model for a run.

    line 70
  9. Common:

    Use only in Companion mode, when the host is supervising quality or deciding whether to continue with another bounded run.

    line 121
  10. Common:

    Read GNHF notes/logs as claims, not evidence.

    line 124
  11. Common:

    Run independent verification: tests, lint, build, typecheck, manual QA, or domain-specific checks.

    line 125
  12. Common:

    If the result needs follow-up, continue in Companion mode instead of presenting the run as complete.

    line 129
  13. Common:

    Use when the user provides findings such as "not preserved", "scope drift", "missing requirement", or "why did you stop".

    line 133
  14. Common:

    Treat the run as Companion mode.

    line 135
  15. Common:

    Use when the user returns with "good morning", "how did last night's run go?", or similar after a GNHF run.

    line 144
  16. Common:

    Do not ask what to review first.

    line 146
  17. Common:

    Default to the agent the user explicitly requested, or the one already configured and authenticated locally.

    line 163
  18. Common:

    Keep prompts outcome-based and evidence-based.

    line 172
  19. Common:

    Use concrete stop conditions.

    line 173
  20. Common:

    If the user is away, produce branches and a status report, not irreversible changes, unless explicitly authorized.

    line 174

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GNHF

Overview

GNHF is an agent orchestrator: it repeatedly calls another coding agent until a natural-language stop condition is met. This skill teaches the host agent to prepare one durable run and, in Companion mode, steer or review it.

Core rule: the host agent orchestrates; GNHF executes. Do not manually implement inside the same scope while a GNHF worker is responsible for it unless the user explicitly changes the delegation.

In Companion mode, GNHF completion is not user acceptance. "Stop condition met" only means the worker stopped; the host still compares the result to the user's latest requirements and fresh verification.

Modes

Choose exactly one mode for the run.

Hands-Off

Use when the task is bounded, verification is clear, and the user wants one configured run to proceed without steering.

  • Prepare a precise prompt with constraints, non-goals, verification, and stop condition.
  • Launch GNHF and wait for completion.
  • Intervene early only for hard failure, runaway scope, destructive behavior, or impossible prerequisites.
  • Report the final GNHF status after exit.

Examples:

  • English: "I'm going to bed. Use GNHF with Copilot to keep working on this branch and stop when the test suite passes."
  • Chinese: "我要睡了。用 GNHF 接着跑这个分支,测试都过了就停。"

Companion

Use when the task is uncertain, exploratory, design-heavy, research-heavy, or likely to need course correction.

Default to Companion when the user asks to iterate until satisfied, requests multi-round work, provides review findings, asks for design/skill/documentation improvement, or asks for supervision.

  • Keep a note of original intent, branch, session id, and last known result.
  • Poll the active GNHF process until exit or until an intervention point appears.
  • Intervene when the worker optimizes the wrong thing, repeats failed fixes, skips requested research, drifts scope, or claims success without evidence.
  • Treat review findings as the next acceptance criteria.
  • Prefer a new bounded GNHF prompt over manually taking over implementation.

Examples:

  • English: "Run GNHF for a few rounds on this onboarding flow. Check the diff between rounds and tighten the next prompt if it starts polishing the wrong thing."
  • Chinese: "用 GNHF 多跑几轮这个 onboarding 流程。每轮看一下 diff,如果它开始改偏了,就收窄下一轮 prompt。"

Launch

Check the installed CLI before relying on flags:

gnhf --help

Known shape:

gnhf \
  --agent <agent> \
  --max-iterations <n> \
  --stop-when "<observable completion condition>" \
  --prevent-sleep on \
  "<worker prompt>"

Use --model <model> to select a model for a run. For config defaults and agent-specific restrictions, follow the README Configuration.

Before launch:

git status --short
git branch --show-current
git log --oneline --max-count=5

Prompt skeleton:

Objective: <one concrete outcome>.

Use <agent/model requirement>. Work in this repo. Treat this as a long-running GNHF task.

Before coding, inspect the current repo, relevant docs, and recent commits. Preserve user changes. Do not make unrelated refactors.

After each meaningful slice, run relevant verification. If blocked, commit no fake success; leave notes with the blocker and evidence.

Stop only when: <observable completion condition>.

Steer

In Companion mode, evaluate after each iteration or meaningful output chunk:

SignalAction
Worker found a real blockerStop or relaunch with blocker-specific instructions
Good partial sliceLet it continue or tighten the next stop condition
Skipped requested researchRelaunch with research as explicit first deliverable
Worker changes unrelated filesStop and review before continuing
Worker claims success without verificationReview immediately; relaunch only with evidence-based stop condition
Reviewer finds a blocking issue or user says not satisfactoryRelaunch with that finding as the sole bounded correction

Steering prompt:

Continue from the current repo state. The previous run partially succeeded: <evidence>.

Do not redo completed work. Focus only on <bounded correction>.

The issue to fix now is <specific observed issue>. Verify with <commands/checks>.

Stop only when <observable condition>.

Companion Review

Use only in Companion mode, when the host is supervising quality or deciding whether to continue with another bounded run.

  1. Inspect branch, status, commits, changed files, and diff.
  2. Read GNHF notes/logs as claims, not evidence.
  3. Run independent verification: tests, lint, build, typecheck, manual QA, or domain-specific checks.
  4. Compare the result to the stop condition and the user's latest feedback.
  5. Decide: Mergeable, Needs follow-up GNHF run, or Do not merge.

If the result needs follow-up, continue in Companion mode instead of presenting the run as complete. Do not merge unless explicitly authorized.

Findings

Use when the user provides findings such as "not preserved", "scope drift", "missing requirement", or "why did you stop".

  1. Treat the run as Companion mode.
  2. Convert each finding into an observable correction. Preserve severity, file/line scope, and the user's wording.
  3. Relaunch on the same candidate branch when salvageable.
  4. Prompt the worker to fix only the bounded finding, preserve completed valid work, verify, and stop only when the finding is no longer true.
  5. Review again after the follow-up.
  6. Repeat until no blocking findings remain, verification passes, or a real blocker is found.

Morning Review

Use when the user returns with "good morning", "how did last night's run go?", or similar after a GNHF run.

Do not ask what to review first. Reconstruct state:

git status --short
git branch --show-current
git log --oneline --decorate --max-count=20
pgrep -fl 'gnhf|claude|codex|copilot|cursor-agent|opencode|rovodev' || true

Inspect likely GNHF branches, notes, logs, terminal sessions, and changed files. If a GNHF process is still running, report that first.

Report mode, agent, branch, status, changes, verification, stop-condition result, quality assessment, and recommended next action. Never summarize an overnight run from memory.

Agent

The supported --agent roster comes from gnhf --help; the Agents table in the GNHF README owns per-agent requirements. Do not hard-code the roster.

  • Default to the agent the user explicitly requested, or the one already configured and authenticated locally.
  • codex: repo-aware code work or review-heavy tasks.
  • claude: reasoning-heavy implementation or prose-heavy planning when configured.
  • acp:<target>: when the user wants to drive a custom ACP-compatible agent through GNHF.

Safety

  • Preserve user changes. Never run destructive git commands to clean up a GNHF branch.
  • In Companion mode, do not trust a worker's success summary without fresh verification.
  • Keep prompts outcome-based and evidence-based.
  • Use concrete stop conditions. Bad: "looks good". Good: "the target workflow succeeds, relevant checks pass, and no unrelated files changed."
  • If the user is away, produce branches and a status report, not irreversible changes, unless explicitly authorized.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.