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:
- Define instructions in .apm as shown above
- Install the package, e.g.
apm install mypackage --target copilot
- Run command
apm install
- 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.
Describe the bug
apm installandapm updatelook 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:
To Reproduce
Steps to reproduce the behavior:
apm install mypackage --target copilotapm installExpected behavior
My proposal would be to add following copilot markers:
.github/instructions/.github/agents/.github/prompts/.github/hooks/Environment (please complete the following information):
Logs
Workaround
Current workaround is specifying
--target copilotafter each install or update command.