[KongchangAI]
· 2 min read· 1,271 words

Coding with AI vs Building AI: Two Layers of Capability Developers Must Distinguish

Coding with AI vs Building AI: Two Layers of Capability Developers Must Distinguish

AI and software development split into two layers: using AI to assist coding, and building AI features into code.

The article points out that people often conflate "using AI to help write code" with "building AI features into code," but these are two fundamentally different capabilities. The former treats AI as a tool, testing how efficiently you can direct it; the latter treats AI as part of the product, testing how reliably you can embed AI capabilities into a system — involving calling model APIs, designing prompt workflows, building RAG pipelines, and handling inference latency and costs. Data shows 77% of professional developers use AI tools daily, making AI-assisted development mainstream, and mastering concepts like context windows, model choice, and sub-agents is foundational to this layer. The author advises developers to distinguish the priorities of the two layers when planning their learning paths, and emphasizes that regardless of the eventual direction, "Building With AI" is an unavoidable and pragmatic starting point.

AI is reshaping the way software is developed, but many people conflate two very different things: using AI to help write code and building AI features into code. Although both carry the label "AI," they demand entirely different skill sets, ways of thinking, and engineering challenges.

Two Layers, Two Sets of Capabilities

According to an analysis by a YouTube tech creator, the relationship between AI and software development can be broken down into two main layers.

The first layer is "Building With AI" — treating AI as a tool to assist with software development work. This includes using Copilot-style tools to write code, leveraging large models for code review, and relying on AI for debugging and refactoring. Essentially, AI plays the role of a "super assistant" here.

Using AI as a tool to assist software development

The second layer is "Building AI" — actually using AI-related capabilities in your code, or building AI features themselves. This involves calling model APIs, designing prompt workflows, building RAG pipelines, and handling inference latency and costs. Here, AI isn't a tool — it's part of the product.

Building AI features into code

This distinction matters because the two layers place completely different demands on developers. The first layer tests how efficiently you can "direct" AI; the second tests how reliably you can "embed" AI capabilities into a system. Confusing the two easily leads your learning in the wrong direction.

Everyday scenarios of developers using AI tools

Copilot-style tools refer to a category of code completion and generation tools represented by GitHub Copilot. Under the hood, they're typically powered by large language models fine-tuned on code corpora, capable of predicting and completing code snippets in real time based on the current file's context, cursor position, and comments. Their working modes fall roughly into two types: one is inline completion, giving you grayed-out suggestions as you type; the other is chat or agent mode, generating or modifying entire blocks of code based on natural language instructions in a dialog box. The key to understanding Copilot-style tools is that they don't truly "understand" your project — they make probabilistic predictions based on statistical patterns from massive amounts of code. That's why their output needs to be reviewed, verified, and corrected by the developer rather than blindly accepted. This is also the most essential judgment to build when using AI as a tool.

RAG pipelines (Retrieval-Augmented Generation) are an architecture that lets large models "look things up" before answering. Since a model's parametric knowledge has a cutoff date and can't cover your private documents, RAG works by converting the user's question into a vector when they ask it, retrieving the most relevant document fragments from a vector database, and then feeding those fragments as context to the model so it can generate an answer based on them. A complete RAG pipeline typically includes document chunking, embedding, storing in a vector database, similarity retrieval, reranking, and prompt assembly. Its engineering challenges lie in chunking granularity, retrieval recall quality, and handling ineffective retrieval results — if any single step is done poorly, the model will either answer off-topic or hallucinate. Developers building AI features often spend most of their time tuning this pipeline.

77% of Developers Already Use AI Daily

The first layer is no longer a question of "whether to do it." Data cited in the analysis shows that 77% of professional developers claim they use AI tools every day, and they believe this has had a huge impact on their workflows.

77% of professional developers use AI tools daily

This number means that AI-assisted development has moved from early experimentation into mainstream practice. For developers who haven't yet incorporated AI tools into their daily workflow, the gap will only widen.

More importantly, simply "knowing how to use" them isn't enough. The creator points out that you need a genuine understanding of a series of core concepts: skills (skill orchestration), context windows, model choice, tool selection, sub-agents, and more. These form the core knowledge system of the "Building With AI" layer.

Context window refers to the maximum number of tokens a large model can "see" at once in a single call, including both the prompt you input and the response it generates. This window has a hard limit, and anything beyond it gets truncated. Understanding context windows is crucial for using AI tools well: first, it determines how much code, documentation, or conversation history you can fit in at once; second, as context grows longer, the model's attention to middle information tends to decay (known in the industry as the "lost in the middle" phenomenon), so more isn't necessarily better. Model choice is equally a core concept — different models vary greatly in reasoning capability, response speed, context length, and cost per call. Small models are more cost-effective for simple tasks, while complex reasoning requires stronger models. Sub-agents refers to breaking a large task into multiple specialized AI agents working together — for example, one handling retrieval, one handling coding, and one handling testing — using division of labor to overcome the capability and context limits of a single agent.

Why This Distinction Matters for Developers

Looking at these two layers separately helps developers plan their learning paths more clearly.

If you lean toward the first layer, your focus should be on: how to write good prompts, how to manage context, how to choose the right models and toolchains, and how to design sub-agent collaboration. The returns on these skills are immediate — they directly boost your daily coding efficiency.

If you lean toward the second layer, your focus should be on: understanding the capability boundaries of models, designing reliable AI interaction workflows, handling hallucinations and errors, and optimizing inference costs and latency. These are product-grade engineering challenges that require deeper system design skills.

Of course, the two layers aren't mutually exclusive. A mature AI engineer often has both — capable of using AI to develop efficiently and building reliable AI features. But in the early stages, distinguishing primary from secondary and focusing your efforts is far more effective than trying to do everything at once.

Hallucination refers to a large model confidently generating content that looks plausible but is actually wrong or entirely fabricated. In programming scenarios, this can manifest as inventing non-existent functions, APIs, or libraries, or producing code that passes syntax checks but is logically wrong. For developers building AI features, hallucination isn't a minor flaw to ignore — it's an engineering problem that must be systematically addressed. Common approaches include introducing RAG to ground answers in evidence, requiring models to provide citations, adding output validation and fallback logic, and keeping human confirmation on critical paths. Related to this is inference cost and latency: large models charge per token on every call, and generation speed is constrained by compute, which directly affects product viability and user experience. Developers need to make trade-offs across model size, call frequency, caching strategies, and streaming output to turn AI features into genuinely shippable products rather than demo toys.

A Pragmatic Starting Point

Regardless of which direction you ultimately want to pursue, "Building With AI" is an unavoidable starting point. The 77% figure already shows that developers who can't use AI tools are becoming the minority. From mastering context window management, to understanding the applicable scenarios of different models, to experimenting with sub-agent orchestration — these skills don't require you to become an ML engineer, but they can significantly change the way you work.

And once you have firsthand experience with the capabilities and limitations of AI tools, stepping into the "Building AI" layer will be much clearer.

#AI coding#building AI#context window#model selection#sub-agents#RAG pipeline
Share:

Related articles