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/juxt/glance@latest

Claude Code plugin:

/plugin marketplace add juxt/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.4-py3-none-win_arm64.whl (2.3 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.17+ x86-64

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

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

glancecli-0.1.4-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.4-py3-none-win_arm64.whl.

File metadata

  • Download URL: glancecli-0.1.4-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.4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 2c2b29382aadd70efbe763c3ee256b56c19e8736c6448c83b52672f55a0cd70f
MD5 3fc01fa76d31b4396af55802b4c72233
BLAKE2b-256 9ef6de184f3c7bd0a7d17f786bd111d5077cf13c42d6dc1bd729fc21e2005873

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-win_amd64.whl.

File metadata

  • Download URL: glancecli-0.1.4-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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 56d577abd222dad9bf89b651589d613270f9427245d2a0d921a4002ed40a7a08
MD5 0726f36bb20112f79ecd605aae61d77c
BLAKE2b-256 2061eef37381316565713a8b6dd9683cb6d5e3d8b4a594410b67a1f550cbf740

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.4-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c35867b4b5556073510adb1bac8d8d8c9076348528921e8dd87af97c22016fe6
MD5 4cb8fd8a174c2b6ae3d80ffd85cc9649
BLAKE2b-256 0f49dbb13ee1945e9f98f5dd43d3b0a65a58491a8f37c46e755ba1a650a3eb03

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.4-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d85c0d17352c063ffb14c63b68123e7b622aeebfc37cb990fb29e00e3466691d
MD5 e15d58e43c15a04daea86749b8a79bea
BLAKE2b-256 db388ed3a49408a5b8cae9b72cd30211e5b719ef1d8ae5e192170447d8e813cc

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.4-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 829ec7c406686189a9a554ffe0f0d72fd4976060309943b6876a9ad051976134
MD5 607173dfbee55c98605a87a5ee57bd38
BLAKE2b-256 efc3b7feda7724aed136869fe8491c84ef3667ae9435980fa007119f9fb7bbdd

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.4-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 6264ff71fe668811adfe0d1b1a295f8a2359cecf9bde4179d67ed3e8a969960f
MD5 8b4fe686bd1fce74119645ebe480cd84
BLAKE2b-256 546e60ff2b09ca0d439fb139b1942a9452e292f580abbb5be585c3eb792a905a

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b39e423281a9d55c5a14e7b8e942f053566c7b03d0da38ecf688852d0b90ed1b
MD5 22750c01ce2609fbd752636782293aa6
BLAKE2b-256 b156c6a697c5a294efef9c117d341675ec054834330001c214b7d66069bb6a35

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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.4-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for glancecli-0.1.4-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7ecc136d1520f65e3d2c1508a144b8d9b3cf5b754b341fb35a457fa7aceca53a
MD5 2996e6241b44d9c20d6eb93df369bec7
BLAKE2b-256 43f6146879e7daa11d5e42ef9657c26ca8a7dd22d96e1e99a6216ad4e9b4d6e2

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on juxt/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