[BUG] Claude Should Understand Claude (CLI)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
We all know AIs hallucinate about stuff they don't understand, and it's expected. But what's not expected is when Claude can't answer _basic_ questions about the command line program it runs in (ie. $ claude)!
I literally had Claude imagine commands (eg. claude --sessions) that do not exist! What's even more frustrating is that I left Claude, tried to run the command, found out it was garbage ... and then (because Claude lied to me) I coudn't recover the session where it lied to me!
$ claude --sessions
error: unknown option '--sessions'
Again, I get that AIs get things wrong, but it _really_ looks bad when I ask Claude basic questions about it's CLI capabillities, and it just makes shit up. Claude should be able to explain it's own CLI without lying.
What Should Happen?
When it comes to basic questions about the Claude CLI, the Claude AI should answer accurately (OR AT LEAST SAY "I don't know" instead of making nonsense up!)
Error Messages/Logs
Steps to Reproduce
Unfortunately I lost the session where I was trying to ask Claude how to save/recover the session (_because_ Claude gave me garbage commands).
As such, I can't explain _exactly_ what I said to Claude (which I know would be helpful for reproducing the issue): all I can say is that I was working, wanted to stop the session and restart it later, asked Claude how to do that ... and how to restore _that_ session specifically. I think Claude's first answer was to use /restore, but when you have multiple sessions going you don't want to restore the wrong one, so I asked it how and it told me to get the session from claude sessions and use it in the restore command.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.30 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
Again, I get that AI's are imperfect. But surely you should be able to use Claude for a bit, ask it how to save the session so it can be recovered later, ask it specifically how to recover _that_ session ... and the tool should be able to provide an answer or _at least not lie to the user_!
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