Repository navigation
Description
Problem
When consuming agent packages via apm install, the .agent.md files deployed to .github/agents/ include a tools: list in their YAML frontmatter. For example, the developer agent ships with:
tools: [vscode, execute, read, edit, search, web, browser, 'github/*', 'microsoft-learn/*', 'pylance-mcp-server/*', todo]As users add new capabilities (e.g., additional MCP servers from other packages), they need to grant agents access to those tools. Today the only option is to manually edit the deployed .agent.md files — but running apm install --update overwrites those files with fresh copies from the package, discarding the customizations.
There is currently no mechanism to declare tool overrides that survive package updates.
Proposed Solution
Add an overrides section to the consumer's apm.yml that declares tool-level patches, applied by APM during install/update.
# apm.yml (consumer project)
overrides:
tools:
append: ['my-new-mcp/*'] # Injected into ALL agents
agents:
developer:
tools:
append: ['custom-tool'] # Added to developer only
remove: ['browser'] # Removed from developer only
tech-lead:
tools:
append: ['my-new-mcp/*']Semantics:
overrides.tools.append/overrides.tools.remove— applied to every deployed agentoverrides.agents.<name>.tools.append/.remove— applied to a specific agent (by matching thenamefield in frontmatter)- Per-agent overrides are applied after global overrides
appendadds tools not already present;removestrips tools that exist- Overrides are re-applied on every
apm install, so--updateis safe
Where it runs: After AgentIntegrator copies the .agent.md file from apm_modules/ to .github/agents/, a post-deploy step reads the overrides section, patches the YAML frontmatter tools: list, and writes the final file.
Design Principles
- Packages own the base, consumers own the overrides — same pattern as npm
overrides, Helmvalues.yaml, Kustomize patches - Declarative & single source of truth — all customization lives in
apm.yml, not scattered in deployed files - Start simple, evolve later —
append/removeon tool lists covers the primary use case; richer override capabilities (model, description, body) can be added incrementally
Future Enhancement: Overlay Files
A natural evolution of this feature would be overlay files (Kustomize-style). Users would place partial override files in a convention directory:
.apm/overrides/agents/developer.agent.md
Containing only the frontmatter fields to merge:
---
tools: [vscode, execute, read, edit, search, web, 'github/*', 'my-new-mcp/*']
---During install, APM would deep-merge the overlay on top of the package version before deploying to .github/agents/. This would allow overriding any frontmatter field (tools, model, description) and potentially appending instructions to the agent body. This is out of scope for the initial implementation but the overrides schema should be designed with this evolution in mind.
Scope
- Add
overridesschema toapm.ymlmanifest model - Implement tool-list patching in
AgentIntegratorpost-deploy - Validate override targets (warn if an agent name doesn't match any deployed agent)
- Update
manifest-schema.mddocumentation - Add tests for global overrides, per-agent overrides, and combined scenarios
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
danielmeppiel commentedon Mar 16, 2026
Thanks for the detailed proposal Sergio Sisternes (@sergio-sisternes-epam). We've been thinking about this deeply and will take a different architectural direction — one that treats APM's primitives as a language rather than config.
The core insight:
.agent.mdfiles are already class definitions — YAML frontmatter = attributes, markdown body = behavior. Overrides should live in the language, not the manifest. In the same way that npm customization happens throughimport+extendsin code (notpackage.json), APM customization should happen throughextends:in.agent.mdfiles, notapm.yml.An option is to add an
extends:field in agent frontmatter for language-native inheritance. Below is just as an example and implementation end result will likely differ. This is to invite discussion.apm installresolves the inheritance chain and deploys the fully-merged result. The engine (Copilot/Claude) never seesextends:— just the resolved agent, like a bundler stripsimportstatements.This would add:
apm.ymlstays clean (deps + metadata). All customization in.agent.mdfiles.apm build—apm installalready IS the build. Inheritance resolution is added to the existing deploy step.extendsmodel as JS classes, Python inheritance, CSS cascade.However that puts APM in language definition territory, where other players are still evolving their markdown frontmatters very quickly. I'd rather park this for some time and see how it evolves rather than having APM move out from package management into language definition too early.
github-actions commentedon Apr 26, 2026
Triage decision
needs-designProposed labels
Milestone
nullSuggested next action
Open a design doc defining: (a) the
overridesschema in theapm.ymlmanifest model, (b) the extension point inAgentIntegrator/BaseIntegratorfor post-deploy transforms, and (c) how the overlay-file future direction relates to this schema without creating redundant surfaces.Suggested issue comment
Per-lens notes (collapsed)
DevX UX Expert -- User-Need Reviewer
The user task is clear: customize agent tool lists without forking the package or maintaining manual patches. The
overridesAPI surface follows familiar patterns (npm, Helm, Kustomize) and theappend/removesemantics are self-explanatory. The "overrides are re-applied on every install" guarantee is the right ergonomic contract. No UX concerns with the proposal itself; the risk is in implementation complexity leaking into the user surface.Supply Chain Security Expert -- Risk-Surface Reviewer
Tool list overrides in agent frontmatter are capability declarations for the AI agent, not executable code in the traditional sense. No supply chain risk in the npm/PyPI sense. The schema validator for
overridesshould reject unknown fields and non-string tool names to prevent injection of unexpected values. Notheme/securityrequired.OSS Growth Hacker -- Contributor-Tone Reviewer
Not activated -- author is an established collaborator filing a design-level feature request with no tone-tuning needed.
Python Architect -- Architecture Reviewer
This requires: (1) extending the manifest model (apm.yml parser/validator) with a new
overridesschema, (2) a post-deploy transform step inAgentIntegratorthat reads overrides and patches YAML frontmatter, (3) re-application on every install. The existingBaseIntegratorhas no post-deploy hook pattern; adding one cleanly requires design. The frontmatter patching must handle edge cases (tool absent on remove, duplicate on append). The overlay-file direction mentioned in the issue needs to be scoped so the initial schema does not foreclose it.status/needs-designis the right call.Doc Writer -- Documentation Reviewer
New user-facing schema block in
apm.ymlrequires docs: a reference page or section on theoverrideskey, with examples of global and per-agent tool patching.area/docs-sitesecondary label is warranted. The implementation PR must include docs or it is incomplete by APM's Rule 1.APM CEO -- Triage Arbiter
Sound direction, genuine user need, right mental model. The Python Architect correctly identifies that a post-deploy transform hook in
BaseIntegratoris a non-trivial extension point that warrants a design doc before code lands. Settingstatus/needs-designand assigning no milestone keeps this off the sprint until design is complete. The "overlay files" future direction is explicitly in scope for the design doc -- it should not be a surprise refactor later.{ "decision": "needs-design", "decision_detail": "Requires design doc covering: overrides schema in apm.yml model, post-deploy transform extension point in BaseIntegrator/AgentIntegrator, and overlay-file future direction compatibility.", "theme": "theme/portability", "areas": ["area/package-authoring", "area/docs-site"], "type": "type/feature", "status": "status/needs-design", "priority": null, "preserved_labels": [], "milestone": null, "next_action": "Open a design doc covering the overrides schema, the BaseIntegrator post-deploy transform extension point, and overlay-file future direction compatibility.", "comment_markdown": "This is a real pain point -- customizations that survive `apm install --update` are a genuine gap, and the npm `overrides` / Helm `values.yaml` / Kustomize mental model is exactly the right analogy.\n\nThe direction is sound. Before code lands, we need a design doc to settle three questions:\n\n1. **Schema structure**: how does the `overrides` block fit into the existing `apm.yml` manifest model? What validation rules apply?\n2. **Extension point**: `AgentIntegrator` (and potentially `BaseIntegrator`) needs a post-deploy transform hook. What is the minimal interface that does not break other integrators?\n3. **Overlay-file future**: the Kustomize-style overlay files you mention in \"Future Enhancement\" should be designed now so the initial `overrides` schema does not close off that evolution path.\n\nOnce those three questions have written answers linked here, the implementation is straightforward. If you want to drive the design doc, that would be a great next contribution." }2 remaining items
danielmeppiel commentedon Oct 2, 2026
Human decision: rejected as proposed.
Do not introduce APM-owned tool-list patching, global/per-agent override rules, overlay merging, or an agent inheritance language under this request. Moving the same machinery from apm.yml into an extends field would still make APM responsible for interpreting and producing modified agent behavior.
This replaces the earlier discussion/parking of the inheritance direction. The current choice is native-first distribution and governance, not an APM-defined language for rewriting consumed agents. No design or implementation of that system is invited, and it is not deferred for later delivery.
The user need is understood: consumers want agent customization that survives updates. This decision rejects the proposed APM mechanism, not that need. A maintained local/forked agent or a documented native-client feature may be appropriate, but equivalent native customization is not claimed to exist on every host.
Dependency-version overrides in other package managers are not equivalent to rewriting an installed agent's tools or behavior. No existing supported behavior is removed by this decision; any future native/standard integration requires its own scope.
Recorded by Copilot on behalf of Daniel Meppiel (@danielmeppiel) after his explicit choice to approve the scoped decisions for #293, #1883, and #1894. The public comment timestamp records publication. No issue closure, implementation assignment, or release commitment is implied.