EveryDev.ai
Subscribe
Home
Tools

3,020+ AI tools

  • New
  • Trending
  • Featured
  • Compare
  • Arena
Categories
  • Agents2063
  • Coding1441
  • Infrastructure665
  • Marketing524
  • Projects470
  • Research437
  • Design408
  • Analytics371
  • MCP268
  • Security265
  • Testing255
  • Data249
  • Integration183
  • Prompts183
  • Communication172
  • Learning166
  • Extensions163
  • Voice146
  • Commerce132
  • DevOps115
  • Web84
  • Finance24
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai © 2026
    1. Home
    2. Tools
    3. gnhf
    gnhf icon

    gnhf

    Agent Frameworks
    Featured

    An open-source CLI orchestrator that keeps your AI coding agents running autonomously overnight, committing incremental changes while you sleep.

    Visit Website

    At a Glance

    Pricing
    Open Source

    Fully free and open-source under the MIT License. Install via npm or from source.

    Engagement

    Available On

    Windows
    macOS
    Linux
    Web
    API

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Agent FrameworksAI Coding AssistantsAutonomous Systems

    Alternatives

    evoBabysitterProliferate
    Developer
    Kun ChenKun Chen builds open-source developer tooling focused on AI-…

    Listed Jul 2026

    About gnhf

    gnhf ("good night, have fun") is an open-source CLI tool built by Kun Chen that lets you hand off a coding objective to an AI agent before bed and wake up to a branch full of clean, committed work. It runs on macOS, Linux, and Windows, is installable via npm, and is licensed under MIT. The project has accumulated over 2,600 GitHub stars since its creation in early 2026.

    What It Is

    gnhf is an autonomous agent orchestrator in the style of ralph and autoresearch-style loops. You give it a natural-language objective, and it drives a supported AI coding agent — Claude Code, Codex, GitHub Copilot CLI, Rovo Dev, OpenCode, Pi, or any ACP target — in a non-interactive loop. Each iteration makes one small, committed, documented change toward the goal. If an iteration fails, gnhf rolls it back and retries; if it succeeds, the change is committed to a dedicated gnhf/ branch. The result is a reviewable branch diff and a structured log of everything that happened.

    How the Iteration Loop Works

    The core loop is straightforward: gnhf validates a clean git state, creates or reuses a branch, writes a prompt.md, then repeatedly builds an iteration prompt (injecting accumulated notes.md context), invokes the agent in non-interactive mode, and either commits the result or resets on failure.

    Key behaviors:

    • Incremental commits — each successful iteration is a separate unsigned git commit, cherry-pickable or revertable individually
    • Failure handling — agent-reported failures proceed immediately to the next iteration; retryable hard errors use exponential backoff; permanent errors (e.g., low credit balance) abort and print the log path
    • Runtime caps — --max-iterations, --max-tokens, and --stop-when give fine-grained control over when the loop ends
    • Shared memory — notes.md accumulates context across iterations so the agent can build on prior work
    • Resume support — re-running on an existing gnhf/ branch picks up where the previous run left off

    Worktree and Branch Modes

    gnhf supports three operating modes. The default creates a gnhf/<slug> branch. --current-branch runs on the branch you are already on, optionally with --push to push after each successful iteration. --worktree runs each agent in an isolated git worktree, enabling multiple agents to work on the same repo simultaneously without interfering with each other or the main checkout. Worktrees with commits are preserved after the run for review, merge, or cherry-pick.

    Agent Support and ACP Integration

    gnhf is agent-agnostic by design. It supports six native agents out of the box — Claude Code, Codex, GitHub Copilot CLI, Pi, Rovo Dev, and OpenCode — plus any ACP target via the bundled acpx runtime. ACP support enables integration with agents like Gemini or custom local ACP server commands. Configuration lives at ~/.gnhf/config.yml and supports default agent selection, custom binary paths, per-agent CLI arg overrides, commit message conventions (including conventional commits for semantic-release workflows), and sleep prevention settings.

    Update: v0.1.42

    The latest release is gnhf v0.1.42, published in May 2026. The project shows active development with CI and release automation via GitHub Actions, a vitest-based test suite including end-to-end tests against a mock OpenCode executable, and regular releases tracked via release-please. The repository was created in March 2026 and has seen consistent push activity through June 2026, signaling an actively maintained early-stage project.

    gnhf - 1

    Community Discussions

    Be the first to start a conversation about gnhf

    Share your experience with gnhf, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source

    Fully free and open-source under the MIT License. Install via npm or from source.

    • Full autonomous agent loop
    • All supported agents (Claude Code, Codex, Copilot, Rovo Dev, OpenCode, Pi, ACP)
    • Worktree mode for concurrent agents
    • Incremental git commits
    • Resume support

    Capabilities

    Key Features

    • Autonomous overnight agent loop
    • Incremental git commits per iteration
    • Rollback on failure with exponential backoff for retryable errors
    • Resume support for existing gnhf/ branches
    • Worktree mode for concurrent multi-agent runs
    • Live terminal title with status, token totals, and commit count
    • Exit summary with elapsed time, branch diff stats, and review commands
    • Runtime caps via --max-iterations, --max-tokens, and --stop-when
    • Shared memory via notes.md across iterations
    • Support for Claude Code, Codex, Copilot CLI, Rovo Dev, OpenCode, Pi, and ACP targets
    • Conventional commit message preset for semantic-release workflows
    • Custom agent binary path overrides
    • Per-agent CLI arg overrides
    • Anonymous telemetry with opt-out via GNHF_TELEMETRY=0
    • JSONL debug log per run
    • Sleep prevention during runs (caffeinate/systemd-inhibit/PowerShell)
    • Graceful interrupt handling with two-stage Ctrl+C
    • Pipe prompt via stdin or from a file

    Integrations

    Claude Code
    OpenAI Codex
    GitHub Copilot CLI
    Rovo Dev (Atlassian acli)
    OpenCode
    Pi CLI
    ACP (Agent Communication Protocol) via acpx
    Gemini (via ACP)
    Git
    npm
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate gnhf and help others make informed decisions.

    Developer

    Kun Chen

    Kun Chen builds open-source developer tooling focused on AI-assisted code quality. The no-mistakes project puts a local AI-driven validation gate in front of git pushes, automating review, testing, docs, and linting before a PR is raised. Chen maintains the project publicly on GitHub under the MIT License and engages with the community via Discord and X.

    Read more about Kun Chen
    WebsiteGitHubX / Twitter
    3 tools in directory

    Similar Tools

    evo icon

    evo

    An open-source autoresearch orchestrator that runs parallel coding agent experiments on your repo, scores every patch, and keeps only changes that improve the target metric.

    Babysitter icon

    Babysitter

    An open-source orchestration layer that wraps AI coding agents in quality gates, convergent loops, and deterministic workflows to ensure reliable, verified task completion.

    Proliferate icon

    Proliferate

    Proliferate is an open source background agent platform that automates engineering work in isolated cloud sandboxes, turning tickets and alerts into pull requests automatically.

    Browse all tools

    Related Topics

    Agent Frameworks

    Tools and platforms for building and deploying custom AI agents.

    475 tools

    AI Coding Assistants

    AI tools that help write, edit, and understand code with intelligent suggestions.

    596 tools

    Autonomous Systems

    AI agents that can perform complex tasks with minimal human guidance.

    317 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions