AI Agent Local Deployment: Services Green but No One Picks Up Issues

    This article walks through a real troubleshooting session for a locally deployed AI agent runtime whose dashboard showed everything healthy while no tasks were being picked up. It explains why health checks only prove components are alive, then identifies two root causes: reusing a human account for the automation agent, and misaligned entry point, allowlist, and repository permissions. It also provides a reusable five-layer debugging order, from process and port checks to identity, permissions, and result write-back, plus production recommendations on credential isolation, observability, and idempotency.

    1. The Symptom: All Green, but the Queue Stays at 0

    After deploying an AI agent runtime on my local machine, the service dashboard showed the runtime status as ready. Both the running and queued counts in the message queue were 0, the logs contained no error stack traces, and the port was listening normally. By conventional operations experience, this looks like a successful deployment. But when I sent a natural language request to the agent from the chat window, there was no reply and no task was created.

    What makes this kind of problem confusing is that health checks cover “whether the components are alive,” while what users perceive is “whether tasks are being processed.” Between the two sits a complete chain: request entry → identity recognition → allowlist check → interaction with the repository and issue tracker → execution environment scheduling → result write-back. If any link breaks, the dashboard can still show all green.

    The first step in troubleshooting was to confirm that this deployment had only one event entry enabled: the code hosting platform (a GitHub-style source). In other words, messages in the chat window never enter this agent’s processing pipeline at all; it only consumes issue events from the code hosting platform. Requests must come from the configured entry, otherwise you are “knocking on the wrong door.”

    2. Installation Is Simple; Identity and Permissions Are Not

    From an engineering perspective, the installation steps are fairly plain and can be abstracted into four steps:

    1. # 1. Install the runtime (example version, for illustration only)
    2. npm install -g <agent-runtime>@<version>
    3. # 2. Build the plugin source
    4. pnpm install && pnpm build
    5. # 3. Create a profile and mount the plugin, and prepare a writable practice repository as the issue source
    6. # 4. Complete account login and health check
    7. scripts/dsh-superagent status <agent-account>

    The real cost is not in installation but in three things: accounts, permissions, and the conditions for picking up work. After installation, I assumed the hardest part was over, but nearly all the time ended up spent figuring out why no one was picking up issues.

    One easy-to-miss detail: the local web dashboard is usually behind access protection, and visiting the local address directly prompts for authentication. You must use the tokenized address printed when the service starts. This is the default security design, not a fault.

    3. Root Cause One: Configuring the Requester and the Agent as the Same Account

    At first, to save effort, I had the agent reuse my own hosting platform account, thinking “it’s just a self-test anyway.” This decision mixed three identities that should have been kept separate:

    Identity Responsibility in this deployment
    The requester Opens requests in issues and needs to be on the allowlist
    The agent account Receives event notifications, reads requests, and posts comments; needs corresponding repository permissions
    The repository owner Manages the repository and collaborators; does not need to be tied to the other two

    The key insight is that a successful login only proves that “some account is usable”; it does not prove that “the service is picking up work with the correct account.” The issue later created by the agent account itself was not accepted precisely because the requester was not on the allowlist—by design, the system ignores requests where an entity assigns work to itself, to avoid self-loops.

    Practical advice: prepare a separate account for the automation entity, and isolate credentials through an independent configuration directory to avoid cross-contamination with the human account.

    1. # Example: isolate the automation account's credential directory with a wrapper script
    2. export GH_CONFIG_DIR="$HOME/.config/agent-gh"
    3. gh auth login # Log in to the automation account
    4. gh auth status # Confirm the currently active identity

    4. Root Cause Two: Entry Point, Allowlist, and Repository Permissions Not Aligned

    After separating the identities, I recalibrated three settings around an “end-to-end minimal loop”:

    1. Entry consistency: confirm the event source matches the subscription configuration; when only one source is enabled, do not send requests from other channels.
    2. Explicit allowlist: explicitly add the requester to the allow list, and confirm the list matches the account identifier rather than the display name.
    3. Least privilege but sufficient: the automation account needs read/write and comment permissions on the target repository; the practice repository can be a newly created empty repo or a copy of code used for asking questions—the point is that the automation account has write access to it.

    After aligning these three, the first issue was picked up and answered normally. Earlier, of three consecutive test issues, only the last one got a response; the underlying reason was that the requester or trigger conditions of the first two did not meet the pickup criteria, not a runtime failure.

    5. A Reusable Troubleshooting Order: From “Alive” to “Usable”

    Turning this experience into a fixed sequence can significantly shorten the time to locate similar problems:

    • Layer 1, process and port: is the service listening, and does the dashboard show the runtime as ready?
    • Layer 2, entry and events: was the request sent from the subscribed entry, and were events actually produced?
    • Layer 3, identity and allowlist: is the requester allowed, and is the automation account independent and active?
    • Layer 4, permissions and repository: does the automation account have the necessary read/write and comment capabilities on the target repository?
    • Layer 5, result write-back: is the reply written back to the issue, and does the execution environment have a usable workspace?

    6. Three Recommendations for Production

    • Credential isolation: use different credential directories for human and automation entities, combined with the least-privilege principle, to reduce the risk of misoperation and credential leakage.
    • Fill observability gaps: beyond dashboard status, add structured logs for event counts, pickup counts, and failure reasons, and use a general logging service with monitoring and alerting to observe trends.
    • Idempotency and self-loop prevention: explicitly suppress “an entity assigning work to itself” and “duplicate events” to avoid the queue being filled with invalid tasks.

    7. Conclusion

    “All green” only means the components are alive; “no one picks up the issue” means the business chain is broken. The real barrier to local AI agent deployment has never been the installation commands, but whether the identity model, entry contract, and permission boundaries are clearly defined. Making these three explicit and validating with an end-to-end minimal loop is what gets automation truly running. To move closer to cloud practice, you can containerize the runtime and deploy it to a container platform, use object storage for artifacts, use a message queue to decouple events, and use monitoring and alerting to guard availability, smoothly migrating local validation into a sustainable engineering solution.