AIToday
Large Language ModelsAI Coding AssistantsITmedia AI+Published: Sep 29, 2026, 06:00 JST

Claude Code's Boris Cherny: Black-box AI code OK only for prototypes

Claude Code's Boris Cherny: Black-box AI code OK only for prototypes

3 Key Points

  1. What happened

    Claude Code's creator Boris Cherny answered a developer's question on September 11, 2026, saying throwaway prototype code can be treated as a black box, but production code should be held to a higher bar than human-written code.

  2. Why it matters

    It draws a practical line between prototype and production use, with Anthropic itself relying on Lint, E2E tests, fuzzers and code review — read as a quality bar developers are expected to hold, not lower.

  3. What to watch

    The approach hinges on tests and specs being trustworthy, since tests like expect(true).toBe(true) can pass without being meaningful; the writer suggests starting small with reliable tests and the latest specs.

WHO IT HITSDevelopers and engineering leads adopting AI coding tools are the ones affected, since they must decide per code purpose and risk how much of AI-generated code to actually read and review before shipping. Teams with weak test coverage or loose specs face the greatest exposure, based on the safeguards Cherny describes.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The question Cherny answered came from a developer with 12 years of experience, who had been weighing two opposing views: that AI-written code should be fully checked by humans, and that code should be treated as a black box and judged only by its output. The developer's frustration was that generating code with AI is easy, but deciding whether a method the AI chose is appropriate for production takes time. Cherny's reply was that there is room for both.

What separates the two camps in Cherny's answer is purpose and risk, not a single rule. He points to Anthropic's own production setup, where Lint, E2E tests, fuzzers, code review, security review and documentation upkeep act as guardrails, and tells developers their job is to hold the bar on code quality. He also notes that as Claude's models get smarter, quality control mechanisms become easier to run.

The writers' own practice is presented as a small-scale case: for prototypes such as data analysis, he does not read AI-generated code in full, though he does not treat it as a complete black box either. He keeps a sense of what code is being written, and asks AI to redo work when execution feels off. His stated priority is not trusting tests blindly, since tests like expect(true).toBe(true) can pass without meaning anything. Whether the black-box approach holds up likely depends on how far teams extend trustworthy tests and written specs — the two starting points he suggests for small teams — as AI takes on more of the coding work.

FAQ
When can AI-written code be treated as a black box?
According to Boris Cherny, throwaway code and prototype code that will be discarded can be treated as a complete black box, as long as the risk and scope of impact are small.
What guards does Anthropic use for production code?
Cherny describes preparing multiple Lint rules, running E2E tests and fuzzers, doing code review and security review, and maintaining documentation through refactoring.
What does the writer start with for small-scale development?
The writer says he starts with two things: reliable tests, and documented configuration and specs, then asks AI to check the tests themselves rather than trusting them outright.

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Meta taps CJ Desai to lead new enterprise AI unitSiliconANGLE AI · 22m ago
  • 1Password ties AI agent access to individual tasksSiliconANGLE AI · 22m ago
  • ServiceNow's Bhakti Pitre: rogue AI agents need risk-based kill switchSiliconANGLE AI · 22m ago

AI-summarized, only the topics you pick: one digest a day via Email, LINE, or Slack.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleMark Penn: AI's ad payoff is new work, not cheaper old work