Maya has her coding agent ready for my-react-app. Leo just cloned the same project. Its setup names agent targets and context dependencies—but a clone alone does not tell Leo which external instructions Maya installed. “How is this useful?”
Version the context your coding agent depends on, not just your app
A manifest, a lockfile, and reviewed update PRs make agent setup a dependency-management problem—not a ritual of copying instructions.
Skills, prompts, instructions, plugins, and MCP servers can all influence an agent’s behavior. You want Leo to reproduce the project’s declared inputs, not reverse-engineer Maya’s machine. The Next Dependency Problem Is Inside Your AI Agent
Read Amit Merchant’s original post ↗
What is from the post, and what is fictional?
The React project, dependency paths, and target names come from the post. Maya and Leo are teaching names for its onboarding story. Later, F, C, R1, R2, and D are fictional identity records, not releases, commit hashes, or real lockfile syntax. The harness in the simulation is imaginary. Source: “How is this useful?” and the React manifest.
Put the agent’s inputs under dependency management
Treat agent context as versioned dependencies: declare it in apm.yml, install compatible primitives with APM, preserve resolved identities in apm.lock.yaml, and review supported Dependabot update PRs as changes to agent inputs. The Next Dependency Problem Is Inside Your AI Agent
Record the external instructions and capabilities the project needs instead of relying on copied setup. A lockfile lets another developer install the same pinned dependencies; update proposals make later changes visible for review. Source: “How is this useful?”
In this run, Maya declares the post’s entries and targets claude, copilot, and cursor. She runs apm install; Leo uses the shared manifest and lockfile. Weekly Dependabot checks can propose supported git updates, but Maya still reads the changed instructions before accepting them. Source: React manifest, “How is this useful?”, Dependabot configuration.
A harness is the coding-agent environment around the model, supplying instructions and tools. Deployment depends on which primitives it supports. The post calls for versioning, reproducible installation, update management, and security controls for these inputs. Source: The Next Dependency Problem Is Inside Your AI Agent.
Another supply-chain layer, not a replacement
The post extends familiar application and CI/CD dependency-management practices to agent context. It presents a package-management workflow, not a new learning algorithm or graph architecture. Source: The Next Dependency Problem Is Inside Your AI Agent.
A request, a resolution, and a recorded identity
A manifest says what the project requests. A lockfile records what was resolved. The installer connects them. Source: React manifest and installation paragraph.
apm.yml— request- Declares external components and targets. Indentation nests entries; a dash starts a list item. The example separates
dependencies.apmfromdependencies.mcp. Source: React manifest. apm install— resolve and deploy- Resolves and installs dependencies, deploying each primitive only to harnesses that support it. Source: installation paragraph.
apm.lock.yaml— record- Records resolved versions, exact commits, and content hashes for subsequent reproducible installation. Source: installation paragraph and “How is this useful?”
Notice the difference between a requested name and a resolved identity: the lockfile bridges installations. Source: installation paragraph; identities are a teaching example.
Exact dependency paths beside the short labels
Source: React manifest.
The article’s full apm.yml
name: my-react-app
version: 1.0.0
description: "A simple React app"
targets: [claude, copilot, cursor]
type: hybrid
includes: auto
dependencies:
apm:
# Teach the agent to build better frontend interfaces
- anthropics/skills/skills/frontend-design
# Reusable engineering and context-management guidance
- github/awesome-copilot/plugins/context-engineering
# React best practices and performance guidelines
- vercel-labs/agent-skills/skills/react-best-practices
mcp:
# Model Context Protocol server providing live
# documentation access for coding assistants
- io.github.modelcontextprotocol/servers-docsSource: React manifest.
Our inference: the post shows type: hybrid and includes: auto without explaining them, and supplies no example lockfile. We do not infer their deeper semantics.
Will Leo get the newer skill?
Teaching identities; source for the workflow: “How is this useful?”
R1. The second developer installs the same pinned dependencies from the manifest and lockfile. R2 being available does not mean the project has accepted it. The tempting R2 answer treats installation as an unconditional refresh and loses the onboarding guarantee. Source: “How is this useful?”; tokens are fictional.
Worked teaching example. Keep the post’s manifest unchanged. F, C, R1, and D stand for opaque resolved records; only the React record can change. Assume all entries work in this imaginary harness. R2 becomes available after Maya’s first installation. Source: React manifest and “How is this useful?”
- The manifest supplies requests.
Requests: . Targets:
claude, copilot, cursor. These names alone are not a recorded resolved identity set. - Maya installs for the first time.
Without a lock, this toy selects the supplied available records. All are supported here.
- The lockfile preserves the resolution.
An upstream change is not itself an accepted change to the project’s lockfile.
- Leo installs using those pins.
The onboarding promise concerns the same pinned inputs, not automatic adoption of every upstream revision. Source: “How is this useful?”
Identity-selection test cases
This tests the projection below, not real network resolution or APM execution.
Same declared inputs—not a promise of identical code
Search and copy versus install declared pins
Same input: Leo clones my-react-app and needs its context components.
Configure the environment, find skills, copy instructions. The procedure does not itself supply Maya’s recorded identities.
Run apm install with the shared files to obtain the same pinned dependencies, subject to harness support.
The difference is project-recorded identities, rather than reconstruction from someone’s manual setup. Source: “How is this useful?”
Our inference: matching these inputs does not establish identical generated code. Model versions, randomness, and changing live service responses are not controlled or compared in the post.
Reproducing inputs is not reproducing outputs
Same input: two developers install the same manifest and lockfile, then request a React change.
Matching identities alone predicts identical generated code.
The claim stops at pinned dependencies and declared capabilities. Source: “How is this useful?”
Our inference: the controlled object is the declared dependency set, not the entire model-and-service execution. Generated-code equality remains unestablished.
What about the post’s reliability slogan?
Our inference: “the code your AI agent writes is only as reliable as the context and capabilities it works with” is a motivation, not a quantified quality result. The post reports no quality measurement or comparison baseline.
An update PR changes what your agent reads
Read the changed instruction. Agent behavior can change without an application-source change. A regenerated lockfile records the dependency change; the tempting automatic-accept answer mistakes consistency for content review. Source: the post’s update-content warning.
An update PR is a proposal, not acceptance. The example checks the apm ecosystem weekly at the repository root. Dependabot proposes supported git dependency updates and regenerates apm.lock.yaml when present. Source: Dependabot configuration and surrounding text.
- Dependabot version updates
- The manifest supplies supported git dependencies to check. Dependabot opens update PRs and maintains an existing lockfile. Source: Dependabot version updates paragraph.
- Reviewing the actual content
- Read the changed skills or instructions before accepting the update, especially when the agent can reach tools, repositories, or external services. Source: the post’s update-content warning.
The article’s .github/dependabot.yml
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "apm"
# Replace with the subfolder path if your
# apm.yml is not in the root directory
directory: "/"
schedule:
# Options include "daily",
# "weekly", or "monthly"
interval: "weekly"Change directory to the folder containing the manifest when it is not at the root. Weekly is the configured cadence, not a measured update latency. Source: Dependabot configuration.
The stated scope is supported git dependencies, with lockfile regeneration when a lockfile already exists. Source: Dependabot version updates paragraph.
Preserve pins, then break compatibility
Goal: keep Leo on Maya’s pinned React guidance despite an upstream change, then find a case where matching pins still cannot deploy every requested primitive.
Tokens are symbolic identity records, not actual releases. The support switch is not mapped to any named product.
Try these
- Keep lock R1; switch upstream from R1 to R2. Watch the selected React identity and the difference flag.
- Remove the lock with upstream R2. Inspect the returned symbolic lock.
- Restore lock R1 and disable documentation support. Compare selection with deployment.
Selected identities
Resolved lock records after this toy install
Deployed entries
Unsupported entries
This is identity selection, not a PR or security verdict.
A supplied lock identity controls selection even when the available record changes; support still controls deployment. The toy isolates these two rules from the post’s workflow. Source: installation paragraph and “How is this useful?”
What the pure model keeps—and leaves out
The function installView(lockReact, availableReact, docsSupported) returns selected records, records after installation, deployed records, unsupported names, and an upstream-difference flag. With no lock, it directly selects the supplied available record; otherwise it keeps the lock identity.
Only the React record varies. The three apm entries are always supported in this fixture; only the documentation server can be unsupported. No full version resolution, network access, transitive dependencies, filesystem writes, PR generation, safety checking, model execution, or output determinism is simulated.
The “After a reviewed update” preset assumes review and acceptance already occurred. It does not perform or certify review.
A useful configuration example, not a benchmark
Declaration
The post’s React manifest targets claude, copilot, and cursor, with three apm dependencies and one mcp documentation server. This makes the declaration-and-install workflow concrete. Source: React manifest.
Onboarding
Its story says the second developer runs apm install and obtains the same pinned dependencies and declared capabilities and instructions. Source: “How is this useful?”
Maintenance
The example sets package-ecosystem: "apm", directory: "/", and interval: "weekly". The described automation proposes supported git updates and regenerates lockfiles when present. Source: Dependabot configuration and version updates paragraph.
Our inference: these are examples, not measurements. The post supplies no installation timings, compatibility measurements, reliability rate, quality or productivity gain, security evaluation, execution transcript, controlled comparison, or benchmark baseline.
Our inference: the onboarding narrative does not demonstrate identical generated code. Weekly is a configured schedule, not measured update latency; the stated scope does not establish a universal update path for all context components or MCP servers.
What this workflow does not settle
Content remains consequential. Changed skills or instructions can alter behavior without application-source changes. Review matters particularly with access to tools, repositories, and external services. Source: update-content warning.
Support is conditional. Deployment requires harness support; the described update automation covers supported git dependencies. Source: deployment and Dependabot paragraphs.
Our inference: the post leaves several boundaries open:
- No measured improvement to productivity, reliability, security, or code quality.
- No established output determinism or control of model versions, randomness, and live service responses.
- No trust policy, permission model, or malicious-package defense, despite naming security controls as a requirement.
- No real lockfile example, full compatibility matrix, or explanation of
type: hybridandincludes: auto.
Open questions for an actual deployment
- Which primitives are supported by each target harness?
- What trust, permission, and malicious-content controls are needed?
- Which dependencies beyond the described supported git dependencies have automated updates?
- What additional controls would let us study generated-output reproducibility rather than dependency-input reproducibility?
Glossary
- Agent context dependencies
- External skills, prompts, instructions, plugins, and MCP servers on which agent behavior depends. Source: The Next Dependency Problem Is Inside Your AI Agent.
- Agent Package Manager (APM)
- The tool presented for declaring, installing, and reusing externally maintained agent context. Source: APM introduction.
- apm.yml
- The project’s manifest of requested components, with target environments in the example. Source: React manifest.
- apm install
- Resolves and installs dependencies; in onboarding, reads the manifest and lockfile to install pinned inputs. Source: installation paragraph and “How is this useful?”
- apm.lock.yaml
- Records resolved versions, exact commits, and content hashes for reproducible subsequent installations. Source: installation paragraph.
- Dependabot version updates
- Proposes supported git dependency updates in PRs and regenerates a lockfile when present. Source: Dependabot version updates paragraph.
- MCP documentation server
- The example’s Model Context Protocol server for live documentation access; the post does not explain the protocol. Source: React manifest.
Explain it without the diagram
Answer each question in your head before opening the answer.
Reconstruct the mechanism
A manifest requests the React guidance, the lockfile records R2, and upstream exposes R1 in the toy. Which identity is selected, and which input determines it?
Answer and reasoning
The supplied lock identity determines the subsequent installation. The toy flags a different available identity; it selects identities, not network availability. Source: “How is this useful?”; this is a teaching fixture.
Transfer it to another instruction
A project declares a reusable testing instruction. Its update PR changes only that instruction and the lockfile, and the agent can access a repository. What should the reviewer inspect? What does the regenerated lockfile fail to prove?
Answer and reasoning
Inspect the changed instruction and its implications for repository access. Context changes can alter agent behavior without an application-source change. Source: update-content warning.
Our inference: a regenerated lockfile records the update, but does not prove that the instruction is safe or appropriate.
Locate the boundary
Two developers verify matching manifest and lockfile identities, yet their agents produce different patches. What did the workflow reproduce, and what remains unestablished?
Answer and reasoning
It reproduced declared pinned dependency inputs, subject to harness support. Source: deployment paragraph and “How is this useful?”
Our inference: it did not establish identical patches or control model versions, inference randomness, and live external responses. The post’s promise is capabilities and instructions, not evaluated deterministic execution.