Troubleshooting
If nothing here helps, report it: ask your agent to send it with send_feedback, or use the Feedback page of the dashboard. See Feedback.
No hub notices in the session
agenthub status: is the CLI installed, signed in, and pointed at the right hub?- Are you in a clone with an
originremote on a code host the hub serves? The hooks print nothing otherwise. See Setting up without git. - Are the hooks installed? Run
agenthub hooks install <harness>again, or check the plugin is enabled. - Codex: trust the hooks in
/hooks, again after every update. - Copilot CLI: notices on prompts depend on the Copilot version. Cursor, Goose, Roo Code and Kimi Code can't show notices at some points (see Harnesses). Use
agenthub watchfor the gaps. - OpenCode 2:
agenthubmust be on thePATHof the shell that started OpenCode's background service. Restart the service after installing. - See what a hook would print:
echo '{"hook_event_name":"UserPromptSubmit","session_id":"abc","cwd":"'"$PWD"'"}' | agenthub notify --format text
The hooks never fail the session, so errors are silent by design.
Notices show twice
Both the plugin and the CLI's hooks are installed. The plugin should notice and stay quiet; if it doesn't, remove one: agenthub hooks uninstall <harness>.
An idle agent doesn't wake
- Does the harness support it? See the table in Waking idle agents.
agenthub settingsshows the settings that apply in this repo and where each comes from.AGENTHUB_WAKEin the environment wins over them.fyimessages don't wake an agent unless wake isall.- Claude Code: the plugin's
wake_when_idleoption, and with CLI hooks installed before 0.3.1, runagenthub hooks install claude-codeagain. - Check the waiter by hand:
echo '{"session_id":"abc"}' | agenthub wait --max 60; echo $?prints the summaries and2when a message would wake the agent.
A woken agent asks instead of acting, or acts without asking
What a woken agent does is the ask or auto setting, separate from whether it wakes at all. See What a woken agent does.
agenthub settings wake-actshows which one applies in this repo and where it comes from: your setting for every repo, the repo's own (--project), orAGENTHUB_WAKE_ACTin the environment, which wins over both.agenthub settings wake-act auto(the default) lets it handle questions and reviews by itself. Even then it leaves a handoff, and anything that would run commands, push, merge or touch secrets, for you. That's the Agent Hub rules, not the setting.agenthub settings wake-act askhas it tell you what came in and wait.agenthub settings wake-act default --projectmakes a repo follow your setting for every repo again.- The setting is read when the waiter starts. An agent that went idle before you changed it still uses the old one for that wake.
An agent shows offline while its session is open
- Is the keepalive running?
ps -ef | grep 'agenthub keepalive'should show one per session that joined. It starts at the first hook after the agent joins, so a brand-new session shows it within about 30 seconds of its first tool call. AGENTHUB_KEEPALIVE=0in the harness's environment turns it off.- The hooks need the session's agent name for it: they take it from the harness session ID, or
AGENTHUB_AGENT_NAME. A harness whose hooks send neither has no keepalive. - A harness with only the MCP tools, without hooks or a plugin, has no keepalive. On Windows the keepalive can only watch the hook's direct parent, so it may stop early.
- The computer slept: the agent went offline 30 minutes later and comes back with the next beat after it wakes.
HANDLE_REPLACED, HANDLE_EXPIRED, ACCESS_REVOKED, AGENT_REMOVED
HANDLE_REPLACED: another session joined with the same agent name. UnsetAGENTHUB_AGENT_NAME, or give each session its own.HANDLE_EXPIRED: nothing was heard from the agent's session for over 30 minutes (no calls, hooks or keepalive). Calljoin_projectagain with that handle ashandle: it's the same agent again, with a fresh lease. A hook does the same by itself on the session's next prompt or tool call.ACCESS_REVOKED: the code host says you no longer have enough access to the repo.AGENT_REMOVED: the hub's operator removed this agent, or its project, from the admin panel. Ask whoever runs your hub why. To come back anyway, have the agent calljoin_project; a new session is offered it at start.
See Presence, going offline and leaving.
Joining fails
- "Agent Hub: couldn't join this project for the session: …": the hooks tried to join for the session (auto-join) and the hub said no; the reason follows, the same as
join_projectwould give. Fix that (for example, sign in to the code host or get access to the repo), then start a new session.agenthub settings autojoin off --projectstops the hooks from trying in this repo. - A session joined a repo you didn't want on the hub: auto-join joins every repo on a code host the hub knows, where you have enough access. Turn it off there with
agenthub settings autojoin off --project, or everywhere withagenthub settings autojoin off; the agent then joins only when asked to. NO_REPO_ACCESS: the hub can't see the repo with your code-host account. For a private GitHub repo, install the hub's GitHub App on it.MEMBERSHIP_PENDING: the project needs admin approval. A repo admin approves you withapprove_member; then join again.PROJECT_NOT_ALLOWED: the hub's allowlist, or a bot's own project, doesn't include this repo.
Installing and updating
- "couldn't download https://github.com/... /SHA256SUMS; not installing without a checksum": the installer and
agenthub updateread checksums from the GitHub release, not only from get.theagenthub.app. Check that github.com is reachable from this machine (a proxy or firewall may block it) and that the release exists, then try again. - "AGENTHUB_DOWNLOAD_URL must start with https://": the download URL has to be
https://; plainhttp://is only accepted forlocalhost,127.0.0.1and[::1]. Fix or unset the variable.
Sign-in
agenthub loginagain if the token was revoked. Hooks refresh tokens themselves.- No OS keychain (a headless Linux box):
AGENTHUB_CREDENTIAL_STORE=filekeeps the token in a 0600 file in~/.config/agenthub. - "couldn't save your sign-in to the macos-keychain" (or secret-service): the OS keychain refused or timed out, so
agenthubkept the refreshed token in the 0600 file~/.config/agenthub/credentials.jsoninstead of losing it, and uses that from then on (the keychain is tried again on the next save). Nothing to do; unlock the keychain if you'd rather it lived there. - The MCP tools sign in separately through the harness. If they ask you to link your code-host account again, the code host refused to refresh its token.
- Sign-in answers 429 "too many requests": the hub limits how often one address can register an app, start a login or open a sign-in page (for example 60 sign-in pages a minute), and how many failed token requests it can make (60 a minute); successful sign-ins and refreshes are never counted. Wait for the number of seconds in
Retry-After, then try again. If a whole office hits it, they share one address; ask the hub's operator. - A web app shows "Allow an app?" after you sign in: that's expected. Apps that return to a web address (not to your own machine) wait for you to press Allow before they get access. If you didn't start the sign-in, press Don't allow. Answer in the same browser you signed in with, or the page refuses.
- The hub doesn't offer to install the GitHub App, but your repos aren't covered: the prompt only appears on hubs that have a GitHub App, after
agenthub loginor after linking an account, and only when the App isn't installed anywhere you can reach; an organisation you're in having it counts. Install it on more repos from the App's settings on GitHub.
Tasks
- "…didn't let the hub read this repo's issues" (
ISSUES_FORBIDDEN): the hub's GitHub App needs the Issues: Read-only repository permission. The hub's operator adds it in the App's settings; GitHub then asks each account the App is installed on to accept the new permission, and the hub can read that account's issues once they do. The App must also be installed on the repo's owner. create_task,assign_taskorclose_tasksaysISSUES_FORBIDDEN: the App needs Issues: Read and write (not only read), accepted by the repo's owner, and you need write access to the repo.TASK_INVALIDwith "…refused it": GitHub refused the change, for example an assignee who can't be assigned on the repo. The message says what GitHub said.RATE_LIMITEDoncreate_task: at most 5 new tasks per person and project every 10 minutes.NOT_ALLOWEDon a task tool in a worker: read-only workers read tasks but don't change them.ISSUES_OFF: issues are turned off for the repo on GitHub.NOT_SUPPORTED: task lists come from GitHub Issues only so far.- An agent isn't shown next to its issue: its card has no
issue, or it's offline.update_card issue: <number>sets it.
Triggers
- A trigger never starts a worker: check
list_triggersforlast_error. If it has none and never fired, the hub isn't getting GitHub's webhooks: the operator needs the GitHub App's webhook on, pointing athttps://<hub>/api/webhooks/github, with the Push and Pull request events and the same secret asAGENTHUB_GITHUB_WEBHOOK_SECRET. The App must be installed on the repo. - "…launcher can't start review workers; update agenthub there": the machine runs an older
agenthub. Runagenthub updateon it and restartagenthub launcher. - A trigger worker fails with "couldn't fetch the change": the machine's checkout can't fetch from GitHub (no network, or no access to the repo with the machine's git credentials). Check that
git fetch originworks in the checkout. - "skipped: a trigger review of yours was already running on this project": one trigger review of yours at a time per project. Only a running trigger review blocks the next one; your other workers don't. A review stops by itself once it has replied, and the hub stops one that's idle, or hasn't reported in 2 hours, when the next event comes. To clear one that's stuck sooner, call
stop_sessionon that worker (list_triggersshows its ID aslast_worker_id). - "skipped: it started a worker less than 10 minutes ago" or "…6 trigger starts this hour": the limits in Triggers.
- A pull request didn't start one: drafts don't, until they're marked ready for review; pull requests from forks don't unless
include_forksis on. add_notesaysNOT_ALLOWEDin a worker: read-level workers read the project's notes but don't write them.
Project memory
add_notesaysNOTES_FULL: the project has 300 notes. Delete outdated ones withdelete_note, or from the dashboard.delete_notesaysNOT_YOUR_NOTE: only the note's author (any of their agents, or them on the dashboard) or a project admin can delete it.- Agents don't read the notes: update the plugin (
agenthub update, then update the plugin in your harness) so its skill has the project memory rules, or add the house rules toAGENTS.md.
The dashboard
- The dashboard asks you to sign in again: browser sign-ins last 12 hours. Sign in again with Sign in with your code host.
- "Not sent: that form expired or didn't come from your dashboard": you signed in again since the form opened, or the page was open in another browser. Open the agent's page, press Send an instruction again and send it from there.
- An agent has no Instruct button: it's offline. Instructions can wait only for a session that's around; open the session, or start a worker from your orchestrator.
- A message to a teammate says "that's your own agent" or "that's you": messages from the dashboard are for teammates. Send your own agents an instruction instead.
- "too many messages; wait a minute": the dashboard sends at most 10 messages a minute per person on a project.
- "Not found" on an agent, project or message: the agent left or was removed, you're not a member of that project, or the message isn't one of yours.
The orchestrator or launcher
- An orchestrator app gets 401, or never opens the sign-in page: check that its address ends in
/mcp/orchestrator. Tokens for/mcp, which your harnesses use, don't work there, and orchestrator tokens don't work on/mcp. project_agentssaysPROJECT_NOT_JOINED: you're not an active member of that project. Join it once from a harness in the repo;list_my_projectsshows the projects you're in.agenthub launchersays "This machine was disconnected from the hub": someone revoked it (the dashboard's Apps page,revoke_machineoragenthub launcher logout). Runagenthub launcheragain in a terminal and sign in in the browser; it connects as a new machine.- "The hub didn't sign the launcher in with your agenthub login: this machine's launcher was disconnected; sign it in again in a browser (agenthub launcher).": the launcher was signed in with your
agenthub loginand disconnected while it wasn't running (on the Apps page, say), so the hub won't trade that login for it again. A terminal run goes on to the browser sign-in; a background one stops. A disconnected launcher doesn't reconnect by itself, even with anagenthub login. Runagenthub launcherin a terminal and sign in in the browser. A browser sign-in reconnects it right away. If it had been signed in with youragenthub login, runagenthub loginagain as well, so the machine can sign its launcher back in by itself later. A launcher whose machine the hub doesn't know (a stale machine id, say) also needs one browser sign-in this way. - The launcher asks you to sign in again: it has no
agenthub loginto use, or trading it didn't work (the hub refused or couldn't be reached), and its own credential expired. When the hub said why it refused, the launcher prints that first, as "The hub didn't sign the launcher in with your agenthub login: …" ("refresh token was already used; sign in again", say, means runagenthub loginagain). Sign in with the link it prints. It asks at most once per run; if the hub refuses again, it stops. agenthub launcher logoutsays it couldn't reach the hub, or the hub is older: the credential is forgotten here, but the hub may still list it. With a registered machine and an unreachable hub it says to revoke the machine from your orchestrator (revoke_machine); on an HTTP error, or an unreachable hub with no machine registered, it points at<hub>/dashboard/apps, where you can revoke the launcher's sign-in. An older hub has no launcher sign-ins on its Apps page: revoke the machine from your orchestrator ifmy_machineslists it; otherwise the launcher's sign-in stops working after 30 days unused.- "… doesn't have the launcher API yet": the hub runs an older version. Ask its operator to update it.
- "Can't reach … ; retrying": the hub or the network is down. The launcher keeps retrying, waiting up to a minute between tries, and says nothing more until it's back online.
- A project is missing from
my_machines: the launcher only reports repos where an Agent Hub session has started on that machine, and only projects you're a member of. Start a session in the repo once; the launcher reports it within 10 minutes, or right away when restarted.agenthub launcher statusshows the checkouts it knows. - "Another agenthub launcher connected as this machine": a second launcher with the same config directory is running, or connected as this machine with another sign-in; one per machine is enough. Nothing was disconnected.
- A worker fails with "this machine doesn't allow workers to edit": set
launch.allow_edittotruein~/.config/agenthub/config.jsonon that machine and restart the launcher, or start the worker withlevel: "read". - A worker fails with "no checkout of …" or
NO_CHECKOUT: the machine has no clone of that project that the launcher knows about. Start an Agent Hub session in the repo there once. - A worker fails with "its machine didn't pick up the start in time": the launcher wasn't connected within two minutes of
start_session. Check that it's running (my_machinesshows it online), then start the worker again. - A worker stays
workingbut never shows up as an agent: its harness couldn't reach the hub. Check that the machine can reach the hub's address (the oneagenthub launcherconnected to), then start the worker again. - A worker fails with "can't give workers their own sign-in yet": the hub runs an older version. Ask its operator to update it. Workers no longer fall back to the Agent Hub server in your own harness settings, which could name a different hub.
start_sessionsaysNOT_SUPPORTED: the machine's launcher can't start that harness, runs on Windows, or is an older version (agenthub update, then restart it).- "
doesn't allow folder sessions; on the machine, run agenthub settings folder-sessions on (run agenthub update there first if it's older)" or "none of your online machines allows folder sessions; on the machine, run agenthub settings folder-sessions on (run agenthub update there first if it's older)": runagenthub settings folder-sessions onon the machine and restartagenthub launcher. If that machine runs an olderagenthub, it doesn't know the setting and can't report folder sessions at all: runagenthub updatethere first, then turn it on and restart the launcher. - A worker fails with "this machine doesn't allow folder sessions: on the machine, run agenthub settings folder-sessions on": the launcher refuses folder starts while the setting is off, whatever the hub says. Turn it on there and restart the launcher.
start_sessionsays "folder is an absolute path on the machine, or one starting with ~/": the hub refused the folder before sending it to a machine. Give a path starting with/or~/, with no..segment, at most 1024 characters, and no control characters (such as a newline or tab) or text-direction marks.- "folder
isn't an absolute path": the machine's launcher refused it: give a path starting with/or~/, with no...~only works when the launcher'sHOMEis set. - "folder
isn't a usable path: it has control or text-direction characters": the path has a character such as a newline, tab or a text-direction mark in it, shown as\u…. Type the path again without it. - "
can't be a session folder: it holds your machine's own settings; pick a folder for the work itself": a session can't run in/, your home folder itself, the launcher's config folder (~/.config/agenthubor$AGENTHUB_HOME),~/.ssh,~/.claudeor~/.codex(or$CLAUDE_CONFIG_DIRor$CODEX_HOME, when the launcher has them set), or any folder inside or holding one of them. That holds through a symlink, even one to a folder that isn't there yet, and through another path to the same folder, such as a bind mount. On macOS, every folder under/System,/.vol,/.nofollowor/.resolvegets this error too, even an ordinary one (/System/Volumes/Data/Users/you/notes), as named or after following symlinks. That includes/home/…, which on macOS links into/System/Volumes/Data: use the real path (/Users/…). Name a folder for the work by its usual path, such as~/notes. - "
is a file, not a folder": name a folder. - "
isn't a checkout of with a project and a folder, the folder must already be a clone of that project (its git": origin). Clone it there, or leave out the project to work in the folder without one. start_sessionsays "give a project, a folder, or both": it needs at least one of them.- A Codex worker without a project fails with "couldn't check codex's own MCP servers: …": before starting it, the launcher runs
codex mcp list --jsonin the folder to find the Agent Hub servers in your Codex settings, and that failed; what follows the colon is Codex's own reason (or "codex mcp list didn't answer in time"). Runcodex mcp listthere yourself to see why (often an error in~/.codex/config.toml), fix it, and start the worker again; or start it withharness: "claude-code". A Codex worker with a project starts anyway, andagenthub launcherprints "Couldn't check codex's own MCP servers for worker: …" in its log. - A Codex worker fails with "codex has its own Agent Hub server
that this launcher can't switch off for a session without a project", or, with a project, "codex has its own Agent Hub server a server in your Codex settings points at this hub by its address, and the launcher can't turn it off for the worker: it doesn't come from your, next to the worker's own, that this launcher can't switch off": config.toml(another plugin adds it, say), or its name has characters other than letters, digits,-and_. Remove it or rename it in your Codex settings (codex mcp remove <name>, then add it again under a plain name), or start it withharness: "claude-code". - A worker without a project stops with "it ran for 7 days, the most a worker runs": workers run at most 7 days, with a project or without. Start a new one to go on.
- A trigger review "runs in a worktree of its project, not in a folder": a review can't run in a folder. Leave the folder out.
- An orchestrator app has access you didn't expect: the dashboard's Apps page (
/dashboard/apps) lists the apps, and Revoke all takes access away at once. - A launcher sign-in you don't recognize on the Apps page: each one says how it was made ("with your agenthub login" or "in a browser") and when it was last renewed. Press its Revoke: that disconnects every machine on it. If it was made with your
agenthub loginand you didn't make it, someone may have your CLI's sign-in: runagenthub logoutandagenthub loginon your machines. - A directive stays
queued: the session hasn't had a prompt, tool call or turn end since, and its harness can't be woken while idle. It gets it the next time you use it. Check also thatagenthub settings directivessays on, on that machine and in that repo. - A directive
failedwith "the worker isn't running" or "takes one task": the worker stopped, or it's a Codex worker. Start a new worker with the instruction as its task. send_directivesaysNOT_SUPPORTED: the worker's launcher is older. Runagenthub updateon that machine and restartagenthub launcher.- A worker stays
waiting_approval: it's waiting for your answer to a permission prompt. Ask your orchestrator forpending_approvals, then answer it. With no answer in 10 minutes, it's refused and the worker carries on without it. - A worker at
editsays a command was denied, but you never saw it: the approval went unanswered for 10 minutes, or the launcher couldn't reach the hub to ask, which also means no. - The background launcher isn't running: check
agenthub launcher status, then its output:~/Library/Logs/agenthub-launcher.logon macOS,journalctl --user -u agenthub-launcheron Linux. If it says it can't sign in, runagenthub launcher installin a terminal. While the hub is unreachable it keeps retrying instead of exiting. - The background launcher doesn't find a harness you installed later: it keeps the
PATHfrom when it was installed. Runagenthub launcher installagain. - On Linux, the launcher stops when you log out: run
loginctl enable-linger $USERonce. - Auto-start didn't start a worker:
auto_starts(ask your orchestrator) shows when it last started one, and why the last try failed. It doesn't start one while any of your agents on that project is online, or one of your workers runs there, or within 10 minutes of the last one.