Skip to content

feat(cli): add /diff slash command to show git changes in working directory#22703

Open
Ninso112 wants to merge 3 commits into
NousResearch:mainfrom
Ninso112:feat-diff-command
Open

feat(cli): add /diff slash command to show git changes in working directory#22703
Ninso112 wants to merge 3 commits into
NousResearch:mainfrom
Ninso112:feat-diff-command

Conversation

@Ninso112

@Ninso112 Ninso112 commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add /diff slash command to show git changes in the working directory
  • Supports optional arguments (e.g. /diff --staged path/to/file)
  • Checks for git availability and presence in a git repository before running
  • Output preserves colour when on a TTY with no extra args

Closes #22662

Ninso112 added 3 commits May 9, 2026 18:20
… and long forms

The generated zsh completion script used invalid _arguments syntax:
'(-h --help){-h,--help}[...]'.  Zsh () groups must contain only single-letter
short options, not long options with spaces.  Changed to '(-)'{-h,--help}'[...]'
which is the standard zsh completion convention.

Closes NousResearch#22686
…d update_fact

add_fact() now raises RuntimeError when a concurrent delete removes the
fact between a failed INSERT and the follow-up SELECT, instead of
crashing with TypeError.  update_fact() falls back to category='general'
when the category re-fetch returns no row after a concurrent delete.

Closes NousResearch#22660
…ectory

Runs 'git diff' with optional arguments (e.g. /diff --staged path/to/file).
Checks for git availability and presence in a git repository before running.
Output is piped through the user's pager when on a TTY and no extra args
are given, preserving colour output.

Closes NousResearch#22662
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists labels May 9, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing with #22662 (same feature — /diff slash command). Also related to older #4839.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard duplicate This issue or pull request already exists P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants