Skip to content

Expand repository instruction discovery for ReAct prompts#60

Merged
assapir merged 6 commits into
mainfrom
copilot/implement-open-issue
Mar 17, 2026
Merged

Expand repository instruction discovery for ReAct prompts#60
assapir merged 6 commits into
mainfrom
copilot/implement-open-issue

Conversation

Copilot AI commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Repository context loading previously only considered AGENTS.md/agents.md, which missed equivalent instruction files used by other agent ecosystems. This change broadens discovery while keeping deterministic precedence and existing prompt-safety behavior.

  • Instruction source expansion

    • Extend candidate files to include:
      • AGENTS.md, agents.md
      • CLAUDE.md, claude.md
      • GEMINI.md, gemini.md
      • .github/copilot-instructions.md
    • Keep first-match-wins behavior using fixed candidate order and first non-empty readable file.
  • Deterministic precedence made explicit

    • Replace helper indirection with a single static candidate array.
    • Preserve one-time load/caching via OnceLock.
  • Prompt section generalization

    • Rename injected section label from AGENTS-specific wording to:
      • Repository agent instructions:
    • Retain existing markdown-fence sanitization before insertion.
static INSTRUCTION_FILE_CANDIDATES: &[&str] = &[
    "AGENTS.md",
    "agents.md",
    "CLAUDE.md",
    "claude.md",
    "GEMINI.md",
    "gemini.md",
    ".github/copilot-instructions.md",
];

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.anthropic.com
    • Triggering command: target/debug/golem target/debug/golem --provider anthropic /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.0kijyti1m/lib64/ld-linux-x86-64.so.2 /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.0mojthjnw-pie /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.0mp1hiyeb-z /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.0mz3kpe6cnow /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.0nad7atmb-z /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.0nnez3h40relro /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.102z1q8he432h�� /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.1671zob29bpx5cbvhbzbkb7pn.07bwdcq.rcgu.o /home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.16sn1nkimsab7xmlgfgflmqwp.07bwdcq.rcgu.o a90v�� hdmlp8pk7toibk1z.1e03tk9.rcgu.o 6y15tlc6gddhpbnt.1e03tk9.rcgu.o f/aws-lc-sys-0.3--diagnostic-width=120 -1949cf8c6b5b557cc f/aws-lc-sys-0.3-m64 -1949cf8c6b5b557/home/REDACTED/work/golem/golem/target/debug/deps/rustcD2AnbD/symbols.o f/aws-lc-sys-0.3/home/REDACTED/work/golem/golem/target/debug/deps/golem-32b8baedf88061d3.04jlat5q1-d (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Copilot AI and others added 2 commits March 17, 2026 06:02
Co-authored-by: assapir <4030466+assapir@users.noreply.github.com>
Co-authored-by: assapir <4030466+assapir@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement selected open issue functionality Include AGENTS.md in ReAct system prompt context Mar 17, 2026
Copilot AI requested a review from assapir March 17, 2026 06:08
Co-authored-by: assapir <4030466+assapir@users.noreply.github.com>
Comment thread src/prompts/react.rs Outdated
Copilot AI and others added 2 commits March 17, 2026 06:18
Co-authored-by: assapir <4030466+assapir@users.noreply.github.com>
Co-authored-by: assapir <4030466+assapir@users.noreply.github.com>
Copilot AI changed the title Include AGENTS.md in ReAct system prompt context Extend agent-instruction discovery beyond AGENTS.md (CLAUDE/GEMINI/Copilot) Mar 17, 2026
Copilot AI requested a review from assapir March 17, 2026 06:20
Copilot AI changed the title Extend agent-instruction discovery beyond AGENTS.md (CLAUDE/GEMINI/Copilot) Expand repository instruction discovery for ReAct prompts Mar 17, 2026
Copilot AI requested a review from assapir March 17, 2026 06:32
@assapir assapir marked this pull request as ready for review March 17, 2026 06:34
Copilot stopped work on behalf of assapir due to an error March 17, 2026 06:34
@assapir assapir merged commit 2cffb73 into main Mar 17, 2026
6 of 7 checks passed
@assapir assapir deleted the copilot/implement-open-issue branch March 17, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants