Code Room
Vibe codingMediumvc-g468
Subject Ai team collaborationLevel Mid–Senior~18 minCommon in Databases & SQL interviewsIndustries Software development

Question

Your team of four is building out a new Java microservice, and each engineer uses an AI agent for their slice. After a week the service is a stylistic patchwork: one agent used constructor injection, another field injection; one used checked exceptions, another runtime; error responses have three different JSON shapes. The code works but reviews are painful and the API is inconsistent. How do you get four AI-assisted engineers producing coherent, consistent code?

What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it — tests, edge cases, reading critically — and how you’d re-prompt or decompose to get it right.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.