-
Install Bun
curl -fsSL https://bun.sh/install | bash -
Clone and Install
git clone https://github.com/shareAI-lab/kode.git cd kode bun install -
Run in Development
bun run dev
.
├── src/ # Source code
│ ├── entrypoints/ # CLI and MCP entry points
│ ├── commands/ # Command implementations
│ ├── components/ # React/Ink UI components
│ ├── tools/ # AI tool implementations
│ ├── services/ # Core services
│ ├── hooks/ # React hooks
│ └── utils/ # Utilities
├── scripts/ # Build and utility scripts
├── docs/ # Documentation
├── test/ # Test files
└── cli.js # Generated CLI wrapper
bun run buildThis runs scripts/build.ts which creates:
cli.js- Smart runtime wrapper.npmrc- NPM configuration
# Run tests
bun test
# Test CLI
./cli.js --help
./cli.js -p "test prompt"- Run
bun run formatbefore committing - TypeScript/TSX for all source files
- No Chinese in code or comments
- Follow existing patterns
See docs/PUBLISH.md for publishing instructions.