feat(harnesses): add Grok Build TUI adapter - #122
Open
DevMasterDru wants to merge 3 commits into
Open
Conversation
Grok ignores SessionStart/UserPromptSubmit stdout, so reuse of the Claude hooks cannot capture or inject. Add a first-class grok adapter (hooks under .grok/hooks/kk.json, transcripts from ~/.grok/sessions, GROK_AGENT detect) and no-op Claude kenkeep hooks when GROK_AGENT=1 so dual-harness installs do not double-fire.
Agents run skills/kenkeep-init/scripts/init-repo.sh to git-init, wire claude+grok, write the CLAUDE.md pointer, and doctor. install-cli.sh symlinks the skill into ~/.agents/skills and ~/.claude/skills.
Every repo initialized by the skill now wires claude,codex,grok. Doctor runs across all installed adapters. Surface Codex /hooks trust next to Grok /hooks-trust.
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.
Why
Grok Build TUI is a first-class coding harness (skills, SessionStart/Stop/SessionEnd/PreCompact hooks,
grok -pheadless) but is not in kenkeep's adapter registry. Reusing the Claude adapter does not work:SessionStartandUserPromptSubmit(noadditionalContext).transcript_path. Grok session ids are UUIDv7 and transcripts live at~/.grok/sessions/<encoded-cwd>/<id>/chat_history.jsonl.This is the same class of adapter as Copilot/OpenCode.
What
src/harnesses/grok/adapter:GROK_AGENT=1detect,.grok/hooks/kk.json, capture from Grok session files (realpath-confined), headlessgrok -p --output-format json --yolo.GROK_AGENT=1. Skills stay in.claude/skills/when that tree already exists.npx kenkeep init --harnesses grok(orclaude,grok).listMemoryFilesreturns[](do not use Grok experimental memory).Install (consumer)
Grok project hooks stay silent until
/hooks-trust(orgrok --trust).Test plan
npm test/npm run typecheck(641 passed; 2 Linux-only notify-send tests skipped on macOS).init --harnesses grok+doctor --harness grok.claude,grok: skills not duplicated under.grok/skills/.