Bug: Claude defaults to ~ tilde shorthand instead of full absolute paths when referencing files
Resolved 💬 2 comments Opened Mar 7, 2026 by kr37swarm Closed Apr 5, 2026
Bug Report
Summary: When Claude references a file location in a response, it consistently uses ~ tilde shorthand (e.g. ~/clawd/outputs/file.md) rather than the full absolute path (e.g. /home/ubuntu/clawd/outputs/file.md). This is a usability bug in agentic/CLI contexts where users expect copy-pasteable absolute paths.
Steps to reproduce:
- Ask Claude to copy or create a file and tell you where it is
- Observe response uses
~/...instead of/home/<user>/...
Expected behavior: All file path references in responses should be full absolute paths that can be used directly in any shell context without expansion.
Actual behavior: Claude defaults to ~/... shorthand, which:
- May not resolve correctly depending on shell/user context
- Requires users to mentally expand or re-ask for the full path
- Persists as a bad pattern across sessions despite user correction
Suggested fix:
- Training preference: absolute paths over tilde shorthand in file references
- Or: system-level instruction in Claude Code CLI that enforces this
Environment: Claude Code CLI, agentic workflows, Linux (Ubuntu)
Reported by: User feedback, March 2026.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