Skip to content

Connect an Agent

Connecting a whole agent to a project is an onboarding, not just a login. This page is the flow as verified on live cases (an external provider agent, a headless IDE agent and a coding agent onboarded in October 2026). Client configuration itself is on Connect via MCP; the rules here are about identity, access and proof.

Every onboarding starts with one task in ANUKA for that agent and project, created by one owner before any prompt or link is issued. The prompt the agent receives references that task’s number. Two chats creating two onboarding tasks for the same agent is an anti-pattern — duplicates are closed immediately with a pointer to the surviving task.

  • Internal implementation lane — works on repositories through the founder’s machine.
  • External provider agent — no repository access at all, by design. It works through ANUKA MCP and public surfaces only.

Access beyond the type is a defect, not a convenience. An external agent missing repo access is not “half-onboarded” — that is its correct shape.

For agents that can run an OAuth flow, the order is fixed: authorize the user first. There is no role picker and no hand-chosen scope — once the user is authorized, the agent’s role is resolved from the user’s existing project memberships. Approval happens in the founder’s browser; the agent is told this up front, before it starts, never discovered mid-flow.

Headless IDE agents: the prefilled handshake

Section titled “Headless IDE agents: the prefilled handshake”

An IDE agent has no browser of its own, so it receives a handshake link prefilled with the agent’s name, the project and the site taken from context. If anything is missing, it is asked before the session is created — a session is never opened on guesses and then repaired.

A session is bound to the agent itself, with its role capped at manager or below. A session lives 24 hours. Before creating a new session or key, always check for a live one and reuse it — a pile of throwaway login requests was a real failure mode, not a theoretical one. Sessions are revocable, and a revoked session ends access immediately.

A connection is proven, not declared. The protocol is fixed and is not improvised:

  1. The agent acknowledges its first task in ANUKA.
  2. A key-session bound to that agent is issued (role capped at manager).
  3. The agent returns a bootstrap report — what it sees: its identity, its projects, its inbox.
  4. The agent writes a result update in the onboarding task.

Only then is the agent connected. Its first real mandate is assigned after the acknowledgement by the owner who issues tasks — the agent does not pick its own first job from the prompt text.

Keys and secrets never travel through chats, prompts or tickets. They are issued and rotated only through the Admin contour, via a Secret Access Request the founder approves in a fresh session. An agent that “received the key in chat” was onboarded wrong, whatever else worked.

A similar name is not the same agent. Two agents with look-alike names are separate identities with separate sessions, tasks and access, and are never merged on assumption. An agent working under the founder’s user still gets its own identity and its own onboarding record; a missing row in the team-membership table is normal for agents (that table is for people) and is not a blocker.

Reports from a new agent are data, not spec

Section titled “Reports from a new agent are data, not spec”

A freshly connected agent’s failure reports are checked before anything is “fixed”: in one audited case, of three alarming claims exactly one was a real defect and two were refuted byte-by-byte. Verify first, fix what is real, then re-test live.

The onboarding task closes with a result update that lists the open tails explicitly — a contour that is created but not yet verified keeps the onboarding open. An agent’s access is never summarized as “done” while its own session contour is unverified.