Release-ready: working demo gif, fix-mode polish, piped-input lands in the model - #6
Merged
Merged
Conversation
…0.2.0 - README install is now three explicit steps (tool → model → go) with the previously missing huggingface-cli download step and the AUTOSTART path. - Formula caveats/test cover shellllm-recall, shell_context, and the new glyphs; HOMEBREW.md user steps match. - AGENTS.md describes the current five-glyph surface and adds the terminal-context ladder to the load-bearing invariants. - `, --help` no longer points at the removed `?:` verb. - Version 0.1.0 → 0.2.0 in pyproject and __init__ (release.sh reads both).
The previous demo and live usage exposed three real bugs in the repair and piping paths, all fixed here: 1. **`,,` continued the prior `,` thread.** Repair is a one-shot diagnosis of shell state, not a refinement of the last question. `--fix` now archives + resets the comma session before running, so the model sees only the failed command, not the prior turn. 2. **`,,` proposed commands that operated on cwd files** (`python3 build.py`, `cat build.py`) instead of fixing the failed command. Two changes: (a) a dedicated `_fix_system_prompt()` that pins the model to REPLACEMENT commands and forbids inspection/list/explain outputs (no `ls -la`, no `echo $?`); (b) the cwd-listing context block is now skipped in fix mode — the model anchored on filenames in that listing and ignored the actual failed command. 3. **`make 2>&1 | ? what broke` came back with "I don't see any input attached".** Local 27B-class models reliably ignore system messages saying "this IS the input". Piped content now rides on the user message (with framing instructions), where it gets the attention it deserves. Verified end-to-end via the demo. Also along the way: - Previous-command capture switched from `fc -ln -2 -2` (unreliable inside function bodies) to zsh's `$history[$HISTCMD-1]` plus a `precmd` hook for exit status. Robust across HIST_IGNORE_DUPS / SHARE_HISTORY. - demo.tape rewritten with model warmup, Wait+Screen sync (no fragile Sleep guesses), and new beats: `,,` repairs a `gti status` typo, `make … | ? …` pipes a real traceback in. Rendered demo.gif embedded in the README hero. 256 → 257 tests; ruff clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Final pre-release polish. Two layered changes:
1. Release-readiness docs pass (
75b46a6)2. Fix-mode polish, piping that actually works, real demo gif (`c674df8`)
Three real bugs caught while rendering the demo, all fixed:
Plus:
Test plan