Minimal AI coding assistant for the terminal. Single-file Python script with no dependencies.
- File reading, writing, and editing
- Pattern matching with glob and grep
- Shell command execution
- Markdown-formatted responses
- Conversation history with clear command
- OpenRouter (google/gemini-3-pro-preview)
- Google AI Studio (gemini-3-pro-preview)
Set your API key as an environment variable:
export OPENROUTER_API_KEY="your-key"
# or
export GOOGLE_API_KEY="your-key"python geminicode.py/c- Clear conversation/q- Quit/h- Help
| Tool | Description |
|---|---|
| read | Read file contents with line numbers |
| write | Write content to file |
| edit | Replace text in file |
| glob | Find files by pattern |
| grep | Search files with regex |
| bash | Run shell commands |
MIT
