Directories
¶
| Path | Synopsis |
|---|---|
|
ai
|
|
|
provider
Package provider models external AI CLIs as Provider adapters.
|
Package provider models external AI CLIs as Provider adapters. |
|
Package aichat implements `gk do`, `gk explain`, and `gk ask` — AI-powered conversational commands that generate/execute git/gk command sequences, diagnose errors, and answer repository-context questions.
|
Package aichat implements `gk do`, `gk explain`, and `gk ask` — AI-powered conversational commands that generate/execute git/gk command sequences, diagnose errors, and answer repository-context questions. |
|
Package aicommit implements `gk commit` — WIP clustering into semantic file groups, Conventional Commit message generation via an external AI CLI provider, and safe multi-commit application.
|
Package aicommit implements `gk commit` — WIP clustering into semantic file groups, Conventional Commit message generation via an external AI CLI provider, and safe multi-commit application. |
|
Package branchparent persists and resolves the parent branch of a local git branch — the branch from which it forked and against which divergence should be reported.
|
Package branchparent persists and resolves the parent branch of a local git branch — the branch from which it forked and against which divergence should be reported. |
|
Package chat implements the gk chat engine: a multi-turn, tool-calling conversation over the repository, built on provider.ToolCaller and the sandboxed read-only tool registry in internal/chat/tools.
|
Package chat implements the gk chat engine: a multi-turn, tool-calling conversation over the repository, built on provider.ToolCaller and the sandboxed read-only tool registry in internal/chat/tools. |
|
tools
Package tools implements the read-only tool surface `gk chat` exposes to the model: five whitelisted git subcommands and two file tools, every invocation passing through the Sandbox and the shared redaction pipeline before its result reaches a (remote) provider.
|
Package tools implements the read-only tool surface `gk chat` exposes to the model: five whitelisted git subcommands and two file tools, every invocation passing through the Sandbox and the shared redaction pipeline before its result reaches a (remote) provider. |
|
Package cli wires all gk subcommands into a cobra tree.
|
Package cli wires all gk subcommands into a cobra tree. |
|
Package diff implements unified diff parsing, rendering, and formatting for the `gk diff` command.
|
Package diff implements unified diff parsing, rendering, and formatting for the `gk diff` command. |
|
Package easy implements the Easy Mode engine for gk CLI.
|
Package easy implements the Easy Mode engine for gk CLI. |
|
Package forget implements `gk forget` — history-rewriting removal of files that should never have been committed (DBs, secrets, build artefacts).
|
Package forget implements `gk forget` — history-rewriting removal of files that should never have been committed (DBs, secrets, build artefacts). |
|
Package github is a minimal, dependency-free client for the slice of the GitHub REST API gk needs (currently: listing an owner's repositories for `gk clone` with no arguments).
|
Package github is a minimal, dependency-free client for the slice of the GitHub REST API gk needs (currently: listing an owner's repositories for `gk clone` with no arguments). |
|
Package gitsafe centralizes safety-critical git primitives shared across commands that move HEAD or rewrite refs (undo, wipe, timemachine).
|
Package gitsafe centralizes safety-critical git primitives shared across commands that move HEAD or rewrite refs (undo, wipe, timemachine). |
|
Package i18n provides a key-value message catalogue with per-language, per-mode (normal / easy) message storage and a deterministic fallback chain.
|
Package i18n provides a key-value message catalogue with per-language, per-mode (normal / easy) message storage and a deterministic fallback chain. |
|
Package lineedit is a vendored copy of golang.org/x/term's Terminal line editor (v0.42.0), patched to be East-Asian-wide-rune aware.
|
Package lineedit is a vendored copy of golang.org/x/term's Terminal line editor (v0.42.0), patched to be East-Asian-wide-rune aware. |
|
Package policy is the gk guard policy engine.
|
Package policy is the gk guard policy engine. |
|
rules
Package rules holds the built-in gk guard policy rule implementations.
|
Package rules holds the built-in gk guard policy rule implementations. |
|
Package scan centralizes secret-scanning helpers used by gk guard.
|
Package scan centralizes secret-scanning helpers used by gk guard. |
|
Package secrets provides built-in secret-pattern scanning for gk push.
|
Package secrets provides built-in secret-pattern scanning for gk push. |
|
gitleaksrules
Package gitleaksrules scans unified diffs with the gitleaks default ruleset embedded in the gk binary, so secret scanning works without the gitleaks binary installed.
|
Package gitleaksrules scans unified diffs with the gitleaks default ruleset embedded in the gk binary, so secret scanning works without the gitleaks binary installed. |
|
Package stash wraps `git stash` so the CLI can present a friendly list/apply/drop UX without scattering shell-out logic across cli/.
|
Package stash wraps `git stash` so the CLI can present a friendly list/apply/drop UX without scattering shell-out logic across cli/. |
|
Package timemachine assembles the unified event stream that `gk timemachine` surfaces — HEAD reflog + per-branch reflogs + refs/gk/*-backup/ + (opt-in) stash and dangling commits.
|
Package timemachine assembles the unified event stream that `gk timemachine` surfaces — HEAD reflog + per-branch reflogs + refs/gk/*-backup/ + (opt-in) stash and dangling commits. |
|
Package update implements `gk update` — self-update with install-source detection.
|
Package update implements `gk update` — self-update with install-source detection. |
Click to show internal directories.
Click to hide internal directories.