discovery

mcp
Security Audit
Warn
Health Warn
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 6 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Experience discovery for checkouts and storefronts: reads your analytics, browses like your shoppers, and hands you sized, falsifiable, segment-targeted hypotheses. Rust CLI + TUI, any LLM.

README.md

discovery

Status: alpha

An open-source harness for experience discovery.
Point it at a checkout, a storefront or any web app. It reads the data, browses like your
real shoppers, and hands you segment-targeted, sized, falsifiable hypotheses — ready for a
test, a human, or another agent.

discovery -t www.your-store.com -p commerce

Methodology · Architecture · Profiles · Data model · Claude Code plugin · ADRs

discovery's TUI replaying a real run on the demo shop: recon, a data analyst querying 8,000 sessions, a mobile Safari synthetic shopper walking the checkout, then the run summary recommending a Safari bug fix sized at 60–120–239 orders per month

A real 37-minute run (Claude Haiku 5.5 through Claude Code, $0.70) replayed at 10×:
discovery replay examples/reports/demo-shop-haiku --speed 10.


Status: alpha

discovery 0.1 is an alpha. It runs end to end, but it is early:

  • Things will change: the report.json schema (versioned by SCHEMA_VERSION;
    discovery schema report prints the current one), CLI flags, the profile and knowledge-pack
    formats, and defaults such as which phases run.
  • The analysis can be wrong. Treat hypotheses as leads that need human review, not as
    findings. Mark them with discovery review (would_test / already_known / too_small / wrong):
    the marks are stored with the run, and they help us calibrate the harness.

discovery --version, discovery doctor, the TUI header and the report.md footer all carry
the label.

Why

Most conversion advice is one-size-fits-all ("simplify your checkout"). Real wins come from
small changes aimed at specific segments — returning mobile shoppers hitting a login wall,
pickup-only buyers who can't find the pickup option, promo hunters whose coupon error wipes the
payment form — sized in conversions per month and tested fast.

discovery encodes the loop practitioners actually run, so an agent can do the heavy lifting:

context check → measurement ruler → gap = N missing conversions → bugs first
   → segment contributions → mechanism (data + synthetic shoppers) → sized hypotheses
   → independent critic → prototype / draft preview → one recommendation

What you get

A run produces report.json (a versioned contract — discovery schema report) and a
readable report.md:

  • Measurement ruler — numerator / denominator / unit / window per KPI, plus trap checks.
    No ruler, no verdict.
  • Gap account — the gap as N missing conversions per month, decomposed into bugs and
    segment contributions. "No cause" is a valid residual.
  • Segments — dimension tree (device → visitor type → browser → step → payment, ticket band…),
    personas and flow types as candidate generators, data-driven clusters.
  • Hypotheses, each with:
    • kind: bug · measurement · loss · experience · strategy · lever (bugs are fixes, not experiments)
    • If we … then … because …, a falsifier, the target segments
    • size: low / central / high conversions per month, labelled measured · estimate · ceiling · transferred, with the arithmetic
    • cost (S/M/L) shown next to impact — never dividing it
    • a validation plan written before cutting data (prediction, primary KPI, guardrails, placebo, sample size)
    • an independent judge verdict, and optionally a prototype and a before/after draft preview
  • Coverage ledger — what was checked and how it ended, so "not found" ≠ "not looked".

See a real one: examples/reports/demo-shop-haiku/report.md
(the cheapest Claude model, through Claude Code, on the bundled demo shop).

Quick start

# build
cargo install --path crates/discovery-cli     # installs the `discovery` binary

# check your setup (LLM, browser, node)
discovery doctor

# offline demo: synthetic data + the bundled demo shop + a deterministic demo model
python3 -m http.server 8080 -d examples/demo-shop &
discovery -t http://localhost:8080 -p files --data examples/datasets/demo-shop -m mock/demo

# real run with your own key
export ANTHROPIC_API_KEY=...                  # or OPENAI_API_KEY, OPENROUTER_API_KEY, …
discovery -t https://www.example-store.com -p commerce -g "why do mobile users drop at payment?"

