REA absolute paths (unofficial)
REA docs and README examples repeatedly show absolute paths for analyze-style commands. Agents and MCP servers frequently start with a different cwd than the terminal where you typed pwd, so relative paths become heisenbugs.
Good habits
# POSIX
rea analyze "$(pwd)/build/app" --provider ghidra --json
# Or an explicit absolute path you verified
rea analyze /home/you/projects/app/target/release/app --provider ghidra --json
# Windows-style absolute path (shape from README examples)
npx -y rea-agents@latest analyze-javascript-application "D:/apps/example" --json
Common failure modes
Agent says file not found but your shell sees itFix: The MCP server cwd is not your project root. Pass an absolute path or align the agent's workspace root.
npx one-shot works, global rea fails (or reverse)Fix: Different installs + different cwd assumptions. Print pwd inside the same context that runs REA; prefer absolute paths either way.
Symlink soupFix: Resolve to the real path you intend (readlink -f / realpath where available) before filing bugs upstream.
Security / authorization hygiene
- Absolute paths make it obvious which artifact you touched — good for audit logs.
- They do not create permission to read arbitrary system files.
- Keep customer binaries on disks your policy allows; do not paste secrets into public issues.
Related
RepoRead is unofficial. Prefer upstream CLI examples when they disagree.
FAQ
Do relative paths always fail?
Not necessarily — but README/CLI examples stress absolute paths because agent cwd, npx wrappers and MCP server working directories often disagree with your shell cwd.
Windows example shape?
README-style examples use forms like D:/apps/example — prefer unambiguous absolute paths your host API accepts.
Does this authorize analyzing any path on disk?
No. Absolute path hygiene is technical, not legal permission. Only analyze authorized targets.
What about paths inside Evidence exports?
Follow Evidence/import-export docs; do not rewrite other users' paths into your automation without review.
Version checked?
rea-agents 6.7.0, re-checked 2026-10-24.