Skip to content

[FEATURE] Copilot CLI user-scope instructions: can apm install -g write copilot-instructions.md #650

Description

@Kacie2025

Is your feature request related to a problem? Please describe.

We're trying to use apm install -g to bootstrap Copilot CLI for our team. Looking at the source, targets.py marks Claude as fully supported at user scope, but Copilot CLI has instructions listed in unsupported_user_primitives. Copilot CLI doesn't read *.instructions.md files from a subdirectory at user level. It only reads one specific file: ~/.copilot/copilot-instructions.md. APM doesn't write to that file, so there's no way to get instructions deployed globally for Copilot through APM today.

Describe the solution you'd like

Support deploying instruction primitives to ~/.copilot/copilot-instructions.md at user scope. Maybe by concatenating instruction primitives into that single file, or adding a special case mapping for Copilot.

Describe alternatives you've considered

  • Placing content in ~/.copilot/agents/*.agent.md. Copilot picks up the agent, but doesn't load its content into every conversation. Agents are on demand, not
    always on like instructions.
  • Writing copilot-instructions.md via a script. Works but means maintaining config outside of APM.
  • Using project level apm install for .github/instructions/. Works but requires being inside a repo.

Activity

  1. added
    enhancement
    needs-triage
    on Apr 9, 2026
  2. danielmeppiel commented on Apr 9, 2026

    @danielmeppiel
    Collaborator

    Why not working on a team level package with the instructions that need to be deployed globally?

    If it's better to segregate concerns at your scale, a better way is to make sure you leverage apm-policy.yml to mandate instructions packages per project. You can place that in the GitHub org if you use GitHub.

    Concatenation in a monolithic global instructions file is an antipattern and won't work well with LLMs.

  3. github-actions commented on Apr 26, 2026

    @github-actions

    Triage decision

    accept

    Proposed labels

    theme/portability
    area/multi-target
    area/cli
    area/docs-site
    type/feature
    status/accepted
    

    Milestone

    0.9.4

    Suggested next action

    Remove copilot-instructions.md from unsupported_user_primitives in targets.py, implement user-scope path resolution for Copilot CLI instructions (mirroring the Claude user-scope pattern), and add tests and docs.

    Suggested issue comment

    Welcome to APM, and great catch! You found the exact code location that needs changing -- that is exactly the kind of research that makes a PR easy to review.
    
    The symmetry gap is real: Claude supports user-scope instructions, and Copilot CLI should too. The path to remove `copilot-instructions.md` from `unsupported_user_primitives` and implement the user-scope resolution follows the Claude pattern in `targets.py`.
    
    Concrete steps:
    
    1. Find how Claude's user-scope instruction path is resolved in `targets.py` and mirror the pattern for Copilot CLI.
    2. Determine the correct user-scope path for `copilot-instructions.md` (typically `~/.config/github-copilot/` or a platform-specific equivalent -- check the Copilot CLI docs for the authoritative location).
    3. Apply path security guards (`ensure_path_within(user_home)`) for user-scope writes.
    4. Add tests for user-scope install targeting Copilot CLI.
    5. Update the multi-target reference in `docs/src/content/docs/`.
    
    If you are not sure of the correct user-scope path, open a draft PR with your findings and the maintainers will help fill in the platform specifics. Happy to review!

    Per-lens notes (collapsed)

    DevX UX Expert -- User-Need Reviewer

    The user task is apm install -g to bootstrap Copilot CLI instructions for a team. The current asymmetry (Claude: supported, Copilot CLI: not supported at user scope) is a jarring inconsistency that breaks the "one install, every target" promise. The author has identified the exact code location. This maps to a real and concrete user need for team bootstrapping workflows.

    Supply Chain Security Expert -- Risk-Surface Reviewer

    User-scope writes to ~/.config/github-copilot/ or equivalent. Path containment is critical: ensure_path_within(user_home) must be applied. Symlink resolution must be used (a symlink in the user home pointing outside could be exploited). No new threat surface if the Claude user-scope pattern is followed correctly. No theme/security required.

    OSS Growth Hacker -- Contributor-Tone Reviewer

    Author's author_association is NONE -- first-time contributor who did research before filing. Reply is warm, acknowledges the research, and gives a concrete 5-step implementation path. The "open a draft PR with findings" fallback lowers the barrier if the user-scope path is unclear. This is an excellent contributor engagement moment.

    Python Architect -- Architecture Reviewer

    Not activated -- adding user-scope support for Copilot CLI instructions follows the established target pattern in targets.py. No cross-cutting design decision required; the Claude user-scope path is the reference implementation.

    Doc Writer -- Documentation Reviewer

    The multi-target reference in docs/src/content/docs/ needs to be updated to reflect user-scope support for Copilot CLI. area/docs-site secondary label is warranted. The implementing PR must include docs per APM's Rule 1.

    APM CEO -- Triage Arbiter

    Closes a concrete symmetry gap in APM's target coverage. Copilot CLI is a primary APM target -- any limitation relative to Claude weakens the "one manifest, every target" story. Accept for 0.9.4. The author is well-positioned to take this on with the concrete steps in the reply.

    {
      "decision": "accept",
      "decision_detail": "",
      "theme": "theme/portability",
      "areas": ["area/multi-target", "area/cli", "area/docs-site"],
      "type": "type/feature",
      "status": "status/accepted",
      "priority": null,
      "preserved_labels": [],
      "milestone": "0.9.4",
      "next_action": "Remove copilot-instructions.md from unsupported_user_primitives in targets.py, implement user-scope path resolution mirroring the Claude pattern, and add tests and docs.",
      "comment_markdown": "Welcome to APM, and great catch! You found the exact code location that needs changing -- that is exactly the kind of research that makes a PR easy to review.\n\nThe symmetry gap is real: Claude supports user-scope instructions, and Copilot CLI should too. The path to remove `copilot-instructions.md` from `unsupported_user_primitives` and implement the user-scope resolution follows the Claude pattern in `targets.py`.\n\nConcrete steps:\n\n1. Find how Claude's user-scope instruction path is resolved in `targets.py` and mirror the pattern for Copilot CLI.\n2. Determine the correct user-scope path for `copilot-instructions.md` (typically `~/.config/github-copilot/` or a platform-specific equivalent -- check the Copilot CLI docs for the authoritative location).\n3. Apply path security guards (`ensure_path_within(user_home)`) for user-scope writes.\n4. Add tests for user-scope install targeting Copilot CLI.\n5. Update the multi-target reference in `docs/src/content/docs/`.\n\nIf you are not sure of the correct user-scope path, open a draft PR with your findings and the maintainers will help fill in the platform specifics. Happy to review!"
    }

    Triage status: agentic proposal pending human ratification.
    Silence is approval. Maintainers can:

    • Override any label or milestone above by editing it directly --
      human edits are authoritative and will not be reverted on
      subsequent runs.
    • Re-trigger triage by applying the status/needs-triage label, or
      by removing status/triaged to enroll the issue in the next
      daily sweep.

    Posted by the Triage Panel workflow. See .apm/skills/apm-triage-panel for the panel skill.

    Generated by Triage Panel · ● 1.9M · ◷

  4. added
    area/cli
    area/docs-site
    area/multi-target
    status/accepted
    status/triaged
    type/feature
    on Apr 26, 2026
  5. added this to the 0.9.4 milestone on Apr 26, 2026
  6. 5 remaining items

  7. Strandfelt commented on May 13, 2026

    @Strandfelt

    I'd really like to see this as well. Daniel Meppiel (@danielmeppiel) we are a team of approx. 10 developers that maintain in 400+ repos. We need the same baseline instructions that are read by all agents in IT, and it feels exaggerated to add the same instructions to every single repo. I'm not really sure how this could be solved with the apm-policy.yml configuration?

  8. added
    status/shepherding
    on Jun 2, 2026
  9. moved this from Todo to In Progress in APM Roadmapon Jun 2, 2026
  10. removed
    status/shepherding
    on Jun 2, 2026
  11. moved this from In Progress to Done in APM Roadmapon Jun 2, 2026
  12. kilianpaquier commented on Jul 18, 2026

    @kilianpaquier
    Contributor

    Hello, picking up on this issue and follow-up pull request, Copilot CLI supports user-scope instructions within ~/.copilot/instructions per the documentation at https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions.

    Should a reverting merge request be created ? Merging all files-specific instructions overcharge the context because everything is loaded without taking into account applyTo frontmatter key.

  13. moved this from Done to In Progress in APM Roadmapon Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/cliarea/docs-sitearea/multi-targetenhancementneeds-triagestatus/acceptedstatus/triagedtype/feature

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions