Documentation & Support

Agent Daemon Help Centre

Guides, the push guard, framework setup and troubleshooting for Python, JavaScript/TypeScript, Java and HTML/CSS projects. For the full picture, see How it works.

Full Video Walkthrough & Live Demo

Watch how Agent Daemon monitors a live Python app (Coffee Shop API), catches a real-world checkout bug deployed to Render, diagnoses the root cause, generates a verified fix PR, and auto-merges it without human intervention.

Watch on YouTube ↗ Ask Questions
Video Key Moments & Chapters
0:00 – 0:45 What Agent Daemon is & the autonomous on-call AI engineer mission.
0:45 – 1:15 Google sign-in & plans: monthly or yearly plans, or the 1-day free trial (current prices are on the Pricing page).
1:15 – 2:00 Connecting a repository via GitHub PAT and zero-touch monitoring installer.
2:00 – 2:40 Live demo: production coffee shop API running with healthy payments.
2:40 – 3:15 Inducing a live checkout failure & deploying to Render. Error alerted immediately!
3:15 – 3:50 AI diagnosis: stack trace analyzed, culprit lines traced, and safe patch generated.
3:50 – 4:25 Fix pull request opened on GitHub & GitHub Actions CI test suite runs.
4:25 – 4:55 Autonomous auto-merge: checks pass, PR squashes into main, Render redeploys fixed app!
4:55 – 5:15 Incident post-mortem report, cause explanation, unified diff, & admin console.

Push guard: catch the bug before you deploy

When you connect a project with On every push selected, we add a GitHub webhook to the repository. From then on:

  1. You push to your branch as usual.
  2. We download that exact commit and find every part of the repo (Python, JavaScript/TypeScript, Java, HTML/CSS).
  3. Each part is installed, built (and type-checked), tested and started in a fresh sandbox container. Push checks are free.
  4. The commit gets a Agent Daemon / push check status on GitHub: ✓ or ✗.
  5. On ✗ a case opens and the engineer fixes it: it reads your code and history, writes a test that shows the problem, fixes it, and runs everything in the sandbox (it may not finish while anything is red). The fix goes to a test branch agent-daemon/fix-…: GitHub runs your tests there, and when the fix changes what people see, a real Chrome opens your pages at phone and desktop size and the screenshots are checked. Only then does it go live (Auto mode) or come to you as a pull request. If something fails, what failed goes back to the engineer (up to 3 rounds).

No webhook (for example the token is not an admin of the repository)? The worker looks for new commits every few minutes instead. Use Check latest commit now on the project page any time.

Tries and AI modes

Your plan comes with usage bars, like a phone's data pack. The Engineer bar is used when the agent diagnoses and fixes your problems; on Pro, the Lead engineer bar is used when it reviews a fix or guides the Engineer. A small fix uses about 7% of the Basic Engineer bar. Checking your pushes is free and never uses a bar, and a technical fault on our side is never charged.

First the Engineer diagnoses the problem and tells you what broke and why. Nothing is changed until you press Yes, fix it. Then it fixes, tests and proves the change before it reaches your branch.

Why a stronger AI? Every problem starts with the Engineer, which is fast and low-cost. On Pro, the Lead engineer (a stronger AI) checks medium fixes and, when the Engineer gets stuck, writes it exact instructions. It always asks you first and shows how much of your Lead bar it will use.

When a fix fails: If a fix does not pass the checks, nothing is pushed to your repository. The Engineer tries again with the new error; on Pro the Lead engineer can step in. If it still cannot be fixed, the case says so and you can tell the agent more.

When a person is needed: When the cause is outside your code (a missing key on your host, a database or sign-in setting, a service that is down) the agent says so right away and gives you simple step-by-step instructions. It stops and asks for a person when it reaches the limit for one case or when more work is unlikely to help, and you get a report of everything it tried. You can also send any case to human review yourself.

Your dashboard shows which engineer is working on each case and how much of your bars is left. On the Usage page choose Auto (the agent decides), Ask me (you are asked at warning points) or Economy (never the Lead engineer). The full picture, with a small calculator, is on How it works.

What the agent may do with a fix

Choose per project on its page (Settings). You can change it any time.

Hands-off

Auto (pushes proven fixes)

A fix goes straight to your branch when it is proven: your checks pass in our sandbox, your GitHub tests pass, and for anything on the screen a real browser shows it working at phone and desktop size. When the agent is not sure (a risky change, something only you can check), you get a pull request with the reason in plain words instead. After a push it opens your live site again and undoes the fix by itself if the site got worse.

You merge

Pull request

Every fix comes as a pull request with the explanation, the test it wrote and the screenshots. You merge it on GitHub, then press I merged it, check my site and the agent checks your live site for you.

Advice only

Report only

