A System Design answer from a screenshot and a spoken rule
By CheatCodeAI team3 min read
CheatCodeAI is a desktop assistant for job interviews. Spectator is the part that reads screenshots, and its System Design mode writes a full design answer that ends with an architecture diagram in Mermaid code.
System Design also reads the latest lines that Souffler, the listening part of the app, transcribed from the call, so a requirement the interviewer adds out loud can shape the answer. We tried that with one prompt and one spoken rule.
The prompt and the call
The prompt is a small exercise of ours: the backend for a desk booking app in one office with 300 desks on 3 floors and 2,500 employees, at a peak of 30 booking requests a second. An employee books a desk for one day, a desk can have only one booking per day, and bookings can be cancelled. It asks for the APIs, the data model, and how to stop two people from booking the same desk for the same day. We sent it as one screenshot.
Before sending it, we recorded the interviewer adding a rule that the page doesn't have. A text-to-speech voice read it into the app's microphone input while Souffler was recording:
One more thing. People want to see who has booked which desk on a floor for a given day, so they can sit near their team.
Then we switched Spectator to System Design and sent the screenshot with no typed text.
What came back
The answer follows a fixed outline: Input Data, Problem Explanation, Clarification, APIs, Calculations, Databases, Components, Details and Diagram. Input Data says what the model took from each source:

The rule shapes much of the design. Next to booking, cancelling and checking one desk, the APIs section adds GET /floors/{floor_id}/bookings?date=YYYY-MM-DD to list a floor's bookings for a day. The data model keeps each employee's name and team, so the floor view can show who sits where. A separate Read Service answers floor views from a Redis cache of today's occupancy, and the cache is refreshed when someone books.
For the double-booking question it put the rule in the database:
By using a UNIQUE constraint on (desk_id, booking_date) in the database, we rely on the database's internal locking mechanism. If two requests hit at the exact same time, the database will reject the second one, and the application can return a 409 Conflict error.
From the answer's Details section.
That is the safe way to do it: the database enforces one booking per desk per day, so two requests that arrive together can't both succeed. Its numbers are small and right. Even with every desk booked every day, a year is about 109,500 rows, and at 30 requests a second one database server is enough for a long time.
The diagram
The Diagram section is Mermaid code with a copy button. The app shows the code; any Mermaid viewer, or a Markdown file on GitHub, draws it. This is the block from the answer:
graph TD
Client[Client App] --> Gateway[API Gateway]
Gateway --> BookingService[Booking Service]
Gateway --> ReadService[Read Service]
BookingService --> DB[(PostgreSQL)]
BookingService --> Cache[(Redis)]
ReadService --> Cache
ReadService -- Cache Miss --> DB
subgraph "Data Consistency"
DB
end
subgraph "Performance"
Cache
end
The diagram matches the Components list. Both services sit behind the gateway, bookings go to Postgres and update the cache, and floor views read Redis first and Postgres only on a cache miss. The System Design docs cover switching modes and the full answer layout.
Our Terms of Service don't allow using CheatCodeAI where an employer's or interview platform's rules forbid outside help. They also rule out schoolwork; academic, licensing, certification and government exams; and proctored or supervised tests that forbid outside help. Recording a call can require everyone's consent, and the law of each person's location applies. This is not legal advice.