From b79e7f8058013e8c0c3d35aaae8bead43e63bb37 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 29 Apr 2026 23:47:04 +0200 Subject: [PATCH] fix(coding-agent): support uppercase context files closes #3949 --- packages/coding-agent/CHANGELOG.md | 1 + packages/coding-agent/src/core/resource-loader.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 66052fe4..0de71bf2 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixed +- Fixed project context discovery to load `AGENTS.MD` files in addition to `AGENTS.md` ([#3949](https://github.com/badlogic/pi-mono/issues/3949)). - Fixed `/handoff` to use compacted session context instead of pre-compaction raw messages ([#3945](https://github.com/badlogic/pi-mono/issues/3945)). - Fixed idle follow-up submission to clear the editor like normal message submission ([#3926](https://github.com/badlogic/pi-mono/issues/3926)). - Updated the sandbox extension example lockfile to resolve the vulnerable `lodash-es` transitive dependency ([#3901](https://github.com/badlogic/pi-mono/issues/3901)). diff --git a/packages/coding-agent/src/core/resource-loader.ts b/packages/coding-agent/src/core/resource-loader.ts index 832bb017..338daf7e 100644 --- a/packages/coding-agent/src/core/resource-loader.ts +++ b/packages/coding-agent/src/core/resource-loader.ts @@ -56,7 +56,7 @@ function resolvePromptInput(input: string | undefined, description: string): str } function loadContextFileFromDir(dir: string): { path: string; content: string } | null { - const candidates = ["AGENTS.md", "CLAUDE.md"]; + const candidates = ["AGENTS.md", "AGENTS.MD", "CLAUDE.md", "CLAUDE.MD"]; for (const filename of candidates) { const filePath = join(dir, filename); if (existsSync(filePath)) {