Skip to content

insights: the most active project is read from every session the person typed in, in any app, not only the terminal - #13

Merged
teocns merged 5 commits into
proxify-dev:mainfrom
AlexJov996:insights-active-project
Nov 12, 2026
Merged

teocns merged 5 commits into
proxify-dev:mainfrom
AlexJov996:insights-active-project

Conversation

@AlexJov996

Copy link
Copy Markdown
Contributor

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_scan counted a typed session only when the entrypoint was cli. 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 in most_active(per, n), with PERSON_ENTRIES (cli, claude-desktop, claude-vscode, claude-jetbrains, the evidence inventory's PERSON_APPS) and person_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 from chats.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_projects
  • v15/engine/variants/views: test_view_built, test_view_mylevel still pass

Notes

AlexJov996 and others added 5 commits November 12, 2026 11:23
…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.
@teocns

teocns commented Nov 12, 2026

Copy link
Copy Markdown
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:

  • We merged our latest main in. Some of our changes there touch the same lines (they also find projects from where a session did its work); your fix now covers those too.
  • A session counts unless it is a headless run, the rule the rest of the tool already uses. So a new app, or an older Claude Code that doesn't record its app, counts too.
  • Each test got one more case, and a docstring no longer says whose laptop it was.

It ships in the next release, with credit in the release notes.

@teocns
teocns merged commit 5c6f9fb into proxify-dev:main Nov 12, 2026
@teocns teocns mentioned this pull request Nov 12, 2026
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.

2 participants