Skip to content

Adoption-first pricing, hosted URL defaults, and a publishable npm name - #32

Merged
amsultan2010 merged 2 commits into
mainfrom
crosscode-pricing-growth-plan
Aug 4, 2026
Merged

Adoption-first pricing, hosted URL defaults, and a publishable npm name#32
amsultan2010 merged 2 commits into
mainfrom
crosscode-pricing-growth-plan

Conversation

@amsultan2010

Copy link
Copy Markdown
Owner

What this changes

Coordination service: replaces the draft pricing ladder with Free $0 / Essential $2.50 / Pro $5 / Unlimited $7.50 plus a per-seat Team tier, makes semantic review unlimited on every plan, adds historyRetentionDays as a plan axis (reported by crosscode billing status), and adds migration 011_team_plan.sql. Daemon: new apps/daemon/src/hosted.ts compiles in api.getcrosscode.dev / www.getcrosscode.dev, resolved as flag > worktree config > env > default, so --service is no longer required on login/signup and bare crosscode login works. Packaging: the published package becomes @crosscode/cli because the unscoped crosscode name belongs to an unrelated project that also ships a crosscode bin — both binaries keep their short names, and the private apps/cli workspace package is renamed @crosscode/cli-src. Docs site: adds a pricing section with a monthly/annual toggle, a "what you're doing now" comparison table, solo-multi-agent-first hero copy, and three new FAQ entries.

Why

npm publish could never have succeeded under the old name, and --service/--web being required meant no one could reach a hosted service even once one exists — both blocked adoption outright. The pricing changes drop two walls that cost Crosscode nothing to give away: semantic review runs on the member's own connected MCP agent (so metering it would have meant adding a network round-trip purely to bill), and seats are the growth loop rather than a cost driver.

Testing

  • pnpm build passes
  • pnpm test passes (297 passed, 19 skipped)
  • pnpm test:postgres passes (19 passed, against a local postgres:16 container)

Integration tests updated for the new free-plan caps (5 seats, auto-if-clean allowed, auto-always still gated).

Security / trust-boundary impact

Two things worth a reviewer's attention. First, WEB_URL_REQUIRED is now unreachable: with no flag or env var, crosscode login opens a browser at the compiled-in DEFAULT_WEB_URL instead of failing fast, so the CLI now has a default outbound host. The loopback callback, state check, and "tokens are never printed" guarantees are unchanged. Second, migration 011 widens the workspaces_plan_check CHECK constraint to admit team; RLS policies, auth, checkpoint/materialization safety, and excluded-path handling are untouched. Plan limits remain enforced server-side inside the same transaction as the write they guard.

Related issues

None.

Known gaps

api.getcrosscode.dev and www.getcrosscode.dev are not deployed yet, so those paths fail with a DNS error until they are. historyRetentionDays is declared and surfaced but nothing prunes against it — apps/service/src/prune.ts deliberately refuses to touch operations because cursor-based reconnect depends on them, so storage is still unbounded pending a resync-protocol design.

Three changes aimed at making Crosscode installable and adoptable.

Pricing (apps/service): replace the draft ladder with Free $0 / Essential
$2.50 / Pro $5 / Unlimited $7.50 plus a per-seat Team tier. Semantic review
becomes unlimited on every plan including free -- it runs on the member's own
connected MCP agent and costs Crosscode nothing, so metering it was arbitrary
friction. Seats stop being the wall below Team (a workspace is worth more the
more people are in it), free gains auto-if-clean, and auto-always becomes the
paid wall. Adds historyRetentionDays as the axis that actually bounds cost,
reported by `crosscode billing status`. Migration 011 adds the `team` plan.

Hosted defaults (apps/daemon/src/hosted.ts): compile in api.getcrosscode.dev
and www.getcrosscode.dev, resolved as flag > worktree config > env > default.
`--service` is no longer required on login/signup and WEB_URL_REQUIRED is
unreachable, so bare `crosscode login` works. Neither host is deployed yet.

npm name: the unscoped `crosscode` name belongs to an unrelated project that
also ships a `crosscode` bin, so `npm publish` could never have worked. The
published package becomes @crosscode/cli (scope was free) with
publishConfig.access public; both binaries keep their short names. The private
workspace package apps/cli is renamed @crosscode/cli-src to free the name.

Landing page: adds a pricing section with a monthly/annual toggle, a
"what you're doing now" comparison table, solo-multi-agent-first hero copy, and
FAQ entries on cost, whether a team is required, and where AI review runs.

Verified: pnpm build, pnpm test (297 passed), pnpm test:postgres (19 passed).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crosscode Ready Ready Preview Aug 4, 2026 7:22am

Three conflicts, all in the `crosscode login` web-URL resolution that both
sides changed:

- browser-login.ts: main centralized the precedence chain into
  configuredWebUrl() (shared with the MCP bootstrap) and added a one-time
  stderr deprecation notice for CROSSCODE_DASHBOARD_URL; this branch added a
  compiled-in hosted default. Kept both -- resolveWebUrl now reads
  `explicit ?? configuredWebUrl() ?? DEFAULT_WEB_URL`, so the deprecation
  warning and the single-source precedence survive and WEB_URL_REQUIRED stays
  unreachable.
- browser-login.test.ts: both sides added cases to the same describe block.
  Kept both; dropped the now-unused BrowserLoginError import.
- BUILD_INSTRUCTIONS.md: both rewrote the login contract line and the Phase 10
  "Shipped" paragraph. Kept main's correction that assertSeatCapAvailable and
  assertPlanAllowsAutonomyTier are enforced end-to-end and its rationale for
  leaving assertSemanticReviewCallAvailable unwired, merged with this branch's
  team plan, historyRetentionDays, and the unenforced-retention gap.

Verified main's --version fix and the merged URL precedence still behave:
flag > CROSSCODE_WEB_URL > deprecated CROSSCODE_DASHBOARD_URL > hosted default.
pnpm build, pnpm test (302 passed), pnpm test:postgres (19 passed).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant