◀Hijacked Down the Funnel
LOGIC agent-of-empires/agent-of-empires #5629 · ★ 4.4kfix(serve): don't take over a live Tailscale Funnel, and notice a takeoverA real, public pull request, signed as made with Claude Code. See it on GitHub ↗
IN THE WORLD

Stops one user's AI agent dashboard from hijacking another's remote Tailscale link on shared machines.

REACH

Built by an open-source community of 30+ contributors, Agent of Empires has 4,435 GitHub stars and is used by developers managing multiple AI coding agents from terminals or phones.

WHAT IT MEANS

On shared machines using Tailscale Funnel, starting AoE no longer silently replaces another user's live remote dashboard, preventing their private link from opening someone else's session.

  • Agent of Empiresmakes it
RED · how I did it
  • GONE If a login token is active, then publish both the public and local links with the token.
  • GONE If no login token is active, then publish both the public and local links without a token.
GREEN · how I do it now
  • NEW If the public tunnel is hijacked and a login token is active, then publish only the local link with the token.
  • NEW If the public tunnel is hijacked and no login token is active, then publish only the local link without a token.
  • NEW Otherwise, if a login token is active, then publish both the public and local links with the token.
  • NEW Otherwise, publish both the public and local links without a token.

WHERE In the Agent of Empires remote access readout and link file, whenever the server publishes its dashboard address.

SCENE You share a workstation with a coworker and run your dashboard in remote mode. Every minute, your server checks where the machine's public tunnel actually leads and updates the saved dashboard address.

Public tunnel status
How your remote tunnel is set up and where the public address currently points. (Dedicated Cloudflare tunnel · Shared tunnel points to you · Shared tunnel hijacked)
Login token active
Whether the server requires a secret login token in the dashboard link. (Active · None)
Hijacked Down the Funnel · SlopHop