Goal
Make github-code-search available as an official gh extension under the name gh-gcs, without rewriting or duplicating logic. All business logic stays in this repository; fulll/gh-gcs is a lightweight binary distributor only.
Expected result
gh extension install fulll/gh-gcs
gh gcs --org fulll "useEffect" # → full TUI, same experience as today
gh extension upgrade gh-gcs # → automatic updates
Scope
- Subcommand exposed via
gh gcs: query only (interactive TUI)
- The
upgrade and completions subcommands remain exclusive to the standalone binary
- No rewrite in Go — existing pre-compiled Bun binaries are reused as-is
Architecture
fulll/github-code-search ← all logic, build, binaries
│
│ repository_dispatch after release
▼
fulll/gh-gcs ← thin repo, 0 source code
│ downloads + renames assets
│ publishes a gh release with the gh naming convention
▼
gh extension install fulll/gh-gcs
Asset naming convention
github-code-search asset |
gh-gcs asset |
github-code-search-linux-x64 |
gh-gcs-linux-amd64 |
github-code-search-linux-arm64 |
gh-gcs-linux-arm64 |
github-code-search-macos-x64 |
gh-gcs-darwin-amd64 |
github-code-search-macos-arm64 |
gh-gcs-darwin-arm64 |
github-code-search-windows-x64.exe |
gh-gcs-windows-amd64.exe |
Sub-issues
Acceptance criteria
Goal
Make
github-code-searchavailable as an officialghextension under the namegh-gcs, without rewriting or duplicating logic. All business logic stays in this repository;fulll/gh-gcsis a lightweight binary distributor only.Expected result
Scope
gh gcs:queryonly (interactive TUI)upgradeandcompletionssubcommands remain exclusive to the standalone binaryArchitecture
Asset naming convention
github-code-searchassetgh-gcsassetgithub-code-search-linux-x64gh-gcs-linux-amd64github-code-search-linux-arm64gh-gcs-linux-arm64github-code-search-macos-x64gh-gcs-darwin-amd64github-code-search-macos-arm64gh-gcs-darwin-arm64github-code-search-windows-x64.exegh-gcs-windows-amd64.exeSub-issues
gh auth tokeninsrc/api.tsargv[0]detection ingithub-code-search.ts(gh-gcs mode)fulll/gh-gcsrepository with README andgh-extensiontopicfulll/gh-gcscd.yamlviarepository_dispatchAcceptance criteria
gh extension install fulll/gh-gcsworks on macOS arm64, macOS x64, Linux x64, Linux arm64, Windows x64gh gcs --org fulll "query"launches the TUI without needing to exportGITHUB_TOKEN(whengh auth loginhas been done)GITHUB_TOKENcontinues to work (backward compatibility)github-code-searchautomatically triggers a release ingh-gcsbun test && bun run lint && bun run knip