fix: [bug] Dev-Agent 启动时无法读取 PROJECT_CHARTER.md / GLOBAL_STATE.md — Glob 工具对项目目录返回空 - Closes #113 #114
Reference in New Issue
Block a user
Delete Branch "dev/issue-113-glob-agent-startup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #113
问题
Dev-Agent 每次启动时按 DEV_AGENT.md 流程第 1 步应读取
docs/PROJECT_CHARTER.md和docs/GLOBAL_STATE.md。但 Glob 工具对项目目录C:\Users\peterz\projects\document_analyzer持续返回 "No files found",导致 agent 跳过该步骤,无法获取项目状态。根因
Glob 工具在 Windows 下对某些绝对路径返回空结果(用
/c/...、C:/...、C:\...三种格式均复现失败),而 Bashls和 Read 工具对同一路径正常工作。修复
更新
.claude/agents/dev-agent.md启动流程第 1 步,显式使用绝对路径 + Read 工具:不再依赖 Glob 搜索。
验证
启动 Dev-Agent 后确认成功读取两个文件内容。
[pzhang_dev_agent_01]
[pzhang_dev_agent_01]