Autonomous AI agent that does ANY task a human can do on a computer. Code, run companies, conduct research, create content, manage projects. Self-improving. Never stops.
curl -fsSL https://raw.githubusercontent.com/fainir/best-agent/main/install.sh | bashBest Agent wraps Claude Code with mechanical enforcement, self-improvement, and project management that makes it truly autonomous. It handles 7 project types out of the box.
| Project Type | What It Creates | Key Processes |
|---|---|---|
| SaaS/Coding | plan.md, design.md, tasks.md | daily-build, weekly-review |
| Company Ops | budget.md, stakeholders.md, kpis.md | daily-ops, weekly-review, monthly-retro |
| Research | experiments.md, pipeline.md, paper-outline.md | experiment-cycle, writing-cycle |
| Agency | clients/, resource-allocation.md | sprint-cycle, client-review |
| Open Source | api-surface.md, community.md | release-cycle, community-check |
| Content | content-calendar.md | editorial-calendar |
| Infrastructure | runbooks/ | change-cycle, weekly-audit |
- 30 hooks โ Mechanical enforcement (exit 2 blocks). Can't code without plan. Can't stop with pending tasks. Can't commit secrets.
- 96+ skills โ
/init-project,/company,/research,/harness,/deploy,/security-audit, and 90 more - Self-improvement loop โ Karpathy-pattern: run evals โ analyze failures โ fix rules โ re-eval โ keep/revert
- Auto-handoff โ Writes
.claude/handoff.mdmechanically at 50 tool calls and on context compaction - Never-stop outer loop โ Restarts Claude with fresh context, circuit breaker after 5 failures
- 11 dashboards โ Board, timeline, metrics, calendar, process, architecture โ all interactive HTML
- Hub โ Multi-machine orchestration via WebSocket, goal decomposition, skill-based routing
curl -fsSL https://raw.githubusercontent.com/fainir/best-agent/main/install.sh | bashThis clones the repo, copies hooks/rules/skills to ~/.claude/, and links the CLI tools.
# Interactive mode โ full autonomy, zero approval prompts
cloudbot-harness
# Or use the best-agent CLI
best-agent # Interactive mode
best-agent init # Initialize project files
best-agent run "build a blog" # Never-stop loop mode
best-agent process # Run overdue processes
best-agent ops # Company operations loop
best-agent research # Research experiment loop
best-agent eval # Run eval suite
best-agent improve # Self-improvement loop
best-agent status # Project statusWhen you enter any git project, the agent:
- Detects project type (SaaS, company, research, etc.)
- Creates plan.md, strategy.md, design.md, tasks.md, knowledge.md, progress.md
- Creates type-specific files (budget.md for company, experiments.md for research)
- Sets up Process Maker with recurring workflows
- Starts working through the plan, marking [~] โ [x] as tasks complete
- Writes handoff.md before context limits for seamless cross-session continuity
1. Read .claude/plan.md โ find next [ ] task
2. Mark [~] โ do the work โ verify โ mark [x]
3. Update tasks.md + progress.md
4. Go to 1. NEVER STOP.
Hooks enforce this mechanically. The agent cannot write code without a plan, cannot skip [~] marking, and cannot stop with pending tasks.
| Gate | Hook | Behavior |
|---|---|---|
| No code without plan | enforce-planning-gate.sh | BLOCKS (exit 2) |
| No code without [~] task | verify-plan-following.sh | BLOCKS (exit 2) |
| No stop with pending tasks | check-completion.sh | BLOCKS (exit 2) |
| No .env writes | protect-files.sh | BLOCKS (exit 2) |
| Auto-handoff at 50 calls | auto-handoff.sh | Mechanical write |
| Plan re-read at 20/40/60/80 | tool-call-counter.sh | Warning |
| Dashboard sync reminder | dashboard-sync-reminder.sh | Warning |
| Next task surfacing | load-state.sh | Context injection |
The system improves itself continuously using the Karpathy/AutoResearch pattern:
1. Run eval suite (150+ tasks)
2. Group failures by ROOT CAUSE
3. Propose ONE change (rules, hooks, skills, prompts)
4. Overfitting test: "Would this help even if the failing task disappeared?"
5. Commit โ re-eval โ keep if improved, revert if not
6. Log to results.tsv
7. Repeat forever
Run it: best-agent improve
The Hub connects multiple machines via WebSocket for orchestrated work:
Browser (any device)
โ WebSocket (JWT auth)
Hub Server (Express + SQLite, port 3141)
โ WebSocket (machine token)
Daemon (spawns Claude processes, PTY terminals, screen capture)
Features: goal decomposition, skill-based task routing, dynamic company engine, real-time dashboards.
cd hub && npm install && npm start # Server
HUB_URL=ws://server:3141 npm run daemon # Each machine~/.claude/
โโโ CLAUDE.md .............. 47 lines โ identity + work loop
โโโ settings.json .......... Permissions + 30 hook registrations
โโโ hooks/ ................. 30 bash scripts (enforcement + context)
โโโ rules/ ................. 13 rule files (1,040 lines total)
โโโ skills/ ................ 96+ slash commands
โโโ config/
โ โโโ bypass-permissions.json # Zero-prompt mode for cloudbot-harness
โโโ projects/{hash}/
โโโ memory/ ............ Auto-memory per project
Per-project (auto-created):
.claude/
โโโ plan.md ................ Source of truth (tasks + phases + DoD)
โโโ tasks.md ............... Active board
โโโ strategy.md ............ Vision + goals + constraints
โโโ design.md .............. Architecture + data model
โโโ knowledge.md ........... Stack info + gotchas
โโโ progress.md ............ Status report
โโโ process-maker.json ..... Recurring workflows
โโโ process-state.json ..... Runtime state
โโโ handoff.md ............. Auto-generated cross-session context
โโโ learnings.md ........... Long-term project memory
โโโ kb/ .................... Knowledge base wiki
โโโ *.html ................. Interactive dashboards
- Claude Code CLI (Max/Team/Enterprise subscription)
- macOS or Linux (Windows via WSL)
- Git, Node.js 18+
MIT