The agent finds the cause and explains it on your dashboard, with the steps to fix it, but never changes your code.

In every mode: your newer edits are never overwritten (the fix is merged line by line onto your latest code; if you changed the same lines, nothing is written and the fix is redone on your code), and nothing pauses by itself: only the Agent Daemon team can pause the AI, and they are emailed about anything unusual.

Show the agent: screenshots, voice and "Still broken"

  1. Add a screenshot to a request, an answer or a reply. The engineer sees the picture itself, so it knows exactly what you see. Your phone's location data is removed before it is sent.
  2. Speak instead of typing: press the microphone, talk, check the text, then send. It uses your browser's own speech recognition (in Chrome, Edge, Android and recent iPhone Safari).
  3. Still broken? On a fixed case, press Still broken? Show the agent, add a screenshot and say what is still wrong. The same case reopens; the engineer looks at your screenshot and at what it already tried, and must do something different. The second time you say it, a stronger AI takes over.
  4. Questions: when the agent needs one answer from you, the question and a box to answer it are right on the case and on your dashboard.

Getting Started & GitHub Configuration

Step 1 How to generate a classic GitHub Personal Access Token (PAT)

Agent Daemon interacts with GitHub using a classic personal access token. Here is how to create one in 60 seconds:

  1. On github.com, click your profile avatar in the top right → Settings.
  2. In the left sidebar, scroll to the bottom and click Developer settings.
  3. Click Personal access tokens → Tokens (classic).
  4. Click Generate new token → Generate new token (classic).
  5. Set Note to Agent Daemon and choose an expiration duration (e.g. 90 days or no expiration).
  6. Check exactly two permission scopes:
    • repo — Full control of private repositories (to read source evidence, create fix branches, read test results, and push fixes or open pull requests).
    • workflow — Update GitHub Action workflows (used to install automated test validation).
  7. Click Generate token at the bottom. Copy your token immediately — GitHub will not show it again.

Security note: Tokens are encrypted at rest with Fernet (AES-128-CBC + HMAC) using TOKEN_ENCRYPTION_KEY and are never logged or stored in plain text. You can revoke the token on GitHub at any time to cut off access.

Step 2 Connecting your repository & Zero-Touch Installer

Once you have access (via trial or plan), navigate to Projects → Connect repository:

  1. Enter the repository Owner / Name (e.g. my-org/backend-api).
  2. Select your base branch (e.g. main or leave empty for default).
  3. Choose your remediation mode (Automatic, Pull request, or Report only).
  4. Paste your classic GitHub token and click Connect project.

What the Zero-Touch Installer does automatically:

  • Commits the monitor straight to your branch (the lightweight client; Python, Node.js, serverless functions and web pages each get the right one).
  • Inserts import incident_agent_monitor at the top of your app entry point (e.g. app.py, main.py, wsgi.py).
  • Creates incident_agent_config.json with your project's ingest URL and unique ingest key.
  • Adds .github/workflows/agent-daemon-tests.yml so PRs have test validation checks.
  • If your branch is protected and a direct commit is not allowed, opens a pull request, merges it when GitHub allows, or gives you a link to merge it.
Step 3 Repository Privacy & Public vs. Private Repos

Agent Daemon treats public and private repositories differently for strict security reasons:

  • Private repositories: Everything works: the monitor is installed for you, the first scan runs right away, and all three modes (Automatic, Pull request, Report only) are available.
  • Public repositories: Nothing is installed. Anyone can read a public repository, including the connection details the monitor needs, so the project waits in Waiting for private repo and shows you, step by step, how to make it private. Press I've made it private, install now and we check with GitHub and finish the setup. If a repository becomes public later, installs and fixes pause and you get an email.

Framework Setup & Manual Integration

You normally do not need this section. When you connect a private repository, Agent Daemon adds the right monitor to every part of it by itself: Python (Flask, FastAPI, Django), Node.js (Express, Next.js, plain Node, TypeScript) and web pages (plain HTML/JS, React with Vite or Create React App). The examples below show what it adds, for the curious.

If you prefer manual setup rather than the automated PR, or use custom entrypoints, simply drop incident_agent_monitor.py into your project root and add one line to your app:

Framework Flask, FastAPI, Django, & WSGI Integration

Flask (app.py or wsgi.py):

import incident_agent_monitor # noqa: F401 (Agent Daemon error monitoring) from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "Hello Production"

FastAPI / Starlette / ASGI (main.py):

import incident_agent_monitor # Starts error hook & heartbeat thread from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"status": "ok"}

Django (wsgi.py or asgi.py):

import incident_agent_monitor # Place before get_wsgi_application() import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myproject.settings") application = get_wsgi_application()
Config Configuration file: incident_agent_config.json

Place this file in the working directory of your app (the same folder where your Python command is executed):

