AI Coding Assistant FAQ: 10 Common Questions Answered From a Year of Real Projects

    A practical, experience-based FAQ on AI coding assistants, covering the 10 questions that come up most often in real projects. It explains what a context convention file (like CLAUDE.md) actually does and how to write a useful one, how to break down and reduce token consumption, what MCP (Model Context Protocol) is and when it's worth adopting, how teams can standardize usage through convention files, custom commands, and CI integration, and how to run large refactors safely with a plan-first, staged-commit workflow. It also addresses whether AI can replace code review, why hallucinations happen and how to reduce them, how to combine strong and lightweight models for faster and cheaper results, and how to handle high-risk operations and data privacy with a clear set of guardrails. Finally, it argues that as tooling gets stronger, human judgment—problem definition, verification, and system design—becomes more valuable, not less.

    Introduction: The problem isn’t too many questions, it’s that no one answers them consistently

    When I first started using an AI coding assistant (hereafter “coding assistant”), I went through a honeymoon phase: asking it to write a utility function, fill in unit tests, or explain a module I didn’t understand was genuinely much faster than typing everything by hand. Once I started writing production code every day, though, real problems began to surface: Why does it keep breaking the parts I don’t want touched? Why do my tokens disappear after just a few turns? Everyone on the team uses it differently, so code quality varies wildly—what do we do about that?

    Last month I left a “reader questions” section at the end of an article and got nearly 200 comments. Grouping the recurring ones, they mostly fall into three buckets:

    • How should I write the project context convention file? Is it actually useful? How long should it be?
    • Tokens burn too fast—am I using it wrong, or is it just unaffordable? Is there a systematic way to save them?
    • What do these new terms like MCP and context compression actually mean? Should I bother learning them?

    Rather than replying one by one in the comments, I decided to answer the common questions all at once. The 10 questions below cover the main points of confusion from beginner to advanced, and each answer comes with lessons I’ve verified in real projects over the past year—plus the pitfalls I’ve already stepped in so you don’t have to.

    Question 1: What’s the point of a context convention file? Can I skip it?

    “What is CLAUDE.md in Claude Code for? Does it run without one?”

    It runs, but you’ll put in a lot more effort.

    Many people first hear about a coding assistant through exactly this file. The CLAUDE in the name matches the tool, and MD is the standard extension for a Markdown document. A lot of similar tools reuse this convention: you drop a Markdown file in the repo as a project-level context description. For convenience in what follows, I’ll call it a context convention file.

    You can sum up its role in one sentence: it’s the project’s team charter. When the coding assistant starts, it reads the file automatically and treats the rules you wrote as shared team conventions. It works without one, but it’s like hiring someone highly capable who knows nothing about your project—you have to explain the background from scratch every time you talk to them.

    A template that’s good enough to use

    1. # CLAUDE.md
    2. ## Project Overview
    3. User order system: Spring Boot 3.2 + MyBatis-Plus + MySQL 8.0
    4. ## Common Commands
    5. - Run: `mvn spring-boot:run`
    6. - Test: `mvn test`
    7. - Build: `mvn clean package -DskipTests`
    8. ## Code Conventions
    9. - Naming: camelCase; table names use snake_case
    10. - Layering: Controllers only do validation and routing; all business logic lives in the Service layer
    11. - Database: no SQL in code; use XML mappers exclusively
    12. ## Known Pitfalls
    13. - The order table's create_time stores UTC time; the frontend must convert to UTC+8 for display
    14. - Third-party payment callbacks must use HTTPS; local debugging requires an intranet tunneling tool

    In a real project, adjust this to your own stack. What matters is these four blocks: project overview, common commands, code conventions, known pitfalls—they map to “what it is, how to run it, how to write it, and where it’s easy to get wrong.”

    Why it works

    The context window is finite, and there’s only so much budget per request. Without a convention file, the assistant has to piece together the whole picture every time by reading code and asking you questions. With one, you’re handing it the “new-hire onboarding guide” up front and cutting out a huge amount of back-and-forth.

    I tested this on a 120,000-line Java project:

    • Before: Each code change took 3–4 turns just to establish context.
    • After: The first turn produced a solution that already matched the project’s conventions, and token consumption dropped by nearly half.

    The value also goes beyond saving money. Without a convention file, asking about the same requirement a few days apart can yield solutions in completely different styles, because the background you provide is different each time. With a stable “team charter,” the output is far more consistent.

    Pitfall warnings

    • Longer isn’t better. I’ve seen people write 800-line convention files, and then every conversation stuffs those 800 lines into context first, crowding out the space that actually matters. Keep it to “one screen,” and only write what the AI can’t guess: team conventions, historical pitfalls, and business terminology. It already knows general coding standards.
    • It’s a living document. Every time you correct the AI on the same mistake, write that into the file. After a few months, it becomes the team member that knows best “where the pitfalls are.”

    Question 2: Tokens are burning too fast—what do I do?

    “After a week I feel like tokens are burning fast. Am I getting ripped off?”

    Before jumping to conclusions, figure out where the tokens are actually going—that’s usually more useful than switching tools. You can break it into four parts:

    Source Description Optimization
    System instructions The tool’s built-in persona and safety rules Optimized as the tool updates; generally nothing to worry about
    Conversation history Every turn carries all previous Q&A, growing longer over time Start a new session when a task is done; compress long sessions promptly
    Code and output Content from reading files, command output, and generated code Point to specific files; avoid scanning the whole repo
    Fixed context Convention files and mounted directory files, sent every turn Trim the convention file; mount only necessary directories

    Stack these together and you get the bulk of the bill. There are six angles to approach savings:

    1. Break tasks small, and clear context when done. One session solves one problem; open a new one when it’s done so history doesn’t keep piling up.
    2. Give it files directly, don’t make it search the whole repo. Telling it “modify the order service” or giving a file path is far more efficient than “take a look at this project.”
    3. Compress long sessions regularly. Many coding assistants have a built-in “compress” or “summarize the current conversation” feature that condenses lengthy history into a summary and frees up context space.
    4. For complex tasks, plan first, then write code. This avoids repeatedly tearing up and redoing work after the direction drifts.
    5. Pick the model per task, and make good use of subtasks. Simple completions and code explanations are fine with a small model; save the strong model for architecture and tough bugs. Subtasks explore in an isolated context and only bring conclusions back to the main thread, without polluting it.
    6. Keep the context prefix stable. Put system prompts and the convention file at the front and avoid changing them frequently in the short term. This makes it easier to hit the server-side prefix cache, where the repeated input is usually billed at a lower rate.

    My personal habit: three rules that save the most tokens

    • Plan before acting: Have it lay out the implementation approach first, confirm it, then let it write code.
    • Review the diff, not the whole file: After a change, inspect it through a “show only the changes” view rather than reading the entire file.
    • Paste the actual error: When you hit an error, give it the full error text and the failing file directly—don’t just say “still not working” and make it guess.

    Also, if your team is on a paid subscription, remember to check usage and limits periodically. Knowing your numbers beats a surprise at the end of the month.

    Question 3: What exactly is MCP? Does everyone need to know it?

    “I keep seeing the term MCP. How does it relate to the coding assistant we use?”

    MCP stands for Model Context Protocol, an open protocol proposed and open-sourced by Anthropic in late 2024. You can think of it as the “USB-C” port of the AI world.

    Before MCP, connecting an AI to your company database, internal docs, or task system meant building a custom adapter for each one—lots of repetitive work and no shared standard. With MCP, as long as the other side provides a compliant Server, any MCP-capable client can plug in and use it.

    Its three roles

    • Host: the coding assistant you’re using.
    • Client: the part inside the host that establishes connections to each Server.
    • Server: a “capability plugin” developed by a third party or your own team, exposing three kinds of capabilities:
      • Tools: callable operations, like running a read-only SQL query or creating a ticket.
      • Resources: readable data, like a database schema or API docs.
      • Prompts: preset task templates, like a standardized code review workflow.

    When is MCP worth adopting?

    • Connecting to a database: When debugging a production issue, letting it query table structures and data directly is far more efficient than manual copy-paste.
    • Integrating internal systems: Look up requirements, defects, and pipeline status without switching back and forth between systems.
    • Extending local capabilities: Filesystem access, browser automation, cloud service operations—all can be wired in through existing Servers. For example, a filesystem Server lets the coding assistant read and write files outside the project directory.

    Three pitfalls to know in advance

    1. Permissions and keys. When giving a Server a database account, prefer read-only, and inject credentials through environment variables or a secrets manager—don’t write them in plaintext into a config file and commit it to the repo.
    2. Don’t install too many tools. Every tool’s description takes up context, and after installing dozens, the AI is actually more likely to pick the wrong one and tokens go up.
    3. Watch for supply-chain risk. A Server is essentially code that can act on your behalf. Before installing, check where it comes from and what permissions it requests. Never install a Server of unknown origin.

    To be blunt: MCP is an advanced capability, not an entry-level requirement. Get comfortable with the convention file and basic usage first, and pick up MCP when you hit a scenario that genuinely needs real-time access to external data—there’s plenty of time.

    Question 4: Everyone on the team uses it differently—how do we standardize?

    “The code a colleague generates with it is a mess stylistically, and all the review pressure lands on me.”

    This is the classic problem of rolling out a tool to a team. Once it’s in individual hands, usage takes on its own quirks; getting everyone to “march in step” takes three layers of constraints.

    Layer 1: Put the convention file in version control. Add the context convention file to version control and share one across the team. It’s like your team’s coding standards document—except it has one more reader: an AI.

    Layer 2: Capture high-frequency workflows with custom commands. Many coding assistants let you define “slash commands” in the repo, which are essentially reusable prompt templates.固化 the frequent tasks so newcomers don’t have to learn by word of mouth:

    1. # .claude/commands/review.md
    2. # Purpose: type `/review` to review the current changes against a shared standard
    3. Review the current git changes from the perspective of a senior engineer, focusing on:
    4. 1. Whether it follows the project's layering convention (no business logic in Controllers)
    5. 2. Whether there are SQL injection, null-pointer, or concurrency safety issues
    6. 3. Whether new logic has corresponding unit tests
    7. 4. Group the output as "Blocking issues / Suggested improvements / Optional optimizations," with a fix for each

    Layer 3: Wire it into review and the automation pipeline. Add an AI code review step to your CI pipeline to run a basic check on every commit. Human review can then focus on business logic and design tradeoffs.

    One often-overlooked scenario: onboarding new hires. Having the AI explain the call chain of an unfamiliar module is usually faster than reading docs—an indirect benefit of standardizing the tool.

    Question 5: Can I hand it a big refactor directly?

    “I want to upgrade the framework of an old module—dozens to hundreds of files. Can I trust it with that?”

    You can, but don’t go all-in in one shot. I usually work in five steps:

    1. Plan before acting. Have the AI read the relevant code and list the scope of impact, the steps, and the risks. If the plan doesn’t look right, adjust it first—don’t let it plow ahead.
    2. Narrow the scope of each change. Give each round a clear boundary: “only change files under this package,” “don’t touch config files,” so it doesn’t casually alter things it shouldn’t.
    3. Commit in stages. Commit after each small step. If something breaks, you can roll back quickly instead of hunting through hundreds of files.
    4. Use tests as a safety net. Add tests for core paths before refactoring. A refactor with no test net is dangerous no matter who does it.
    5. Make good use of subtasks. During the research phase, dispatch subtasks in parallel to read different modules and aggregate the findings back to the main thread, so the main context isn’t drowned in irrelevant code.

    There’s also a safer pattern: let the AI be the “executor” and the human be the “planner.” You define the goal, break it into stages, and set the acceptance criteria; it handles the implementation stage by stage and self-checks. The risk of a big refactor drops considerably.

    Question 6: Can it replace code review?

    “A colleague says we can skip code review from now on and just let AI do it. Is that reliable?”

    Not reliable, but it can make your review more thorough. My experience is that AI is the first filter, and humans are the final gate.

    What AI is good at and worth relying on:

    • Convention issues: consistent naming, layering, and error handling.
    • Common defect patterns: null pointers, unreleased resources, concurrency hazards.
    • Omissions: whether new logic has tests, and whether changes updated the docs.

    What AI is bad at and humans must own:

    • Business correctness: whether this logic is really what the product wants, and whether edge cases are handled.
    • Design tradeoffs: whether the abstraction is reasonable and whether it’ll block future extension.
    • Security assessment: questions about permissions and data compliance need business context to judge.

    As for “letting AI review AI-written code,” my advice is: read your own diff before submitting. Don’t commit code you don’t understand or can’t explain the reasoning for.

    Question 7: Why does it always “make things up”? How do I fix it?

    “Sometimes the generated code looks reasonable, then errors the moment it runs—it even invented a method that doesn’t exist.”

    This is an inherent trait of large models, commonly called “hallucination.” You can’t eliminate it completely, but you can cut it down substantially with constraints:

    • Provide the source of truth. For an uncertain API, paste the docs or the interface definition directly—far more reliable than letting it “recall.”
    • Make it verify before use. Prompt it: “search the codebase to confirm any method you’re unsure about; if you can’t find it, say so—don’t assume.”
    • Ask for evidence. Have it state “which file and which line this conclusion comes from” so you can check quickly.
    • Running it is what counts. For code with external dependencies, even if you can’t run it fully, do at least a syntax or type check.

    In a word: treat the AI like a well-read colleague who needs their claims verified, not an infallible encyclopedia.

    Question 8: Is there a cheaper and faster way to use it?

    “It’s strong on complex tasks, but even small changes take forever. Can it be lighter?”

    This is the technique I recommend most often: combine multiple models. Many coding assistants let you specify different models for different scenarios in the config. A typical setup:

    1. {
    2. "model": "strong reasoning model (default, for complex tasks)",
    3. "smallFastModel": "lightweight model (for simple tasks)",
    4. "permissions": {
    5. "allow": ["Bash(npm run test:*)", "Bash(npm run lint)"]
    6. }
    7. }

    Taking a CLI-based coding assistant as an example, my usual mix is:

    • Strong reasoning model by default: complex refactors, tough bugs, architecture design.
    • Lightweight model for subtasks: code search, quick summaries, simple rewrites.
    • Specify the model via environment variables: switch temporarily without editing the config.
    • Reduce interruptions with permission config: add safe commands like tests and lint to the allow list; dangerous operations still require per-run confirmation.

    In daily use, simple tasks respond much faster, and the output quality on complex tasks doesn’t drop noticeably.

    Question 9: How do you handle high-risk operations? Will company code leak?

    “It makes me nervous to let it run commands—what if it drops the database? Will our company’s code be used for training?”

    On security, I hold to “three red lines”:

    1. High-risk operations require human confirmation. Regardless of the tool’s default behavior, anything involving deletion, formatting, force push, or modifying production config must be approved manually. Use the permission config to explicitly exclude dangerous commands, and prefer running in a container or sandbox.
    2. Don’t let it read sensitive files. Explicitly exclude keys, certificates, and production config files in the convention file or ignore config.
    3. Keep the working tree clean and work on separate branches. Before letting it act, confirm there are no uncommitted changes, and do changes on their own branches so you can roll back at any time.

    On data privacy: Enterprise-edition tools usually commit to not using customer code to train models; individual editions depend on the specific terms. For data-sensitive companies, my advice is to prefer solutions offering dedicated instances or private deployment. For example, Baidu AI Cloud’s Qianfan platform offers dedicated instances and other deployment options to enterprises, which helps keep data within the company’s own boundary.

    At the team level, establish a tiered system:

    • Public projects: use normally.
    • Internal projects: use after desensitizing data.
    • Core sensitive code: go through private deployment or an enterprise edition.

    Question 10: Do programmers who don’t write code still have value?

    “AI can write code now—are programmers going to be replaced?”

    The stronger the tools, the more valuable human judgment becomes. The three shifts I’ve felt most:

    1. From “writing code” to “defining the problem.” I used to spend most of my time typing out implementations; now I spend more time breaking requirements down clearly and stating the constraints. AI writes code fast, but it doesn’t know what should be written—only a human does.
    2. From “implementer” to “verifier.” Code that looks right isn’t necessarily right. Being able to quickly judge whether a solution is sound, whether test coverage is enough, and whether performance meets the bar—that’s the core competency.
    3. From “single-point development” to “system design.” How to divide modules, how data flows, how to handle failures—these tradeoffs have no standard answer from AI.

    Advice for three kinds of people:

    • Beginners: Don’t lean on AI from the start. Write a certain amount of code by hand to build a solid foundation, then use it to speed up; keep asking about code you don’t understand until you can explain it yourself.
    • Senior engineers: Put your energy into architecture, review, and hard problems, and let AI handle the repetitive work.
    • Team leads: Establish standards and usage policies early, and watch your team’s usage and costs. Using a cloud platform’s logging, monitoring, and alerting capabilities to visualize call volume and consumption trends is far more effective than guessing.

    Conclusion: Treat AI as a colleague, not a wishing well

    Looking back over this past year, my strongest takeaway is: the quality of a coding assistant’s output depends largely on how you “manage” it.

    • Write a concise context convention file, and you’ve handed it an onboarding guide.
    • Manage tokens well, and you’re helping it allocate its effort sensibly.
    • Guard the two gates of acceptance and permissions, and you’ve drawn its boundaries.
    • Combine models and subtasks, and you’re putting the right person on the right job.

    It won’t replace you, but it will amplify you: amplify your rigor, and also amplify your carelessness. If you’re using one too, feel free to share your experiences and the pitfalls you’ve hit in the comments.