Skip to main content

Command output summariser with filters, built for LLMs

Project description

glance — LLM-optimized output summarizer

PyPI Go tests License: MIT

LLMs read every token of command output with equal attention, unlike humans who skim head/tail and scan for patterns. glance gives LLMs a human-like "skim" — pipe output in, get a token-efficient summary with head/tail + regex-matched lines, plus an ID to drill deeper.

Install

# Install permanently (puts `glance` on PATH)
uv tool install glancecli

# One-shot without installing
uvx --from glancecli glance

# Or with Go
go install github.com/akeboshiwind/glance@latest

What it does

$ seq 500 | glance -n 3
  1: 1
  2: 2
  3: 3
498: 498
499: 499
500: 500
--- glance id=20260219-143022-a3f8b1c0 | 500 lines | showing 6 | sections: 1-3, 498-500 ---
$ (seq 100; echo "ERROR db connection refused"; seq 200) | glance -n 3 -p errors
  1: 1
  2: 2
  3: 3
101: ERROR db connection refused
299: 198
300: 199
301: 200
--- glance id=20260219-143025-b7c2e4f1 | 301 lines | showing 7 | sections: 1-3, 101, 299-301 ---

The stored capture can be drilled into:

$ glance show 20260219-143025-b7c2e4f1 -a 101 2
 99: 99
100: 100
101: ERROR db connection refused
102: 1
103: 2
--- glance show 20260219-143025-b7c2e4f1 | 301 lines | showing 5 | sections: 99-103 ---

Design decisions

  • Single static binary — compiled Go, no runtime dependencies. Cross-compiled for Linux, macOS, and Windows (amd64 + arm64).
  • OR semantics — all matchers (filters + presets) OR together. Head/tail always shown. This is the most useful behavior for scanning output: "show me the start, end, and anything interesting".
  • Persistent storage — captures stored in $XDG_CACHE_HOME/glance/captures/ with timestamp + hex IDs (e.g. 20260219-143022-a3f8b1c0). Full ID required for glance show — use glance list to find IDs.
  • No metadata files — line count and age derived from the stored file itself (wc -l, stat).
  • Built-in + user presets — three hardcoded presets (errors, warnings, status) cover common patterns. User presets stored in ~/.config/glance/presets.csv as CSV. Use (?i) prefix for case-insensitive matching.

Usage

See glance help for complete documentation. Key commands:

Command Description
cmd | glance Head 10 + tail 10
cmd | glance -n 5 Head 5 + tail 5
cmd | glance -f 'regex' + regex filter matches
cmd | glance -p errors + preset filter
glance show <id> Full stored output
glance show <id> -l 50-80 Line range
glance show <id> -f 'regex' Filter stored output
glance show <id> -p errors Filter with preset
glance show <id> -a N C Context around line N
glance list List stored captures
glance clean Purge captures
glance presets list Show all presets
glance presets add <name> <re> [desc] Add user preset
glance presets remove <name> Remove user preset

Preset names must be alphanumeric (plus hyphens and underscores).

Testing

go test ./...

Files

  • main.go — entry point and CLI
  • *_test.go — integration and unit tests
  • .github/workflows/publish.yml — PyPI release workflow
  • README.md — this file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

glancecli-0.1.1-py3-none-win_arm64.whl (2.3 MB view details)

Uploaded Python 3Windows ARM64

glancecli-0.1.1-py3-none-win_amd64.whl (2.4 MB view details)

Uploaded Python 3Windows x86-64

glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl (2.3 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl (2.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl (2.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl (2.3 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file glancecli-0.1.1-py3-none-win_arm64.whl.

File metadata

  • Download URL: glancecli-0.1.1-py3-none-win_arm64.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for glancecli-0.1.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 26d5eff585ce65ef9ee5131fefc5b1613163e5ed0e8566c7ba9e56dc7c560476
MD5 2fea72f407bae5e39ba6f96f067cbf59
BLAKE2b-256 7c62d34d4deec639180e21155dd033a19514e5438fdba371e747f9eb5f2a189c

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-win_arm64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: glancecli-0.1.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for glancecli-0.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e2d8e21fe71119b1e72f770cfd44e9600e3c531cdb69a833a4cf966246fb1f9f
MD5 224670661f8983c1d0c226cf6ca7670b
BLAKE2b-256 2a8211bd7fd89b8b48ed2bb378cddec0d87858580e68c4c2fa135f3324b4c305

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-win_amd64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7c6891737db67be759b14c88cc8a8f4996586ddbc8d07848cf8ed004d16ba717
MD5 1f135947afd8833d140c05d80ebe32b5
BLAKE2b-256 b8dc6ffd47d4bcaed734e199513a776adcc39bba52a2022881c8f4f9af5e1d48

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2dfce7cc4add9736f14b98e0d333e6b1fcf90b59640cc1a91d4c147fa73d04f8
MD5 1820df2b83d5974235ce4fce372a6435
BLAKE2b-256 b0850a9b14ae9845de3946802cde4b6ca0cbda196ee74448cffcc923e9993c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 5e0d6324268b9095e50a6859fb416abe3551e12edc62938dde0cee6bf9190f74
MD5 8b22fa58d70c4d7b196b5a41fb5206e2
BLAKE2b-256 19a526ce7e7cb82670d10775c5e5f7271f0333000387c9489b355f9895d1783d

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 ac461bb95e98274b63bd485f6bde13de23b61c006f769a8ac448bdc167dbcc7e
MD5 ef272fb9a10b4ecb8d46c25b6b361568
BLAKE2b-256 c97000dd87154b8cc6d56c331b2fd224dc3f17489a5a11cdf50b5c0e16bed7ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2913ce64e768681a3fe8f291848eb3f4b939d529cbe9daa32905a9a86f1ecbce
MD5 19b403493db30c4ca951b1c08e7ba49a
BLAKE2b-256 7147ae2057baf263deae3d88ccde47f5cbb83de45e31df95343ed1392e2e0984

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 402c6ce2301243ad8d972b6b7ae958f1da5f7b25a51ddfa974c745df56c5cd68
MD5 c8d90dabd9923791ef2fa17c95ae42ef
BLAKE2b-256 ec5b788c0ad25fe7614d5949a9ae39c3c3659256215b9782fa67245736702c5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl:

Publisher: publish.yml on Akeboshiwind/glance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page