CG Commands API Reference¶
Git-like CLI for Claude Parser - Main orchestrator @SINGLE_SOURCE_TRUTH: Delegates to split command modules @LOC_ENFORCEMENT: <80 LOC by using sub-apps
Basic Commands¶
Show current session and project status
Source code in claude_parser/cli/cg_basic.py
Show message history
Source code in claude_parser/cli/cg_basic.py
Restore Commands¶
Restore files (like git checkout) - 0 tokens!
Source code in claude_parser/cli/cg_restore.py
Reset to a previous state (like git reset)
Source code in claude_parser/cli/cg_reset.py
Revert a specific change (like git revert)
Source code in claude_parser/cli/cg_reset.py
Advanced Commands¶
Find files in any message (like git log --all --grep)
Source code in claude_parser/cli/cg_advanced.py
Show who last modified file (like git blame)
Source code in claude_parser/cli/cg_advanced.py
Reflog Commands¶
Show all operations history (like git reflog)
Source code in claude_parser/cli/cg_reflog.py
Show details of specific message (like git show)