{ "ingest_url": "https://incident-agent-portal.onrender.com/ingest", "ingest_key": "YOUR_PROJECT_INGEST_KEY" }

The client will automatically load this config, check in every 30 seconds, and report uncaught exceptions, logged errors and failed AI/API calls (for example a retired model). Node.js apps get incident-agent-monitor.cjs and web pages get incident-agent-monitor.js, which work the same way.

Troubleshooting Playbooks & Failure Modes

Direct solutions for common issues based on Agent Daemon's architecture and safety gates:

Issue 1 Project shows "Offline" / No Heartbeat Received

Symptom: The dashboard project badge says Offline or "Last check-in: Never / 3 hours ago".

Root Causes & Solutions:

  1. App has not restarted since monitoring was merged: Deploy or restart your application so the new import incident_agent_monitor line is executed.
  2. Free tier hosting is sleeping: Services on Render, Railway, or Fly.io free tiers sleep after 15 minutes without web requests. Once asleep, the background heartbeat stops. Send a request to your app or configure a free pinger (e.g. UptimeRobot) hitting your app's health route every 10 minutes.
  3. Missing incident_agent_config.json: Confirm that incident_agent_config.json is located in the working directory of your running Python process.
  4. Outbound network restriction: Verify that your hosting environment permits outbound HTTPS connections to https://incident-agent-portal.onrender.com.
Issue 2 GitHub Installation PR Fails (401 / 403 / 404)

Symptom: When connecting a repository or clicking "Install monitoring", the portal displays a GitHub API error.

Resolution by Error Code:

  • HTTP 401 Bad credentials: The GitHub Personal Access Token was entered with extra spaces, has expired, or was revoked on GitHub. Go to GitHub → Developer Settings → Tokens (classic), generate a fresh token with repo and workflow scopes, and click Update GitHub token on your project page.
  • HTTP 403 Forbidden: The token is missing the repo scope, or the repository belongs to an organization that requires SSO authorization for personal access tokens. Click "Configure SSO" next to the token in your GitHub settings to approve your organization.
  • HTTP 404 Not Found: GitHub cannot locate the repository or branch. Confirm that the owner/repository spelling is exact (case-sensitive) and that the default branch (e.g. main instead of master) exists.
Issue 3 Auto-Fix Skipped or Marked "Needs Human"

Symptom: An incident appears in the dashboard, but its status changes to needs_human without opening a fix pull request.

Why this happens (Built-in Safety Gates):

Agent Daemon will NEVER perform automated code changes unless all 5 safety gates pass:

  1. Category is not a code bug: If the failure is classified as a database outage, third-party API downtime, missing environment variable, or server out-of-memory, Agent Daemon refuses to alter source code.
  2. Confidence is not "high": If the AI diagnostic engine has any doubt about the root cause, it safely escalates to human review.
  3. Bug is already resolved: If the bug is no longer present in the latest commit on your base branch, the fix is skipped.
  4. Safety flag: The diagnostic LLM explicitly marked safe_to_auto_fix = False.
  5. Maximum attempts exceeded: Agent Daemon limits automated fixes to 2 attempts per incident to prevent endless loops.

Action: Click into the incident to read the full root cause analysis, timeline, and recommended manual fix.

Issue 4 The fix came as a pull request instead of going live

In Auto mode a fix goes live by itself only when it is proven. The case says why it was not, in plain words. The usual reasons:

  • Not proven: no test, browser check or failing push check could show the fix working, and the independent reviewer model did not approve it.
  • A judgement call: the fix removes an option, adds a placeholder, changes a package or hosting setting, or you also have to do something yourself. You decide.
  • The browser check saw a problem after 3 rounds: open the screenshots on the case.
  • Branch protection: your repository requires reviews before merging, so GitHub refuses a direct push.
  • Public repository: public repositories never get automatic pushes.

To merge: open the pull request, look at Files changed, press Merge pull request, then I merged it, check my site on the case.

Issue 5 Errors Occurring in App Not Appearing on Dashboard

Symptom: You triggered an error in your application, but no incident was created on the dashboard.

Verification Steps:

  1. Is the exception caught? Bare try ... except: pass or try ... except Exception as e: print(e) blocks swallow errors before they reach sys.excepthook. Use logging.exception("Failed processing") to ship handled exceptions.
  2. Check Ingest Key: If you rotated your ingest key on the dashboard, make sure to update incident_agent_config.json with the new key.
  3. Test Ingestion directly via cURL: Run this in your terminal to verify network connectivity to the portal:
    curl -X POST https://incident-agent-portal.onrender.com/ingest -H "Content-Type: application/json" -H "X-Ingest-Key: YOUR_KEY" -d '{"message":"Test diagnostic error","traceback":"Traceback: line 42 ZeroDivisionError","service":"test"}'
    A successful response returns {"status":"accepted","incident_id":"..."}.
