Skip to content

Copilot CLI cannot detect repo level custom instructions in a perforce repo #1380

@raghavj98

Description

@raghavj98

Describe the bug

I have a large monorepo using perforce VCS. When placing any custom instructions at the repo root, copilot-cli does not detect them when the cli is started from a subdirectory inside the repo.
Custom instructions are only detected if they're present in $PWD while invoking copilot

Files tried at repo root:

  1. AGENTS.md
  2. .github/copilot-instructions.md

I also tried 'tricking' copilot into reading the perforce repo as a git repo by creating a .git directory at the root, but that does not seem to be working either.

In addition the environment var COPILOT_CUSTOM_INSTRUCTIONS_DIRS also has no effect.

Is there anyway to point copilot CLI to the repo root when not using git for VCS?

Affected version

GitHub Copilot CLI 0.0.406.

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions