open source · autonomous · background agent

Your repo has a
silent co-pilot

auto-agent watches your codebase while you work. It finds TODOs, flags stale PRs, and posts comments, without interrupting your flow.

main.py
$ python3 main.py
auto dream dashboard → http://localhost:8000
auto-agent running. Press Ctrl+C to stop.
 
autonomy: high · todos: 4 · modified: 3 · dangling: 1
auto-agent PR #4: stale for 6 days, no review
auto-agent commented on PR #4
auto-agent utils/cache.py created but never imported

Aware of your repo. Silent by default.

Ticks every 5 minutes, reads everything, speaks only when it has something useful to say.

Deep repo awareness

Scans git history, TODOs/FIXMEs/HACKs, dangling imports, never-imported files, and missing env keys across 10 languages: Python, JS, TS, Go, Rust, Java, and more.

Presence detection

Reads system idle time on Mac, Windows, and Linux. Sends a desktop notification when you're away, a quiet terminal line when you're present.

Autonomous PR comments

Monitors open PRs for staleness, missing reviews, and conflicts. Posts comments autonomously when autonomy is high, once per PR per day, never spammy.

AutoDream

Every night at midnight, the day's observations are consolidated by an LLM into per-topic memory files. Context persists and improves across sessions.

Live dashboard

FastAPI dashboard at localhost:8000 shows autonomy level, action feed, open PRs, memory topics, and today's log. Light and dark mode. Approve PRs and trigger ticks from the browser.

Never duplicates

Every action is logged to SQLite and deduplicated per day. The same observation won't surface twice.

Up in 2 minutes

Requires Python 3.10+, a Groq API key, and a GitHub personal access token.

1

Clone and install

git clone https://github.com/nandanadileep/auto-agent.git
cd auto-agent
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
2

Configure your .env

Copy the example and fill in your keys.

cp .env.example .env
KeyDescription
GITHUB_TOKENrequiredPersonal access token with repo scope
GITHUB_REPOrequiredDefault repo for webhook setup, e.g. username/repo
GROQ_API_KEYrequiredFrom console.groq.com, free tier works
GOOGLE_AI_STUDIO_KEYrequiredFrom aistudio.google.com, used for AutoDream
OLLAMA_BASE_URLoptionalDefaults to http://localhost:11434
GITHUB_WEBHOOK_SECREToptionalSecret for webhook HMAC verification
NGROK_AUTHTOKENoptionalEnables real-time GitHub webhook tunnel via ngrok
DEMO_MODEoptionalSet to true for 1-min ticks and verbose output
3

Run

python3 main.py

Dashboard opens at http://localhost:8000. auto-agent runs silently in the background. A line prints only when it has something to say.

Built with

Python 3.10+ FastAPI uvicorn APScheduler watchfiles litellm Groq llama-3.3-70b Google AI Studio PyGithub pyngrok rich plyer sqlite-utils gitpython tiktoken