No API key but you use Claude Code? -m claude-code/claude-opus-5-5 runs the agents through
your local claude login (or CLAUDE_CODE_OAUTH_TOKEN from claude setup-token).

How it works

            ┌──────── profile (TOML + markdown + MCP servers) ────────┐
--target ──▶│ resolve target · data sources · knowledge · taxonomies │
            └───────────────────────────┬─────────────────────────────┘
                                        ▼
        DuckDB workspace (canonical model: sessions, events, conversions, errors, …)
                                        ▼
  recon ─▶ data analyst ─▶ synthetic shoppers ×N (parallel browsers) ─▶ strategist ─▶ judge
                                                         ─▶ prototyper ─▶ drafter ─▶ report
                 all agents write typed findings to a shared blackboard; every step is an event
  • Your model. anthropic/…, openai/…, openrouter/…, deepseek/…, ollama/…,
    gemini/…, claude-code/…, mock/demo.
  • Your data. PostHog, Plausible, files (CSV/JSON/Parquet), any warehouse via a command,
    or any system via an MCP server — mapped into one canonical data model.
    PII is scrubbed at ingestion.
  • Your experience. A Playwright-driven browser per synthetic shopper, mobile or desktop,
    with a transaction guard: it never places orders or types payment data.
  • Your knowledge. Markdown knowledge packs (Agent-Skills compatible) for methodology,
    checkout heuristics, scenarios, copy, design judging — extend or override them per profile.
  • A TUI that shows every agent, tool call and finding live — and discovery replay for any
    past run.

Profiles: the extension point

A profile is a directory that plugs a platform or a company into the harness — no recompiling:

[profile]
name = "my-store"
extends = ["commerce"]

[[data.sources]]
type = "posthog"
project_id = "${POSTHOG_PROJECT_ID}"
api_key = "${POSTHOG_PERSONAL_API_KEY}"
filter = "properties.$host = '{{ target.hosts[0] }}'"

[mcp.servers.catalog]           # anything proprietary, in any language
command = "./bin/catalog-mcp"

Bundled: generic, commerce, files, posthog, plausible, shopify, vtex, saas.
Write your own in minutes: discovery profiles new my-store. See docs/profiles.md.

Open core. The harness, data model, methodology and knowledge are open (Apache-2.0).
Proprietary data and know-how live in private profiles — Ollie's own profile adds cross-store
results, a component catalog, design principles and no-deploy draft previews on Ollie checkouts.

Use it from your agent

  • Claude Code: /plugin marketplace add ollie-shop/discovery → /plugin install discovery@discovery
    → /discovery www.store.com commerce "why do returning users drop?" and
    /discovery-implement H-003.
  • Any MCP client (Codex, Cursor, Claude Desktop…): discovery mcp.
  • Any agent with skills: integrations/skills/discovery/SKILL.md.
  • CI / scripts: discovery run -t … -n prints progress lines and writes report.json.

Commands

discovery -t <target> [-p profile] [-g goal]     run (interactive TUI; -n for headless)
discovery replay [run|latest]                     replay a run in the TUI
discovery report [run|latest] [--format md|json]  print a report
discovery review [run|latest]                     mark hypotheses: would_test / already_known / too_small / wrong
discovery profiles list|show|validate|new
discovery knowledge list|show|search
discovery data synth|import|query
discovery schema report|profile
discovery doctor
discovery mcp

Status

v0.1 — working MVP: data, taste, hypothesize, judge, prototype and draft phases; A/B test
launch is designed (experiment capability) but not implemented yet. See
docs/roadmap.md.

Contributing

Contributions are welcome, especially profiles and knowledge packs. Every pull request starts
from an issue: read CONTRIBUTING.md and the AI policy first.
Ideas and questions go to Discussions.

Credits

Built by Ollie. The methodology is derived from practitioner
playbooks used to run checkout experiments for large retailers. Inspired by
strix's take on agent harnesses.

Licensed under Apache-2.0.

Reviews (0)

No results found