Skip to content

Prepare gbrain keyless-mode fix for garrytan/gbrain#94 (--mode claude-code) - #9

Open
mnemonik-dev wants to merge 4 commits into
developfrom
claude/gbrain-no-api-keys-nj2jbz
Open

Prepare gbrain keyless-mode fix for garrytan/gbrain#94 (--mode claude-code)#9
mnemonik-dev wants to merge 4 commits into
developfrom
claude/gbrain-no-api-keys-nj2jbz

Conversation

@mnemonik-dev

Copy link
Copy Markdown
Owner

What

Adds work/gbrain-no-api-keys/ — a prepared, verified fix for garrytan/gbrain#94 ("Plans for a Claude Code-native mode (no API keys, like gstack)?"):

  • 0001-claude-code-keyless-mode.patchgit am-ready patch (built against gbrain master @ ddd66e1) adding gbrain init --mode claude-code: a fully working brain with zero provider API keys. PGLite engine, keyword + graph + title search (hybrid search's existing no-embedding-provider path), chat via the existing claude-cli OAuth recipe. Includes two related upstream bug fixes (the sentinel-beats-explicit-flag upgrade-path bug, and the wrong subagent-key caveat for claude-cli:* models), docs, and a 12-test suite.
  • README.md — scope, before/after gap analysis, and full verification log (all touched suites green, tsc --noEmit clean, end-to-end keyless smoke: init → import → search → embed refusal → upgrade re-init).
  • PR-DESCRIPTION.md — ready-to-paste PR body for the upstream submission.

Why a patch instead of an upstream PR

This session's GitHub scope is limited to mnemonik-dev/coding-fabric; the cross-owner add of garrytan/gbrain was rejected (v1 limitation), so the upstream PR must be opened from a fork by an account with access. Everything needed is in PR-DESCRIPTION.md.

Upstream inconvenience worth reporting

gbrain's master has an accidentally committed node_modules symlink pointing at /tmp/fleet/repo/node_modules (a path from someone's build machine). It's tracked despite .gitignore, so every fresh clone gets a dangling symlink and bun install misbehaves until rm node_modules && bun install. The upstream PR description includes this heads-up with the one-line fix (git rm --cached node_modules); it's deliberately kept out of the patch to stay scoped to #94.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WQ7za53ZWxWqL2XAfSgTux


Generated by Claude Code

claude added 4 commits July 28, 2026 02:14
git am-ready patch adding 'gbrain init --mode claude-code': zero-API-key
operation for Claude Code subscribers (PGLite + keyword/graph search,
chat via the claude-cli OAuth recipe), plus two related upstream bug
fixes. See work/gbrain-no-api-keys/README.md for scope and verification.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQ7za53ZWxWqL2XAfSgTux
Includes the node_modules-symlink heads-up for the upstream maintainer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQ7za53ZWxWqL2XAfSgTux
The prep session's proxy blocks all GitHub API calls to garrytan/gbrain
(cross-owner add_repo is a v1 limitation), so the final PR-open call is
packaged as a curl script + JSON payload runnable with any token that
can see the upstream repo.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQ7za53ZWxWqL2XAfSgTux
Two one-shot sessions failed to post it; manual posting fallback.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WQ7za53ZWxWqL2XAfSgTux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants