-
Install Node.js (>= 20.18.1)
- Download from nodejs.org or use a version manager like nvm/volta.
-
Clone and Install
git clone https://github.com/shareAI-lab/kode.git cd kode npm install -
Run in Development
npm 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
npm run buildThis runs scripts/build.mjs which creates:
cli.js- Smart runtime wrapper.npmrc- NPM configuration
# Run tests
npm test
# Test CLI
node cli.js --help
node cli.js -p "test prompt"- Run
npm 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.