← Build log

Mar

March 2026: Surge takes shape, Spylert restarts, claude-stats begins

Surge · Spylert · claude-stats · Dyna404

Surge

Surge is expansion and retention intelligence for B2B SaaS account teams. It started on a Monday with the first pass of the platform: dashboard, accounts, account detail, and tabs for health and usage, support signals, contracts and negotiation.

The big piece was contract extraction. You upload a PDF, an LLM pulls out the terms, and you review them side by side with the document. Edits save per section, and a field you edit by hand gets full confidence. Contracts also get risk flags from Claude, and each flag links to the highlighted text in a PDF viewer.

In the second week:

  • Two new ways to add an account: by hand, or from an uploaded contract, using what gets extracted.
  • The overview tab has a renewal health summary and a contract timeline.
  • Stakeholders can be added by hand, sorted by role and marked as Manual or CRM.

In the third week came a renewal brief you can generate with AI, the negotiation tab, and reminder settings.

Three bigger pieces landed in the fourth week:

  • Ask AI. A chat with streaming answers and rich widgets. I fed it the full negotiation context and tightened the system prompt so it actually uses its tools to draw the widgets.
  • Tenant isolation. Requests are now checked against a validated token in middleware, with an admin UI on top.
  • Renewal notifications. Email and in-app alerts for renewals, with an unsubscribe link in every email template.

Negotiation policy settings went in alongside them.

Negotiation tab and reliability. In the last week, the negotiation tab was rebuilt around AI-powered strategy, boundaries, pricing and concessions. Around it:

  • Outcome capture tab on the account detail page.
  • Multi-currency support with exchange rate conversion.
  • Langfuse tracing for LLM calls.

Most of the rest was reliability work. The extraction pipeline is now safe to retry, truncated responses are detected, and the background worker handles deploys better.

Spylert

Spylert got a proper site: a landing page and a blog, on a shared design system. Audits older than a week now get recrawled, and the old data stays if the recrawl fails. The landing page lists recent audits, each card with an executive summary and a readable slug in its URL. Two blog posts went up: “Last to Know” and an analysis of SaaS changelogs with charts.

A week later:

  • OG images for blog posts are generated at build time. I switched to the WASM build of resvg so it runs on Cloudflare.
  • Waitlist forms connected to MailerLite.

Then, on a Sunday, I started a fresh Spylert as an email-only MVP. The first day covered the scaffold, the sign-in flow and sessions, and a switch to UUID v7 for every ID, generated by a small PL/pgSQL function instead of an extension.

claude-stats

claude-stats is a Go CLI that turns Claude Code sessions into SQLite. I started it on a Friday. By Saturday it had:

  • A streaming JSONL parser, subagent files included.
  • A pricing engine for cost per session.
  • A Bubble Tea TUI with Sessions, Costs, Projects, Heatmap and Query tabs.
  • A natural-language query engine built on regexes.

Dyna404

  • First commit. Dyna404 is dead links that answer back.