Other languages Using Agent Daemon with Java, JavaScript, TypeScript or a static site

What is supported: the fix engine reads and repairs Python, JavaScript, TypeScript, Java, HTML and CSS projects, and it proves every fix by running your project's own build and tests in an isolated sandbox, and then your GitHub tests, before anything is pushed. Static HTML/CSS sites are checked for broken tags, missing files and syntax errors; because that is not a test, those fixes say clearly that they are not proven by a test.

What is automatic: the one-click installer finds every part of your repository (Python, Node.js, serverless functions such as api/ and Netlify functions, and plain HTML/JS pages) and adds the right monitor to each, committed straight to your branch (a pull request only if your branch is protected). There is nothing for you to install. For anything else, for example a Java server, send errors to your project's ingest URL yourself with one HTTP call whenever your app catches an unhandled error:

curl -X POST https://incident-agent-portal.onrender.com/ingest -H "Content-Type: application/json" -H "X-Ingest-Key: YOUR_KEY" -d '{"message":"NullPointerException in checkout","traceback":"java.lang.NullPointerException at com.shop.Inventory.getStock(Inventory.java:29)","service":"shop-api"}'

Node.js / TypeScript:

fetch(process.env.INGEST_URL, { method: "POST", headers: { "Content-Type": "application/json", "X-Ingest-Key": process.env.INGEST_KEY }, body: JSON.stringify({ message: err.message, traceback: err.stack, service: "shop-api" }) }).catch(() => {});

Java (11 or newer):

HttpRequest req = HttpRequest.newBuilder(URI.create(System.getenv("INGEST_URL"))) .header("Content-Type", "application/json").header("X-Ingest-Key", System.getenv("INGEST_KEY")) .POST(HttpRequest.BodyPublishers.ofString(json)).build(); HttpClient.newHttpClient().sendAsync(req, HttpResponse.BodyHandlers.discarding());

Always send the error in a background call and ignore failures, so reporting can never break your app. Keep the ingest key in an environment variable, not in your code.

Issue 6 Render Free Tier Sleep & Background Worker

Symptom: Cold starts take 30-50 seconds or background tasks take longer to trigger on free tier.

Explanation: Render's free tier spins down web instances after 15 minutes of inactivity. When a new error occurs, the instance wakes up automatically, but ingestion may take 30 seconds for the first request.

Tip: You can set up a free uptime monitor (such as UptimeRobot, BetterStack, or cron-job.org) targeting https://incident-agent-portal.onrender.com/health every 10 minutes to keep the worker continuously warm.

Frequently Asked Questions

Does Agent Daemon run my proprietary code on its servers?

Only inside an isolated sandbox. To test a push or prove a fix, your code is installed, built, tested and started in a fresh container on our sandbox server: non-root, read-only system, memory, CPU and time limits, no secrets, and no network while tests run. It is deleted after every run. Your code never runs on the web servers.

Can Agent Daemon accidentally break my database or infrastructure?

No. The agent changes your code, never your databases, keys or host settings. When one of those is the cause, it gives you step-by-step instructions instead. It may add or update a hosting file (vercel.json, render.yaml, a Dockerfile) when your fix needs it, and that always comes to you as a pull request first. Every fix that went live has an Undo this fix button, which takes back only the agent's own lines and keeps everything you changed since.

Does the browser check cost me anything?

No AI tries. It runs on GitHub's own machines, only on Agent Daemon's fix branches and only when a fix changes what people see. On a private repository it uses a few of your free GitHub Actions minutes (GitHub gives 2,000 a month on the free plan; one check takes about 2 to 4). Pages behind your sign-in show the sign-in screen, unless you give the agent a test account.

The first visual fix adds one small file to your repository, .github/workflows/agent-daemon-browser.yml. It runs only on agent-daemon/fix-… branches, never on your own pushes, and it never fails your build. Keep it so later fixes reuse it. If you delete it, the next visual fix adds it back.

Who sees the screenshots I upload?

You, the engineer (the AI model working on your case) and, if a case needs a person, the Agent Daemon team. Pictures are shrunk in your browser and their location data is removed. We keep the last few per case. Do not upload screenshots that show passwords or keys.

Can I disconnect a project or revoke access?

Yes. You can pause monitoring or permanently delete a project from your dashboard with one click. To instantly revoke all permissions on GitHub, simply delete the Personal Access Token in your GitHub account.

How does the 1-day free trial work?

Every customer is eligible for one 1-day free trial. Submit a request on the Billing page, and the Agent Daemon team of engineers will approve it promptly, activating 24 hours of unrestricted autonomous incident response.

Still Need Help or Have a Complex Setup?

Our co-founders and support engineers are available to assist with custom frameworks, private VPCs, and enterprise on-call requirements.