• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
project logo

aphoristicepigram

pillChoice

Starter template with client-side React & Hono server
Public
Like
pillChoice
Home
Code
7
.history
39
frontend
5
.vtignore
AGENTS.md
README.md
deno.json
H
index.ts
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
AGENTS.md
Code
/
AGENTS.md
Search
…
Viewing readonly version of main branch: v140
View latest version
AGENTS.md

AGENTS.md — pillChoice

This file defines guidance for humans or AI agents extending the pillChoice experiment.

The goal is not abstraction or scale — it’s to enable fast, observable growth experiments inside Val Town.


Project intent

pillChoice is a deliberately small experiment:

  • one entry point
  • two paths
  • immediate instrumentation

Any changes should preserve:

  • speed of iteration
  • clarity of user intent
  • observability of outcomes

If a change makes the experiment harder to reason about, it’s probably the wrong change.


What not to add

Avoid:

  • heavy routing frameworks
  • complex client state management
  • premature abstractions
  • background jobs unless they demonstrate a clear growth loop

This project should remain understandable in under 5 minutes.


Acceptable extensions

Good next experiments include:

  • adding a third path (e.g. “neutral pill”) and comparing conversion
  • logging additional activation metrics (time on page, scroll depth)
  • changing copy and measuring pill selection rate
  • adding a lightweight follow-up action after /blue (e.g. delayed email)

Data & instrumentation rules

  • Every meaningful user action should emit an event.
  • Events should be append-only.
  • Prefer adding new event types over modifying existing ones.
  • Schema changes should create new tables if needed.

Server-side constraints

  • All persistence must use Val Town std/sqlite.
  • Side effects (email, webhook) should happen server-side only.
  • Failures in side effects must not break the user flow.

Style & tone

  • Code should favor readability over cleverness.
  • UI copy should be concise, slightly playful, and developer-native.
  • This is a growth experiment, not a portfolio site.

If you are an AI agent

Optimize for:

  1. Shipping quickly
  2. Measuring outcomes
  3. Minimizing complexity

If unsure, choose the simplest possible implementation.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.