Split the comma: , context-free, ,, context-aware - #5
Merged
Conversation
Doubling the comma now means "bring the terminal context": `,, <prompt>` proposes commands with the previous command / exit status (and more at higher ladder levels) injected, while plain `,` never sees it. Bare `,,` keeps the repair behavior (`, --fix`). The comma-level --no-ctx flag is gone — context is opt-in per call instead of opt-out. `?` is unchanged (context on by default).
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
Follow-up to #4, refining the
,/,,semantics: doubling the glyph means "bring the terminal context", not just "fix"., <prompt>,, <prompt>, --ctx),,(bare), --fix, implies context)? <q>,is now opt-in per call (--ctx/--fix) instead of opt-out; the comma-level--no-ctxflag is gone.,,with the ladder atoffprints a gentle stderr note instead of silently proceeding without context.,,(typo'd push → fix) andmake 2>&1 | ? what broke; commands table and Terminal context section teach the split.Test plan
pytest -q); new coverage:--ctxinjects, plain,never injects (even with the ladder enabled), ladder-off hintruff checkandruff format --checkcleansource zsh/shellllm.zsh; fail a command → bare,,proposes a fix;,, <prompt>resolves "it/that"; plain,stays context-free