Category: AI Engineering in Production

  • Jev and the unbundling of AI: why agents need a decision layer

    Jev and the unbundling of AI: why agents need a decision layer

    Most AI agents are using a frontier language model for decisions that should cost a fraction of a cent.

    Which tool should run next? Which model should handle this task? Is this support request urgent? Does the evidence support the claim? Has the agent actually completed the work?

    We usually send all of these questions to the same general-purpose LLM that writes the final response. It works, but the architecture is becoming difficult to justify. We are paying for open-ended generation when the application only needs a bounded decision.

    Jev is an early attempt to separate those two jobs.

    TypeSafe AI introduced Jev on 15 September 2026 as its first “System One” model. It does not generate paragraphs, code, or explanations. It receives a state and a set of typed questions, then returns constrained answers with probabilities.[1][2]

    It is only 12 days old as I write this, so I would not treat it as settled infrastructure. But the idea behind it matters beyond one model or company.

    AI is starting to unbundle.

    The best model for writing may not be the best model for routing. The best model for reasoning may not be the best model for checking a policy. The best model for a conversation may be excessive for deciding whether a ticket belongs to billing or technical support.

    That shift could change how we design agents.

    What Jev is

    Jev is a decision model.

    A normal LLM accepts context and generates a sequence of tokens. Even when we ask it for JSON, it is still generating text. The application then parses that text, validates the schema, checks whether the values are permitted, and decides what to do next.

    Jev removes the text-generation step from the interface.

    A request contains:

    • A state, supplied as text or structured JSON
    • One or more named questions
    • The permitted shape of each answer

    The response contains typed values and probability distributions that application code can inspect directly.[3]

    The current API exposes three question types.

    Choice

    Choice selects one option from a closed set.

    A support system could ask:

    Which team should handle this message?
    
    billing: charges, invoices, or refunds
    technical: bugs, outages, or integrations
    account: login, plan, or profile changes

    Jev returns the selected option, a probability for every option, and a confidence score. Choice supports up to 255 options.[3]

    The application does not need to extract billing from a paragraph or handle an invented category such as customer success. The answer must fit the declared set.

    Score

    Score places an input on an ordered rubric.

    For example:

    How severe is this issue?
    
    0: cosmetic problem
    1: workflow degraded
    2: core workflow blocked
    3: security, data, or production impact

    The result can fall between levels because it is calculated from the probability distribution. This works for urgency, risk, quality, frustration, lead fit, or any judgment where we can write clear levels.

    Noul

    Noul is a yes-or-no proposition expressed as a probability from 0 to 1.

    Examples:

    • Does this message request a refund?
    • Does this source directly support the claim?
    • Does the proposed tool call have irreversible side effects?
    • Does this task require a human reviewer?

    A result near 1 is a strong yes. A result near 0 is a strong no. A result around 0.5 signals uncertainty.

    The name may be unfamiliar, but the programming model is simple. Noul maps to an if. Choice maps to a branch. Score maps to a threshold or ranking.

    Why this interface matters

    A four-stage AI decision architecture separating generative models, Jev, deterministic code, and human review
    One possible production architecture: generative models create, Jev evaluates bounded decisions, code enforces policy, and humans review uncertain or high-risk cases.

    Typed output is useful, but it is not the most interesting part.

    The larger change is architectural: code owns the workflow again.

    Many agent systems put the workflow inside a prompt. The model decides what the task means, what to do next, which tool to call, whether the result is good enough, and when to stop. This is flexible, but it gives one probabilistic component a large amount of responsibility.

    A decision layer creates a narrower boundary:

    Generative model creates or reasons
                    ↓
    Decision model evaluates a bounded question
                    ↓
    Deterministic code applies policy
                    ↓
    Proceed, escalate, ask a person, or use a stronger model

    LangChain describes a similar pattern in its work with Jev and LangGraph: code retains the workflow, decision models handle narrow judgments, and uncertain cases move to an LLM or human reviewer.[7]

    This separation gives us a few practical benefits.

    First, the answer space is explicit. A model can choose the wrong option, but it cannot silently create a new one.

    Second, uncertainty becomes part of the interface. Code can treat a 0.58 result differently from a 0.97 result.

    Third, the same state can be evaluated against several independent questions in one request. A support message can be classified for queue, urgency, frustration, policy risk, and human escalation together.[3]

    Fourth, the expensive model only runs where it adds value. A routine high-confidence route can remain cheap. An ambiguous or high-stakes case can move to a stronger model or a person.

    This is closer to normal software engineering than a fully open agent loop.

    The current economics

    TypeSafe currently lists jev-1.13.0 as the official model. The jev-latest alias points to it, although that alias will move when a new stable model ships.[4]

    The published price is $0.042 per million input tokens, with free output. At that rate, 1,000 requests containing 1,000 input tokens each cost about $0.042. One million such requests cost about $42.

    The official limits at the time of writing are:

    • 64k total tokens per request
    • 32k tokens for the state plus the longest question
    • Text-only input
    • 250,000 tokens per second
    • 1,200 requests per minute

    TypeSafe notes that launch-period rate limits may change.[4]

    The company reports 70 to 500 millisecond response times. Its launch evaluation also reports gains up to 193.6 times faster and 444.6 times cheaper than LLM-based workflows.[1]

    Those numbers need context.

    TypeSafe says the reported gains are likely toward the high end of real-world improvements. It also notes that members of its model-capabilities team created the workflows and that the reference probabilities came from frontier models rather than human ground truth.[1]

    I read those as promising engineering results, not a universal benchmark.

    What independent testing shows

    The most useful independent evaluation I found tested Jev 1.13.0 on 400 requests containing 2,000 individual decisions.

    DecisionEval reported:[6]

    • 74.0% overall accuracy
    • Expected calibration error of 0.045
    • P50 latency of 687 milliseconds
    • P95 latency of 777 milliseconds
    • 86.4% accuracy when confidence was at least 0.7, covering 57.6% of cases
    • 93.7% accuracy when confidence was at least 0.9, covering 24.5% of cases

    The headline accuracy is not the main lesson.

    The coverage curve is.

    At a high confidence threshold, Jev handled fewer cases but was more accurate on those it retained. That is the production pattern I would expect:

    • Automate clear and reversible cases
    • Escalate ambiguous cases
    • Require human review for high-impact actions

    A separate test by TrueStandard evaluated 108 claim-and-source pairs across six domains. Jev was slightly more accurate and materially cheaper than Gemini Flash Lite and Claude Haiku in that test, especially on adversarial near-miss claims. But its calibration error was similar to the two chat models, not clearly better.[10]

    The sample was small, and the author is explicit about how the conclusion changed as more examples were added. That is useful in itself. Small evaluations can create confident stories that disappear with a larger dataset.

    The practical conclusion is narrower:

    Jev looks competitive for constrained judgments. It is very cheap. It provides a cleaner machine interface. Its confidence may be useful for routing. None of this removes the need to test it against our own traffic.

    “Cannot hallucinate” needs a correction

    TypeSafe says Jev cannot hallucinate because it cannot return a value outside the supplied schema.[1]

    That is true in a specific engineering sense.

    If the allowed options are billing, technical, and account, Jev cannot return legal. It cannot emit malformed JSON or replace the answer with a paragraph. This removes an entire class of integration failures.

    But a schema-valid answer can still be wrong.

    Jev can confidently select billing when the correct route is technical. It can assign high urgency to an ordinary request. It can decide that evidence supports a claim when the support is weak.

    TrueStandard puts the distinction clearly: Jev cannot invent an option outside the declared set, but it can choose the wrong permitted option.[10]

    For production teams, this means:

    • We may no longer need to validate the shape of the output
    • We still need to evaluate the quality of the decision
    • Confidence is a routing signal, not authorization
    • Local outcome data matters more than a vendor’s calibration claim

    Calibration is distribution-specific. A model can be well calibrated on the data used during development and poorly calibrated on a team’s customer messages, taxonomies, tool traces, or policies. Prefactor’s analysis makes the same point: thresholds become trustworthy only after reported confidence is compared with real outcomes on representative production traffic.[11]

    Where Jev fits inside an agent

    I see five strong control points.

    1. Skill and tool selection

    An agent often receives a large list of tools or skills and asks a frontier model to choose one. As the catalogue grows, the prompt becomes larger and tool selection becomes less reliable.

    A decision model can evaluate the task against a bounded shortlist:

    • Choice: which skill best matches?
    • Noul: does any candidate actually apply?
    • Confidence gate: should the selection be accepted or passed to the main model?

    TypeSafe has published a cookbook that applies this pattern to a catalogue of 182 agent skills.[4]

    This is one of the clearest early experiments for any agent with a growing tool or skill catalogue. It can reduce missed specialist workflows without changing the main conversational model.

    2. Model routing

    Not every request needs the same model.

    A decision layer can choose among routes such as:

    • Fast model
    • Strong reasoning model
    • Coding model
    • Vision model
    • Multiple subagents
    • Human clarification

    The output should not directly call the chosen provider. Code should check that the model is available, enforce cost and policy limits, and execute the route.

    The benefit is not only lower cost. It is making model-selection behavior visible and measurable.

    3. Semantic tool guards

    Deterministic security rules are necessary, but they cannot understand every proposed action.

    A semantic guard can inspect:

    • Tool name
    • Sanitized argument summary
    • Expected side effects
    • Reversibility
    • Applicable policy
    • Existing safeguards

    It can then return allow, ask_user, review, or deny.

    This must remain advisory. A decision model should never override permissions, user approvals, or deterministic deny rules. It adds judgment around the policy boundary. It does not become the boundary.

    4. Completion verification

    Agents often stop because the generated response feels complete, not because every acceptance criterion has evidence.

    Before an agent reports completion, a decision layer can evaluate:

    • Objective
    • Acceptance criteria
    • Test results
    • Tool evidence
    • Deployment status
    • Read-back verification
    • Known failures

    The output might be complete, verification_missing, incomplete, or human_review.

    This is particularly useful when an agent has already spent most of its context on implementation. A compact independent check can catch missing verification before a confident final message reaches the user.

    5. Research and citation checks

    Given a claim and a source passage, Jev can judge whether the passage supports the claim.

    This can act as a high-volume pre-publication check for research, reports, proposals, and generated content. It does not establish whether the source is itself correct or current. It only evaluates the relationship between supplied evidence and the claim.

    That is still useful. Many citation failures are not invented URLs. They are real sources attached to claims the source does not actually support.

    Browser agents are an early example

    Browser Use has published an experimental jev-ultrafast agent.

    The browser is converted into a dynamic list of valid operations and interactive elements. Jev chooses an operation and target. A small LLM generates text only when the operation requires typing.[8]

    In a small Google Flights test, the project reported a reduction in median task time from 9.450 seconds to 7.092 seconds and a reduction in browser protocol calls from 1,092 to 101. The test covered three repeats per version on one task, and the authors explicitly say it is not a general reliability benchmark.[8]

    The result is still interesting because it demonstrates the architecture clearly.

    A browser action feels open-ended, but at any given moment the page offers a finite set of valid controls. Once the state is converted into that bounded action space, tool selection becomes a decision problem.

    Where Jev should not be used

    TypeSafe’s own limitations page is unusually direct, which I appreciate.

    Jev 1.13 can struggle with:[5]

    • Literal phrasing and implied conditions
    • Counting and numeric precision
    • Date and time comparison
    • Multi-step indirection
    • Large states containing irrelevant detail
    • Adversarial content that tries to influence classification
    • Contradictory instructions and criteria
    • Structural assumptions across separately asked questions
    • Text generation

    The safe design response is simple.

    Use code for arithmetic, dates, permissions, exact matching, inventory, pricing, and policy enforcement.

    Use retrieval or filtering before sending context.

    Ask one focused judgment per question.

    Use a generative model for writing and open-ended reasoning.

    Keep a human path for uncertain or consequential cases.

    Jev’s primary training language is English. Other languages are supported but currently have lower accuracy, so multilingual production traffic needs separate evaluation.[4]

    The model is also proprietary and hosted. TypeSafe says customer requests and responses are not used for training, and enterprise customers can request zero data retention. Vercel AI Gateway also documents per-request Zero Data Retention and No Training options for Jev.[4][9]

    Data sensitivity and provider terms still need to be reviewed before sending production content.

    How I would test it

    I would not begin with a platform-wide integration.

    I would run a shadow pilot on one bounded workflow where the team already knows the correct historical outcomes. Skill selection, support triage, catalogue matching, and completion verification are all reasonable candidates, depending on where clean labels already exist.

    The pilot would follow this sequence:

    1. Collect 300 to 500 representative historical examples, including difficult and ambiguous cases.
    2. Write narrow questions with explicit options and boundary cases.
    3. Pin the versioned model ID instead of using the moving jev-latest alias.[4]
    4. Run Jev in shadow mode without allowing it to take action.
    5. Store the complete probability distribution, confidence, model version, question version, latency, cost, and correct outcome.
    6. Plot accuracy against coverage at different thresholds.
    7. Review every high-confidence error.
    8. Set separate thresholds for each question and primitive.
    9. Auto-route only low-risk, reversible cases after the held-out results clear the required error bar.
    10. Re-test whenever the model, question wording, or input distribution changes.

    The benchmark that matters is not whether Jev beats a frontier model on a public chart.

    It is whether a specific decision can be automated on our data at an acceptable error rate, latency, and cost.

    The larger shift

    For the past few years, the default AI architecture has been one powerful model connected to many tools.

    That was the fastest way to discover what agents could do. It is probably not the final production architecture.

    We are beginning to separate intelligence into components:

    • Generative models for creation and explanation
    • Reasoning models for difficult planning
    • Vision models for visual understanding
    • Embedding and reranking models for retrieval
    • Decision models for bounded semantic judgments
    • Deterministic code for policy, computation, and side effects

    The work then moves from finding one model that does everything to designing the system that gives each model the right job.

    That is the part I find most relevant.

    Jev may become an important model, or another provider may build a better decision layer. Either way, the interface makes sense. Agents need a way to make cheap, typed, observable judgments without turning every branch into another open-ended generation call.

    The right starting point is not broad adoption. It is one measurable decision, running quietly in shadow, until the probabilities earn the right to influence the workflow.

    If you are building production agents, I would be interested to compare where your stack still uses a frontier model for a bounded decision.

    Sources

    [1] https://typesafe.ai/blog/introducing-system-one-models-and-jev [2] https://docs.typesafe.ai/introduction [3] https://docs.typesafe.ai/api [4] https://docs.typesafe.ai/models [5] https://docs.typesafe.ai/model-jaggedness/jev-1.13 [6] https://decisioneval.dev/models/typesafe-jev [7] https://www.langchain.com/blog/building-prod-with-jev-and-langgraph [8] https://github.com/browser-use/jev-ultrafast [9] https://vercel.com/changelog/typesafe-ai-jev-now-available-on-ai-gateway [10] https://truestandard.ai/blog/jev-accuracy-tested [11] https://prefactor.tech/blog/jev-calibrated-confidence-is-not-correctness

  • How do you run AI agents in production? The 2026 playbook

    Running AI agents in production means five disciplines working together: an orchestration architecture that routes work to specialists, a shared context layer that keeps agents consistent across steps, verification that checks output against defined criteria before users see it, failure handling that retries and self-fixes within bounds, and cost control through deliberate model routing. Miss any one and you have a demo, not a system.

    The gap between the two is where most projects die. Gartner predicted in 2025 that over 40 percent of agentic AI projects would be canceled by the end of 2027, citing cost, unclear value, and inadequate risk controls. The pattern behind that number is consistent: teams ship the impressive 80 percent, then discover the remaining 20 percent, verification, recovery, and economics, is most of the engineering.

    This playbook covers each discipline concretely, drawing on a pipeline we run in production: ten specialized agents that take products from idea to deployed code. You can see that roster, from Orchestrator to Deploy, on the agents page, with each agent’s real tools and inputs documented.

    What separates a production agent system from a demo?

    A demo proves an agent can succeed; production requires knowing when it failed. The difference is not model quality but everything wrapped around the model: defined success criteria, verification before output reaches users, bounded recovery when steps break, observability into every decision, and an economic model that survives contact with real usage.

    Put side by side, the gap is structural:

    Concern Demo agent Production agent system
    Success definition Output looks right Output verified against explicit criteria
    Failure handling Human retries the prompt Bounded automatic retry and self-fix, then escalate
    Context One chat history Persistent shared state across agents and sessions
    Execution environment Developer’s machine Isolated sandboxes with previews
    Observability Scrollback Logs, ledgers, and artifacts for every step
    Cost Ignored Measured per run, managed via model routing
    Model dependency Hardcoded favorite Routable per task, swappable as models change

    A useful mental model: an AI agent in production is a probabilistic component inside a deterministic system. The agent’s individual step can fail; the system’s job is to make that failure detectable, recoverable, and cheap. Everything in this playbook is a way of buying those three properties.

    Why do most agent projects stall before production?

    They stall because autonomy gets scoped before verification does. Teams give agents broad, open-ended goals, discover they cannot tell good runs from bad ones, and then cannot fix what they cannot measure. Costs compound quietly at the same time, and the project dies in the gap between impressive and dependable.

    The recurring failure patterns:

    • No definition of done. If success is “the user seems happy”, you cannot build verification, and without verification you cannot improve. Production agents need explicit acceptance criteria per task, which is why agent reliability and spec-driven development keep converging: the spec is what verification checks against.
    • One giant agent. A single agent with thirty tools and a huge prompt degrades in ways nobody can localize. When it misbehaves, there is no seam to inspect. Specialization exists precisely to create seams.
    • Unbounded loops. An agent allowed to retry forever will spend real money doing so. Bounded retries with escalation are the difference between resilience and a bill.
    • Token economics discovered late. Anthropic’s engineering write-up on its multi-agent research system reported agents using several times the tokens of a chat interaction, and multi-agent systems using around fifteen times more. Teams that design for chat-level costs meet a very different invoice.
    • Missing risk controls. Gartner’s canceled-project analysis flags this directly: agents with production access and no guardrails are a liability the moment output stops being reviewed by a human every time.

    None of these are model problems. All of them are system design problems, which is good news: system design is a solved discipline, and the rest of this playbook applies it.

    What architecture do production agent systems need?

    The proven shape is orchestrator plus specialists: one agent owns routing, state, and stage transitions, while narrow specialists own domain work with small toolsets. Add isolated execution environments for anything that touches code, and persistent artifacts between steps. This shape creates the seams that debugging, verification, and cost control all depend on.

    Why this shape wins over one large agent:

    • Focused context per agent. Each specialist carries only its own material, which keeps every context window dense with relevant signal. This is the isolate pillar of context engineering, applied as architecture.
    • Localizable failure. When output is wrong, you know which agent, which inputs, which artifact. A monolithic agent gives you one undifferentiated transcript.
    • Independent evolution. You can improve the QA specialist’s prompts or swap its model without touching the builder.

    In our pipeline, the Orchestrator is the only agent the user talks to and the only path between stages. It is explicitly forbidden from doing domain work: every research question, PRD section, design decision, and line of code is delegated to one of nine specialists. It scaffolds document outlines before delegating sections, proposes stage transitions for human approval, and maintains the project wiki that every agent reads.

    The second architectural requirement is isolated execution. Agents that write and run code need real environments with blast-radius limits. The Fullstack Builder runs headless inside an isolated cloud sandbox per project, editing files and running commands against a pre-installed Next.js app with a live preview. The sandbox boundary is what makes an autonomous coding agent safe to run: worst case, it breaks its own sandbox, not your infrastructure.

    Third, artifacts between stages. Each stage should emit a durable, inspectable artifact, a research document, a PRD, a design brief, a QA report, rather than passing raw transcripts forward. Artifacts are simultaneously your observability layer and your context compression layer.

    How do you keep agents consistent across a long pipeline?

    Through a shared context layer: a persistent store of decisions, constraints, and artifacts that every agent reads from and writes to, so consistency comes from shared state rather than from hoping each agent remembers. Without it, agent three quietly contradicts what agent one agreed with the user.

    The mechanics that matter in production:

    • A single source of truth per project. In ProductOS that is the project wiki the Orchestrator keeps clean, plus cross-stage memory read from every agent. A constraint locked during ideation is still binding when the builder writes code.
    • Grounding rules at the boundary. The Research Agent must attach a clickable source to every claim it logs, and the PRD Agent must ground every section in prior-stage artifacts rather than inventing. Ungrounded content is contained before it can poison downstream context.
    • Compression by artifact. Downstream agents consume the PRD and DESIGN.md, not upstream transcripts. The pipeline’s shape does the summarizing, deterministically.
    • Windows managed as budgets. Long-context behavior degrades as windows fill, so per-agent context is curated rather than accumulated. Treat the context window as a scarce resource with an attention budget, not a bucket.

    This is a deep enough topic that we wrote it up separately: context engineering covers the write, select, compress, isolate framework that production pipelines apply. The one-line summary for this playbook: shared context is not a nice-to-have, it is the mechanism by which ten agents behave like one team.

    How do you verify agent output before users see it?

    You verify against explicit criteria in the most realistic environment available, and you make the verdict structured. For coding agents that means driving the real application in a real browser against the flows the spec defines, then emitting a machine-readable result that can trigger fixes automatically.

    The verification ladder, in increasing order of confidence:

    1. Static checks. Types, lint, build. Cheap, fast, catches the mechanical failures. Necessary and wildly insufficient: code that compiles is not code that works.
    2. Deterministic tests. Unit and integration tests, ideally derived from the spec’s acceptance criteria. Catches regressions; misses everything nobody wrote a test for.
    3. Agent-driven functional testing. An agent exercises the running application the way a user would. This is the tier most teams skip and the one that actually predicts user experience.
    4. Human review at gates. Not every step, which does not scale, but at stage transitions: approve the outline, approve the spec, approve the release. Humans set direction; machines check conformance.

    Tier three is worth making concrete, because it is where our pipeline earns its reliability. The QA Agent drives a real headless Chromium browser against the app’s live preview URL, screenshotting after every action. It covers four areas: critical user flows taken from the PRD, per-route visual checks, direct backend API checks, and accessibility plus console and network errors. Every run ends in a single structured verdict, pass, partial, or fail, with severity-ranked findings and suggested fixes.

    The structured verdict is the design decision that matters. Because a fail arrives as ranked findings rather than prose, it can chain directly into an automated fix run by the builder, closing the loop without a human triaging bug reports. Verification that produces machine-actionable output turns quality from a review activity into a feedback loop.

    How do you handle failure, retries, and recovery?

    Assume every step can fail, then make failure cheap: validate before expensive operations, retry with new information rather than blind repetition, cap retries at a small fixed number, and escalate to a human with full context when the cap is hit. Bounded self-repair is the production pattern; infinite loops and silent failures are the anti-patterns.

    The retry rule that matters most is subtle. A blind retry, running the same call again and hoping, wastes tokens and rarely converges.

    A useful retry changes the input. Feed the agent the exact error, the failing output, and the constraint it violated, then let it try again with that new information. If it fails three times, the problem is not transient, and a human should see it.

    A simple failure taxonomy helps you decide the response before an incident, not during one:

    • Transient. A timeout or a rate limit. Retry with backoff; no human needed.
    • Correctable. A failed test or a type error the agent can read. Retry with the error as new context, capped at three.
    • Structural. A missing credential, an impossible requirement, a contradictory spec. Do not retry; escalate with full context immediately.

    Most runaway-cost incidents come from treating a structural failure as a correctable one, letting the agent burn a hundred retries on a problem no retry can solve.

    Our Deploy Agent is a compact case study in the pattern, because deployment is where failures are most visible and most expensive:

    • Check state first. Its mandatory first call checks the current deployment state, so it never acts on stale assumptions about what is already live.
    • Preflight before shipping. It runs the full production build inside the sandbox before anything leaves it. Failures surface in a safe environment where fixing is cheap.
    • Bounded self-fix. When a build breaks, it reads the actual build logs, applies a targeted fix, and retries, up to three times, then stops and asks the human. Each retry is informed by new evidence, not a blind rerun, and the cap converts a potential infinite loop into a bounded cost.
    • Leave an audit trail. Every release lands in a cumulative deploy ledger, and the code is pushed to the user’s own GitHub. When something goes wrong later, the history exists and the user owns it.

    The generalizable rules: retries must incorporate new information, caps must be small and fixed, escalation must carry full context, and every autonomous action must leave a durable record. The full pipeline behind that flow is documented at deploy and own your code.

    How do you control cost and model choice?

    By routing deliberately: match each task to the cheapest model that meets its quality bar, keep contexts lean so token burn tracks value, and never hardcode a single provider. Agent economics are dominated by token volume, and volume is a design variable, not a constant.

    The levers, in rough order of impact:

    • Per-task model routing. Verification sweeps, log parsing, and formatting do not need frontier reasoning; architecture and complex implementation do. A pipeline with seams can route each specialist independently. ProductOS runs BYOK multi-provider routing with no model hardcoded, which also means the platform does not silently absorb a margin on your inference.
    • Context discipline as cost control. Every technique from the consistency section, artifact compression, per-agent isolation, pruned tool output, cuts spend directly, because you pay for every token whether the model attends to it or not.
    • Provider portability as risk management. Model rankings on public benchmarks like SWE-bench have reshuffled repeatedly since 2024, and pricing moves with them. A system with no hardcoded model treats each release as an opportunity; a hardcoded system treats it as a migration project.
    • Bounded loops as budget caps. Retry caps are cost policy as much as reliability policy. Three informed attempts is an engineering budget; unlimited attempts is an incident.

    Tips

    • Log every tool call and model response; a production incident you cannot replay is a production incident you cannot fix.
    • Set a hard step budget and a token ceiling per run, then alert before the run hits either.
    • Make the agent verify its own output against a real check, a test run or an assertion, not against its own confidence.
    • Cap automated retries at three, then escalate to a human; infinite self-correction burns cost and rarely converges.
    • Pin model versions in config so a provider update never silently changes behavior in production.

    How ProductOS does it

    ProductOS runs this playbook as a product. Ten specialized agents, Orchestrator, Ideation, Research, PRD, Architect, Design, Design System, Fullstack Builder, QA, and Deploy, share one project context across five stages: Ideate, Discover, Define, Design, and Develop. The Orchestrator routes all work and maintains the project wiki; it never writes code itself.

    Verification and recovery are built in. The QA Agent tests in real headless Chromium and returns a pass, partial, or fail verdict that can chain into automated fixes. The Deploy Agent preflights the production build, pushes to your own GitHub, and self-fixes up to three times before asking a human.

    Builds run in isolated cloud sandboxes with live previews, and model routing is BYOK multi-provider with nothing hardcoded. The showcase products, SOLEN, Orbit, StudioFlow, Lumen Notes, Echo, and Reserva, all shipped through this pipeline. The architecture is documented on the five-stage pipeline page.

    Frequently asked questions

    What does it mean to run AI agents in production?

    It means agents doing real work for real users without a human reviewing every step, inside a system that defines success explicitly, verifies output before it lands, recovers from failures within bounds, and tracks cost per run. The agent is a probabilistic component; production is the deterministic machinery that makes its failures detectable and cheap.

    How many agents should a production system have?

    As many as there are genuinely distinct jobs, and no more. The orchestrator-plus-specialists pattern works because each specialist gets a focused context and a small toolset; splitting further adds coordination cost without adding signal. ProductOS settled on ten because the product pipeline has roughly ten distinct competencies, from research to deployment. Your domain will have its own natural seams.

    How do you evaluate AI agents before production?

    Build task-level evals from your acceptance criteria: a set of representative tasks, each with a defined check for success. Run them on every prompt, tool, or model change, and grade outcomes rather than transcripts. Then keep verification running in production, because eval sets drift from reality. If you cannot write the check, the task is not specified well enough to automate.

    What guardrails do production agents need?

    Scope guardrails: least-privilege tools and sandboxed execution so the blast radius is contained. Behavior guardrails: bounded retries, spend caps, and mandatory state checks before irreversible actions. Process guardrails: human approval at high-stakes gates like deployment and outbound communication. The test is simple: enumerate the worst action each agent could take, then confirm something structural, not a prompt, prevents it.

    Why do multi-agent systems cost so much more than chat?

    Token volume. Anthropic’s write-up on its multi-agent research system found agents consuming several times the tokens of a chat, and multi-agent runs consuming roughly fifteen times more. Every specialist carries context, calls tools, and iterates. The costs are manageable with routing, compression, and bounded loops, but they must be designed for, not discovered on the first invoice.

    Can non-engineers run production agent systems?

    Yes, when the reliability engineering ships inside the platform instead of being built per team. The disciplines in this playbook do not disappear; they get productized. In ProductOS, a founder gets orchestration, sandboxed builds, real-browser QA, and bounded deploy self-fixes without assembling any of it, and human judgment stays in the loop at stage approvals.

    What observability do agent systems need?

    Three layers. Artifacts: every stage emits a durable output you can inspect, a spec, a report, a ledger. Decisions: which agent did what, with which inputs, and why, traceable per run. Verdicts: structured pass or fail results over time, so you see reliability trends rather than anecdotes. If a bad run cannot be reconstructed afterward, you do not have observability yet.

    Should agents be allowed to deploy to production automatically?

    Only with structural safeguards: a preflight build in an isolated environment, bounded self-fix attempts, an audit ledger, and code pushed to a repository the user owns. Many teams also keep a human approval on the final promote step. Autonomy is earned per action class; deployment is high-stakes enough that the bounds should be conservative and the trail complete.

    Ship agents that survive contact with users

    Production agents are a systems problem, and the system is buildable: orchestration, shared context, real verification, bounded recovery, deliberate economics. See how the ten specialists divide that work on the agent roster, or skip the assembly entirely and start building free on ProductOS.

  • The Testing Prompt Pack: 18 Prompts That Catch Bugs

    Most teams test what they built. The best teams test whether they built the right thing.

    📋 Read time: 14 minutes. Use time: every sprint, forever.


    Why This Exists

    Testing gets treated like a tax. You pay it at the end of the sprint, as fast as possible, to get to the release. The result is test suites that catch nothing real and QA processes that feel like theater.

    The teams that ship software they're proud of treat testing differently. They test assumptions, not just code. They test user paths, not just functions. They ask "what would have to be true for this to break?" before they ask "did this work?" That shift in framing changes everything, and it starts in how you prompt.

    Most engineers and PMs use AI to write tests the same way they'd search Stack Overflow: "write a unit test for this function." That produces tests that confirm what you already believe. This pack flips it. These prompts are built to stress-test your assumptions, find the edges you didn't think of, and give you the honest picture before your users do.


    How to Use This

    1. Match the prompt to the moment. Section 1 is for early product decisions. Section 2 is for feature-level testing. Section 3 is for system and edge-case thinking. Section 4 is for post-release learning.
    2. Paste real context. Every prompt works better with your actual code, spec, or user flow. Generic in, generic out.
    3. Don't stop at the first output. These prompts are designed to start a conversation, not end one. Push back, ask for edge cases, ask "what else?"
    4. Use the pitfalls section last. Read it after you've run a few prompts. You'll recognize your own patterns.

    Section 1: Assumption Testing (Before You Write a Line of Code)

    The most expensive bugs are the ones baked into your requirements. These prompts surface them early.


    Prompt 1: The Assumption Map
    Here is the spec / user story for the feature I'm about to build:
    
    [PASTE SPEC]
    
    Before I write any code, list every assumption this spec makes, explicit and implicit. For each assumption, tell me:
    - What we're assuming
    - What would happen to the feature if this assumption is wrong
    - A simple way to validate the assumption before building
    
    Order them from most risky to least risky.
    

    When to use it: At the start of any non-trivial feature. Run this before writing a single test case or a single line of code.


    Prompt 2: The User Mental Model Check
    Here is the user flow for [FEATURE NAME]:
    
    [DESCRIBE OR PASTE THE FLOW]
    
    My assumption is that users will understand [SPECIFIC ASSUMPTION ABOUT USER BEHAVIOR OR MENTAL MODEL].
    
    Challenge this assumption. What would a first-time user likely think is happening at each step? Where might their mental model diverge from what's actually happening? What would cause confusion, abandonment, or a support ticket?
    

    When to use it: When a flow feels obvious to you. That feeling is a warning sign, not a green light.


    Prompt 3: The Spec Contradiction Finder
    Here is the product requirements document (or spec) for [FEATURE / PRODUCT]:
    
    [PASTE SPEC]
    
    Read it carefully and identify:
    1. Any internal contradictions (places where two requirements conflict)
    2. Any ambiguous terms or phrases that could be interpreted multiple ways
    3. Any requirements that are technically impossible or very expensive to implement
    4. Any edge cases the spec silently ignores
    
    Be specific. Quote the relevant sections.
    

    When to use it: Before engineering starts, or when a sprint is running longer than expected and nobody knows why.


    Prompt 4: The Regulatory and Compliance Blind Spot Check
    I'm building [BRIEF DESCRIPTION OF PRODUCT / FEATURE]. The target users are [USER TYPE]. The data it handles includes [DATA TYPES].
    
    What compliance, legal, or regulatory requirements might apply that a product team would commonly overlook? Cover:
    - Data privacy (GDPR, CCPA, HIPAA, COPPA, whichever is relevant)
    - Accessibility (WCAG)
    - Industry-specific regulations
    - Terms of service constraints from platforms we might integrate with
    
    For each one, tell me what the actual risk is if we ignore it and how expensive it typically is to retrofit compliance later.
    

    When to use it: During discovery, especially if you're entering a new vertical or handling new data types.


    Section 2: Feature-Level Testing

    These prompts help you write better tests, find the cases that matter, and spot what automated test suites routinely miss.


    Prompt 5: The Edge Case Generator
    Here is the function / feature I just built:
    
    [PASTE CODE OR DESCRIBE FEATURE]
    
    Generate a comprehensive list of edge cases I should test. Think about:
    - Boundary values (empty, null, zero, maximum, minimum)
    - Unexpected input types or formats
    - Concurrent or race-condition scenarios
    - Network failure or latency at any step
    - State that exists in the database that doesn't match what the UI shows
    - Behavior when upstream dependencies return errors or stale data
    
    For each edge case, describe what would actually happen with the current implementation if you know, and whether that outcome is acceptable.
    

    When to use it: After you've written your happy-path tests. Treat this as a mandatory second pass.


    Prompt 6: The Test Coverage Audit
    Here is the test suite for [MODULE / FEATURE]:
    
    [PASTE TESTS]
    
    Audit this test suite. Tell me:
    1. What scenarios are being tested
    2. What scenarios are missing entirely
    3. Which tests are testing implementation details rather than behavior (and are therefore fragile to refactors)
    4. Which tests give false confidence: they pass but don't actually prevent real user-facing failures
    5. The three tests I should add first, ranked by risk reduction
    

    When to use it: When code coverage is high but bugs keep slipping through. Coverage metrics lie. This prompt finds out why.


    Prompt 7: The Happy Path Challenger
    Here is the happy path for [FEATURE]:
    
    [DESCRIBE THE IDEAL USER FLOW]
    
    Now be adversarial. Give me 10 realistic ways a real user (not a QA tester, a real user) could break this flow through normal behavior: misclicks, back buttons, slow connections, parallel browser tabs, session expiry, copy-pasted data in wrong formats, etc.
    
    For each one, tell me the likely outcome and whether it's a silent failure or a visible one.
    

    When to use it: Before any user-facing feature ships. Especially useful for flows involving payments, authentication, or multi-step forms.


    Prompt 8: The Regression Risk Map
    I'm about to make the following change to our codebase:
    
    [DESCRIBE THE CHANGE]
    
    Here are the parts of the codebase it touches (or paste the diff):
    
    [PASTE DIFF OR DESCRIBE AFFECTED MODULES]
    
    What existing functionality is most likely to regress as a result of this change? Walk through the dependency chain and flag anywhere a side effect could surface. Be specific about what would break and how a user would experience it.
    

    When to use it: Before merging any change that touches shared logic, database schemas, or auth flows.


    Prompt 9: The Error Message Audit
    Here is the list of error states our application can surface to users:
    
    [LIST OR PASTE ERROR MESSAGES / STATES]
    
    For each error:
    1. Is the message understandable to a non-technical user?
    2. Does it tell the user what to do next?
    3. Does it accidentally expose information that could be a security risk?
    4. Is there a case where this error fires but the user's action actually succeeded (causing them to retry unnecessarily)?
    
    Rewrite any messages that fail these checks.
    

    When to use it: Before any launch. Error messages are the part of your product you test last and users experience most.


    Prompt 10: The API Contract Test Generator
    Here is the API endpoint I've built:
    
    [PASTE ENDPOINT DEFINITION / SCHEMA]
    
    Generate a set of contract tests that verify:
    - All required fields are validated and reject bad inputs with clear errors
    - All optional fields behave correctly when absent
    - Response shapes match the documented schema
    - HTTP status codes are semantically correct (not just 200 for everything)
    - The endpoint handles auth failures, rate limits, and malformed tokens correctly
    
    Write these as concrete test cases, not just categories.
    

    When to use it: Any time your API is consumed by another team, a mobile app, or a third-party integration.


    Prompt 11: The Performance Failure Scenario Builder
    Here is the feature / system I've built:
    
    [DESCRIBE THE FEATURE AND ITS DATA PATTERNS]
    
    Describe the realistic scenarios under which this would degrade or fail under load. Consider:
    - What happens when the dataset grows 10x, 100x
    - What queries or operations become slow first
    - Where queuing or async processing would help but isn't currently used
    - What a user would experience during degradation (slow, frozen, or error?)
    
    Rank these by likelihood given our current scale, and tell me which ones I should address before launch vs. which I can defer.
    

    When to use it: Before launching anything with real data volume expectations. Scale failures embarrass you publicly. Catch them privately.


    Section 3: System-Level and Security Thinking

    These prompts zoom out from individual features to test how your product holds together under pressure.


    Prompt 12: The Security Threat Model
    Here is a description of our product and how it stores / handles data:
    
    [DESCRIBE PRODUCT, DATA FLOWS, AUTH MODEL]
    
    Build a threat model for this system. For each threat:
    - Describe the attack vector
    - Describe the likely attacker (not a nation-state, be realistic for a startup)
    - Describe the impact if successful
    - Describe the mitigation and whether we currently have it
    
    Focus on the top 7 threats. I don't need an exhaustive list, I need the ones that would actually hurt us.
    

    When to use it: Before any feature that changes your auth model, data handling, or user permissions. Also useful as a quarterly audit.


    Prompt 13: The Dependency Failure Audit
    Our product depends on the following external services and libraries:
    
    [LIST DEPENDENCIES]
    
    For each one, tell me:
    - What happens to our product if this service goes down for 10 minutes, 1 hour, 24 hours
    - Whether we have graceful degradation or we hard-fail
    - Whether we have alerting that would catch the failure before a user reports it
    - Whether there's a realistic fallback
    
    Prioritize by customer impact.
    

    When to use it: Once a quarter, or whenever you add a meaningful third-party dependency.


    Prompt 14: The Data Integrity Stress Test
    Here is how we write and read data for [FEATURE / SYSTEM]:
    
    [DESCRIBE DATA MODEL AND WRITE/READ PATTERNS]
    
    Identify all the ways data could end up in an inconsistent state. Consider:
    - Partial writes that succeed halfway
    - Concurrent updates from multiple users or sessions
    - Schema migrations that run against live data
    - Rollbacks after a failed deployment
    - Third-party webhook deliveries that arrive out of order
    
    For each scenario, tell me what the user would see and whether we'd know about it from our current observability.
    

    When to use it: Before any database migration, multi-user feature launch, or integration with a webhook-based third party.


    Prompt 15: The Monitoring Gap Finder
    Here is what we currently monitor and alert on:
    
    [LIST METRICS, ALERTS, DASHBOARDS]
    
    Given that we're running [BRIEF PRODUCT DESCRIPTION], what failures could happen that none of our current monitoring would catch? Think about:
    - Silent failures (the system runs but produces wrong output)
    - Failures that show up in user behavior before they show up in error rates
    - Failures that only affect a subset of users
    - Failures that compound slowly over days rather than spiking
    
    For each gap, suggest the simplest monitoring addition that would catch it.
    

    When to use it: After your first production incident that monitoring didn't catch. Ideally, before it.


    Prompt 16: The Rollback Plan Evaluator
    We're about to deploy the following change:
    
    [DESCRIBE CHANGE]
    
    Evaluate our rollback plan:
    
    [DESCRIBE ROLLBACK PLAN, OR SAY "WE DON'T HAVE ONE"]
    
    Tell me:
    1. Whether this rollback plan would actually work given the change
    2. What data state issues could prevent a clean rollback
    3. Whether our users would experience anything during the rollback
    4. What we'd need to add to make this rollback safe
    
    If we don't have a rollback plan, write one.
    

    When to use it: Before every production deployment that touches the database or auth system. Non-negotiable.


    Section 4: Post-Release Learning

    Shipping isn't the end of testing. These prompts help you extract signal from what's already live.


    Prompt 17: The Incident Post-Mortem Prompt
    Here is a summary of the incident we just had:
    
    [DESCRIBE WHAT HAPPENED, TIMELINE, IMPACT]
    
    Run a structured post-mortem on this. Cover:
    1. The immediate cause
    2. The contributing causes (go at least 3 levels deep with "why")
    3. What our systems, process, or culture allowed this to reach production
    4. What we would need to change to make this class of failure impossible, not just unlikely
    5. What the early warning signs were that we missed (in logs, metrics, or user feedback)
    
    Be direct. The goal is learning, not blame.
    

    When to use it: Within 48 hours of any incident. The details decay fast.


    Prompt 18: The User-Reported Bug Triage Prompt
    Here are the bug reports we've received in the last [TIME PERIOD]:
    
    [PASTE BUG REPORTS OR SUMMARY]
    
    Do the following:
    1. Cluster these into themes (what underlying issues keep surfacing)
    2. Identify the ones that are symptoms of the same root cause
    3. Flag any that suggest a systemic problem vs. a one-off edge case
    4. Rank by user impact (not just frequency, but severity of the experience)
    5. Write the first three bug tickets I should file, including reproduction steps and acceptance criteria for the fix
    
    Skip anything that's a feature request disguised as a bug.
    

    When to use it: Weekly, as part of your regular product rhythm. Don't let bug reports pile up unread.


    Common Pitfalls

    Testing only the happy path. Your happy path works. It worked in your demo. It worked in your head when you designed it. Real users bring states you didn't imagine.

    Treating 100% code coverage as safety. A test that calls a function and checks it doesn't throw is not a test. Coverage tells you what code ran during tests, not whether the behavior is correct.

    Writing tests after bugs, not before. A bug fixed without a regression test is a bug scheduled to return. Every fix deserves a test that would have caught it.

    Skipping integration testing because unit tests pass. Units that work in isolation fail in combination all the time. The failure usually lives at the boundary between them.

    Testing in isolation from real data shapes. Synthetic test data is clean, predictable, and nothing like what users actually enter. Test with anonymized production data where you can.

    Not testing degraded states. What happens when your database is slow? When your third-party API returns a 500? When the network drops halfway through an upload? Systems rarely fail by stopping cleanly. They fail by getting slow and strange, and that is the state nobody wrote a test for.

    Letting the person who wrote the feature be the only person who tests it. You cannot test your way out of your own mental model. You already know which button to press and in what order. Get the feature in front of someone who doesn't, before your users volunteer for the job.


    Why We Built This

    A defect costs minutes at the spec stage, hours at the code stage, and days once a customer has met it and started deciding whether to trust you. Every prompt in this pack is an attempt to move the finding earlier, where it is still cheap.

    AI made writing tests nearly free. It did not make knowing what to test free. A model will happily generate forty assertions against the behavior you already thought of. These prompts point it at the behavior you didn't: the empty state, the double submit, the tenant boundary, the dependency that returns a 200 with garbage inside it.

    At ProductOS, this is the problem we obsess over. Coding is becoming cheaper. Knowing what to build, and knowing how it breaks, is becoming more valuable. Testing is where those two questions meet.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The prompt pack stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The Model Behavior Cheat Sheet: Claude, GPT & Gemini

    The model isn't the strategy. But picking the wrong one for the wrong job costs you weeks you won't get back.

    📋 Read time: 10 minutes. Use time: every time you start a new AI-assisted build.


    Why This Exists

    Most teams pick a model the way they pick a font. Vibes, familiarity, whatever the last blog post recommended. Then they spend two weeks wondering why outputs feel off, and another two weeks trying to prompt-engineer their way out of a mismatch that was never a prompting problem.

    The teams that ship faster aren't using better prompts. They're using the right model for the right task. Claude, GPT-4o, and Gemini are genuinely different in how they reason, how they handle ambiguity, how they manage long context, and how they behave under pressure. Those differences matter enormously depending on what you're building.

    This checklist gives you a fast, concrete way to assess what you're actually dealing with before you commit. It's organized by job type, not by model. Because the question isn't "which model is best?" The question is "best at what, for whom, under what constraints?"


    How to Use This

    1. Start with your job, not the model. Go to the section that matches what you're trying to do: reasoning, writing, coding, multimodal, or long-context work.
    2. Run the checks against your current default. If you're already using one model, check how many of these it actually passes for your use case.
    3. Use the cross-model checks at the end. Those 6 checks apply regardless of task and are the most commonly skipped.
    4. Revisit when the task changes. The right model for your product copy is probably not the right model for your data pipeline. Treat this as a routing tool, not a one-time decision.

    Section 1: Reasoning and Analysis Tasks 🧠

    These are the checks that matter when you're asking a model to think through a problem, not just produce output.

    • Does the model show its reasoning before giving an answer? For complex decisions, a model that jumps straight to conclusions without visible thinking is harder to trust and harder to correct.
    • Does it push back when the premise is wrong? Give it a flawed assumption. Claude tends to flag it. GPT-4o tends to comply first, then caveat. Neither is universally better. You need to know which you're working with.
    • Can it hold a multi-step argument without drifting? Ask it to reason through a product decision with 4-5 competing constraints. Check if the final answer is actually consistent with the reasoning, or just sounds like it is.
    • Does it know what it doesn't know? Models that confabulate confidently are dangerous for research tasks. Check: does it hedge appropriately, or does it produce plausible-sounding nonsense when it hits the edge of its knowledge?
    • Does it change its answer under social pressure? Tell it "I think you're wrong" without giving a reason. A model that caves immediately is harder to use as a genuine thought partner. Claude is generally more resistant to this. GPT-4o is more accommodating.
    • Does it distinguish between facts and inferences? Critical for product strategy work. Ask it to analyze a market. Check whether it flags its inferences as inferences or presents everything with the same confidence.

    Section 2: Writing and Tone Tasks ✍️

    Checks for drafting, editing, positioning copy, documentation, and any output where voice matters.

    • Does it match your specified tone without drifting? Give it a clear tone brief. Check the third paragraph, not the first. Models often start strong and drift toward their defaults.
    • Does it cut filler without being asked? Paste in a draft and ask it to edit. Does it tighten the writing, or does it add length while appearing to improve it?
    • Can it write in a specific person's voice? Give it 3-4 paragraphs of sample writing and ask it to continue in that style. Claude tends to be stronger here. Gemini can feel like it's approximating rather than inhabiting.
    • Does it explain the edits it made? For collaborative writing workflows, a model that shows its reasoning on edits is significantly more useful than one that silently rewrites.
    • Does it over-hedge in professional copy? Some models add caveats and qualifications that destroy the confidence of business writing. Check the output for phrases like "it's worth noting" or "one could argue." Those are model voice leaks.
    • Does it handle negative space? Good writing is partly about what you leave out. Ask it to shorten a paragraph by 40%. Does it cut the weakest content, or does it cut evenly and destroy the structure?

    Section 3: Coding and Technical Tasks 💻

    Checks for when you're using AI to write, review, or debug code.

    • Does it explain why, not just what? A model that produces code without explaining the architectural choice is harder to trust in unfamiliar territory. GPT-4o is often more verbose here. That's not always bad.
    • Does it ask clarifying questions before writing complex functions? For anything non-trivial, a model that dives in without confirming scope tends to produce technically correct but contextually wrong code.
    • Does it flag assumptions it made? Ask it to build a data schema. Does it tell you what it assumed about relationships, scale, and data types, or does it just produce a schema and wait?
    • Can it hold context across a multi-file review? Paste 3-4 files and ask it to identify inconsistencies. This is where context window and context handling diverge. A big context window means nothing if the model loses the thread at file 3.
    • Does it identify the actual bug, not just the symptom? Give it a broken function. Does it fix the line that's failing, or does it understand why it's failing? These are different outputs with different downstream consequences.
    • Does it maintain code style consistency when generating additions? If you have an existing codebase with conventions, does the generated code match, or does it introduce new patterns that will create drift?

    Section 4: Long-Context and Document Work 📄

    Checks for when you're feeding in long documents, research, transcripts, or multi-document inputs.

    • Does it accurately cite specific sections? Give it a 20-page document and ask it a detailed question. Then check whether its answer actually reflects what's in the cited section, or whether it's synthesizing plausibly.
    • Does it degrade gracefully at the end of a long context? Models often handle the beginning and end of a long context better than the middle. Test explicitly by asking about something buried in the middle of a long input.
    • Does it maintain consistency across a long conversation? After 20+ turns, does it contradict something it said in turn 5? This matters enormously for product definition work where decisions compound.
    • Does it summarize without hallucinating? Ask it to summarize a document you know well. Check for plausible-sounding statements that weren't in the source. Gemini and GPT-4o can be more susceptible here on very long inputs.
    • Does it distinguish between what the document says and what it implies? For research and synthesis tasks, this is the difference between a useful analysis and a confident misread.

    Section 5: Multimodal and Structured Output Tasks 📊

    Checks for image analysis, table generation, JSON output, and structured formats.

    • Does it produce valid structured output on the first pass? Ask for a JSON schema or a table with specific columns. Check whether it requires correction, or whether it produces clean output immediately.
    • Does it hold structure across a long response? Some models start a table correctly and then abandon the format halfway through. Ask for a 20-row table. Check row 18.
    • Does it interpret images literally or contextually? Give it a screenshot of a UI and ask what's wrong with the UX. A model that only describes what it sees is less useful than one that interprets it.
    • Does it maintain field definitions when updating structured output? Ask it to update a JSON object. Does it preserve the existing schema, or does it restructure based on what seems logical to it?

    Section 6: Cross-Model Checks (Run These for Every Use Case)

    These six checks apply regardless of task. Skip them and you'll miss the most common failure modes.

    • Have you tested it on your actual content, not synthetic examples? Benchmarks are useful. Your specific domain data is more useful. Run all three models on a real task from your current project before committing.
    • Have you checked behavior at your actual usage scale? A model that works well for occasional queries may behave differently under rate limits, batching, or high-frequency API calls.
    • Do you know the knowledge cutoff and whether it matters for your task? For anything involving recent events, recent framework versions, or recent market data, this isn't optional information.
    • Have you checked the output format against your downstream system? Model output that looks right to a human can break a parser. Test the actual output format against whatever consumes it.
    • Do you have a fallback if the model changes behavior after an update? All three providers update models without always announcing behavioral changes. If you're building on top of a model, you need a way to detect regression.
    • Do you know what the model does when it fails? Does it fail loudly with an error you can catch, or silently with a plausible but wrong output? Silent failures are significantly harder to manage in production.

    Common Pitfalls

    Using benchmark rankings as a routing decision.
    Benchmarks measure aggregate performance across standardized tasks. Your use case is not standardized. A model that leads on coding benchmarks may still be worse for your specific stack and codebase style.

    Assuming the newest model is better for your task.
    Model updates optimize for some dimensions and sometimes regress on others. GPT-4o updates have occasionally made creative writing feel more cautious. Newer isn't always directionally correct for your specific job.

    Treating all three as interchangeable with better prompting.
    You can narrow the gap with prompting, but you can't eliminate the structural differences. Claude's approach to ambiguous instructions is architecturally different from GPT-4o's. That's not a prompt problem.

    Testing with toy examples instead of real ones.
    Simple inputs tend to produce comparable outputs across models. The differences show up at complexity, length, and domain specificity. Test hard inputs, not easy ones.

    Picking one model for the entire product.
    Different parts of your workflow have different requirements. The model you use for customer-facing copy and the model you use for internal data analysis don't need to be the same one.

    Not tracking when model behavior changes.
    All three providers update their models. If you built an evaluation or test suite when you made your initial decision, run it again after major model updates. Behavior drift is real and it compounds.

    Optimizing for output quality without accounting for latency.
    For user-facing features, a marginally better response that takes twice as long can hurt product quality more than a slightly weaker response that's fast. Quality and latency are a tradeoff, not independent variables.


    Why We Built This

    At ProductOS, we see the same failure mode repeated across teams: the model selection decision gets made once, informally, and then the team builds around it. Months later, they're fighting against a choice they never fully examined. The friction is real, but it's invisible because it looks like a prompting problem or a product problem.

    This checklist reflects how we think about model routing internally. Not as a one-time decision, but as a routing function. Different tasks, different models, different evaluations. The goal isn't to find the best model. The goal is to stop losing time to mismatches that were preventable.

    ProductOS is an AI-native product development platform built around the idea that research, definition, and strategy are the highest-leverage moments in a build. Cursor, Lovable, Bolt, and v0 start at "how to build." We start at "what to build." By the time you're asking a model to generate code, the context from your research, your PRD, and your design decisions should already be there. That's what we're building. If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The checklist stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The Code Review Checklist: 28 Checks

    The Code Review Checklist: 28 Checks

    Code review isn't a quality gate. It's the last moment you have to ask "should this exist at all" before it becomes someone else's problem to maintain.

    📋 Read time: 10 minutes. Use time: every pull request.


    Why This Exists

    Most code review processes are theater. Someone leaves a comment about variable naming. Someone else approves because the tests pass. The PR merges. Three months later, a new engineer opens that file and has no idea what it does or why it was written that way.

    Teams that ship well treat code review as a product decision, not a syntax check. They ask whether the feature is actually solving the right problem, whether the logic holds under real conditions, and whether the person who joins six months from now will be able to understand what was built without needing a 30-minute walkthrough. That is a different kind of review.

    This checklist is for founders, PMs, and investors who are either doing code review themselves, overseeing engineers who do it, or evaluating teams on whether their processes are built to scale. It covers the categories that actually matter: product alignment, logic correctness, security, maintainability, performance, and process hygiene. You don't need to run all 28 checks on every PR. You need to know which checks to skip and why.


    How to Use This

    1. Pick your role. Founders and PMs: focus on Sections 1, 2, and 7. Engineers: run the full list. Investors doing technical due diligence: Sections 4, 5, and 6 tell you the most about a team's maturity.
    2. Tag each check as Pass / Fail / N/A. A PR with 3 honest N/As is better than one with 28 unchecked boxes.
    3. Make it a shared artifact. The checklist works best when the author and reviewer both see it before the review starts. It changes what gets written in the first place.
    4. Revisit after incidents. When something breaks in production, trace it back to this list and find which check would have caught it.

    Section 1: Product Alignment

    Before reading a single line of code, ask whether the right thing was built.

    • The PR description explains the why, not just the what. ("Added rate limiting to prevent abuse" beats "Added middleware.")
    • The feature or fix maps to a specific ticket, user story, or decision that was agreed on before work started.
    • Scope creep is absent. The PR does one thing. If it does three things, it should be three PRs.
    • Edge cases that were flagged in planning are handled, or there is a documented reason they are deferred.
    • Any UX-facing changes match the approved design. No improvisation in the UI without a decision record.

    Section 2: Logic and Correctness

    The code does what it claims to do, under conditions that actually exist.

    • The happy path works. (This sounds obvious. Run it manually if you can.)
    • The unhappy path is handled. Null inputs, empty arrays, missing fields, unexpected types: each should either fail gracefully or raise a clear error.
    • Conditional logic is correct. Flip the conditions in your head and confirm the outcome is still right.
    • Loops and recursion have a guaranteed exit condition.
    • State mutations are intentional. If something is changed in place, it should be on purpose, not by accident.
    • Return values are used. Silent failures (a function returns an error and the caller ignores it) are some of the hardest bugs to trace.

    Section 3: Tests

    Tests are documentation that runs. If the tests are missing or weak, the documentation is incomplete.

    • New functionality has tests. Not 100% coverage as a religion, but the core behavior is tested.
    • Tests cover at least one failure case, not just the success path.
    • Tests are readable. A test that requires 10 minutes of context to understand is a test that will get deleted instead of fixed when it breaks.
    • Tests are not testing implementation details. If a test breaks every time you refactor without changing behavior, the test is testing the wrong thing.
    • Flaky tests are flagged, not ignored. A test that passes 80% of the time is worse than no test.

    Section 4: Security

    Security issues do not announce themselves. These are the categories most teams skip under deadline pressure.

    • User inputs are validated before being used in queries, file operations, or external calls. The attack surface is whatever you accept from the outside world.
    • Secrets (API keys, tokens, credentials) are not in the code. Not in comments. Not in test files. Not in environment variable names logged to console.
    • Authentication and authorization are checked on the server, not just the client. Hiding a button is not the same as preventing the action.
    • Error messages shown to users do not expose internal details (stack traces, schema names, file paths).
    • Any new dependency has been checked. Not a full audit, but: Is it maintained? Does it have known vulnerabilities? Is it used by enough people that problems surface quickly?

    Section 5: Performance

    Performance problems are usually architectural, not algorithmic. These checks catch the architectural ones early.

    • Database queries inside loops are absent. N+1 queries are the most common production performance problem and one of the easiest to spot in review.
    • Large data sets are paginated, not returned in full.
    • Expensive operations (API calls, file reads, complex calculations) are not repeated when they could be done once and passed through.
    • Caching is used where appropriate, and cache invalidation logic is correct. If you are not sure, flag it.

    Section 6: Maintainability

    Code is read far more often than it is written. Optimize accordingly.

    • The code is understandable without the PR description. Names are clear, functions do one thing, and complex logic has a comment explaining the reasoning (not the mechanics).
    • No dead code was introduced. Commented-out blocks, unused variables, and unreachable branches all add cognitive load for the next reader.
    • Repeated logic is extracted, not duplicated. If the same block appears twice, it will appear a third time and the three versions will diverge.

    Section 7: Process Hygiene

    The meta-layer. These checks apply regardless of what the code does.

    • The PR is a size a human can actually review. If it is more than 400 lines of meaningful logic, it should have been split earlier.
    • CI is green before review. A reviewer's time should not be spent catching failures a computer already caught.
    • The author responded to all prior review comments, or explicitly resolved them with a reason.

    Common Pitfalls

    Approving because the tests pass. Tests prove the code works in the scenarios the author imagined. Review exists to add scenarios the author did not imagine.

    Leaving vague comments. "This looks off" without a suggestion or question is not useful feedback. It creates anxiety without direction. Be specific about what concerns you and why.

    Reviewing style instead of substance. Formatting, naming conventions, and import order belong in a linter config, not a code review. If your linter would catch it, do not spend review time on it.

    Treating every PR as equal. A one-line config change and a new payment flow are not the same risk. Calibrate depth of review to depth of consequence.

    Skipping context when reviewing security. It is not enough to know that something is validated. Know where it is validated and confirm it is validated before the value is used, not after.

    Merging under social pressure. "It's blocking the launch" is not a code review outcome. A rushed review is not a review. It is a signature on something you have not read.

    Never giving positive feedback. Code review is the fastest way to build or erode engineering culture. If something is genuinely well done, say so. It calibrates the team to what good looks like.


    Why We Built This

    At ProductOS, we believe the most expensive problems in software are not the ones in production. They are the ones that get into production because the review process was focused on the wrong things. Most reviews catch style. The ones that protect teams catch product misalignment, security assumptions, and architectural shortcuts that compound over time.

    This checklist is a simplified version of how we think about quality across the full product lifecycle, from the moment a feature is defined to the moment code ships. The context that goes into a good product decision should travel all the way through to a good code review. When it does, review gets faster, not slower, because the hard questions were already answered upstream.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The toolkit stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The Code Review Prompt Pack: 20 Prompts Worth Running

    Code review is the last line of defense before production. Most teams treat it like a style guide check. The teams that ship confidently treat it like a thinking tool.

    📋 Read time: 14 minutes. Use time: every PR you ever touch.


    Why This Exists

    Most code reviews find the same three things: missing semicolons, variable naming preferences, and whatever the most senior person on the team happens to care about that week. That's not a review process. That's pattern matching against one person's opinions.

    The teams that review well are looking for different things. They're asking whether the logic holds under edge cases, whether the abstraction will survive the next feature, whether the error handling is complete, and whether the person who reads this in six months will understand it in under three minutes. Those aren't style questions. They're product questions.

    This pack gives you 20 prompts built around that standard. They work in any AI assistant (Claude, ChatGPT, Gemini, whatever you're running). Paste the prompt, paste the code, get a focused review on the dimension that actually matters. Use them one at a time or chain them together before you hit "approve."


    How to Use This

    1. Pick by purpose, not by order. Each prompt targets a specific review dimension. If you're reviewing a payment handler, lead with Prompts 7, 12, and 16. If you're reviewing a new data model, start with Prompts 3, 9, and 18. Don't run all 20 on every PR.

    2. Give the model enough context. Most prompts have a [PASTE CODE HERE] and an optional context field. Fill both. "This is a Node.js Express route for processing Stripe webhooks in a multi-tenant SaaS app" gives the model something to work with. "Here's a function" does not.

    3. Treat the output as a checklist, not a verdict. AI reviews miss things. They also flag things that don't matter for your specific codebase. Your job is to read the findings, confirm the real issues, and dismiss the noise with judgment.

    4. Use the full-pass prompts (19 and 20) before final approval. Those are designed to catch what single-dimension reviews miss. Run them on anything going into a critical path.


    The 20 Prompts

    Section 1: Logic and Correctness

    These prompts focus on whether the code does what it's supposed to do, under all the conditions it will encounter.


    Prompt 1: Basic Logic Audit

    Open prompt
    You are a senior software engineer doing a focused logic review. Your job is not to comment on style, naming, or formatting. Your only job is to find logic errors.
    
    Review the following code and answer these questions:
    1. Does this function do what its name and comments claim it does?
    2. Are there any conditions where the logic produces the wrong output?
    3. Are there any missing branches or unreachable branches?
    4. Is there any off-by-one potential in loops or array operations?
    
    [PASTE CODE HERE]
    
    Context: [describe what this code is supposed to do in 1-2 sentences]
    
    Be specific. Point to the exact line or block when you find an issue.
    

    Prompt 2: Edge Case Coverage

    Open prompt
    You are doing edge case analysis on a piece of code before it goes to production.
    
    For the code below, generate a list of edge cases this code may not handle correctly. Focus on:
    - Empty inputs (null, undefined, empty string, empty array)
    - Boundary values (zero, negative numbers, max integers)
    - Concurrent execution (if this ran twice simultaneously, what breaks?)
    - Unexpected input types
    - Extremely large or small inputs
    
    [PASTE CODE HERE]
    
    For each edge case you find, describe what actually happens when the code receives it, and whether that behavior is acceptable or a bug.
    

    Prompt 3: Data Model Integrity Check

    Open prompt
    You are reviewing a data model or schema change.
    
    Review the following and flag any integrity risks:
    1. Are there missing constraints that should be enforced at the database level rather than application level?
    2. Are nullable fields that shouldn't be nullable?
    3. Will this schema change break any existing queries that aren't shown here?
    4. Are there any data migration risks if this runs against an existing populated table?
    5. Is the naming consistent with standard conventions for this type of data?
    
    [PASTE CODE/SCHEMA HERE]
    
    Context: [describe the database and whether this is a new table or a migration]
    

    Prompt 4: Return Value Consistency

    Open prompt
    Review this function for return value consistency.
    
    Specifically:
    1. Does every code path return a value of the same type?
    2. Are there paths that return undefined or void unexpectedly?
    3. If this is async, does every code path properly resolve or reject the promise?
    4. Is the caller protected from receiving an unexpected null or undefined?
    
    [PASTE CODE HERE]
    
    List each code path and what it returns. Flag any paths that return something inconsistent with the function's apparent contract.
    

    Section 2: Error Handling and Resilience

    These prompts check how the code behaves when things go wrong, which is the scenario most developers write for last and most production incidents come from first.


    Prompt 5: Error Handling Completeness

    Open prompt
    You are reviewing error handling in this code before it ships to production.
    
    Check for:
    1. Are all external calls (API, database, file system) wrapped in error handling?
    2. Are errors caught and either handled locally or propagated correctly?
    3. Are there any empty catch blocks that swallow errors silently?
    4. Are error messages specific enough to be useful in a production incident?
    5. Is the user/caller informed of failures in a way they can act on?
    
    [PASTE CODE HERE]
    
    Context: [describe what this code does and what external systems it touches]
    
    For each issue, rate its severity: Critical (causes silent failure), High (causes visible failure with no recovery path), or Medium (poor error message but failure is visible).
    

    Prompt 6: Retry and Timeout Logic

    Open prompt
    Review this code for retry and timeout behavior.
    
    Specifically:
    1. Are there network calls with no timeout set?
    2. Is there retry logic? If so, is it using exponential backoff or fixed intervals?
    3. Could a retry loop run indefinitely?
    4. If this times out, does it leave any resources (connections, locks, open files) in a dirty state?
    
    [PASTE CODE HERE]
    
    Context: [describe the external systems this code calls and the expected latency]
    

    Prompt 7: Payment and Financial Code Review

    Open prompt
    This is a focused review for code that handles financial operations. Apply a higher standard than typical code review.
    
    Check for:
    1. Are all monetary values handled as integers or decimals with controlled precision? (Never floats for currency)
    2. Are transactions atomic? Can this code produce a partial write that leaves money in a limbo state?
    3. Is idempotency handled? If this runs twice (duplicate webhook, retry), does it charge/credit twice?
    4. Are all amounts validated before processing? Can a negative amount or zero amount slip through?
    5. Is the audit log complete? Will you be able to reconstruct what happened from logs alone?
    
    [PASTE CODE HERE]
    
    Context: [describe what financial operation this performs and which payment provider is involved]
    

    Prompt 8: Race Condition and Concurrency Audit

    Open prompt
    Review this code for race conditions and concurrency issues.
    
    Ask:
    1. If two instances of this code ran simultaneously with the same inputs, could they produce conflicting state?
    2. Is there a read-modify-write pattern that isn't atomic?
    3. Are shared resources (caches, counters, locks) accessed safely?
    4. Does this code assume sequential execution in an environment where parallel execution is possible?
    
    [PASTE CODE HERE]
    
    Context: [describe whether this runs in a serverless, multi-process, or multi-threaded environment]
    
    Be specific about which lines create the risk.
    

    Section 3: Security

    These prompts focus on the issues that create exploitable vulnerabilities. They're not exhaustive security audits, but they catch the most common patterns.


    Prompt 9: Input Validation and Injection Risk

    Open prompt
    You are reviewing this code for input validation and injection vulnerabilities.
    
    Check for:
    1. Is any user-supplied input used in a database query without parameterization?
    2. Is any user-supplied input rendered to HTML without sanitization?
    3. Is any user-supplied input used in a shell command, file path, or system call?
    4. Are there any places where type coercion could allow an unexpected input type to pass validation?
    5. Is there a maximum length check on any string that gets stored or processed?
    
    [PASTE CODE HERE]
    
    Context: [describe where this input comes from: API request, form, webhook, etc.]
    

    Prompt 10: Authentication and Authorization Gaps

    Open prompt
    Review this code for authentication and authorization issues.
    
    Specifically:
    1. Does every protected route or function verify that the caller is authenticated before proceeding?
    2. Does the code verify that the authenticated user is authorized to access the specific resource they're requesting? (Not just "are they logged in" but "do they own this record")
    3. Are there any places where a user ID or tenant ID comes from the request body rather than the verified session?
    4. Could a user access another user's data by changing an ID parameter?
    
    [PASTE CODE HERE]
    
    Context: [describe the auth model: session-based, JWT, API key, etc. and whether this is multi-tenant]
    

    Prompt 11: Secrets and Sensitive Data Handling

    Open prompt
    Review this code for secrets and sensitive data exposure.
    
    Check:
    1. Are any credentials, API keys, or secrets hardcoded or committed in plaintext?
    2. Is any sensitive data (passwords, tokens, PII) written to logs?
    3. Are sensitive values included in error messages that might surface to clients?
    4. Are environment variables accessed safely with fallback handling?
    5. Is sensitive data transmitted over unencrypted channels?
    
    [PASTE CODE HERE]
    
    Flag each issue and classify it: Hardcoded credential, Log leak, Client-facing exposure, or Transmission risk.
    

    Section 4: Performance and Scale

    These prompts check whether the code will hold up under real load, not just in a development environment.


    Prompt 12: N+1 Query Detection

    Open prompt
    Review this code for N+1 query patterns.
    
    Specifically:
    1. Is there a loop that executes a database query on each iteration?
    2. Are related records fetched individually when they could be fetched with a join or batch query?
    3. Are there any ORM calls inside loops that aren't obvious at first glance?
    
    [PASTE CODE HERE]
    
    Context: [describe the ORM or query library in use and the expected scale of the data being iterated]
    
    For each N+1 you find, show what the current pattern does and what a corrected batch pattern would look like.
    

    Prompt 13: Memory and Resource Leak Check

    Open prompt
    Review this code for memory and resource leaks.
    
    Check:
    1. Are database connections, file handles, or streams always closed, even on error paths?
    2. Is there any unbounded data accumulation (arrays that grow indefinitely, caches with no eviction)?
    3. Are event listeners properly removed when they're no longer needed?
    4. Are there any patterns that would hold large objects in memory longer than necessary?
    
    [PASTE CODE HERE]
    
    Context: [describe whether this runs as a long-lived process or a short-lived function/lambda]
    

    Prompt 14: Caching Correctness Review

    Open prompt
    Review the caching logic in this code.
    
    Check:
    1. Is the cache key specific enough to prevent returning the wrong data for a different user or context?
    2. Is there a TTL set? Is it appropriate for how frequently the underlying data changes?
    3. What happens on a cache miss? Does it fall back correctly without causing a thundering herd?
    4. On a write operation, is the cache invalidated or updated correctly?
    5. Could stale data in the cache cause a security issue (serving one user's data to another)?
    
    [PASTE CODE HERE]
    

    Section 5: Maintainability and Readability

    Code that works today but can't be understood in three months is a liability. These prompts focus on the long game.


    Prompt 15: Abstraction and Coupling Review

    Open prompt
    Review this code for abstraction quality and coupling.
    
    Ask:
    1. Does this function or class do one thing, or is it doing multiple things that should be separated?
    2. Is there logic in this code that will need to be duplicated elsewhere? Should it be extracted?
    3. Does this code depend on implementation details of another module that could change?
    4. If a requirement changed slightly, how much of this code would need to be rewritten?
    
    [PASTE CODE HERE]
    
    Give concrete refactoring suggestions, not general principles. Point to the specific lines or blocks you'd restructure.
    

    Prompt 16: Naming and Clarity Check

    Open prompt
    Review this code for naming clarity and readability.
    
    Check:
    1. Do variable names describe what they hold, or are they generic (data, result, temp, obj)?
    2. Do function names describe what they do, not how they do it?
    3. Are boolean variables and functions named with is/has/can/should prefixes where appropriate?
    4. Are there any magic numbers or strings that should be named constants?
    5. Is the intent of any block of code genuinely unclear, even with good naming?
    
    [PASTE CODE HERE]
    
    For each issue, suggest a specific rename or refactor. Don't flag things that are already clear.
    

    Prompt 17: Comment Quality Audit

    Open prompt
    Review the comments in this code.
    
    Check:
    1. Are there comments that just restate what the code does? (These add no value and should be removed)
    2. Are there places where the code's intent or reasoning is genuinely non-obvious and a comment would help?
    3. Are there any TODO or FIXME comments that reference work that should be done before this ships?
    4. Is there any complex logic, business rule, or workaround that has no explanation?
    
    [PASTE CODE HERE]
    
    Output two lists: "Comments to remove (explain nothing new)" and "Places that need a comment (intent is unclear)."
    

    Prompt 18: Test Coverage Gap Analysis

    Open prompt
    Given this code, identify the most important test cases that are missing.
    
    Look at the code and generate a list of test cases that should exist, covering:
    1. The happy path
    2. Each error condition
    3. Key edge cases (empty input, boundary values, unexpected types)
    4. Any business logic that has more than one possible outcome
    
    [PASTE CODE HERE]
    
    Context: [describe what testing framework is in use and whether any tests already exist]
    
    Format the output as a list of test case names with a one-sentence description of what each verifies. Don't write the test code unless asked.
    

    Section 6: Full-Pass Reviews

    Use these when you want a comprehensive review before merging something important.


    Prompt 19: Senior Engineer Pre-Merge Review

    Open prompt
    You are a senior engineer doing a final review before this code merges to main. You have seen production incidents caused by each of the following categories. Review the code below against all of them.
    
    Categories to check:
    1. Logic errors and unhandled edge cases
    2. Missing, silent, or incomplete error handling
    3. Security: injection, authorization gaps, secrets exposure
    4. Performance: N+1 queries, unbounded loops, work that scales with data volume
    5. Concurrency: race conditions, non-atomic read-modify-write
    6. Resource handling: connections, streams, and listeners left open on error paths
    7. Maintainability: unclear naming, tangled abstractions, missing context
    8. Test coverage on the paths that would hurt if they broke
    
    [PASTE CODE HERE]
    
    Context: [describe what this code does, what it touches, and how critical the path is]
    
    For each finding, give me:
    - The category
    - The exact line or block
    - What breaks in production if this ships as-is
    - The smallest change that resolves it
    
    Then close with one verdict: Approve, Approve with non-blocking comments, or Request changes. If you request changes, list only the blockers. Don't pad the list to look thorough.
    

    Prompt 20: Product Intent Review

    Open prompt
    You are reviewing whether this code does the right thing, not whether it does the thing correctly. Style, naming, and syntax are out of scope. Assume the code runs.
    
    What this was supposed to do: [paste the ticket, spec, or requirement]
    The code: [PASTE CODE HERE]
    
    Answer:
    1. Does the implementation satisfy the requirement, including the parts that were implied rather than written down?
    2. What did the requirement leave ambiguous, and what did this code quietly decide on its own? List each decision.
    3. Is there behavior here that nobody asked for? Where did scope creep in?
    4. What does a user actually experience in each failure case, and is that acceptable for this feature?
    5. If this ships and the requirement turns out to be wrong, how expensive is it to undo?
    
    Flag anything where the code is technically correct but the product outcome is wrong. Those are the findings I care about most.
    

    Why We Built This

    At ProductOS, we think the most expensive problems in software aren't the ones caught in review. They're the ones that sail through review because everyone was looking at formatting while the abstraction quietly locked in a decision nobody made on purpose.

    These prompts encode a different standard. Not "is this code clean" but "will this hold, and is it the right thing to hold." That's a product question wearing a code review costume, and it's the one worth asking before you approve.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The pack stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The AI Debugging Prompt Pack: 20 Prompts to Find Bugs

    Most debugging sessions start with a symptom. The ones that end fast start with a hypothesis.

    ⏱️ Read time: 14 minutes. Use time: every time something breaks.


    Why This Exists

    Something is broken. You don't know where. You've been staring at it for 45 minutes, and you've already tried the first three things that came to mind. This is where most developers and PMs lose hours they didn't have.

    The problem isn't intelligence. It's process. Debugging without structure is just guessing with extra steps. You isolate the wrong layer, fix the wrong thing, and introduce a new bug while closing the first one. The cycle continues.

    Teams that debug well do something different. They form a hypothesis first. They ask what changed before they ask what's wrong. They use AI not as an answer machine but as a thinking partner that forces them to articulate the problem clearly. Articulating a bug clearly is often 60% of solving it.

    This prompt pack is the structure you reach for when something goes sideways. It covers bug diagnosis, root cause analysis, regression tracing, error interpretation, and the conversations you need to have with AI tools to stop guessing and start finding.


    How to Use This

    1. Match the prompt to the phase you're in. Prompts 1-5 are for orientation ("what is even happening"). Prompts 6-11 are for diagnosis ("where is the bug"). Prompts 12-16 are for root cause and fix. Prompts 17-20 are for preventing it from happening again.
    2. Paste your actual code, error, or log. These prompts are skeletons. They only work when you fill in the brackets with real context. Vague inputs return vague outputs.
    3. Use the output as a hypothesis, not a verdict. AI will suggest a cause. Your job is to test it, not just apply it.
    4. Run prompts sequentially when stuck. If prompt 1 doesn't resolve it, move to prompt 2. The pack is designed to narrow the problem progressively.

    The 20 Prompts 🔍

    Phase 1: Orientation (Prompts 1-5)

    Use these when you don't fully understand what's broken yet.


    Prompt 1: The First Description

    When you can't even articulate the bug clearly, start here. Forcing language onto a problem exposes assumptions.

    Open Prompt 1
    I'm going to describe a bug I'm seeing. I want you to do two things:
    1. Restate the bug back to me in precise technical language.
    2. List the 3 most likely root cause categories based on my description.
    
    Here's what I'm observing: [describe the symptom, what you expected vs. what happened, and when it started]
    
    Don't suggest fixes yet. I want to understand the problem better before jumping to solutions.
    

    Prompt 2: The Error Message Translator

    Error messages are written for compilers, not humans. Use this when you have an error but don't know what it's actually telling you.

    Open Prompt 2
    Here's an error message I'm seeing:
    
    [paste full error message and stack trace]
    
    Explain this error in plain English. Tell me:
    1. What went wrong (in one sentence a non-expert could follow)
    2. What the most likely cause is
    3. What layer of the stack this is happening in (database, API, frontend, auth, etc.)
    4. What I should look at first
    
    My tech stack is: [list your stack]
    

    Prompt 3: The Before/After Diff

    Most bugs have a birthday. Something changed. This prompt finds it.

    Open Prompt 3
    Something broke. I need to figure out what changed that caused it.
    
    Here's what I know:
    - It was working as of: [date/deployment/commit]
    - It stopped working when: [date/deployment/commit, or "I don't know"]
    - What changed between those two points (that I know of): [list changes, or "unknown"]
    - The symptom: [describe what's broken]
    
    What questions should I be asking to isolate what change caused this? And based on what I've told you, what's your best hypothesis about the source?
    

    Prompt 4: The Reproduction Steps Tightener

    If you can reproduce a bug consistently, you can fix it. This prompt helps you build a clean reproduction path.

    Open Prompt 4
    I'm trying to reproduce a bug reliably. Here are the steps I currently use to reproduce it:
    
    [list your current reproduction steps]
    
    The bug: [describe]
    How consistently it reproduces: [always / sometimes / rarely]
    Conditions where it seems worse or better: [describe, or "unknown"]
    
    Help me:
    1. Tighten these reproduction steps to the minimum needed
    2. Identify variables I should control or isolate
    3. Suggest conditions that might make this reproduce more consistently
    

    Prompt 5: The Scope Narrower

    When the bug could be anywhere, this prompt cuts the search space in half.

    Open Prompt 5
    I have a bug and I'm not sure which layer it's in. Here's what I know:
    
    Symptom: [describe]
    Stack: [frontend / backend / database / auth / third-party API / other]
    What I've already ruled out: [list]
    What I haven't checked yet: [list, or "I don't know where to start"]
    
    Give me a systematic checklist, ordered by likelihood, of where to look first. For each item, tell me how to confirm or rule it out quickly.
    

    Phase 2: Diagnosis (Prompts 6-11)

    Use these when you know roughly where the bug lives but not exactly what it is.


    Prompt 6: The Code Reviewer

    You suspect a specific function or block. This prompt gives it a proper examination.

    Open Prompt 6
    I suspect this code is causing a bug. Review it and tell me:
    1. Any logic errors you can see
    2. Edge cases this doesn't handle
    3. Assumptions this code makes that might not hold
    4. Any conditions under which this would fail silently
    
    The bug I'm seeing: [describe symptom]
    Expected behavior: [describe]
    
    Code:
    [paste code block]
    

    Prompt 7: The Log Interpreter

    Logs tell a story. Most people read them looking for the obvious. This prompt reads between the lines.

    Open Prompt 7
    Here are logs from around the time the bug occurred. I want you to:
    1. Identify the sequence of events leading up to the failure
    2. Highlight any anomalies even if they don't look like errors
    3. Tell me what's missing that should be there (missing log entries can be as telling as errors)
    4. Give me your best hypothesis about what caused the failure
    
    Logs:
    [paste logs]
    
    Context: [describe what the system was doing, what the expected flow is]
    

    Prompt 8: The API Debugger

    When the problem is at the boundary between your code and an external service.

    Open Prompt 8
    I'm debugging an issue with an API call. Here's everything I have:
    
    Request:
    [paste request, including headers if relevant, with sensitive keys redacted]
    
    Response:
    [paste response or error]
    
    Expected behavior: [describe]
    Actual behavior: [describe]
    
    Tell me:
    1. Is the request malformed in any way?
    2. Does the response indicate a server-side problem or a client-side problem?
    3. What should I check next?
    4. Are there common gotchas with this type of API call I might be missing?
    

    Prompt 9: The State Trace

    For bugs that only happen after a sequence of actions, state is usually the culprit.

    Open Prompt 9
    I have a bug that seems to depend on application state. It only happens under certain conditions, not all the time.
    
    Here's what I know:
    - When it happens: [describe triggering conditions]
    - When it doesn't happen: [describe conditions where it works fine]
    - Relevant state at the time of failure: [paste or describe state/variables]
    - What the code expects the state to be: [describe]
    
    Walk me through how state could cause this discrepancy. What state mutations should I trace? What's the most likely state-related cause?
    

    Prompt 10: The Race Condition Hunter

    Timing bugs are the hardest to catch. Use this when the bug is intermittent and order-dependent.

    Open Prompt 10
    I have an intermittent bug that I suspect might be a race condition or timing issue.
    
    Symptoms: [describe, including how often it happens]
    Relevant code (async operations, event handlers, concurrent processes): [paste]
    Environment: [describe: serverless, multi-threaded, single-threaded, browser, etc.]
    
    Help me:
    1. Evaluate whether this is likely a race condition
    2. Identify the specific points where timing could cause this
    3. Suggest how to test the hypothesis
    4. If it is a race condition, what are the standard approaches to resolve it?
    

    Prompt 11: The Data Bug Finder

    When the bug isn't in the code but in what the code is receiving.

    Open Prompt 11
    I think I'm dealing with a data bug. The code looks right, but the output is wrong.
    
    Here's a sample of the input data: [paste sample]
    Here's what the code produces: [paste output]
    Here's what it should produce: [describe]
    The transformation logic: [paste code or describe]
    
    Help me figure out:
    1. Is the input data well-formed or does it have issues?
    2. Are there specific data values or shapes that would cause this code to fail?
    3. Where should I add validation or normalization?
    

    Phase 3: Root Cause and Fix (Prompts 12-16)

    Use these when you've located the bug and need to understand it deeply before fixing it.


    Prompt 12: The Five Whys Driver

    Surface fixes fix surface symptoms. This prompt pushes to the actual cause.

    Open Prompt 12
    I found a bug. I want to understand the root cause before I fix it, because I don't want to create a new bug or fix the same thing in six places.
    
    The bug: [describe]
    The immediate cause I found: [describe what you found]
    The fix I'm considering: [describe]
    
    Run a five-whys analysis with me. Start from the immediate cause and help me trace it back to the root. For each layer, tell me what question to ask next.
    

    Prompt 13: The Fix Evaluator

    You have a fix in mind. Before you apply it, pressure-test it.

    Open Prompt 13
    I have a fix for a bug. Before I apply it, I want to pressure-test it.
    
    The bug: [describe]
    My proposed fix: [paste code or describe approach]
    
    Tell me:
    1. Does this fix the root cause or just the symptom?
    2. What edge cases could this fix break?
    3. Are there other places in the codebase where the same bug might exist?
    4. What's the safest way to apply this change?
    5. What should my test cases cover to validate this fix?
    

    Prompt 14: The Side Effect Scanner

    Every fix changes something. This prompt finds what else that change might touch.

    Open Prompt 14
    I'm about to make this change to fix a bug:
    
    [paste the change you're making]
    
    Context on the system: [describe what this code does, what depends on it]
    
    Before I apply it, help me identify:
    1. What else could this change affect?
    2. What assumptions does this change make that other parts of the system might violate?
    3. What should I test beyond just the bug I fixed?
    4. Is there a safer, more targeted way to make this change?
    

    Prompt 15: The Minimal Fix Builder

    Sometimes you write a 40-line fix when a 3-line fix would do. This prompt finds the smallest safe change.

    Open Prompt 15
    I have a fix that works, but I think it's more complex than it needs to be.
    
    The bug: [describe]
    My current fix: [paste code]
    
    Help me find the minimal change that resolves this bug correctly. I want:
    1. The smallest change with the fewest side effects
    2. No loss of correctness
    3. A brief explanation of why the simpler version is sufficient
    

    Prompt 16: The Regression Test Writer

    A bug you've fixed once should never come back. This prompt turns your fix into a test.

    Open Prompt 16
    I just fixed a bug. I want to write a regression test so it never ships again undetected.
    
    The bug: [describe]
    The fix: [paste]
    My testing framework: [describe]
    
    Write a regression test that:
    1. Would have caught this bug before the fix
    2. Confirms the fix is working correctly
    3. Covers the edge cases around this bug
    4. Is isolated enough to run fast
    

    Phase 4: Prevention (Prompts 17-20)

    Use these after the fix to make your codebase harder to break.


    Prompt 17: The Post-Mortem Generator

    If a bug was bad enough to cost real time, write it up. This prompt makes post-mortems fast and useful.

    Open Prompt 17
    I just resolved a significant bug. Help me write a short, useful post-mortem.
    
    The bug: [describe]
    How it was found: [describe]
    Time to resolve: [duration]
    Impact: [describe: users affected, features down, data issues, etc.]
    Root cause: [what you found]
    The fix: [describe]
    
    Structure this as:
    1. What happened (2-3 sentences)
    2. Why it happened (root cause, not just the immediate cause)
    3. How we found it
    4. What we fixed
    5. What we're changing to prevent recurrence
    
    Keep it under one page. Make it useful for someone who wasn't involved.
    

    Prompt 18: The Error Handling Auditor

    Most bugs that go undetected do so because error handling was too loose. This prompt finds the gaps.

    Open Prompt 18
    I want to audit this code for error handling gaps.
    
    [paste code]
    
    Tell me:
    1. Which errors or exceptions could occur here that aren't currently caught?
    2. Where is failure silent when it should be loud?
    3. Where is failure loud when a graceful fallback would be better?
    4. What logging should be added to make future debugging faster?
    5. What's the most dangerous failure mode here?
    

    Prompt 19: The Input Validation Hardener

    A surprising number of bugs come from code that trusts inputs it shouldn't. Use this to find the gaps.

    Open Prompt 19
    I want to harden this code against bad inputs.
    
    [paste function or module]
    
    It currently receives: [describe what inputs it gets and from where]
    It currently validates: [describe any existing validation]
    
    Help me:
    1. List every input assumption this code makes
    2. Identify which assumptions could be violated in production
    3. Suggest validation logic for the riskiest inputs
    4. Flag any inputs where failing loudly is better than a silent default
    

    Prompt 20: The Bug Pattern Spotter

    After fixing a bug, the same pattern often exists elsewhere. This prompt finds it.

    Open Prompt 20
    I just fixed a bug and I want to find every other place the same pattern is hiding.
    
    The bug I fixed: [describe the symptom]
    The root cause: [describe the underlying pattern, not the specific line]
    The fix: [paste]
    My codebase: [describe stack, rough size, and how it's organized]
    
    Help me:
    1. Describe the abstract pattern behind this bug, independent of the file it happened in
    2. Give me specific search terms, grep patterns, or structural signatures to find other instances
    3. List the places in a codebase like mine where this pattern usually hides
    4. Rank what you find by blast radius, so I fix the dangerous ones first
    5. Suggest a lint rule, type change, or convention that would make this whole class of bug impossible going forward
    

    Why We Built This

    At ProductOS, we think the expensive part of debugging isn't the fix. It's the 45 minutes of guessing before you have a hypothesis worth testing. Every prompt here exists to shorten that gap by making you say the problem out loud, precisely, before you touch the code.

    This pack is one slice of a larger idea. The context behind a product decision should still be there when the thing you built breaks. Most teams lose it somewhere between the spec and the stack trace, and debugging becomes archaeology. It doesn't have to be.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The pack stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The AI Testing Prompt Pack: 18 Prompts to Validate

    Most teams ship and hope. The ones that don't use prompts like these.

    📋 Read time: 14 minutes. Use time: every sprint, every release.


    Why This Exists

    Most AI product teams treat testing as a checkpoint before shipping. Write a few happy-path flows, check that the LLM returns something coherent, declare it good enough. That approach works fine until a real user asks something slightly off-script and the whole thing falls apart.

    The teams that build durable AI products treat testing as a discipline that starts before a single line of code is written. They test assumptions, edge cases, failure modes, and user mental models, not just outputs. They think about what the product should refuse to do as carefully as what it should do.

    This prompt pack gives you 18 prompts organized across five testing categories. Each prompt is designed to surface a specific class of problem. Use them before launch to find gaps. Use them after launch to diagnose complaints. Use them in sprint reviews to stress-test what you think is working.


    How to Use This

    1. Pick your stage. If you're pre-launch, start with Category 1 (Assumption Stress Tests) and Category 2 (Edge Case Generators). If you're post-launch and debugging, start with Category 4 (Failure Mode Audits).
    2. Run each prompt in your actual product or against your actual system prompt. Don't run them in a clean ChatGPT window. The point is to expose gaps in your specific implementation.
    3. Treat every surprising output as a finding, not a failure. Log it. Prioritize it. Don't patch it invisibly without understanding the root cause.
    4. Revisit this pack every time you make a material change to your core prompt, model, or feature set. What passed last sprint may not pass now.

    Category 1: Assumption Stress Tests 🔍

    These prompts expose the assumptions baked into your product definition. Most teams discover they've been building for a user who doesn't quite exist.


    Prompt 1: The Naive User Test

    Open prompt
    Act as a user who has never used a product like [your product] before. 
    You are not technical. You don't know what [core feature] is supposed to do. 
    You've just landed on the product for the first time with a vague goal: [describe user goal in plain language].
    
    Walk me through what you try first, what confuses you, what you assume incorrectly, 
    and where you give up or ask for help. Be specific. Don't be charitable to the product.
    
    Product context: [paste your onboarding copy or core feature description here]
    

    What it surfaces: Where your mental model of the user breaks down. If the naive user keeps getting stuck on something your team considers obvious, that's a product problem, not a user problem.


    Prompt 2: The Wrong Job Test

    Open prompt
    I'm going to describe an AI product. Your job is to identify the three most likely 
    ways users will try to use it for something it wasn't designed for.
    
    For each misuse, describe:
    - What the user was actually trying to accomplish
    - Why this product looked like the right tool to them
    - What happens when they try it and where it breaks
    
    Product description: [paste your one-paragraph product description]
    Core intended use case: [describe the primary job-to-be-done]
    

    What it surfaces: Misaligned user expectations before they hit your support queue. If the "wrong jobs" are common enough, they might actually be right jobs you haven't prioritized.


    Prompt 3: The Skeptic Walkthrough

    Open prompt
    You are a senior product manager at a company that tried an AI product similar to [your product] 
    and had a bad experience. You're evaluating this product with high skepticism.
    
    Review the following product description and identify:
    1. The three claims that feel unsubstantiated or vague
    2. The two scenarios where this product would likely fail you
    3. The one question you'd ask in a demo that would reveal whether the product is real or vaporware
    
    Product description: [paste landing page or core feature copy]
    

    What it surfaces: Credibility gaps in your positioning and the questions your sales and support teams will face repeatedly.


    Prompt 4: The Context Collapse Test

    Open prompt
    I'm going to give you a system prompt or product description. 
    Your job is to find the five places where the instructions assume context 
    that a real user won't have.
    
    For each gap, explain:
    - What context the product assumes the user has
    - What a realistic user actually knows at this point in the flow
    - What goes wrong when the assumed context is missing
    
    System prompt / product description: [paste here]
    

    What it surfaces: Hidden onboarding debt. Most AI products fail not because the LLM is bad but because the surrounding context falls apart when real users arrive.


    Category 2: Edge Case Generators

    These prompts generate the inputs your QA team won't think to try. Edge cases are where AI products embarrass you publicly.


    Prompt 5: The Adversarial Input Generator

    Open prompt
    You are a QA engineer who specializes in breaking AI products. 
    Your goal is to generate 10 adversarial inputs for the following product feature.
    
    For each input, explain:
    - Why a real user might reasonably send this
    - What the ideal product response would be
    - What a poorly-designed product would do instead
    
    Feature description: [describe the feature and its intended input/output]
    Intended user type: [describe who uses this feature]
    

    What it surfaces: The specific inputs that expose brittleness. Run each one against your product and log the delta between ideal and actual.


    Prompt 6: The Language and Locale Stress Test

    Open prompt
    Generate 8 test inputs for the following AI feature that represent edge cases 
    in language, locale, and communication style:
    
    - 2 inputs from non-native English speakers using common grammatical patterns from [language 1] and [language 2]
    - 2 inputs with heavy use of industry jargon from a domain your product wasn't designed for
    - 2 inputs that mix languages mid-sentence
    - 2 inputs that use formal register where the product expects casual, or vice versa
    
    For each input, note what the product needs to handle gracefully 
    and what a failure looks like.
    
    Feature: [describe the feature]
    

    What it surfaces: Whether your product works for real users or only for the team that built it. Most AI products are implicitly trained on the team's own communication style.


    Prompt 7: The Empty, Ambiguous, and Contradictory Input Triad

    Open prompt
    For the following AI product feature, generate three batches of test inputs:
    
    Batch 1 - Empty or near-empty inputs (5 examples):
    Inputs where the user gives almost no information but still expects a useful response.
    
    Batch 2 - Ambiguous inputs (5 examples):
    Inputs that could reasonably be interpreted in three or more different ways.
    
    Batch 3 - Contradictory inputs (5 examples):
    Inputs where the user's stated goal conflicts with another stated constraint or preference.
    
    For each batch, describe what the product should do and what it typically does wrong.
    
    Feature: [describe the feature and its expected input format]
    

    What it surfaces: Three categories of input that break most AI products. Batch 3 is especially important for products with multi-step flows or memory.


    Prompt 8: The Long-Session Drift Test

    Open prompt
    Simulate a user who has been using [your product] for 45 minutes across a complex task. 
    They've changed their mind twice, given conflicting instructions, and are now on step 7 
    of a 10-step workflow.
    
    Generate a sequence of 12 inputs that represent this session realistically, 
    including the mid-session pivots. Then evaluate:
    - Where does context likely get lost or corrupted?
    - Where does the product give a response that was correct for an earlier state but wrong now?
    - What does the user experience when this happens?
    
    Product: [describe your product]
    Task scenario: [describe a realistic complex task your users do]
    

    What it surfaces: Context degradation over long sessions. This is one of the most common and least-tested failure modes in AI products.


    Category 3: Output Quality Audits

    These prompts evaluate whether your product's outputs are actually good, not just technically correct.


    Prompt 9: The Consistency Checker

    Open prompt
    I'm going to give you 5 semantically similar inputs for the same AI product feature. 
    Your job is to predict where the outputs will be inconsistent in a way that would 
    confuse or frustrate users.
    
    For each pair of similar inputs, identify:
    - What a consistent product should do the same way both times
    - What a consistent product might reasonably do differently
    - What an inconsistent product does that would feel arbitrary to users
    
    Inputs:
    1. [input variant 1]
    2. [input variant 2]
    3. [input variant 3]
    4. [input variant 4]
    5. [input variant 5]
    
    Feature context: [describe the feature]
    

    What it surfaces: Inconsistency that erodes user trust. Users notice when the same question gets different quality answers. They stop trusting the product before they stop using it.


    Prompt 10: The Hallucination Surface Map

    Open prompt
    For the following AI product and use case, identify the five specific input types 
    most likely to produce hallucinations or fabricated information.
    
    For each risk area:
    - Describe the input pattern that triggers it
    - Explain why this pattern is particularly likely to produce fabrication
    - Suggest a guardrail or response pattern that would reduce harm without 
      making the product useless
    
    Product: [describe your product]
    Core use case: [describe the primary task users perform]
    Data sources the product has access to: [describe what the product knows]
    

    What it surfaces: Where your product is most likely to confidently state something wrong. Knowing your hallucination surface lets you add targeted guardrails instead of generic disclaimers.


    Prompt 11: The Tone and Register Audit

    Open prompt
    Review the following sample outputs from an AI product and audit them for 
    tone, register, and voice consistency.
    
    For each output, evaluate:
    1. Is the tone appropriate for the context and user state?
    2. Does the register (formal/casual/technical) match what the user used?
    3. Are there any phrases that feel robotic, evasive, or generically AI-generated?
    4. What would a human expert in this domain say instead?
    
    Outputs to review:
    [paste 3-5 real outputs from your product here]
    
    Intended product voice: [describe the voice and tone guidelines for your product]
    

    What it surfaces: The gap between your intended voice and what users actually experience. Most AI products sound like AI when they're under pressure, not when they're handling easy inputs.


    Prompt 12: The Completeness vs. Conciseness Calibration Test

    Open prompt
    I'm testing whether an AI product's outputs are calibrated correctly between 
    being too brief (unhelpfully thin) and too verbose (unusable walls of text).
    
    For each of the following inputs, evaluate what the ideal output length and 
    structure should be, then compare to what the product actually produces.
    
    Test inputs:
    1. A simple factual question about [your domain]
    2. A request for a recommendation with three constraints
    3. A complex multi-part question with no clear right answer
    4. A follow-up question to a previous answer (simulate this)
    5. An urgent, time-sensitive request
    
    Product outputs: [paste actual outputs for each scenario]
    

    What it surfaces: Calibration problems that feel like quality problems to users. An AI that writes 400 words when 40 would do is just as broken as one that's too sparse.


    Category 4: Failure Mode Audits 🚨

    These prompts are for diagnosing real problems after they've surfaced. Use them when users report issues you can't reproduce.


    Prompt 13: The Support Ticket Reverse-Engineer

    Open prompt
    I'm going to give you a user complaint about an AI product. 
    Your job is to work backward and identify the most likely root causes.
    
    For each complaint, generate:
    1. Three hypotheses for what caused this behavior (from most to least likely)
    2. A reproduction path: the specific input sequence most likely to trigger this
    3. The fix category: is this a prompt issue, a context issue, a model limitation, 
       or a product design issue?
    
    User complaint: [paste actual complaint or support ticket]
    Product context: [describe what the product is supposed to do in this scenario]
    

    What it surfaces: Root cause clarity instead of symptom chasing. Most teams patch AI bugs at the wrong layer because they haven't diagnosed the actual failure category.


    Prompt 14: The Silent Failure Detector

    Open prompt
    For the following AI product feature, identify the five failure modes that 
    would be hardest for users to detect, report, or attribute to the product.
    
    These are failures where:
    - The output looks plausible but is wrong in a non-obvious way
    - The user blames themselves rather than the product
    - The error compounds over multiple steps before becoming visible
    
    Feature: [describe the feature]
    User task: [describe what users are trying to accomplish]
    
    For each silent failure, describe: the mechanism, a realistic example, 
    and how you'd instrument the product to catch it.
    

    What it surfaces: The failures that don't show up in support tickets because users don't know they've been failed. These are the ones that erode retention quietly.


    Prompt 15: The Graceful Degradation Audit

    Open prompt
    Test how an AI product behaves when it doesn't know something, can't do something, 
    or encounters a situation outside its design.
    
    Generate 6 test scenarios where the product should gracefully decline or redirect:
    - 2 scenarios where the request is outside the product's scope
    - 2 scenarios where the product lacks the information to answer reliably
    - 2 scenarios where completing the request would likely harm the user
    
    For each scenario, describe:
    - What a graceful response looks like
    - What a typical AI product does instead (deflects generically, hallucinates, 
      completes anyway)
    - How to evaluate whether your product handles this well
    
    Product: [describe your product and its defined scope]
    

    What it surfaces: Whether your product knows its own limits. Users forgive products that say "I can't do that well here." They don't forgive products that pretend they can.


    Category 5: Pre-Launch Readiness Tests

    These prompts are final checks before a feature or product goes live. Run these in the last week before launch.


    Prompt 16: The One-Sentence Summary Test

    Open prompt
    I'm going to show you an AI product. After reviewing it, complete these tasks:
    
    1. Write one sentence describing what this product does, from the perspective of a user 
       who just successfully completed their first task.
    2. Write one sentence describing what this product does, from the perspective of a user 
       who just failed at their first task.
    3. Write one sentence describing what this product does, from the perspective of a user 
       who's been using it for three months.
    
    Then: identify the gaps between these three sentences and what your intended 
    product positioning says.
    
    Product description and sample outputs: [paste here]
    Intended positioning: [paste your core value prop]
    

    What it surfaces: Whether your product delivers its promise to users in different states. If the three sentences are wildly different from each other and from your positioning, you have a product-market fit problem, not just a messaging problem.


    Prompt 17: The Day-One Support Forecast

    Open prompt
    We launch [product or feature] in [timeframe]. Before we do, I want to predict the
    support load instead of discovering it.
    
    Product: [describe what it does and who it's for]
    What's changing at launch: [new product, new feature, changed behavior]
    How users will find it: [onboarding, announcement, in-product surface]
    Known rough edges we're shipping with: [be honest, list them]
    
    Generate:
    1. The ten questions users are most likely to ask in the first week, ordered by volume.
    2. For each, whether we currently have an answer a support person could send today.
       Mark each: documented / answerable but undocumented / no good answer exists.
    3. The three complaints most likely to be framed as "it's broken" when the product
       is working as designed. These are design problems wearing a support costume.
    4. The one question that, if it shows up in volume, means we should pause the rollout.
    
    Don't give me generic support advice. Base every prediction on the specific
    product described above.
    

    What it surfaces: The gap between what you think you built and what users will need explained. If most of the top ten questions land in "no good answer exists," you are not ready to launch, you are ready to be overwhelmed.


    Prompt 18: The Rollback Trigger Test

    Open prompt
    We're about to launch [product or feature]. Before it goes live, I want to define
    what "this is going badly" looks like in numbers, while I can still think clearly
    about it.
    
    The launch: [describe what's shipping and to whom]
    What we're measuring today: [list your current metrics and instrumentation]
    What we believe success looks like: [describe the expected outcome]
    
    Help me define the kill criteria:
    1. For each of the following, give me a specific threshold that should trigger a pause
       or rollback, not a discussion: error and failure rate, task completion rate,
       support ticket volume, and any quality signal specific to this product.
    2. For each threshold, tell me whether we can currently measure it. Flag the ones
       where we'd be flying blind.
    3. What's the failure mode that our current instrumentation would not catch at all?
    4. How long do we wait before acting on a bad signal, and who decides? Write it as
       a rule someone can follow at 2am without calling a meeting.
    5. What does rolling this back actually cost, and does that cost quietly make the
       rollback impossible? If so, say that plainly now.
    

    What it surfaces: Whether you have a launch or a one-way door. Teams that define kill criteria before launch make the call in hours. Teams that don't argue about it for three weeks while the numbers get worse.


    Why We Built This

    At ProductOS, we think most AI products don't fail because the model was bad. They fail because nobody stress-tested the assumptions underneath the product before the code got written, and by the time real users arrived, the gaps were structural.

    Testing an AI product is not a checkpoint. It's the discipline of finding out what you believe and then trying to break it, on purpose, before someone else does it by accident. These prompts are how we run that discipline.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The pack stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The Architecture Prompt Pack: 15 Design Prompts

    Most teams treat architecture as a technical decision. The teams that build durable products treat it as a product decision.

    📐 Read time: 14 minutes. Use time: every time you start something new.


    Why This Exists

    Architecture decisions are the most expensive decisions you will make. Not because the infrastructure bills are large (they might be), but because the wrong call at the design stage compounds into every engineering sprint, every hiring decision, and every pivot you attempt later.

    Most founders and PMs hand architecture off entirely to engineers, or worse, let a demo from a vendor make the call for them. The result is a system shaped by whoever was in the room, not by what the product actually needs to do. Teams that build durable products stay in the conversation. They ask better questions, earlier, and they use those questions to pressure-test assumptions before anything is committed.

    This prompt pack is for that conversation. Fifteen prompts covering the decisions that matter most: how the system should be structured, what it should handle gracefully, where it will break, and when to stop architecting and start building. Use them with any capable language model. Adapt the outputs to your context. The goal is sharper thinking, not perfect answers.


    How to Use This

    1. Run these before you finalize any technical spec. Architecture prompts do the most work in the ambiguous early stage, when nothing is locked in and the cost of changing direction is still low.
    2. Paste your actual context into each prompt. The more specific your inputs (user type, scale expectation, failure scenario, business constraint), the more useful the output.
    3. Treat the output as a starting position, not a conclusion. Use what the model surfaces to stress-test your assumptions with your engineering lead, co-founder, or a trusted technical advisor.
    4. Return to these prompts at inflection points. A new feature area, a scale threshold, a new integration partner: each one is a reason to re-run the relevant prompts.

    The 15 Prompts

    Section 1: Framing the System

    Before any technical decision, you need clarity on what the system is actually supposed to do and for whom. These prompts establish that foundation.


    1. The Capability Map

    Use this to get a clear picture of what your product needs to do before deciding how to do it.

    Prompt 1: Map the Capabilities
    I am building [describe the product in one sentence]. The primary user is [describe who they are and what they are trying to accomplish]. 
    
    Help me build a capability map by answering these questions:
    
    1. What are the 5-8 core capabilities this system must support on day one?
    2. Which of those capabilities are table stakes (users expect them to work, but they won't choose us for them)?
    3. Which capabilities are differentiating (users pick us because of these)?
    4. Which capabilities are likely to grow in complexity over time as usage scales?
    5. What does each capability need to do technically: process data, store state, trigger actions, communicate with external systems, or something else?
    
    Output this as a structured list. Flag any capability where you see a common architectural trap I should watch for.
    

    2. The User Contract

    Architecture should reflect what users actually expect from the system, not just what engineers think is reasonable.

    Prompt 2: Define the User Contract
    For the product I described: [paste Prompt 1 context or summarize briefly]
    
    Help me define the implicit contract users have with this system. Specifically:
    
    1. What response times will users consider acceptable for each major interaction (fast = under 1s, tolerable = 1-5s, okay if async = 5s+)?
    2. What data do users expect to be permanent? What do they expect to be ephemeral?
    3. What failure modes will users forgive (slow load, temporary error) versus what will break their trust (data loss, silent failure, wrong output)?
    4. What does "the system is working" look like from the user's perspective, without them knowing anything about the underlying tech?
    
    Use these answers to identify 3 architectural constraints I should treat as non-negotiable from the start.
    

    3. The Constraint Stack

    Every architecture operates inside a set of real constraints. Surfacing them early prevents over-engineering and under-scoping.

    Prompt 3: Identify the Constraint Stack
    I am building [product summary]. My current situation is:
    - Team size: [engineers available now]
    - Timeline to first working version: [weeks or months]
    - Budget for infrastructure: [rough monthly ceiling]
    - Expected initial user volume: [low / medium / high, with a rough number if known]
    - Expected growth rate: [flat, steady, or spike-prone]
    - Compliance or data requirements: [none / GDPR / HIPAA / SOC2 / other]
    
    Given these constraints, help me:
    1. Identify which architectural patterns would be over-engineered for my current stage.
    2. Identify which shortcuts are safe to take now and which would create serious debt.
    3. Suggest a starting architecture posture (simple + modular, or more structured from day one) with a clear rationale.
    4. Flag the one constraint I listed that is most likely to change and explain how that change would affect the architecture.
    

    Section 2: Making Structural Decisions

    These prompts help you think through the structural choices that are hardest to reverse.


    4. Monolith vs. Modular vs. Microservices

    This is the decision that generates the most cargo-culting in early-stage teams. Use this prompt to make the call deliberately.

    Prompt 4: Structure Decision
    I need to decide on the structural approach for [product summary]. Help me think through this clearly.
    
    1. Lay out the honest trade-offs between a well-structured monolith, a modular monolith, and a microservices approach for a product at my stage ([team size, scale expectation, timeline]).
    2. For each option, describe the failure mode: what breaks first when the team grows? When traffic scales? When the product pivots?
    3. Which approach does the least damage if I choose wrong early?
    4. What signals would tell me it's time to migrate from the starting choice to something more distributed?
    5. Give me a specific recommendation with a one-paragraph rationale, not a list of trade-offs to "consider."
    

    5. Data Model Design

    The data model is the decision that outlasts everything else. Most teams treat it as a back-end concern. It is a product concern.

    Prompt 5: Pressure-Test the Data Model
    Here is a rough data model for [product or feature]: [paste your schema, ER diagram description, or rough entity list].
    
    Pressure-test it for me:
    
    1. Which entities are likely to grow in ways I have not anticipated? What would trigger that growth?
    2. Where am I storing things in a way that makes sense now but will be painful to query at scale?
    3. What relationships am I treating as simple (1:1 or 1:many) that might need to become many:many later?
    4. Where does this model break if I add multi-tenancy, user roles, or audit logging later?
    5. What is the one change to this model that would buy me the most flexibility without adding meaningful complexity now?
    

    6. The Integration Surface

    Every external integration is a dependency you do not control. Use this prompt to map and manage that surface.

    Prompt 6: Map the Integration Surface
    My product integrates with or will integrate with: [list the APIs, services, or external systems].
    
    For each integration:
    1. What is the failure mode if this service goes down or rate-limits us?
    2. Am I treating this as a core dependency or a nice-to-have? Is that classification correct?
    3. Where should I build abstraction layers so I can swap this integration without rewriting core logic?
    4. Which of these integrations is most likely to change its pricing, API terms, or availability in the next 18 months?
    
    Then give me a dependency risk ranking: which integration poses the most risk to my product's stability and why.
    

    7. Build vs. Buy vs. Borrow

    Every team faces this at the component level. This prompt makes the reasoning explicit.

    Prompt 7: Build vs. Buy vs. Borrow
    I need to decide whether to build, buy, or use an open-source solution for [specific component, e.g., auth, search, billing, notifications, queues].
    
    Context:
    - My team's current engineering bandwidth: [available hours per week on this]
    - How central is this component to our differentiation: [core / supporting / commodity]
    - Acceptable maintenance burden: [low / medium / high]
    - Budget for a paid solution: [range or constraint]
    
    Help me:
    1. List the real costs of each option (time, money, flexibility, vendor risk) for my context.
    2. Identify what I give up permanently if I buy or borrow instead of building.
    3. Recommend one path with a clear rationale.
    4. Tell me what would have to be true about my product for the wrong answer to bite me hardest.
    

    Section 3: Handling the Hard Cases

    These prompts cover the scenarios that architecture has to plan for even if they feel unlikely right now.


    8. The Failure Mode Audit

    Most systems are designed for the happy path. This prompt designs for everything else.

    Prompt 8: Failure Mode Audit
    Here is a description of how my system handles [a specific flow or the full product]: [paste description].
    
    Run a failure mode audit:
    
    1. Where does this system fail silently (the user thinks something worked but it did not)?
    2. Where does this system fail loudly in a way that is embarrassing or trust-destroying?
    3. What happens if my primary database is unavailable for 5 minutes? 30 minutes? 2 hours?
    4. What happens if a third-party API I depend on starts returning errors?
    5. Where is there no fallback logic at all?
    
    Prioritize the top 3 failure modes I should address before launch and suggest a specific mitigation for each.
    

    9. Scale Inflection Points

    You do not need to build for 10 million users on day one. You do need to know when you will have to revisit the architecture.

    Prompt 9: Identify Scale Inflection Points
    My product is [description]. Starting expected load is [rough number of users or requests]. We are hoping to grow to [target scale] in [timeframe].
    
    Help me identify the inflection points where my architecture will need to change:
    
    1. At what user or request volume does my current approach start to strain? What is the first thing that breaks?
    2. What is the architectural change required at that point (add caching, shard the database, move a service out, etc.)?
    3. What is the next inflection point after that, and what changes then?
    4. What can I do now, at low cost, to make those future changes easier without over-engineering the current system?
    5. What is the one scaling assumption I am most likely to get wrong?
    

    10. The Multi-Tenancy Decision

    If you are building B2B software, this decision shapes everything. Most teams make it too late.

    Prompt 10: Multi-Tenancy Architecture
    I am building a B2B product. Help me think through the multi-tenancy architecture decision.
    
    My situation:
    - Number of expected tenants in year one: [number]
    - Sensitivity of customer data: [low / medium / high, and why]
    - Compliance requirements: [none / GDPR / HIPAA / SOC2 / contractual isolation requirements]
    - Expected variance between tenants (do they all use the same feature set, or will they diverge significantly?): [describe]
    
    1. Walk me through the shared database (row-level), shared database (schema-per-tenant), and database-per-tenant models for my context.
    2. What does each model cost me in engineering complexity, infrastructure cost, and compliance posture?
    3. Which model is hardest to migrate away from later?
    4. Give me a specific recommendation for my situation with a one-paragraph rationale.
    

    11. Security Surface Review

    Not a penetration test. A prompt for making sure you have thought through what needs protecting and why.

    Prompt 11: Security Surface Review
    Here is a description of my product and its architecture: [paste description].
    
    Help me think through the security surface:
    
    1. Where does user data enter the system, and is it validated and sanitized at each entry point?
    2. Where are my authentication and authorization boundaries? Are there any flows where a user could access another user's data through a gap in the logic?
    3. What sensitive data am I storing, and is the storage approach appropriate to the sensitivity level?
    4. Where am I relying on security by obscurity (assuming attackers won't know the URL, ID format, or endpoint) instead of real access control?
    5. What is the most likely attack vector for a product like mine, and have I accounted for it?
    
    Flag the top 2 risks I should address before I have real users.
    

    Section 4: AI-Specific Architecture

    If your product uses AI components, they introduce architecture questions that traditional software does not. These prompts address them directly.


    12. AI Component Boundaries

    The hardest AI architecture question is not which model to use. It is where AI should and should not make decisions.

    Prompt 12: Define AI Component Boundaries
    My product uses AI for: [describe the AI-powered features or flows].
    
    Help me define where the AI component boundaries should be:
    
    1. For each AI-powered flow, what inputs does the model receive? Is that the right scope, or am I sending too much or too little context?
    2. Where does the model make a decision that has a downstream effect the user cannot easily reverse? How should I handle those moments?
    3. Where should I put a deterministic gate or human review step instead of letting the model decide?
    4. What happens in each AI flow if the model returns a malformed output, a refusal, or a hallucinated value? Is there error handling for each case?
    5. How will I know when the AI component is degrading in quality over time?
    

    13. Context and State Management for AI Flows

    AI systems that forget context destroy user trust. AI systems that retain too much create privacy and cost problems. This prompt finds the right line.

    Prompt 13: Context and State Management
    My product includes AI-powered flows where context matters across multiple steps or sessions. 
    
    Specifically: [describe the flow, e.g., a multi-step assistant, a document editor, a project workspace].
    
    Help me think through context and state management:
    
    1. What context does the model need at each step to produce a useful output? Is any of that context sensitive or user-specific?
    2. How should context be stored between steps (in memory, in the prompt, in a database, via embeddings)?
    3. When does accumulated context become a liability (cost, privacy, noise)? How do I handle context pruning?
    4. If a user returns to this flow after 7 days, what context should I restore and how?
    5. What is the failure mode if context is lost mid-flow, and how should the system recover gracefully?
    

    14. Model Selection and Dependency Risk

    Picking a model is picking a vendor. This prompt makes sure you are doing it consciously.

    Prompt 14: Model Selection and Dependency Risk
    I am deciding which AI model(s) to use for [describe the task or product].
    
    My requirements:
    - Output type needed: [text / structured data / code / embeddings / images / other]
    - Latency requirement: [real-time / async acceptable]
    - Cost sensitivity: [describe the volume of calls and budget constraint]
    - Privacy and data sensitivity: [can data leave my infrastructure / must it stay on-prem]
    
    Help me:
    1. What model properties matter most for this task (context window, instruction-following, structured output reliability, speed, cost per token)?
    2. Where am I at risk of vendor lock-in, and what abstraction would reduce that risk without adding unnecessary complexity?
    3. What happens to my product if this model is deprecated, repriced, or quietly degraded in quality with 60 days of notice? What is my fallback?
    4. Should I route everything to one model, or send different tasks to different models? What does that routing cost me in complexity and evaluation overhead?
    5. Give me a specific recommendation, and name the one thing about my requirements that would change your answer.
    

    Section 5: Knowing When to Stop

    Architecture has diminishing returns, and past a certain point more design is just a way of avoiding the risk of building. This prompt tells you where that point is.


    15. The Reversibility Test

    Most architecture debates are about decisions that would cost a week to undo. Sorting the one-way doors from the two-way doors is how you get your time back.

    Prompt 15: Run the Reversibility Test
    Here is my current architecture plan for [product]: [paste the plan, or summarize every decision you have made so far].
    
    I want to know whether I am done architecting for now or still missing something that gets expensive later.
    
    1. Sort my decisions into one-way doors (hard or costly to reverse once there is real data and real users) and two-way doors (cheap to change later).
    2. For every two-way door, tell me to stop deliberating and take the simplest option available. Name them explicitly.
    3. Which one-way doors do I still not have a defensible answer for? Those are the only ones worth more design time.
    4. What is the smallest thing I could build in the next two weeks that would produce real information about my riskiest assumption, rather than more opinions about it?
    5. Give me a straight answer: keep designing, or start building? If it is start building, tell me what to build first and why.
    

    Common Pitfalls

    Choosing an architecture for the team you hope to have. Microservices are an organizational solution to an organizational problem. With four engineers, you do not have that problem yet. You have the opposite one.

    Letting a demo make the decision. The vendor's demo is the happy path, with their data, at their scale, run by someone who built it. Your product is none of those things.

    Treating the data model as a back-end detail. Nearly every other decision in this pack is reversible for longer than the data model is. Schema outlives the code that reads it, and it outlives the people who designed it.

    Confusing "we might need this" with "we will need this." An abstraction you never use is not free. It is paid for every sprint, by every engineer who has to read through it to find the thing that actually runs.

    Never writing down why. Six months on, nobody remembers whether the queue was a considered choice or an accident, so nobody is willing to touch it. One paragraph per major decision is the cheapest documentation you will ever write and the only kind anyone reads.


    Why We Built This

    Architecture is where product decisions get made by people who were never invited to the product conversation. Not out of malice. It happens because the questions arrive disguised as technical ones, and by the time the consequences surface as a product limitation, the answer is three quarters old and load-bearing.

    This matters more now than it did five years ago. When writing the code was the expensive part, bad structure was partly absorbed by how long everything took. There was time to notice. Today a model will produce a clean, working implementation of the wrong architecture in an afternoon, and it will look finished. Speed does not forgive the design, it just gets you to the consequences faster.

    At ProductOS, this is the problem we obsess over. Coding is becoming cheaper. Knowing what to build, and what shape it needs to be, is becoming more valuable. These prompts are the conversation we would want to have before anyone opens an editor.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The prompt pack stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.

  • The AI Agent Prompt Pack: 15 Prompts for Agents

    Most builders are asking "how do I add an agent to my product?" The better question is "does this problem actually need an agent, and if so, which kind?"

    📋 Read time: 14 minutes. Use time: every time you touch agentic architecture.


    Why This Exists

    There is a lot of excitement about AI agents right now, and most of it is pointed in the wrong direction. Teams are spinning up agents because it feels like the right thing to build, not because they have diagnosed a problem that agents specifically solve well. The result is brittle automation that breaks in production, frustrates users, and gets quietly turned off six weeks after launch.

    The teams building agents that actually work have a different starting point. They begin with task structure, not technology. They ask: is this task long-horizon? Does it require tool use? Does it need judgment calls across multiple steps? Only after those questions come back "yes" do they start designing an agent. The technology follows the problem shape, not the other way around.

    This prompt pack bridges that gap. These 15 prompts are organized around the full arc of working with agents, from deciding whether to build one, to designing it, to evaluating it, to explaining it to a skeptical team. Each prompt is a thinking tool, not just a query to paste. Use them with any frontier model (GPT-4o, Claude, Gemini) and adapt the bracketed fields to your context.


    How to Use This

    1. Start with the diagnosis prompts (1-4) before you touch any code. If your problem does not survive prompt 2, you will save weeks.
    2. Use the design prompts (5-9) before your first architecture meeting. Come in with a first draft, not a blank whiteboard.
    3. Run the evaluation prompts (10-12) before you ship to production. Not after users hit the failure.
    4. Keep the communication prompts (13-15) handy for the moments your stakeholders get nervous. Agents make non-technical people uncomfortable. These help.

    Section 1: Diagnosis Prompts (Should You Even Build an Agent?)

    The most common mistake in agentic development is skipping this section entirely.

    Prompt 1: The Agent Fit Test

    Use this before any architectural decision. It forces you to articulate the problem in terms that expose whether agentic orchestration is actually needed.

    View Prompt 1
    I'm considering building an AI agent to handle [describe the task or workflow].
    
    Analyze whether this task is a good fit for an agentic approach by evaluating it against these dimensions:
    
    1. Task horizon: Is this a single-step task or does it require multiple sequential decisions where later steps depend on earlier outputs?
    2. Tool dependency: Does completing this task require calling external tools, APIs, or data sources mid-execution?
    3. Ambiguity tolerance: How much does the task require judgment calls that a deterministic script cannot handle?
    4. Failure cost: If the agent makes a wrong decision mid-task, what breaks and how hard is it to recover?
    5. Human-in-loop feasibility: Is a human available to check intermediate steps, or does this need to run fully autonomously?
    
    Based on your analysis, give me a recommendation: full agent, partial agent (with human checkpoints), or deterministic automation. Explain your reasoning for each dimension.
    
    Context:
    - Task: [describe it]
    - Users: [who runs this task today]
    - Volume: [how often this task happens]
    - Current solution: [how it works now, even if manually]
    

    Prompt 2: The "What Could Go Wrong" Pre-Mortem

    Run this the moment you have a rough agent design. It is cheaper to find failure modes in a prompt than in production.

    View Prompt 2
    I'm designing an AI agent that will [describe the agent's purpose and the steps it takes].
    
    Run a failure mode analysis on this design. For each failure mode, give me:
    - What goes wrong
    - At what point in the task it likely fails
    - How likely it is (high / medium / low) given the task structure
    - Whether it's recoverable or catastrophic
    - A design change that would reduce or eliminate the risk
    
    Cover at least these categories:
    1. Tool call failures (the agent calls an API that returns an error or unexpected format)
    2. Context drift (the agent loses track of the original goal mid-task)
    3. Hallucinated actions (the agent takes a step that seemed logical but was never valid)
    4. Loop and retry storms (the agent gets stuck in a retry pattern that wastes tokens or breaks downstream systems)
    5. Permission and scope creep (the agent takes actions outside its intended scope)
    6. User intent misread (the task was ambiguous and the agent solved the wrong problem)
    
    Agent design so far:
    [Paste your current design, even if rough]
    

    Prompt 3: Build vs. Buy vs. Orchestrate

    The vendor landscape for agents changes every quarter. This prompt helps you evaluate what to build yourself and what to wire together.

    View Prompt 3
    I need to decide whether to build a custom AI agent, use an existing agent framework, or stitch together specialized tools for the following use case:
    
    Use case: [describe it]
    Team size and AI expertise: [describe your team]
    Timeline: [when does this need to be in production]
    Scalability requirements: [expected load, number of concurrent tasks]
    Data sensitivity: [what data will the agent touch, any compliance constraints]
    
    For each of these three paths, give me:
    1. What it looks like in practice for my use case
    2. The 2-3 biggest advantages
    3. The 2-3 biggest risks or hidden costs
    4. When this path breaks down or becomes the wrong choice
    
    Then give me a recommendation with your reasoning. Don't hedge. Pick one and explain why the others lose for my specific situation.
    

    Prompt 4: The Minimal Agent Definition

    Before writing a single line of agent code, write the spec. This prompt generates a one-page agent definition you can actually review.

    View Prompt 4
    Help me write a minimal agent specification for the following task. This is NOT a system prompt. It's a one-page design document I'll use to align my team before we start building.
    
    The spec should include:
    1. Agent name and one-sentence purpose
    2. Trigger: what starts the agent running
    3. Inputs: what information the agent receives at start
    4. Tools available: what APIs, databases, or functions the agent can call (list them)
    5. Decision points: where the agent makes a judgment call (list each one and what it's deciding)
    6. Outputs: what the agent produces or changes in the world when it's done
    7. Termination conditions: what causes the agent to stop (success, failure, and edge cases)
    8. Human handoff points: where a human should review before the agent proceeds
    9. Out of scope: explicitly, what this agent will NOT do
    
    Task: [describe it]
    Available tools/APIs: [list what you have]
    Constraints: [budget, latency, compliance, user-facing vs. background]
    

    Section 2: Design Prompts (How to Structure the Agent Well)

    Good agent design is mostly about deciding what the agent does NOT do.

    Prompt 5: The Tool Use Design Review

    The quality of an agent's tool definitions determines 80% of its reliability. Most teams underspecify their tools and pay for it in production.

    View Prompt 5
    Review the following tool definitions I'm passing to my AI agent and identify every way they could cause the agent to misuse them or fail.
    
    For each tool, evaluate:
    1. Is the name clear enough that the agent will call it at the right time (not too broad, not too narrow)?
    2. Is the description precise enough to prevent misuse?
    3. Are the parameters well-typed and described?
    4. Are error states documented so the agent knows what to do when the tool fails?
    5. Is the output format specified clearly enough that the agent can parse it reliably?
    
    Then rewrite each tool definition to fix the issues you found. Keep the same underlying functionality. Only improve the clarity and safety of the definition.
    
    My tool definitions:
    [Paste your tool schemas or descriptions]
    

    Prompt 6: The System Prompt Audit

    A system prompt that works in a demo will often fail in production. This prompt stress-tests yours before users see it.

    View Prompt 6
    Audit the following agent system prompt for these specific failure risks:
    
    1. Ambiguous scope: Does the prompt leave it unclear what the agent should do when it encounters an edge case?
    2. Missing refusal conditions: Are there situations where the agent should stop and ask a human rather than proceed, and does the prompt specify them?
    3. Persona drift: Does the prompt establish the agent's identity clearly enough that it won't start acting like a general assistant?
    4. Over-instruction: Are there instructions that conflict with each other or that the agent might follow too literally in edge cases?
    5. Under-instruction: What obvious situations does the prompt fail to cover?
    6. Tone and escalation: Does the prompt tell the agent how to communicate when it's uncertain or when something goes wrong?
    
    After your audit, rewrite the system prompt to address every issue you found. Flag any changes you made with a [CHANGED] marker so I can review them.
    
    Current system prompt:
    [Paste it]
    
    Agent purpose: [one sentence]
    User context: [who talks to or triggers this agent]
    

    Prompt 7: The Multi-Step Task Decomposer

    If an agent's task is too large to hold in one context window, or too risky to run in one shot, it needs to be decomposed. This prompt does that systematically.

    View Prompt 7
    I need to break the following complex task into a sequence of smaller sub-tasks that a multi-step agent (or multiple specialized agents) can handle reliably.
    
    For each sub-task in your decomposition:
    1. Give it a name and one-sentence description
    2. Define its input (what it receives from the previous step or from the user)
    3. Define its output (what it produces for the next step)
    4. Identify whether it needs tool access, and which tools
    5. Flag whether a human should review the output before the next step proceeds
    6. Estimate the failure risk: low, medium, or high, with one sentence on why
    
    Then draw the overall flow as a numbered sequence with branching points clearly marked (e.g., "If step 3 fails, go to step 3b instead of step 4").
    
    Task to decompose: [describe it in full]
    Tools available: [list them]
    Acceptable latency per run: [seconds or minutes]
    Is this user-facing or background: [specify]
    

    Prompt 8: The Human-in-the-Loop Design

    Full autonomy is not the goal. The right level of human oversight is. This prompt helps you design checkpoints that don't kill the value of automation.

    View Prompt 8
    I'm designing an agent that runs [describe the task]. I need to figure out where to put human-in-the-loop checkpoints without making the agent so interrupt-heavy that it's worse than just doing the task manually.
    
    Help me design the oversight model by:
    1. Mapping every decision the agent makes during the task
    2. Classifying each decision as: reversible/irreversible, high-stakes/low-stakes, and certain/uncertain
    3. Recommending a checkpoint policy for each class of decision:
       - Auto-proceed (no human needed)
       - Notify but proceed (log it, human reviews asynchronously)
       - Pause and confirm (agent waits for explicit human approval)
       - Escalate and stop (agent halts and flags for human takeover)
    4. Estimating what percentage of runs would require synchronous human input under this policy
    
    Optimize for: [choose one: maximum autonomy / maximum safety / fastest time-to-completion]
    Acceptable interruption rate: [e.g., "no more than 1 in 10 runs should require synchronous input"]
    
    Agent task: [describe it]
    

    Prompt 9: The Agent Persona Definition

    Agents that interact with users need a coherent persona. Without one, they feel inconsistent and erode trust. This prompt writes one.

    View Prompt 9
    Write a persona definition for an AI agent that will [describe what it does and who it serves].
    
    The persona definition should include:
    1. Name (or role label if no custom name)
    2. One-paragraph description of how it talks and what it prioritizes in interactions
    3. Five example phrases it would use (and five it would never use)
    4. How it handles uncertainty (does it say "I don't know," ask a clarifying question, or offer a best-effort answer with a caveat?)
    5. How it handles a user who is frustrated or confused
    6. What it does when it cannot complete the task (how does it hand off or explain the failure?)
    7. What it explicitly will not do, stated in first person as the agent
    
    Make the persona specific enough that two different engineers building different parts of this agent would produce consistent behavior. Generic descriptions like "helpful and friendly" are not acceptable. Every trait should be concrete and testable.
    
    Product context: [describe your product]
    User: [describe who interacts with this agent]
    Tone goal: [e.g., "expert but approachable," "direct and efficient," "warm and reassuring"]
    

    Section 3: Evaluation Prompts (Is It Actually Working?)

    Agents that pass basic demos fail in production for reasons that are entirely predictable if you know where to look.

    Prompt 10: The Evaluation Rubric Generator

    Before you can know if your agent is good, you need a definition of good. Most teams skip this step.

    View Prompt 10
    I need a concrete evaluation rubric for my AI agent so I can measure whether it's working in production, not just in demos.
    
    The agent does: [describe the task]
    It succeeds when: [describe the ideal output or outcome]
    It fails when: [describe failure states you've seen or anticipate]
    
    Create an evaluation rubric with:
    1. A set of test case categories that covers normal inputs, edge cases, and adversarial inputs (give 3 examples per category)
    2. For each test category, a scoring rubric (1-5 or pass/fail, your choice, but explain the criteria)
    3. Three metrics I should track in production (not just accuracy, think about task completion rate, fallback rate, latency, etc.)
    4. A minimum bar for each metric below which I should stop and fix before continuing rollout
    5. A log format I should use to capture agent behavior so I can debug failures after the fact
    
    Make the rubric specific to my use case, not a generic "AI evaluation" template.
    

    Prompt 11: The Red Team Prompt

    Send this to someone who wants your agent to fail. Or run it yourself before they get the chance.

    View Prompt 11
    Act as a red-teamer trying to make the following AI agent fail, misbehave, or produce harmful outputs.
    
    Your job is to generate 15 test inputs specifically designed to break this agent. Organize them into:
    1. Boundary violations (inputs that push the agent to act outside its defined scope)
    2. Prompt injection attempts (inputs that try to override the agent's instructions)
    3. Ambiguous inputs (inputs with multiple valid interpretations that could lead to wrong actions)
    4. Adversarial edge cases (rare but valid inputs the agent was probably not designed for)
    5. Compounding failures (multi-turn sequences where each step seems fine but the combination causes a problem)
    
    For each test input, describe:
    - The input itself
    - What a broken agent would do
    - What a well-designed agent should do instead
    - How severe the failure is (low / medium / high)
    
    Agent description: [describe your agent]
    System prompt summary: [paste or summarize it]
    Tools available: [list them]
    

    Prompt 12: The Production Readiness Check

    One structured review before you ship is worth three post-mortems after.

    View Prompt 12
    I'm about to ship an AI agent to production. Review the following agent design and give me a go / no-go recommendation with specific blockers.
    
    Evaluate across these dimensions:
    1. Safety: Can the agent take actions that are irreversible or destructive? Are those actions gated behind confirmation?
    2. Scope: Can an unusual input push the agent outside the job it was designed for?
    3. Observability: If this fails at 2am, can I reconstruct what the agent did and why from logs alone?
    4. Failure handling: What happens when a tool errors, times out, or returns a shape the agent didn't expect mid-task?
    5. Cost and loops: What's the worst-case token spend for a single run, and what stops a retry storm?
    6. Human handoff: When the agent gets stuck, does a human find out, and do they have enough context to take over?
    7. Rollback: If this goes badly on day one, how do I turn it off, and what half-finished state does that leave behind?
    
    For each dimension, give me a rating (blocker / concern / acceptable) and point to the specific thing in my design that led to that rating. Then give one verdict: go or no-go. If no-go, list only the blockers, ordered by what to fix first. Don't soften it.
    
    Agent design: [paste your spec, system prompt, and tool definitions]
    Deployment context: [user-facing or background, expected volume, what systems it touches]
    

    Section 4: Communication Prompts (Getting Everyone Else Comfortable)

    An agent that nobody trusts gets turned off, no matter how well it works. These are for the conversations around the build.

    Prompt 13: The Skeptical Stakeholder Brief

    Someone with veto power is nervous about this agent. Vague reassurance makes it worse. This prompt gives them something concrete to push against.

    View Prompt 13
    I need to explain an AI agent to a stakeholder who is skeptical of it. Write a one-page brief they can actually interrogate.
    
    The agent: [describe what it does]
    The stakeholder: [describe their role and what they're accountable for]
    Their specific concern, if I know it: [describe, or say "general discomfort with autonomy"]
    
    The brief should cover:
    1. What the agent does, in one sentence, with no AI vocabulary
    2. What it is explicitly not allowed to do
    3. What happens when it's wrong: who finds out, how fast, and what it costs
    4. What a human still controls, and at which points
    5. How we'd know it's failing before a customer tells us
    6. What we'd do to turn it off, and how long that takes
    
    Rules: no hedging, no "the AI decides" hand-waving, no claims we can't back with a specific mechanism in the design. If a concern is legitimate and unresolved, say so and name it. A brief that admits one real risk earns more trust than one that admits none.
    

    Prompt 14: The User-Facing Boundary Explainer

    Users don't read your architecture. They form a mental model in the first ten seconds and then act on it. This prompt writes the copy that shapes it.

    View Prompt 14
    Write the user-facing copy that sets correct expectations for an AI agent in our product.
    
    The agent: [describe what it does]
    Where the user encounters it: [describe the surface: chat, background automation, inline suggestion, etc.]
    What it does well: [describe]
    What it does badly or refuses to do: [be specific and honest]
    
    Produce:
    1. One sentence the user reads before they first use it, framing what it's for
    2. A short "what this can and can't do" list in plain language, no marketing tone
    3. The message the agent shows when it's uncertain
    4. The message it shows when it can't complete the task, including what the user should do next
    5. The message it shows when it did something the user may want to undo
    
    Constraints: write for someone who has never thought about how agents work and never will. No jargon. No apologizing. Never imply more capability than the agent has, because every overpromise here becomes a support ticket later.
    

    Prompt 15: The Agent Incident Explainer

    Your agent will get something wrong in front of a customer. How you explain it determines whether they lose trust in the agent or in you.

    View Prompt 15
    Our AI agent made a mistake that affected users. Help me communicate it.
    
    What happened: [describe what the agent did]
    Who was affected and how: [describe scope and impact]
    Why it happened: [describe the root cause, in technical terms]
    What we've changed: [describe the fix and any new guardrail]
    What we haven't solved yet: [be honest]
    
    Write three versions:
    1. For affected users: what happened in their terms, what it means for them, what they should do, and what we've done about it. No jargon, no blaming the model.
    2. For internal stakeholders: the same facts with the mechanism explained, plus what class of failure this belongs to and whether it can recur.
    3. For the team: the one design assumption this proved wrong.
    
    Rules: never describe the agent as if it acted on its own and surprised us. We designed it, we shipped it, we own the output. Don't promise it will never happen again unless the fix genuinely makes that class of failure impossible. Say what's true.
    

    Why We Built This

    At ProductOS, we think most agent projects fail before any code is written. They fail at the moment someone decides to build an agent because agents are what you build right now, rather than because the task actually had the shape an agent handles well.

    The prompts here are ordered the way the decision should be: diagnose, then design, then evaluate, then explain. Skipping to the middle is how you end up with brittle automation that gets quietly switched off six weeks after launch.

    If any of this lands and you want to see it in action, we're at site.productos.dev. No pressure. The pack stands on its own.

    If you'd rather have humans plus AI run this for you on a real product today, that's what 1Labs AI does.


    Built by Heemang Parmar, Founder & CEO of ProductOS. 10+ years in product, 150+ builds. Also runs 1Labs AI, an AI product development agency.