11 min readUpdated: November 24, 2026

Spec-Driven vs Code-First vs Chat-to-Code: Three Philosophies for Teaching AI About Your Business

How specifications, code-derived documentation, and structured conversations capture business knowledge—and where each approach still needs verification.

Available in:

There are three ways to teach an AI agent about a business. Each starts from a different source of truth.

GitHub Spec Kit starts with intent: define what should be built and why. OpenWiki starts with evidence: read the code and maintain documentation tied to sources. QuotyAI starts with expertise: interview the owner, then turn the rules into constrained artifacts.

Each approach works. Each breaks differently. The failures are not random; they follow from who authored the knowledge, when it was written, and how the agent consumes it.

Update note — November 24, 2026: I removed the original star counts, unverified vendor benchmarks, the claim that general chat-to-app tools only generate frontends, and the claim that no major product supports business logic. I also updated the ThoughtWorks ratings and Spec Kit workflow.


The Three Philosophies

Spec-Driven: The Specification Carries the Intent

GitHub Spec Kit is an open-source toolkit for structured development with coding agents. Its current flow is more than “write a PRD and hope”:

/speckit-constitution
/speckit-specify
/speckit-plan
/speckit-tasks
/speckit-implement
/speckit-converge

A project constitution sets principles. A feature description becomes a specification. The plan records technical choices. Tasks break the work down. Implementation produces code. Convergence checks whether the result matches the specification.

Spec Kit also supports bug-fixing and idea-assessment processes, plus extensions, presets, and workflows. It is a toolkit, not a guarantee that the specification is complete.

The bet is still good: if the intent is explicit, the agent has less room to invent a different product. The weak point is maintenance. A precise specification that no longer matches reality is just expensive stale context.

Code-First: The Codebase Is the Evidence

OpenWiki reads a repository and writes a linked Markdown wiki. Its current design tracks facts to versioned source evidence, preserves completed pages across interruptions, and can update only the parts affected by source changes.

That makes it more than a one-shot README generator. A coding agent can search the wiki, read relevant sections, and use the documentation as context.

Mintlify, GitBook, ReadMe, and Swimm occupy adjacent parts of the documentation and knowledge market. Their agent features change quickly, so I will not repeat the original vendor-specific improvement percentages without a reproducible study. The useful question is simpler: does the documentation expose current evidence, and can the agent retrieve only what it needs?

Code-first documentation has a hard limit. Code can show what exists. It often cannot show why a decision was made, which exception matters, or which rule lives only in an operator’s head.

Chat-to-Code: The Domain Expert Supplies the Rules

QuotyAI lets an owner describe a sales operation in ordinary language. The builder turns the request into catalog data, schemas, scripts, plugins, and tests.

For example: “Deep tissue is $90 for 60 minutes, $120 for 90 minutes, and members get 10% off.” The builder should produce a quoteOrder path that returns $108 for a 90-minute member booking—and tests that make the expectation explicit.

“Should” is doing real work in that sentence. The owner can describe the rule incorrectly. The agent can generate the wrong branch. The test can encode the same misunderstanding. Review and publication are separate steps for a reason.

The current builder uses LangChain createAgent and LangGraph. The commit gate validates artifacts, dependents, migrations, and checkout tests before a release can merge.


Chat-to-App Tools Are Not Just Frontend Generators

The original article put v0, bolt.new, and Lovable in a “frontend only” bucket. That is out of date.

As of November 2026:

  • v0 describes itself as an agent for full-stack apps, including backend logic, databases, deployment, and error fixing.
  • Bolt builds websites and apps, with database, hosting, version history, and plan mode.
  • Lovable generates frontend, backend, database, authentication, and integrations, with editable code and Git sync.

They can express business logic. A founder can build an internal pricing tool in any of them.

QuotyAI’s difference is narrower and more specific: it constrains generation to sales-assistant artifacts, defines artifact contracts and dependencies, runs a checkout test suite, and executes the released scripts inside the conversation runtime.

That is a real product difference. It is not evidence of an empty market or a universal capability gap.


Where Each Approach Breaks

Spec-Driven: Context Rot and Instruction Bloat

More context is not always better. Anthropic’s context-engineering research describes “context rot”: as token count grows, a model’s ability to recall information accurately can decline. The effect varies by model and task, but the engineering lesson is consistent—curate the context.

Specifications are token-heavy. So are accumulated agent instructions.

ThoughtWorks currently rates agent instruction bloat as Caution. Its November 2026 update recommends converting instructions into deterministic hooks or checks where possible, reevaluating them against each new model, and using progressive disclosure for what remains.

There is also evidence that lean repository instructions can help. A 2026 study analyzed 10 repositories and 124 pull requests. It found AGENTS.md associated with a 28.64% lower median runtime and 16.58% lower output-token consumption, with comparable task completion.

That is an association in a specific study, not a promise that adding documentation makes every agent faster. The authors also distinguish hand-written instructions from generated ones. Use the result as a reason to test your context, not a reason to add more of it.

Code-First: The Staleness Tax

Deriving documentation from code helps with freshness. It does not eliminate it.

A generated page can still be wrong if the agent misreads the source, misses a convention, or documents a bug as if it were intent. Evidence links make that failure easier to investigate; they do not make it impossible.

The “why” problem remains. A function signature does not explain a compliance exception, a commercial promise, or a performance decision. Code-first knowledge needs human-authored context where the reason matters.

And retrieval has a cost. Loading every page, rule, and tool definition can crowd out the information the task actually needs. Progressive disclosure is usually a better default than a comprehensive context dump.

