Update documentation - 2025-07-14 16:41
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9552cfbe4e
commit
124336e65f
3 changed files with 55 additions and 9 deletions
|
|
@ -35,11 +35,39 @@ Examples of what the script generates:
|
|||
- **After**: ~20-50 tokens per git operation
|
||||
- **Savings**: ~75% reduction in git-related token usage
|
||||
|
||||
## Claude Usage
|
||||
## Claude Usage - TOKEN EFFICIENT WORKFLOW
|
||||
|
||||
When Claude needs to push changes:
|
||||
**✅ CORRECT (Low Token Usage):**
|
||||
```
|
||||
Please run: ./git_push.sh
|
||||
```
|
||||
*Claude ignores output completely*
|
||||
|
||||
Instead of multiple git commands + output analysis.
|
||||
**❌ AVOID (High Token Usage):**
|
||||
```
|
||||
git status
|
||||
git add .
|
||||
git commit -m "..."
|
||||
git push origin main
|
||||
```
|
||||
*Reading outputs wastes tokens*
|
||||
|
||||
## Logging System
|
||||
|
||||
- All operations logged to `git_push.log`
|
||||
- Only check log if there's an issue
|
||||
- **Claude should NOT read logs unless asked**
|
||||
- Log file ignored by git
|
||||
|
||||
## Error Handling
|
||||
|
||||
If push fails:
|
||||
1. User will see error on console
|
||||
2. User can ask: "Check the git log for errors"
|
||||
3. Only then should Claude read `git_push.log`
|
||||
|
||||
## Token Savings Protocol
|
||||
|
||||
- **Normal operation**: Use script, ignore output
|
||||
- **Only on errors**: Read logs when requested
|
||||
- **Maximum efficiency**: No unnecessary output reading
|
||||
Loading…
Add table
Add a link
Reference in a new issue