Skip to content

Split the comma: , context-free, ,, context-aware - #5

Merged
FrancoisChastel merged 2 commits into
mainfrom
feat/cli-redesign-recall
Jun 12, 2026
Merged

Split the comma: , context-free, ,, context-aware#5
FrancoisChastel merged 2 commits into
mainfrom
feat/cli-redesign-recall

Conversation

@FrancoisChastel

Copy link
Copy Markdown
Owner

Summary

Follow-up to #4, refining the , / ,, semantics: doubling the glyph means "bring the terminal context", not just "fix".

Invocation Behavior
, <prompt> propose commands — no terminal context, ever
,, <prompt> propose with terminal context (, --ctx)
,, (bare) fix the previous command (, --fix, implies context)
? <q> unchanged — context on by default
  • Context for , is now opt-in per call (--ctx/--fix) instead of opt-out; the comma-level --no-ctx flag is gone.
  • ,, with the ladder at off prints a gentle stderr note instead of silently proceeding without context.
  • README hero now demos ,, (typo'd push → fix) and make 2>&1 | ? what broke; commands table and Terminal context section teach the split.

Test plan

  • 256 tests pass (pytest -q); new coverage: --ctx injects, plain , never injects (even with the ladder enabled), ladder-off hint
  • ruff check and ruff format --check clean
  • Manual: source zsh/shellllm.zsh; fail a command → bare ,, proposes a fix; ,, <prompt> resolves "it/that"; plain , stays context-free

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).
@FrancoisChastel
FrancoisChastel merged commit 97b2092 into main Jun 12, 2026
2 checks passed
@FrancoisChastel
FrancoisChastel deleted the feat/cli-redesign-recall branch June 12, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant