Repository navigation
insights: the most active project is read from every session the person typed in, in any app, not only the terminal - #13
Merged
Conversation
…e person typed in, in any app, not only the terminal The 11-12 run on the owner's laptop picked ~/PhpstormProjects (3 terminal sessions, an empty repo) over ~/PhpstormProjects/scribing (169 sessions, all from the Claude desktop app), so the review read trunk/, powerbright-blogs/ and susica/ and the level read the wrong project. - anatomy_scan counted a typed session only when the entrypoint was "cli". A session from the desktop app, VS Code or JetBrains (entrypoint claude-desktop, claude-vscode, claude-jetbrains; the evidence inventory's PERSON_APPS) carries the person's messages the same way; a headless run (sdk-*) carries a program's prompt and still counts for no project. The count is now most_active(per, n), with PERSON_ENTRIES and person_session() beside it. - setup_map.pick_projects, the same count from chats.jsonl when anatomy-scan.json is missing (no PyYAML), applies the same list. - test_anatomy_projects and test_pick_projects: a repo with 3 desktop-app sessions outranks a folder with 1 terminal session, and 5 headless runs count for no project. On this laptop both picks now read scribing first (anatomy: scribing 170, phpstormprojects 7; setup map: 66 vs 5). Co-Authored-By: Claude Fable 5.1 <[email protected]>
Main now holds proxify-dev#14-proxify-dev#17. One conflict, in anatomy_scan.py: this branch moved the pick into most_active, while proxify-dev#14 added the repos a session worked in to the same count and proxify-dev#16 ranked it with busiest (ties by path). most_active now does all three: the start repo, the repos the session worked in, ranked with busiest. Each side's rule for which sessions count is kept as it was; the next commit makes them one.
…ot sdk-* The pick counted a session from four named entrypoints (this branch) in one place and only the terminal in the two places proxify-dev#14 added (the repos a session worked in, in anatomy_scan and in setup_map's fallback). Now one rule, in every place, and the same one the portable checks (Laptop.interactive) and logs.py use: a session counts unless it is a headless run (sdk-*). A new app, or a Claude Code too old to name an entrypoint, counts too. - anatomy_scan.person_session: not entry.startswith("sdk"); most_active counts the start repo and the worked-in repos with it; the images and session-reference checks drop only headless runs, by the same function. - setup_map.pick_projects: chats.jsonl rows count for their start repo and the repos they worked in, from any app. - test_anatomy_projects: a session that names no entrypoint is the person's.
One case per pick: anatomy_scan.most_active with a worked-in link, and setup_map.pick_projects with a desktop-app session started in the home folder that worked in a repo. Either fails if a terminal-only check comes back.
Member
|
Thank you for this one too. You found something real. Sessions in the Claude desktop app or in an editor like VS Code never counted when the tool picked someone's busiest projects. So the page could review a folder they barely use and judge their level on it. That has been there since the first version. Your fix is in, and your commit stays exactly as you pushed it. We added a few commits on your branch, so you don't have to:
It ships in the next release, with credit in the release notes. |
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.
Why
Running the tool on my laptop on 12 November, the Review tab and the level read the wrong project. The scan picked
~/PhpstormProjects(3 terminal sessions, an empty git repo with no commits) as my most active project over~/PhpstormProjects/scribing(169 sessions in the window, all from the Claude desktop app). The reader then reviewed trunk/, powerbright-blogs/ and susica/, judged the setup "0 of 3 parts", and the level read "L2, could be L3" against a project I barely use.Cause:
anatomy_scancounted a typed session only when the entrypoint wascli. Sessions from the desktop app, VS Code and JetBrains carry the person's messages the same way.What changed
v15/engine/anatomy_scan.py: the most-active count lives inmost_active(per, n), withPERSON_ENTRIES(cli,claude-desktop,claude-vscode,claude-jetbrains, the evidence inventory'sPERSON_APPS) andperson_session()beside it. A headless run (sdk-*) still counts for no project.setup-snapshot/experiments/2026-11-11-setup-read/setup_map.py:pick_projects's fallback count fromchats.jsonl(used when the anatomy scan is missing, for example without PyYAML) applies the same list.Result on my laptop
Both picks now read scribing first: anatomy scan scribing 170 vs phpstormprojects 7; setup map 66 vs 5.
Tests
Standard-library unittest beside each module, run from the module's folder:
v15/engine:python3 -m unittest test_anatomy_projects(a repo with 3 desktop-app sessions outranks a folder with 1 terminal session; 5 headless runs count for no project)setup-snapshot/experiments/2026-11-11-setup-read:python3 -m unittest test_pick_projectsv15/engine/variants/views:test_view_built,test_view_mylevelstill passNotes
scripts/is a copy of labs/ (scripts/GENERATED.md); carry the edit into labs before the next rebuild.