A CLI tool that exports repository content into structured markdown for LLM processing.
Zhankai utilizes the Rukh API to connect with Anthropic's claude-3-7-sonnet-20250219
model.
- 📄 Structured markdown generation from repository content
- 🔍
.gitignore
integration - 📊 Repository structure visualization
- 🧠 AI-assisted code modification with Claude 3.7 Sonnet
- 🔄 Intelligent file truncation (30 lines preview for large files)
- 🖼️ Binary file handling
- 📁 Automated output management
- 🙈 Automatic .gitignore configuration
npm install -g zhankai
# or
yarn global add zhankai
# or
pnpm add -g zhankai
npm install -g zhankai@latest
# or
yarn global add zhankai@latest
# or
pnpm add -g zhankai@latest
cd your-project
zhankai
zhankai -o custom-docs.md
Tip
Commit changes before using the -q
option. Zhankai modifies code files when responding to queries.
zhankai -q "Add a workflow file that describes how the app work in detail"
Like it? Sponsor W3HC to support development and gain unlimited access to Claude 3.7 Sonnet – it's the cheapest access available in town.
Option | Description | Default |
---|---|---|
-o, --output <filename> |
Output file name | <REPOSITORY_NAME>_app_description.md |
-d, --depth <number> |
Directory traversal depth | Infinity |
-c, --contents |
Include file contents | false |
-q, --query <string> |
AI query to Claude 3.7 Sonnet | - |
--version |
Display version information | - |
--debug |
Enable debug mode | false |
--timeout <number> |
API request timeout in milliseconds | 240000 |
login |
Authenticate with GitHub and generate Ethereum wallet | - |
github |
Authenticate with GitHub using Personal Access Token | - |
logout |
Clear stored GitHub credentials | - |
sign <message> |
Sign a message with your Ethereum wallet | - |
Zhankai:
- Creates a
/zhankai
directory in your project - Stores all generated files in this directory
- Adds
/zhankai
to your .gitignore automatically
Please review the contribution guidelines before submitting pull requests.
git clone https://github.com/w3hc/zhankai.git
cd zhankai
pnpm i
pnpm build
pnpm test
pnpm test:watch # Watch mode
pnpm test:coverage # Coverage report
Contact Julien via:
- Element: @julienbrg:matrix.org
- Farcaster: julien-
- Telegram: @julienbrg
- Twitter: @julienbrg
- Discord: julienbrg
- LinkedIn: julienberanger