Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Before I go to bed, I tell my agents: good night, have fun
| Date | Stars |
|---|---|
| 2026-07-31 | 3484 |
| 2026-08-03 | 3484 |
| 2026-08-04 | 3548 |
| 2026-08-06 | 3548 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
60.0
growth rate 0.00%/day
<p align="center">Before I go to bed, I tell my agents:</p>
<h1 align="center">good night, have fun</h1>
<p align="center">
<a href="https://www.npmjs.com/package/gnhf"
><img
alt="npm"
src="https://img.shields.io/npm/v/gnhf?style=flat-square"
/></a>
<a href="https://github.com/kunchenguid/gnhf/actions/workflows/ci.yml"
><img
alt="CI"
src="https://img.shields.io/github/actions/workflow/status/kunchenguid/gnhf/ci.yml?style=flat-square&label=ci"
/></a>
<a href="https://github.com/kunchenguid/gnhf/actions/workflows/release-please.yml"
><img
alt="Release"
src="https://img.shields.io/github/actions/workflow/status/kunchenguid/gnhf/release-please.yml?style=flat-square&label=release"
/></a>
<a
href="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-blue?style=flat-square"
><img
alt="Platform"
src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-blue?style=flat-square"
/></a>
<a href="https://x.com/kunchenguid"
><img
alt="X"
src="https://img.shields.io/badge/X-@kunchenguid-black?style=flat-square"
/></a>
<a href="https://discord.gg/Wsy2NpnZDu"
><img
alt="Discord"
src="https://img.shields.io/discord/1439901831038763092?style=flat-square&label=discord"
/></a>
</p>
<p align="center">
<img src="docs/splash.png" alt="gnhf - Good Night, Have Fun" width="800">
</p>
Never wake up empty-handed.
gnhf is a [ralph](https://ghuntley.com/ralph/), [autoresearch](https://github.com/karpathy/autoresearch)-style orchestrator that keeps your agents running while you sleep - each iteration makes one small, committed, documented change towards an objective.
You wake up to a branch full of clean work and a log of everything that happened.
- **Dead simple** - one command starts an autonomous loop that runs until you request stop or a configured runtime cap is reached
- **Long running** - each iteration is committed on success and rolled back on failure, with sensible retries; [How It Works](#how-it-works) has the full failure-handling rules
- **Live terminal title** - interactive runs keep your terminal title updated with live status, token totals, and commit count, then clear or restore it on exit depending on terminal support; token totals prefixed with `~` are estimates
- **Exit summary** - every run ends with a permanent summary covering elapsed time, branch, iterations, tokens, branch diff stats, local notes/log paths, and review commands
- **Agent-agnostic** - works with the popular coding agent CLIs plus any ACP target out of the box; see [Agents](#agents) for the roster
## Quick Start
```sh
$ gnhf "reduce complexity of the codebase without changing functionality"
# have a good sleep
```
```sh
$ gnhf "reduce complexity of the codebase without changing functionality" \
--max-iterations 10 \
--max-tokens 5000000
# have a good nap
```
```sh
# Run multiple agents on the same repo simultaneously using worktrees
$ gnhf --worktree "implement feature X" &
$ gnhf --worktree "add tests for module Y" &
$ gnhf --worktree "refactor the API layer" &
```
```sh
# Commit directly on the current branch and push after each successful iteration
$ gnhf --current-branch --push "keep improving this app"
```
Run `gnhf` from inside a Git repository with a clean working tree. If you are starting from a plain directory, run `git init` first.
`gnhf` supports macOS, Linux, and Windows.
## Install
**npm**
```sh
npm install -g gnhf
```
**From source**
```sh
git clone https://github.com/kunchenguid/gnhf.git
cd gnhf
corepack enable
pnpm install
pnpm run build
pnpm link --global
```
## Agent Skill
The npm package includes an agent-facing skill at `skills/gnhf/SKILL.md`. Agents that support local skills can copy or reference this file to learn how to run GNHF in Hands-Off mode for bounded overnight work, or Companion mode when the outer agent should steer and review a long-running GNHF rExcerpt of 25,946 characters
Read on GitHubKun Chen
72
44
2
2
1
1
1
1
Calvin Ng · Atlassian · Australia
1
Dai Truong · Vietnam
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
Not classified yet. Classification runs as part of npm run ingest.