Exploring Agentic Development: A CRM Case Study

Tech Stack:
ReactTypeScriptTanStack QueryExpressPostgreSQLpen.dev

Exploring how far one developer can go with six AI agents: how I build a CRM in two days with OpenSpec specs, pen.dev designs, React, Express and PostgreSQL.

Exploring Agentic Development: A CRM Case Study

A few years ago I worked on a CRM that took a team of 9 people almost a year to reach its MVP.

This time I wanted to test one question: how far can one developer get with the same kind of product, using a spec-driven, multi-agent workflow? It’s a learning project with no real customers, so the scope is smaller. The core is the same though: contacts, companies, a deal pipeline, activities and tasks.

If you’re new here, hi, my name is Ekky. I’m a full-stack / Python developer with 5+ years of experience building web applications, APIs, data scraping, automation, and AI. If you’re interested in working with me, find me at https://ekky.dev or email me at mail@ekky.dev.

The Team, Then and Now

RoleOn the old teamThis time
Planning and specsProduct/Project ManagerPlanner agent with OpenSpec
DesignUX/UI DesingerDesigner agent with pen.dev
FrontendTeam of Frontend DeveloperFE-DEV agent
Backend and databaseTeam of Backend DeveloperBE-DEV agent
QAQA TeamsQA agent with Terminal Browser, plus automated tests
Coordination and reviewProgrammer review it manuallyMaster agent, and me

Setting Up the Crew

I didn’t start with a plan. I started by preparing the agents: their system prompts, their skills, and the panes they run in inside Herdr. Before writing any code, I also did some research on useful skills, design preferences, and tech stacks.

The agents run in a Herdr tab split into panes, with one pi agent per pane: a planner, a frontend developer (FE-DEV), a backend developer (BE-DEV), a designer, and a QA agent. Each agent gets its role added to its system prompt, then waits for a task.

The most important part of the setup was ownership. Every agent owns its own folders and stays out of the others:

  • Planner owns openspec/: the proposals, specs, and task lists
  • FE-DEV owns src/: the React app
  • BE-DEV owns server/ and shared/: the Express API and the types both sides use
  • Designer owns design.pen and its exports
  • QA doesn’t own a folder. It tests the running app through Terminal Browser and reports what it finds

The agents talk to each other through pi-intercom, so the planner can hand a task to FE-DEV, and FE-DEV reports back when it’s done or blocked. All of them follow the same rules from AGENTS.md, for example never commit unless I say so, and ask before adding any dependency. I work above them through the master agent, which is where I give the tasks and review the results.

Tools I use

  • Pi for agentic TUI
  • Herdr for terminal multiplexer (alternative to tmux)
  • Pen.Dev for agentic design
  • OpenSpec for spec skills
  • Terminal Browser for UI testing
  • React best practice AI skills, and
  • bun for runtime
  • (personal preference) Obsidian for reading the specs

Agents model

  • Master agent using Claude Opus 5.5
  • FE-DEV using Claude Sonnet 5.5
  • BE-DEV using Claude Sonnet 5.5
  • Planner using Claude Sonnet 5.5
  • Designer using Claude Sonnet 5.5
  • QA using Claude Opus 5.5

Design Before Code

It’s not only code generation. I also did some preparation before generating the design.

I saved a page from a web application I use often, then let AI extract its style and turn it into DESIGN.md. The DESIGN.md became the rules for the whole app brand style guide: colours, typography, spacing, radius, motion, components, and the icon map. Then the pen.dev agent built the design system and components based on it in design.pen, with one frame per screen.

CRM design tokens

There are 72 exported frames for desktop and mobile, including loading, empty, error, and not found states, a deal being dragged across the board, and the lost reason dialog. When the agents build a screen, they don’t have to guess what an empty list or a failed sign in looks like.

The Build

Day 1

I spent the first day researching, brainstorming, planning, preparing, and designing the screens.

The research led to the core features: contacts, companies, deals with a pipeline board, activities, tasks, and a dashboard. The brainstorming and planning then turned those features into specs with OpenSpec, covering the what, the why, and the how:

  • Why: a proposal that explains why the change exists and what it includes
  • What: requirements and scenarios for what each screen must do
  • How: design decisions for how to build it, plus a task list to work through in order

On day one, I spent most of my time going back and forth with the agents: criticising and questioning their design decisions, then tweaking them to fit my preferences without over-engineering them.

The preparation include an SOP (Standard Operating Procedure) for the agents:

  • AGENTS.md: the stack, commands, code conventions, and rules, like asking before adding a dependency, never committing secrets, and using only fake sample data
  • skills: the OpenSpec skills to propose, apply, and archive changes, plus React best practice skills
  • A project scaffold via npx create-vite@latest crm --template react-ts for the frontend and npx for the backend or server, plus a Docker Compose file for PostgreSQL

The specs and DESIGN.md were then used to generate the design system, components, and UI screens in pen.dev, so by the time any feature code was written, every screen already had a spec and a design to follow.

Day 2

With all the information about the product and design ready, only then was I ready to scaffold the project.

I ran the separate groups of tasks with multiple agents, Master, FE-DEV, BE-DEV, and QA, working in parallel, each with its own tests. The task list is split into groups that are vertical slices, so every group ends with something that works and is tested.

  • FE-DEV built the component library from DESIGN.md, the app shell, and the feature screens: dashboard, contacts, companies, deals, activities, and tasks
  • BE-DEV built the Express API: user accounts with sessions, the endpoints for every record type, search, the dashboard figures, and seed data, all on PostgreSQL through Prisma
  • QA tested every finished group in the browser and reported bugs back
  • Master handed out the tasks and kept the frontend and backend in sync

The frontend stopped at dummy data, and only continued after the backend was done. Then the frontend was wired to the API. The dummy data was replaced with a small data layer, one module per record type plus TanStack Query hooks, so the screens read and write real records.

After that, the tests ran again: component tests on the frontend, and API tests against a separate test database on the backend, about 800 tests in total. On top of that, the QA agent ran the UI tests through Terminal Browser, a real browser inside the terminal that it can click through like a user: signing in, creating records, and dragging deals across the board.

I also ran manual tests myself on the UI, and everything seemed to work very well.

Stack

  • React.js
  • Express.js
  • Prisma
  • Tanstack Query
  • PostgreSQL
  • bun
  • docker compose

Stats

The project is done in 2 days with 6 agents, 10 specs, ~800 tests, and 6 feature areas.

Would I Do It in Next Project?

Yes. I prefer this agentic working style — for this time at least —, especially for writing specs and for the feature validation part of the implementation.

Writing specs first means every agent works from the same contract: what to build, why, and how. It also makes changes easier. When I replaced the database library, the API contract stayed the same, because it lived in the specs and not in the code. Validation is also no longer something I only do at the end. Every group of tasks finishes with tests, a QA check in Terminal Browser, and my own review.

I think the modern AI is already capable of doing a good job, like doing a full app build. But it still requires an experienced engineer to steer what to include and exclude from the project.

Product development also doesn’t stop at building. A real client project needs the cloud architecture, monitoring, security, and maintenance based on customer feedback. This CRM is a learning project with no real customers, so it didn’t test any of that, and that’s where an engineer’s experience matters most.

Screens

Dashboard

CRM dashboard

Dashboard on Mobile

CRM dashboard on mobile

Contacts

Contacts list

Contact Detail

Contact detail

Company Detail

Company detail

Deals Board

Deals pipeline board

Dragging a Deal

Dragging a deal between stages

Deal Detail

Deal detail

Activities

Activities feed

Tasks

Tasks list

Global search

Sign In

Sign-in screen