rubber-duck-cli
v1.0.39
Published
Meet Atlas - the rubber duck that talks back
Readme
🦆 rubber-duck-cli
Meet Atlas — the rubber duck that actually talks back.
Every developer has a rubber duck on their desk. Yours is named Atlas. Unlike other rubber ducks, Atlas doesn't just sit there — he answers your questions, reads your code, searches the web, and writes files. Powered by AI, living in your terminal.
If Atlas helps you, a ⭐ on GitHub goes a long way!
Features
- 💬 Chat mode — back and forth conversation with memory
- ⚡ Ask mode — single question, instant answer
- 📄 File context — attach any file to your question
- 📁 Project context — load your entire codebase into context
- 🌐 Web search — search the web from your terminal
- ✍️ Write files — generate and write code directly to files
- 🔀 Git integration — understand your repo state and generate commit messages
- 🔄 Streaming responses — responses print token by token
Installation
npm install -g rubber-duck-cliThen talk to Atlas:
atlas chatQuick Start
1. Get your API keys
- Groq (required) — free at console.groq.com
- Tavily (optional, for web search) — free at app.tavily.com
2. Introduce yourself to Atlas
atlas config3. Start talking
atlas chatCommands
atlas chat
Start a back and forth conversation with Atlas. Memory is maintained throughout the session.
atlas chatOptions:
atlas chat --file path/to/file # load a file into context
atlas chat --project path/to/project # load entire project into context
atlas chat --git # load git context into conversationMid-conversation flags:
You: explain this --file index.js
You: search for latest Node.js version --search
You: create a README --write README.md
You: what changed recently --gitatlas ask
Ask Atlas a single question and get an answer immediately.
atlas ask "what is the difference between null and undefined?"Options:
atlas ask "explain this" --file index.js # attach a file
atlas ask "explain this" --project . # attach current project
atlas ask "latest React version" --search # search the web
atlas ask "create an express server" --write server.js # write to file
atlas ask "what changed" --git # include git context
atlas ask "write a commit message" --git # generate commit messageSupports piping:
cat error.log | atlas ask "what is wrong here?"atlas config
First time setup. Introduce yourself to Atlas and give him his API keys.
atlas configKeys are stored locally at ~/.config/rubber-duck-cli/config.json and never sent anywhere except directly to Groq and Tavily.
atlas help
Ask Atlas what he can do.
atlas helpExamples
# Ask Atlas to explain a file
atlas ask "explain what this does" --file index.js
# Let Atlas debug your errors
cat error.log | atlas ask "what is wrong here?"
# Ask Atlas to write code for you
atlas ask "create a REST API with Express" --write server.js
# Ask Atlas to fix a bug
atlas ask "fix the bug in this file" --file index.js --write index.js
# Ask Atlas to search the web
atlas ask "what is the latest version of Node.js" --search
# Have a full conversation about your codebase
atlas chat --project .
You: what does this project do?
You: how can I improve the architecture?
You: add input validation --file index.js --write index.js
# Let Atlas handle your git workflow
git add .
atlas ask "write a commit message for my staged changes" --git
# Understand what changed in your repo
atlas ask "summarize what changed in the last 10 commits" --git
# Git context in chat
atlas chat --git
You: what did I change today?
You: write a commit message for my staged changesHow Atlas Works
Atlas is fully client side. Your API keys never leave your machine except to talk directly to Groq and Tavily. There is no backend, no account required, and no usage limits beyond what your API keys allow.
atlas chat
↓
Your machine
↓ direct API call
Groq (Atlas's brain)
Tavily (Atlas's web search)
Git (Atlas reads your repo)Flags Reference
| Flag | Short | Description |
|------|-------|-------------|
| --file <path> | -f | Attach a file to your question |
| --project <path> | -p | Attach a project directory |
| --search | -s | Search the web |
| --write <path> | -w | Write response to a file |
| --git | -g | Include git context |
Requirements
- Node.js 18 or higher
- Groq API key — free at console.groq.com
- Tavily API key — optional, free at app.tavily.com
Tech Stack
- Node.js — runtime
- Commander.js — CLI command handling
- Groq SDK — Atlas's brain via llama-3.3-70b-versatile
- Tavily — Atlas's web search
- Chalk — terminal colors
- Ora — loading spinners
- Inquirer — interactive config prompts
- Conf — local config storage
Contributing
Contributions are welcome! Please read CONTRIBUTING.md before submitting a pull request.
rubber-duck-cli is and will remain open source and BYOK. Features that require a centralized backend or paid service are not aligned with the project direction.
Roadmap
- [x]
atlas chat— conversational mode - [x]
atlas ask— single question mode - [x]
atlas config— API key setup - [x]
atlas help— help command - [x] Streaming responses
- [x]
--fileflag — attach files to questions - [x]
--projectflag — load entire codebase - [x]
--searchflag — web search via Tavily - [x]
--writeflag — write responses to files - [x]
--gitflag — git integration and commit message generation - [ ]
--runflag — execute terminal commands safely - [ ] Multi-file write support
- [ ] Implementing a GUI
License
MIT — free to use, modify, and distribute.
Built by Chris from Athens, Greece 🇬🇷
Atlas the rubber duck has been helping developers since 2026. He's very smart for a duck.
