Minimal CLI tool for AI-assisted coding and multi-purpose tasks.
Simple (under 1000 lines of code) and easy to use and extend (see think.js
tool).
- Minimalist Design: Every line of code serves a purpose; every token counts.
- Rapid AI Interaction: Fast, stateful CLI for coding tasks
- Multi-purpose and extensible: Just add tools.
- BashTool: Secure shell command execution (can do virtually anything)
- FileTools: Atomic file read/write/edit
- ThinkTool: Advanced reasoning and brainstorming
- Node.js
- Anthropic API Key
- (Optional) Together API Key for advanced reasoning
# Clone the repository
git clone https://github.com/tiendung/koding.js
cd koding.js && npm install
# Set API keys
export ANTHROPIC_API_KEY=your_anthropic_key
export TOGETHER_API_KEY=your_together_key # Optional
# Interactive mode with small model
node index.js
# Large model (Sonnet)
node index.js -l
# Run specific task
node index.js -p "Refactor authentication middleware"
# Use ThinkTool for complex problems
node index.js -p "Think to solve: <complex coding challenge>"
Contributions welcome! Please keep PRs minimal and focused.
MIT License Crafted with ❤️ for developers who love clean, efficient tools
- enhance prompt caching, reset ccc after reach max
- file-edit / file-write fail rate is high, need to improve