Chat-to-Code: The Verification Gap

Natural language is not a formal specification. Owners omit edge cases. Models resolve ambiguity by guessing. Generated code can look right while failing on a boundary condition.

The original article said no tool asks the user to review test cases. That was too broad. QuotyAI’s current builder has an executable checkout suite and refuses to commit a failing one. Other app builders also provide previews, tests, and review flows.

The remaining gap is semantic verification. A passing test proves the code matches the expected case. It does not prove the expected case reflects the business. A spa owner still needs to recognize that “hide this service” is not “delete this service,” or that a member discount does not apply to a gift card.

The safeguard is a short interview, representative tests, a reviewable diff, and a separate publish step. Not a longer disclaimer.


What the Industry Is Converging On

Progressive Context Disclosure

ThoughtWorks moved progressive context disclosure from Trial in April 2026 to Adopt in November 2026.

The pattern is straightforward: load a small index first, then retrieve detailed instructions and data only when relevant. It applies to documentation, skills, tools, and business knowledge.

Signal Latest status seen Date
Progressive context disclosure Adopt November 2026
Agent instruction bloat Caution November 2026
Context engineering Adopt April 2026; not on the current Radar edition
Architecture drift reduction with LLMs Assess April 2026; not on the current Radar edition

A Radar blip disappearing from the current edition does not mean the problem vanished. It means ThoughtWorks did not carry that assessment forward in the latest volume.

Portable Skills

The Agent Skills format packages a SKILL.md file with optional scripts, references, templates, and assets. Agents discover the name and description first, then load the full instructions when the task matches.

I removed the original “40+ products” count. Adoption changes quickly; the format’s client showcase and specification are better sources than a hard-coded number.

Structured Tool Interfaces

MCP standardizes tool discovery and invocation. The current specification includes JSON Schema inputs, optional output schemas, structured results, and security guidance.

That does not make every MCP tool correct or safe. It gives applications a common envelope. Domain contracts still need to define permissions, errors, versions, and expected behavior.

Hybrid Retrieval, When the Task Needs It

Vector search is useful for semantic similarity. Structured queries are useful for exact filters and aggregation. Graphs are useful for relationships. None wins every task.

The practical answer is hybrid retrieval with a reason for each component—not “GraphRAG beats vectors” as a universal law.


When to Use Each

Spec-Driven: Technical Teams Building New Software

Use Spec Kit when a technical team can write, review, and maintain specifications. It is especially useful when requirements must survive across planning, implementation, and later changes.

Do not ask a business owner to think in user stories and acceptance criteria if their expertise is pricing and appointments. Translate the domain into a specification with them; do not pretend the specification is the interview.

Code-First: Existing Codebases With Developer-Facing Agents

Use OpenWiki or a documentation platform when the agent needs to understand an existing repository. Keep the evidence current, link to sources, and retrieve selectively.

Do not use code-first documentation as a substitute for business rules that are not in the code.

Chat-to-Code: Constrained Domain Operations

Use QuotyAI when a domain expert needs pricing, validation, availability, or automation rules that must run in conversations. The constraints are the advantage: known artifact types, tests, release environments, and runtime execution.

Do not assume the same architecture generalizes to every software product. A pricing function is a narrower problem than “build my company’s operating system.”


The Deeper Pattern

The three philosophies answer different questions:

  • Spec-driven: How do we make the agent build what we intended?
  • Code-first: How do we make the agent understand what already exists?
  • Chat-to-code: How do we capture what the expert knows?

The real failure mode is applying an approach to the wrong problem. Spec-driven development struggles when the domain expert cannot maintain the spec. Code-first documentation struggles when the knowledge is not in the code. Chat-to-code struggles when the domain is too broad to constrain.

The emerging stack uses all three: specifications at boundaries, evidence from code, structured conversations for expertise, and runtime checks before action.

A deterministic runtime does not make the knowledge problem solve itself. It gives you a place to find out whether the knowledge was captured correctly.


Frequently Asked Questions

What is the difference between spec-driven, code-first, and chat-to-code approaches? Spec-driven development starts with intent and carries a specification through planning, tasks, implementation, and convergence. Code-first documentation starts from an existing codebase and produces reference material for agents. Chat-to-code captures a domain expert’s rules through conversation and generates constrained artifacts. They target different sources of knowledge and different users.

Why do spec-driven approaches struggle at scale? Specifications can become long, contradictory, and stale. Anthropic describes context rot as models become less reliable at recalling information as context grows. ThoughtWorks rates agent instruction bloat as Caution. A 2026 study of 10 repositories and 124 pull requests found AGENTS.md associated with lower median runtime, but association is not proof that every specification helps.

Why don’t v0, bolt.new, or Lovable solve every chat-to-code business problem? They are full-stack app builders, not just UI generators. They can create backend logic, databases, and integrations. The difference is scope: QuotyAI constrains the problem to sales-assistant artifacts and adds business contracts, tests, versioned releases, and runtime execution. That is a product specialization, not proof that general app builders cannot express business logic.

What is the industry converging on for AI agent knowledge? Progressive context disclosure, portable skills, and structured tool interfaces are common patterns. ThoughtWorks moved progressive context disclosure to Adopt in November 2026. Agent Skills packages instructions and resources in SKILL.md. MCP standardizes tool discovery and invocation with JSON Schemas. None of these formats makes the underlying knowledge correct by itself.



Sources


Tags: spec-driven-development openwiki quotyai ai-agents agent-architecture langchain spec-kit deterministic-ai context-engineering

Found this useful? Share it.

Related articles