Forms, Models, and Plugin Practices for AI Coding Assistants
AI coding assistants work best when teams define task boundaries, choose the right form factor, layer models by job, and wrap repeated engineering actions in constrained plugins. This article outlines a practical framework covering four assistant forms, evaluation criteria, plugin contracts, multi-turn controls, and day-to-day governance.
AI coding assistants have moved beyond a chat window. They can read code, edit it, run checks, and draft change notes as part of the development workflow. What determines the result is not how closely the interface resembles a chat app, but how the assistant connects to the repository, which models it uses, how plugins fill engineering gaps, and how the team constrains its permissions and output. The sections below offer a practical framework across form factors, comparison criteria, plugin design, and advanced usage.
1. Define the problem: where the assistant sits in the workflow
Many teams adopt an assistant and only get code that is written quickly and changed messily. The root cause is failing to set task boundaries first. Split the assistant’s responsibilities into four types, and define inputs, outputs, and acceptance for each.
- Understanding and retrieval. Read the directory layout, locate call chains, and explain unfamiliar modules. Output should cite file paths and key symbols, not a vague overview.
- Local implementation. Add functions, change branches, or fill in error handling under existing interfaces, types, and test constraints. Output should be a reviewable diff, not a full-file rewrite.
- Verification and repair. Make the smallest change based on compiler, static-analysis, or test failures, and state the failure cause plus uncovered risk.
- Delivery support. Draft change notes, risk lists, and rollback points. This output supports review; it does not replace it.
Choose a form factor only after those boundaries are clear. Otherwise even a strong model will roam an unconstrained repository and produce large changes that are hard to merge.
2. Four common forms and when they fit
The same coding capability usually lands in four forms. They share models and prompting strategy, but differ in permissions, context, and collaboration.
2.1 In-editor
The assistant sits in a sidebar or inline completion and can see the current file, symbols near the cursor, and some diagnostics. It fits small edits, boilerplate, and explanations of a selected snippet. Feedback is fast and context feels natural, but cross-directory reasoning is easy to truncate, and a locally correct change can be mistaken for a globally correct one. Limit the scope of each edit, and require the assistant to list the files it actually read.
2.2 Terminal and repository agent
The assistant works from the repository root on the command line. It can read multiple files, run agreed checks, and propose changes as patches. It fits pre-work for cross-module refactors, batch fixes for obvious type errors, and targeted repairs from failure logs. The key control is a command allowlist: read-only search, formatting, type checking, and unit tests only. Do not allow arbitrary dependency installs, outbound network access, or edits to credential files.
2.3 Standalone session driven by a spec
The developer first writes the goal, constraints, non-goals, and acceptance commands, then hands that spec to the assistant to execute step by step. This fits tasks whose requirements are fairly complete but whose implementation path is not. The spec should at least name the directories involved, modules that must not change, compatibility requirements, and checks that must pass. A long session without a spec drifts, and later code leaves the original interfaces.
2.4 Controlled form inside the pipeline
In continuous integration or a review bot, the assistant only comments, flags risk, or suggests a patch from a failure log. It does not merge. This fits explaining style rules, noting missing tests, and adding a second reminder on security-sensitive changes. It must pull diffs read-only; any write-back needs human confirmation. Treating it as an auto-merger sends model hallucinations straight to the main branch.
These forms can coexist: the editor for daily work, a repository agent for harder tasks, and pipeline comments at review time. Keep one shared project brief when switching forms so each form does not invent its own rules.
3. What to compare against other development tools
Comparison should not stop at “which one chats better.” Evaluate on the points below, using sample tasks from a real repository.
- Context access: Can it read code by symbol, path, and diff, instead of stuffing the whole repository into one request?
- Edit granularity: Does it default to patches and function-level edits, or does it tend to rewrite files?
- Repeatability: Given the same spec, do interfaces and directory structure stay stable across runs?
- Verification loop: Can failure output from check commands become the next turn’s input?
- Permission boundary: Are secrets, production config, external network access, and writes off by default?
- Cost and latency: How do long context, multi-step tool calls, and peak-time queueing affect interaction?
- Audit: Are prompts, paths read, commands run, and the final diff retained?
Free or low-cost models fit explanation, drafts, and low-risk boilerplate. Changes that touch core transactions, permissions, or data migration should use a higher-quality model the team has evaluated, with mandatory human review. Being free to call is not the same as being free to land on the main branch without review.
Layer model choice by task: a fast model with enough context for retrieval and summaries; a model that follows instructions more reliably for cross-file reasoning and test repair; a lower-cost model for commit notes. Layering works only if the output format stays the same, so swapping models does not change how the team accepts work.
If the team already stores build artifacts in cloud object storage and watches pipelines with logs and monitoring, archive assistant run records the same way. Do not let the assistant hold production credentials. When cloud resources are needed, request short-lived access only through the existing release system.
4. Plugins: turn a general assistant into a repository-specific tool
Plugins are not a feature pile. They wrap actions that are repeated, error-prone, and have clear inputs and outputs into controlled tools. A sound plugin has a single responsibility, validated parameters, explainable failures, and least privilege by default.
Build these six plugin types first.
- Repository map. Report directory roles, entry files, and key interfaces. Do not scan secrets or dependency cache directories.
- Symbol navigation. Given a function or type name, return definitions, references, and test locations. Cap the number of results so context does not explode.
- Diff constraints. Allow edits only on specified paths, and reject deletion of tests or weakening of assertions.
- Check runner. Wrap fixed commands for formatting, type checking, and unit tests, and return the exit code and a log summary unchanged.
- Standards lookup. Read team coding conventions, error-code tables, and interface compatibility rules, and inject a short constraint before generation instead of pasting an entire handbook.
- Change notes. From the diff, draft what changed, why, how it was verified, and remaining risk, for the reviewer to edit.
Plugin descriptions must state preconditions and side effects. “Run unit tests,” for example, must declare the working directory, timeout, and whether writing coverage files is allowed. Vague descriptions cause the model to misuse tools or rerun expensive commands.
A language-neutral sketch of a plugin contract:
name: run_checkinput:command_id: enum[format, typecheck, unit]timeout_sec: int (1-600)output:exit_code: intsummary: string # truncated key log linesforbidden:- network- read secrets- modify files
Once the contract is stable, prompts only choose tools and explain results. They do not invent commands on the spot. That sharply reduces the chance that the model assembles a dangerous command in the moment.
5. Advanced usage: keep multi-turn work under control
5.1 Project brief and task card
Keep a short project brief in the repository: stack, directory boundaries, prohibitions, common check commands, and code style. Attach a task card to each task with the goal, non-goals, related paths, and definition of done. The brief stays stable; the task card changes with the request. Both must stay short. Long text is ignored or crowds out code context.
5.2 Read before write
Force the first turn to be read-only: list relevant files, name uncertainties, and propose a change plan. Allow writes only after a person confirms. For public interfaces, persistence layout, and permission checks, an unconfirmed plan must not enter editing.
5.3 Minimal diffs and rollback
Prefer edits to existing functions. Avoid unrelated reordering, bulk renames, and formatting an entire directory. Each turn should fix one failure cause. If tests still fail, keep the previous diff and do not mix in a new requirement in the same turn.
5.4 Failure-driven, not imagination-driven
Feed raw compiler, static-analysis, and test errors into the next turn, and require the assistant to cite the error location. Do not allow “while we’re here” optimization without failure evidence. Open optimizations as separate tasks, with a performance or readability reason attached.
5.5 Human gates
Before merge, someone who knows the module should check that behavior matches the task card, tests actually cover the new branch, generated code or config was not changed by mistake, and logs do not leak sensitive data. The assistant may list a self-check; it may not mark the check as passed for a person.
5.6 An evaluation set
Pull ten to twenty representative tasks from past defects, covering code reading, adding tests, fixing type errors, and explaining diffs. Whenever the model, plugins, or prompt template changes, rerun the same set: pass rate, average turns, lines of unrelated change, and whether permission rules were broken. Without an evaluation set, you cannot tell whether a “stronger plugin” is actually stronger or only looks good on a demo repository.
6. Security and team governance
An assistant that can read the repository can also read secrets, customer data, and internal interfaces. Governance should include:
- Exclude secret files, local environment files, and production config by default.
- Logs should keep only paths, command identifiers, and truncated error summaries.
- Scan for sensitive data before calling an external model. If you cannot confirm it is clean, handle the task locally or drop it.
- Dependency upgrades, database migrations, permission models, and cryptography-related code are off limits for automatic edits by default.
- Review plugins, prompt templates, and the project brief so personal prompts are not unreproducible inside the team.
- Record model and plugin versions so defects can be traced.
Free models, trial quotas, and personal accounts are not appropriate for company code. Use a shared account, shared audit, and a shared data-retention policy, and limit assistant access to the repositories that need it.
7. A daily workflow you can run
- Write a task card with paths, non-goals, and acceptance commands.
- Use the editor or a read-only agent to collect relevant files and confirm the plan.
- Make the smallest change inside the allowed paths.
- Run allowlisted checks and feed failure logs into the next turn.
- Generate change notes and a risk list.
- Have a person review the diff, tests, and notes, then follow the existing merge process.
- Turn repeated actions into plugins, and write repeated constraints into the project brief.
Under this workflow, the assistant’s value is a shorter, stable loop of locate, change, and verify—not a one-shot block of code that only looks complete. Treat form-factor choice, model layering, plugin contracts, and the evaluation set as engineering assets and keep maintaining them. When a task exceeds the current context or permission boundary, split it or fall back to a human implementation. Do not loosen constraints to buy speed.
