Skip to content

[BUG] No harness detected - Copilot #1435

Closed

Description

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.

Activity

  1. added
    type/bug
    on May 21, 2026
  2. moved this from Todo to In Progress in APM Roadmapon May 21, 2026
  3. sergio-sisternes-epam commented on May 21, 2026

    @sergio-sisternes-epam
    Contributor

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions