apm icon indicating copy to clipboard operation
apm copied to clipboard

[BUG] No harness detected - Copilot

Open tomdaniel-ae opened this issue 6 months ago • 1 comments

Describe the bug apm install and apm update look for harness markers to detect the harness.
For copilot, this is .github/copilot-instructions.md.

This marker does not work if you use file-based instructions instead of always-on or compiled instructions, neither if you have agents present:

.apm/
    instructions/
        architecture.instructions.md
        code-conventions.instructions.md
    agents/
        my-agent.agent.md

To Reproduce Steps to reproduce the behavior:

  1. Define instructions in .apm as shown above
  2. Install the package, e.g. apm install mypackage --target copilot
  3. Run command apm install
  4. See error

Expected behavior My proposal would be to add following copilot markers:

  • .github/instructions/
  • .github/agents/
  • .github/prompts/
  • .github/hooks/

Environment (please complete the following information):

  • OS: Windows
  • Python Version: 3.14.3
  • APM Version: 0.14.1

Logs

$ apm install    
[>] Installing dependencies from apm.yml...
[x] No harness detected
 
APM scanned for harness markers (.claude/, CLAUDE.md, .cursor/, .cursorrules, .github/copilot-instructions.md, .codex/, .gemini/, GEMINI.md, .opencode/, .windsurf/) but found
none in this project.
 
Previously APM defaulted to copilot; this is now explicit.
 
Fix with one of:
 
  apm targets                            # see all supported harnesses
  apm install <pkg> --target claude      # deploy to a specific harness
  apm install <pkg> --target copilot     # or any supported target
 
Or declare in apm.yml:
 
  targets:
    - claude
[!] Install interrupted after 0.1s.
 

Workaround Current workaround is specifying --target copilot after each install or update command.

tomdaniel-ae avatar May 21 '26 16:05 tomdaniel-ae

PR #1440 submitted: fix(detect): expand copilot harness markers to file-based signals.

Added .github/instructions/, .github/agents/, .github/prompts/, and .github/hooks/ as Copilot detection signals. CI green, Copilot review feedback addressed.

sergio-sisternes-epam avatar May 21 '26 20:05 sergio-sisternes-epam