integration
Using Gemini CLI with Lacy Shell
Type questions in your terminal. They go to Gemini automatically.
How it works
When Gemini CLI is your active AI tool, Lacy routes natural language queries using gemini --resume -p "your query". You don’t type gemini yourself. Just type your question and press enter.
Shell commands still run normally. python main.py runs in your shell. “Explain what this script does” goes to Gemini. The indicator next to your prompt shows which will happen.
Setup
- Install Lacy:
curl -fsSL https://lacy.sh/install | bash - Install Gemini CLI (see google-gemini/gemini-cli)
- Set Gemini as your tool:
tool set gemini
Or skip step 3. If Gemini CLI is the only AI CLI installed, Lacy auto-detects it.
Session continuity
Lacy uses Gemini’s --resume flag to maintain conversation context. Your second question knows about the first. Type/new to start a fresh session.
What you get
| Without Lacy | With Lacy |
|---|---|
gemini --resume -p "explain this error" | explain this error |
gemini --resume -p "optimize this query" | optimize this query |
gemini --resume -p "what does this do" | what does this do |
Real-time feedback
As you type, the indicator tells you where your input will go:
- Green = shell (e.g.,
npm run dev) - Magenta = Gemini (e.g.,
why is this endpoint slow)
No surprises. You always know what will happen before you hit enter.