Repository navigation
insights: choose which projects the review reads before the scan, and see the plan with --dry-run - #50
Merged
Conversation
… see the plan with --dry-run The setup tool lists the git repos with sessions in the last 30 days, busiest first, and asks which to review (the busiest 3 are the default) before anything is scanned. The skill takes --dry-run, --only NAME and --skip NAME. The list and the scan rank projects by the same count. A chosen repo is checked, and opened by the scan, or refused before any step. The Review tab says which projects were read and how to change the choice. Scripts are copied from the sources this repo is published from. No version change.
Merged
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.
Before and after:
/insights:my-agentic-setuppicked the 3 most active projects by itself after a scan of about 3 minutes, and only the page said which ones it had read. To read a different project the person had to know about an internal--onlyflag of a script, and a name it could not open failed late, after the slow steps. The page's list of busiest projects and the scan could also disagree: the page ranked by the folder a session started in, the scan also counted the repo the session edited.--dry-run,--only NAME(repeatable),--skip NAME(repeatable). With a flag given there is no question.--dry-runprints the plan and stops: the run folder it would make, the projects and why, the projects left out, every step with what it reads and writes, how many AI readers and a token estimate, and that nothing leaves the laptop. It writes nothing.worked_in.py, used by the inventory, the list and the scan./insights:my-agentic-setup --only NAME; the name comes from the plugin's ownplugin.json). A choice the person confirmed reads "your busiest 3, which you confirmed"; a different one reads "chosen by you".~/agentic-setup/run-<date>-<time>/), made after the projects are chosen, so a second run no longer overwrites the first one's answers. A dry run names the folder it would make.Example:
/insights:my-agentic-setup --dry-run --only api-serverprints the plan for that one project and exits.Limits:
.gitfolder on disk. A repo deleted since is not found. Sub-agent logs below the first level are not read, by the list or the scan.Test:
cd plugins/insights/scripts/v15/engine/variants/views && uv run --no-project --with pyyaml python -m unittest test_view_built test_view_mylevel test_counts(45 tests, OK)cd plugins/insights/scripts/v15/engine && uv run --no-project --with pyyaml python -I test_anatomy_projects.py(4 tests, OK)Dry run on a throwaway home with one repo:
HOME=$(mktemp -d) …with one session log, thencd plugins/insights/scripts && uv run --no-project --with pyyaml python -I run.py pre --dry-run --only NAMEprints the plan and the/insights:my-agentic-setuphint, and writes nothing.claude plugin validate .passes with the warnings it already had.The sources this repository is published from have more tests (the list against the scan's pick with the same input, typed names, a repo below a start folder, a chosen repo opened or refused, one run folder per run, the frozen page snapshots); they pass and are not shipped here.
One change. I did not edit a version, a
CHANGELOG.md,marketplace.jsonorkit.json.Nothing personal: no names, no paths from my machine, no output of my own scan, no secrets.
No version change: nothing reaches members until a release.