A coding agent gets a small task and adds a package to complete it. The code works, the test passes, and the lockfile grows. The reviewer now has another dependency to evaluate, update, and eventually remove, even if the standard library or an existing package already did the job.
We can make dependency choices explicit before the agent edits the manifest. The useful rule is not "never add packages." It is "show why the existing capabilities are insufficient and get the right person to approve the tradeoff." A legitimate new dependency should have an owner and a reason that a future maintainer can find.
Check the date requirement
Suppose a repository needs to display a date returned by an API. An agent proposes adding a date library. Before accepting the change, we ask it to inspect the runtime, existing dependencies, and the exact input and output requirements. We also ask it to name the file where the existing date formatting belongs.
The agent finds that this particular task only needs a fixed, documented representation and that a suitable built-in API is already available in the runtime used by the project. We ask it to implement the narrow behavior using that API and test the expected input, output, and relevant boundary cases. A reviewer checks the runtime support and the test rather than accepting the agent's assertion on faith.
A different task could have different requirements. If the application needs complex timezone rules or locale behavior beyond what the existing runtime and code provide, a maintained package may be reasonable. The decision should name the gap, compare the available options, and account for compatibility and maintenance. The example does not establish that built-ins are always sufficient for date handling.
Put the rule where the agent will read it
Write the policy into the repository's agent instructions or doctrine. A practical version could say: "Before changing a dependency manifest, identify the existing capability checked, explain the missing behavior, and request approval for a new package. Do not change the manifest while approval is pending." Add whatever security and license checks the team requires for a proposed dependency.
We can ask the agent to put this evidence in its plan before it edits. When it submits the pull request, the reviewer checks both the manifest and lockfile. Unexpected lockfile churn deserves an explanation even if no new direct dependency appears in the manifest. Automated dependency and license scanners can help inspect what was added; the agent's explanation does not replace them.
AI Lint supplies a checklist and structured architecture and language doctrine for an agent to read before code changes. Its paid packs can be modified for private internal use, so we can add our dependency rule alongside the supplied material. The wiring prompts connect that instruction to tools such as Claude Code, Cursor, and Copilot. The exact policy above is our example of a team rule, not a claim that the product automatically blocks a package installation.
The checklist only helps when it is actually used. Ask the agent which files it read and what existing code it inspected. If it says there is no existing solution, verify the search against the relevant part of the repository. A model can overlook a helper or confidently misread the package manifest. A human reviewer remains responsible for the decision.
Make exceptions reviewable
When a package is justified, record what it supplies, why the existing options do not suffice, and who will maintain the integration. Check the package and its transitive dependencies with the organization's normal process. Keep the decision proportionate: a short note can be enough for a small change, while a package that handles credentials or money needs closer scrutiny.
AI Lint includes an override protocol for conflicts with doctrine, documenting the reason, risk, and mitigation for human approval. A team can use the same habit for dependency exceptions: make the tradeoff visible in the pull request instead of silently changing the rules after the fact.
The Personal App Pack costs $49 once and covers one individual's personal and internal commercial work. The free edition is for personal and evaluation use by individuals only, not commercial or company use. For a whole legal entity with unlimited internal users, the Company App Pack is $299. Choose the license that matches who will use the doctrine.