gixt retrieves Gist artifacts with cat and executes code explicitly with run.
gixt cat <target> [<target> ...]
gixt print <target> [<target> ...]
gixt run <target> [--entry <filename>] [-- <args>]
gixt <target> # shorthand for gixt cat <target>
The print command is an alias for cat. Bare targets retrieve content; execution always requires gixt run.
A target identifies a Gist. An entry identifies one file in that Gist.
Targets resolve in this order:
owner/name from the known store, then live owner lookup;An alias identifies a Gist, never a file. An exact filename target carries the requested filename into selection. A stem identifies the Gist but does not force a particular variant. Ambiguous targets remain errors and show disambiguators.
catgixt cat review-prompt | agent
gixt cat review.md style.md | agent
gixt cat review.md --entry review.md
Each target is resolved independently and processed in command-line order. A Gist target emits all files in lexical order. An exact filename target emits that file. --entry is valid only with one target.
cat writes selected bytes directly to stdout. It adds no headers, separators, or newlines, and it never executes code or checks trust. Diagnostics and warnings go to stderr, so binary output and shell pipelines remain safe.
Flags:
--offline — use only the cached revision.--no-cache — use a temporary directory and remove it afterwards.--ref <sha> — select a specific revision, overriding a pin.--entry <filename> / -e — select one exact file.rungixt run cleanup-script -- --dry-run
gixt run --entry cleanup.sh cleanup-script
gixt run --python .venv/bin/python script.py
Entry selection order is:
--entry;main.*;index.*;After selection, execution resolution is Python override, shebang, then extension mapping. Trust approval applies only to run, keyed by Gist ID and revision.
run --view remains temporarily available for compatibility but is deprecated. Use gixt cat for retrieval.
# Exact filename target: selects that file
gixt run review.sh
# Stem target: resolves the Gist, then uses normal fallback selection
gixt run review
# Alias identifies the Gist; --entry identifies the file
gixt run --entry review.sh review-prompt
Use gixt add <target> --as <name> to remember an alias. Aliases are globally unique; use --entry to select files within the aliased Gist.
Forget remembered entries with gixt remove <target>, or remove an owner’s local entries with gixt remove --owner <owner> --yes.
List remembered entries with gixt list, or inspect an owner’s remote Gists with gixt list <owner> --limit 30. Add --verbose to show full IDs, update dates, and descriptions wrapped to the available table width.
gixt self version
gixt self update-check
gixt self update
update-check compares your version with the latest stable GitHub release.
update downloads the matching platform archive, verifies its SHA-256 checksum
from that release, and replaces the executable you actually ran. Symlinks are
preserved; their resolved executable is updated. Existing versioned installations
are not downgraded, and config, cache, and trust data are untouched.
go install github.com/leolaurindo/gixt/cmd/gixt@latest instead.brew --prefix gixt, then print brew upgrade gixt. No upgrade is run and
managed binaries are never overwritten. The tap’s version can lag GitHub;
update-check still reports the GitHub version.self update.Updates require write access to the executable’s directory; gixt does not elevate
privileges. Downloads are bounded and failures before replacement leave the
current executable intact. Unix replacement is atomic. Windows uses a backup
and rolls back if installation fails; a .gixt.exe.old backup can remain while
the old executable is running and is removed by the next update.
Concurrent updates are rejected. If an interrupted update leaves an
.update-lock file, remove the lock path reported by the error only after
confirming no update is running.
--offline never contacts GitHub and requires a cached revision.--ref is absent.cat does not prompt or modify trust.run prompts for an unapproved revision unless --yes is supplied.Inspect metadata and files with:
gixt gist show <target>
Remember Gists with:
gixt add <target> --as <name>
gixt add owner <owner>
gixt add mine