Repository navigation
Replace Gemini assistant with local AI CLIs - #64
Merged
Merged
Conversation
The hook editor's AI Assistant now opens a terminal in the project folder running claude, gemini or codex from the user's PATH, so zX no longer stores API keys in project state. The editor reloads the open hook from disk while it has no unsaved edits. - Terminals start as login shells in the active project directory - /ws/terminal accepts an allowlisted cmd that the shell runs on start - Opening a project writes AGENTS.md (hook contract) and CLAUDE.md if missing - Remove /api/hooks/ai/generate and the Gemini drawer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The hook editor's AI Assistant button now opens a terminal next to the editor, running
claude,geminiorcodexfrom the user's PATH in the project folder. The tool uses the user's own login, so zX no longer asks for or stores a Gemini API key in project state./ws/terminaltakes an optionalcmdlimited toclaude|gemini|codex. The backend shell runs it on start because zsh drops input typed before it's ready.AGENTS.md(hook contract) and aCLAUDE.mdthat imports it, if they don't exist./api/hooks/ai/generate, the Gemini key setup, and the Generate and Autocomplete modes.Testing
tsc --noEmitpasses, and thetest_appsslurm, camel and zdt1 scripts pass.cmdis refused,Projects that already stored a
GEMINI_API_KEYin their shared state keep it until someone deletes it.🤖 Generated with Claude Code