https://github.com/pforret/clode
Prep your projects for AI software development assistants (like Claude Code)
https://github.com/pforret/clode
bashew claude-code
Last synced: about 2 months ago
JSON representation
Prep your projects for AI software development assistants (like Claude Code)
- Host: GitHub
- URL: https://github.com/pforret/clode
- Owner: pforret
- License: mit
- Created: 2025-07-13T19:27:12.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-08-01T12:40:31.000Z (2 months ago)
- Last Synced: 2025-08-01T14:45:03.640Z (2 months ago)
- Topics: bashew, claude-code
- Language: Shell
- Homepage:
- Size: 472 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README






[](https://www.basher.it/package/)# clode
Prep your projects for AI software development and git.
Implements the [git workflow for Claude Code](https://github.com/pforret/claude_code_tips/blob/main/GIT.md).## 🔥 Usage
```
Program : clode by peter@forret.com
Version : v0.2.0 (Jul 15 19:26:53 2025)
Purpose : Prep your projects for AI software development assistants
Usage : clode [-h] [-Q] [-V] [-f] [-A] [-D] [-E] [-G] [-S] [-C ] [-L ] [-M ] [-T ]
Flags, options and parameters:
-h|--help : [flag] show usage [default: off]
-Q|--QUIET : [flag] no output [default: off]
-V|--VERBOSE : [flag] also show debug messages [default: off]
-f|--FORCE : [flag] do not ask for confirmation (always yes) [default: off]
-A|--AUTO_COMMIT : [flag] automatically generate commit messages with Claude Code CLI [default: off]
-D|--DRY_RUN : [flag] show what would be done without executing [default: off]
-E|--ERASE : [flag] clear command history after final commit [default: off]
-G|--GENERATE : [flag] use Claude Code CLI to generate CLAUDE.md file [default: off]
-S|--SQUASH : [flag] squash all intermediate commits before push [default: off]
-C|--COMMIT > : [option] commit type for intermediate commits [default: fix]
-L|--LOG_DIR > : [option] folder for log files [default: /Users/pforret/log/clode]
-M|--MESSAGE > : [option] custom commit message
-T|--TMP_DIR > : [option] folder for temp files [default: .tmp]
: [choice] action to perform [options: prep,branch,b,inter,i,rollback,r,push,p,final,f,status,s,check,env,update]
: [parameter] input text (optional)
### TIPS & EXAMPLES
* use clode prep to prepare project for AI development
clode prep
* use clode prep -G to generate CLAUDE.md with Claude Code CLI
clode prep --GENERATE
* use clode branch [name] to create new feature branch
clode branch my-feature
* use clode inter [-M "message"] to create intermediate commit
clode inter -M "implemented feature"
* use clode rollback [target] to rollback commits
clode rollback last
* use clode push to squash and push branch
clode push
* use clode push -A to auto-generate commit messages with Claude Code CLI
clode push --AUTO_COMMIT
* use clode final to squash all commits and push
clode final
* use clode final -A to auto-generate commit messages with Claude Code CLI
clode final --AUTO_COMMIT
* use clode final -E to automatically clear command history after final commit
clode final --ERASE
* use clode status to show current git workflow status
clode status
* use clode check to check if this script is ready to execute and what values the options/flags are
clode check
* use clode env to generate an example .env file
clode env > .env
* use clode update to update to the latest version
clode update
* >>> bash script created with pforret/bashew
* >>> for bash development, also check out pforret/setver and pforret/progressbar
```## ⚡️ Examples
```bash
> clode -h
# get extended usage info
> clode env > .env
# create a .env file with default values
```## 🚀 Installation
with [basher](https://github.com/basherpm/basher)
$ basher install pforret/clode
or with `git`
$ git clone https://github.com/pforret/clode.git
$ cd clode## 📝 Acknowledgements
* script created with [bashew](https://github.com/pforret/bashew)
© 2025 Peter Forret