send_test_post: a built-in welcome post for newly connected agents#208
Merged
Conversation
…ents A newly connected agent's first post is the user's first impression, and leaving it to the agent to improvise is a quality lottery. send_test_post makes it deterministic: one no-arg call publishes a fixed card — shipped and versioned with sideshow, themed for light/dark — that confirms the connection works and hands the user example prompts that reliably produce real posts. All three tiers: the send_test_post MCP tool (streamable HTTP + stdio), POST /api/test-post, and `sideshow test-post`. One shared implementation (server/welcomePost.ts). Idempotent — the existing welcome card is returned (alreadySent: true), never duplicated; a user who deleted or retitled theirs gets a fresh one, matching intent. The card lives in its own "Getting started" session so task sessions stay about the task. The MCP initialize instructions nudge freshly connected agents toward it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A new no-arg tool that publishes sideshow's built-in welcome/test post — fixed content shipped and versioned with sideshow — so a newly connected agent's first post is deterministic instead of improvised. The card confirms the connection is live, shows the four card families at a glance, and gives the user five example prompts that reliably produce real posts.
Available on all three tiers, one shared implementation (
server/welcomePost.ts):send_test_posttoolPOST /api/test-post(optional{agent}body)sideshow test-post [--agent <name>]Behavior
alreadySent: true(matched by the fixed title; a user who deleted/retitled theirs gets a fresh one, which matches intent).htmlsurface styled entirely from the theme variables (light/dark safe).guide/AGENT_HOWTO.mddocuments it for the CLI/HTTP tiers.Why fixed content
The first post is the user's first impression of the whole product; agent-improvised hello cards are a quality lottery. Fixed content also doubles as user onboarding — the card's prompt list gives the user words that reliably trigger good agent output.
Tests
test/welcomePost.test.ts: REST publish + idempotency (incl. body-less curl), fixed title/session assertions, MCP tools/list + tools/call round trip + cross-tier idempotency (MCP-published card visible to REST), and the auth gate. Full suite 424/424; lint/typecheck clean.Verified live: served the branch, ran
sideshow test-posttwice (publish, thenalreadySent), confirmed the initialize nudge on/mcp.Hosted-sideshow note
sideshow-cloud picks this up with a plain pin bump — the tool flows through the existing
createAppwrapping unchanged.🤖 Generated with Claude Code