@headsdown/gemini
v0.4.0
Published
HeadsDown availability extension for Gemini CLI.
Maintainers
Readme
@headsdown/gemini
HeadsDown availability awareness and task gating for Gemini CLI. This extension makes Gemini "availability-aware," allowing it to respect your focus time, submit task proposals, and negotiate scope when you are busy.
Features
- Specialist Subagent (
@headsdown): A dedicated expert agent for managing your availability, focus time, and task proposals. - Interactive Conflict Resolution: Uses Gemini CLI's native
ask_userUI to negotiate scope (Override, Wrap-Up, or Defer) when focus conflicts arise. - Real-time Gating:
BeforeAgentHook: Warns the agent if you are busy or a "Wrap-Up" deadline is near before it even starts planning.BeforeToolHook: Prevents destructive actions (file writes, shell commands) unless a proposal has been approved.
- Secure Storage: Leverages Gemini CLI's
settingsto securely store yourHEADSDOWN_TOKENin the system keychain.
Installation
Standard Install (Recommended)
Install directly from npm:
gemini extension install @headsdown/geminiLocal Development
If you want to contribute or run from source:
git clone https://github.com/headsdownapp/headsdown-gemini.git
cd headsdown-gemini
npm install
npm run build
gemini extension install .Configuration
After installation, the CLI will prompt you for your HeadsDown token. You can also set it manually:
gemini settings set HEADSDOWN_TOKEN <your-token>Tip: Use the headsdown_auth tool within Gemini to get your token via device flow.
Requirements
- Node.js:
>=22.14.0 - Gemini CLI:
v0.39.1or higher
Development
npm run build # Compile TypeScript
npm test # Run Vitest suite
npm run dev # Watch modePublishing
- Update version in
package.json. - Push a tag (e.g.,
git tag v0.4.0 && git push origin --tags). - GitHub Actions will automatically update
CHANGELOG.md, publish to npm, and create a GitHub Release.
License
MIT
