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

Claude Code plugin:

/plugin marketplace add akeboshiwind/glance
/plugin install glance

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). Use (?i) prefix in regex for case-insensitive matching:

glance presets add deploys '(?i)deploy|release|rollout' 'Deployment events'

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.3-py3-none-win_arm64.whl (2.3 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

glancecli-0.1.3-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.3-py3-none-win_arm64.whl.

File metadata

  • Download URL: glancecli-0.1.3-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.3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 43a191ddfa6f8b9e391e119803c0741dba38f9d3f6cb84b81418d335c7a8094f
MD5 821459b2fc56f2c404fae4a7e558f135
BLAKE2b-256 42c3490a4e828ab77959041e2859086614f0b3c892ed6afcdcf90222e899e620

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: glancecli-0.1.3-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.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7d316faf3bb440d3b11e488035026939f2921e74d19a7c02d958511e2e32896a
MD5 a2aa22e60650c0f40d5d057ba81e666c
BLAKE2b-256 27ccdd0c856088d2f9fe95c5eaf2caa115490bb09471c8c8e74874ff1759619c

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.3-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a5d3e57604b2af7d69f327348d248b0831e74c6209ddd75652e8e35010e397ea
MD5 c58ff7fa2826a0e044d2645551aa5326
BLAKE2b-256 d606cc4d3a6262bf6b52fe2d897b5469d95e9c51bc3f889564ece0fb623c0dce

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.3-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d3bc477826f0c97a293069dca90076c82658b172d65440dc63cda96ebca64c57
MD5 e0c2450070f12b3f04bcc334452be08e
BLAKE2b-256 b9d9ccf2922c791f598362d551dae41cdb64239f334f5af7367018c9561fd7e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4cbc3e66af4293e234c5cd826e6c6f400a9dc5825367608c061ba4e8f9663543
MD5 53cd9f86c6440ef47e323da981cc82eb
BLAKE2b-256 827c7ae3f558ee8705760737c49b36c097208018c8927cbeb16c4e2442499366

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 e07deece21b2667e65e2a2e2d7368fa57db44dd1e20b6aafe56913da482bf3ee
MD5 f179aa5aff81d97c6de87c4a8ae175cd
BLAKE2b-256 f3e3fc661458405072c40434e5dda98bd6c85a156b1074c21e937f924e6164c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47dd6c482b2bcdced0fdbd288619307a5d809327724deb4df3f8f5ae770bebab
MD5 1d5eda7024e6553199c0bdc970762344
BLAKE2b-256 257d216cac333181bd7e61a57cce3ae87047c3bcf55cad72593fb2dca352447d

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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.3-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.3-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 236d1322841aae95504b4914c3556522b0634f9d617577f99226880ca88b57af
MD5 6e34287894d31f89cc9a6c0726727334
BLAKE2b-256 04fe14290834e940cbdbafacd11e1df31b138283bcd1c9f2fa9485b3099fae0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for glancecli-0.1.3-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