llm-tmux-fragments
Expose tmux scrollback to LLM via fragments, and ship shassist-inspired templates.
Install
llm install llm-tmux-fragments # from PyPI
# or, local dev:
llm install -e .
Use: fragments
llm -f tmux:current:2000 "Explain the last error"
llm -f tmux:%1:500 "Summarize what happened in pane %1"
llm -f tmux:all:800 "Give me a cross-pane diagnosis"
llm -f tmux:sys -f tmux:current "Given sys+history, propose a safe fix"
Notes: content is limited by tmux history-limit; consider raising it (e.g., set -g history-limit 50000). (GitHub, Stack Overflow)
Use: templates
llm -t shassist:default -f tmux:current "Why did this pip install fail?"
llm -t shassist:command -f tmux:%1:200 "Give only the exact fix command"
llm -t shassist:default -f tmux:all:600 "Plan the next steps across panes"
llm -t shassist:default -f tmux:current "Critique my awk, then improve it"
Don’t want bundled templates? DIY:
llm --system 'You are a shell mentor…' --save shassist-default
llm -t shassist-default -f tmux:current 'Explain last error'
(See LLM templates docs for --save and template usage.) (llm.datasette.io)
How it works
The plugin registers a fragment loader (tmux:) and a template loader (shassist:). The fragment loader calls tmux capture-pane with a default line count based on #{history-limit}, returning one or more fragments (one per pane for all). Template loader returns prompts for a shell assistant.
Credit: Inspired by Answer.AI’s shell_sage. ([shell_sage][6])
Metadata
Release files for llm-tmux-fragments 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_tmux_fragments-1.0.0.tar.gz | 53.4 kB | Without provenance | Details for llm_tmux_fragments-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_tmux_fragments-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for llm_tmux_fragments-1.0.0-py3-none-any.whl |
Total release size: 58.5 kB
Release files / llm_tmux_fragments-1.0.0.tar.gz
| Download URL | llm_tmux_fragments-1.0.0.tar.gz |
|---|---|
| Size | 53.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
632443e647f8dc66bf57b81f334da257bedbd42051b7cce79c6b4d1de835858c
|
|
BLAKE2b-256 checksum How to use checksums |
ec978a0fcbdb53ac0444de2d095ff71099b108eb88c47ab144bd6f313af89ba9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / llm_tmux_fragments-1.0.0-py3-none-any.whl
| Download URL | llm_tmux_fragments-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccbebb6d2370bba340dd89895acf5a6d8848ec2d0014b6eb1727f0d0d847dd13
|
|
BLAKE2b-256 checksum How to use checksums |
67ad0e965965146502ae4c829d65f408ab7d35e8178f14b861d536fe140c1901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for llm-tmux-fragments 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.