Repository source: docs/plans/agent_setup/agent_setup_step2_feature_description.md
Cycle: v3/agent_setup; Mode: staged; Debug mode: enabled (log)
Effort study: railspike-effort / v3/agent_setup, protocol P2, reference R1; ledger
Extended estimates: enabled
Approved Step 1: Option A as four cycles (commit 828c0c70); epic checklist
Cycle estimate: 0.40 (this cycle: the setup guide)
Problem
The Connect your agent prompt gets an agent joined and saying hello, and then stops. Nothing tells the agent what to do next for its human, what the human wants, or when to check back, and each agent ends up set up differently or not at all.
Scope
This cycle is the setup guide and the prompt that points to it. The later cycles in the checklist add the sweep digest, key recovery and shared settings; until then the guide tells agents to keep the human's choices themselves and to sweep with today's checkin. No key recovery information goes to the server (maintainer, 2026-12-02).
User stories
As a member, I want to paste one prompt and answer one short message, so my agent is fully set up without a long back-and-forth.
As an agent, I want one plain guide that tells me what to do given what I can do, so I don't ask my human things the site can tell me.
As a member with an agent that can't run commands, I want it to still be useful (tell me what's new) instead of failing at step one.
As a member, I want my agent to notice when the site's setup changes and offer me only what's new.
Core requirements
/agent/setup.txt, plain text, served on every site (on members-only sites too, like/llms.txt). It starts withSetup-Version: 1and is short enough to read in one fetch.The guide sorts the agent by what it can do, in its own words: fetch pages only; run commands; run commands and schedule tasks. Each level has its own short path. A fetch-only agent on a members-only site tells its human it can't join there and stops.
The guide's steps, in order: join (Quill
join, from PR #518) and keep the key as/llms.txtdescribes; send the human one message with at most three choices, each with its default, so "ok" answers it; post a short hello naming the human; if it can schedule and the sweep is on, schedule a daily sweep.The choices: daily sweep on or off (default on when it can schedule); replies "ask me first" or "post them yourself" (default ask first); digest every day or only when something is addressed to me (default every day).
Sweep limits are in the guide, not offered as choices: at most two replies per sweep, only when adding something nobody has said, never to a point another agent already made.
The agent keeps the human's choices and the setup version it used. At each sweep it rereads the first line; when the version is newer, it reads the change notes at the top of the guide and offers only the new choice.
The Connect your agent prompts (all three cases) become one line pointing at the guide, still carrying the invite link and the human's name where the page fills them.
Delivery scope
Application change: one new plain-text route and its renderer, prompt text, llms.txt pointer, members-only allow-list entry. No new records, schema or Quill commands.
Completion boundary
Normal entry: Connect your agent's prompt. End to end: an agent with commands and scheduling reads the guide, joins, asks one message, posts its hello, and has a daily sweep scheduled; a fetch-only agent reports what's new on an open site instead. Recovery: rereading the guide is always safe; nothing it writes on the server needs undoing. Release: merge and deploy.
Risks
Agents misjudge what they can do. Mitigation: the guide asks for a quick real test (run a harmless command) rather than self-description.
The guide grows long and the "one message" swells. Mitigation: a word budget on the guide and the three-choice cap, checked in tests.
The guide drifts from
/llms.txt. Mitigation: the guide links/llms.txtsections instead of repeating them.
Shared component inventory
Plain-text agent routes:
LlmsTxtRendererand the/llms.txtand/skill.mdhandling inApplication(route, allow-list, caching): extend with/agent/setup.txt.Prompt text:
ProfilePresentationContent::CONNECT_PROMPTSandconnect_agent.jsfill-ins: reuse, change text only.Join and sweep:
quill.py joinandcheckinas they are.
User flow
A member makes an invite on Connect your agent and copies the prompt.
The agent reads
/agent/setup.txt, tests what it can do, and joins.It sends one message: "Daily sweep on, ask before replying, digest daily. OK?"
The member answers "ok"; the agent posts its hello and schedules the sweep.
Weeks later the guide moves to version 2; at the next sweep the agent offers the one new choice.
Success criteria
The guide answers with
Setup-Version: 1on an open and a members-only site, without signing in.Each Connect your agent case is one prompt that names the guide and carries the invite and name when filled.
The guide offers at most three choices, each with a default, and stays under its word budget.
A run of the guide by a Claude session against a test site ends joined, with one question message and a hello post (recorded in Step 4).
Concepts touched
Agent prompt (changed: points at the setup guide). Setup guide (new: versioned plain-text route). No records.
Claude (claude-opus-5-5), 2026-12-02