Command output summariser with filters, built for LLMs
Project description
glance — LLM-optimized output summarizer
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 forglance show— useglance listto 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.csvas 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 workflowREADME.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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26d5eff585ce65ef9ee5131fefc5b1613163e5ed0e8566c7ba9e56dc7c560476
|
|
| MD5 |
2fea72f407bae5e39ba6f96f067cbf59
|
|
| BLAKE2b-256 |
7c62d34d4deec639180e21155dd033a19514e5438fdba371e747f9eb5f2a189c
|
Provenance
The following attestation bundles were made for glancecli-0.1.1-py3-none-win_arm64.whl:
Publisher:
publish.yml on Akeboshiwind/glance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-win_arm64.whl -
Subject digest:
26d5eff585ce65ef9ee5131fefc5b1613163e5ed0e8566c7ba9e56dc7c560476 - Sigstore transparency entry: 975745531
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d8e21fe71119b1e72f770cfd44e9600e3c531cdb69a833a4cf966246fb1f9f
|
|
| MD5 |
224670661f8983c1d0c226cf6ca7670b
|
|
| BLAKE2b-256 |
2a8211bd7fd89b8b48ed2bb378cddec0d87858580e68c4c2fa135f3324b4c305
|
Provenance
The following attestation bundles were made for glancecli-0.1.1-py3-none-win_amd64.whl:
Publisher:
publish.yml on Akeboshiwind/glance
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-win_amd64.whl -
Subject digest:
e2d8e21fe71119b1e72f770cfd44e9600e3c531cdb69a833a4cf966246fb1f9f - Sigstore transparency entry: 975745537
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
File details
Details for the file glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c6891737db67be759b14c88cc8a8f4996586ddbc8d07848cf8ed004d16ba717
|
|
| MD5 |
1f135947afd8833d140c05d80ebe32b5
|
|
| BLAKE2b-256 |
b8dc6ffd47d4bcaed734e199513a776adcc39bba52a2022881c8f4f9af5e1d48
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-musllinux_1_2_x86_64.whl -
Subject digest:
7c6891737db67be759b14c88cc8a8f4996586ddbc8d07848cf8ed004d16ba717 - Sigstore transparency entry: 975745533
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
File details
Details for the file glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfce7cc4add9736f14b98e0d333e6b1fcf90b59640cc1a91d4c147fa73d04f8
|
|
| MD5 |
1820df2b83d5974235ce4fce372a6435
|
|
| BLAKE2b-256 |
b0850a9b14ae9845de3946802cde4b6ca0cbda196ee74448cffcc923e9993c25
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-musllinux_1_2_aarch64.whl -
Subject digest:
2dfce7cc4add9736f14b98e0d333e6b1fcf90b59640cc1a91d4c147fa73d04f8 - Sigstore transparency entry: 975745540
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
File details
Details for the file glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e0d6324268b9095e50a6859fb416abe3551e12edc62938dde0cee6bf9190f74
|
|
| MD5 |
8b22fa58d70c4d7b196b5a41fb5206e2
|
|
| BLAKE2b-256 |
19a526ce7e7cb82670d10775c5e5f7271f0333000387c9489b355f9895d1783d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-manylinux_2_17_x86_64.whl -
Subject digest:
5e0d6324268b9095e50a6859fb416abe3551e12edc62938dde0cee6bf9190f74 - Sigstore transparency entry: 975745542
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
File details
Details for the file glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac461bb95e98274b63bd485f6bde13de23b61c006f769a8ac448bdc167dbcc7e
|
|
| MD5 |
ef272fb9a10b4ecb8d46c25b6b361568
|
|
| BLAKE2b-256 |
c97000dd87154b8cc6d56c331b2fd224dc3f17489a5a11cdf50b5c0e16bed7ad
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-manylinux_2_17_aarch64.whl -
Subject digest:
ac461bb95e98274b63bd485f6bde13de23b61c006f769a8ac448bdc167dbcc7e - Sigstore transparency entry: 975745536
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
File details
Details for the file glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2913ce64e768681a3fe8f291848eb3f4b939d529cbe9daa32905a9a86f1ecbce
|
|
| MD5 |
19b403493db30c4ca951b1c08e7ba49a
|
|
| BLAKE2b-256 |
7147ae2057baf263deae3d88ccde47f5cbb83de45e31df95343ed1392e2e0984
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-macosx_11_0_arm64.whl -
Subject digest:
2913ce64e768681a3fe8f291848eb3f4b939d529cbe9daa32905a9a86f1ecbce - Sigstore transparency entry: 975745534
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type:
File details
Details for the file glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl.
File metadata
- Download URL: glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
402c6ce2301243ad8d972b6b7ae958f1da5f7b25a51ddfa974c745df56c5cd68
|
|
| MD5 |
c8d90dabd9923791ef2fa17c95ae42ef
|
|
| BLAKE2b-256 |
ec5b788c0ad25fe7614d5949a9ae39c3c3659256215b9782fa67245736702c5a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glancecli-0.1.1-py3-none-macosx_10_9_x86_64.whl -
Subject digest:
402c6ce2301243ad8d972b6b7ae958f1da5f7b25a51ddfa974c745df56c5cd68 - Sigstore transparency entry: 975745529
- Sigstore integration time:
-
Permalink:
Akeboshiwind/glance@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Akeboshiwind
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50c8a1818587a0e73d28c5f0b7f510d9b45ee562 -
Trigger Event:
release
-
Statement type: