Repository navigation
feat: herdr plugin that opens gitui in a new tab and reports session changes - #1
Merged
Merged
Conversation
…changes to the agent
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
New plugin: the
gitui.openaction opens gitui in a new herdr tab rooted at the repository (argv-exec, straight into the TUI). The plugin takes read-only git snapshots before and after the session and, when something changed, delivers a short English summary to the agent in the focused pane: created commits, amend/rebase vs reset, branch switch (including detached HEAD), push (via ahead-count decrease), and staged/unstaged/untracked deltas. Nothing changed — nothing is sent.Undeliverable summaries are kept under
HERDR_PLUGIN_STATE_DIR/sessions/(7-day prune), prompts are capped at 64 KiB. Error and no-agent paths hold the pane until Enter. Git state is never mutated; gitui is resolved fromPATHwith an install hint on failure.Docs mirror herdr-revdiff: README,
docs/how-it-works.md(behavioral spec),docs/development.md, AGENTS, CONTRIBUTING, CHANGELOG, SECURITY; CI (version-sync, MSRV, lint, prettier, test matrix) and a 4-target release workflow.Testing
cargo fmt --checkcargo clippy --all-targets --locked -- -D warningscargo test --locked— 70 tests (unit + hermetic e2e with stub herdr/gitui and real git repos)cargo build --release --lockednpx --yes prettier@3.9.6 --check "**/*.md"gitui session summary:prompt delivered to the caller agent, tab auto-closed; non-git dir → error held until Enter