Skip to content

[BUG] No harness detected - Copilot #1435

@tomdaniel-ae

Description

@tomdaniel-ae

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething does not work as documented.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions