Repository navigation
Description
Overview
Follow-up to #2 / PR #3. The pyauto-status dashboard currently shows a single DIRTY count per repo, with no detail about what is dirty. After surfacing real noise on first use (autolens_base_project 14 dirty, admin_jammy 4, etc.), it's clear we need (a) the actual file list per repo and (b) a way to track whether untracked junk is building up — i.e. when .gitignore needs to be extended.
This is a small enhancement, scoped only to PyAutoPrompt/scripts/pyauto_status.sh.
Plan
- Cache
git status --porcelainoutput once per repo (instead of runninggit statustwice — once for the count, again would be needed for the listing) - Replace the single
DIRTYcolumn with two:MOD(tracked-modified files) andUNTR(untracked). The flag glyph*keeps firing if either is non-zero - After the main table, append a
Dirty files:section listing the porcelain output for each repo with dirty content, indented under the repo name. Skip repos with nothing dirty - No auto-categorization of "looks generated" — the
??vsMprefixes from porcelain output already tell the user what's untracked - Day-to-day signal: if
UNTRclimbs across runs for a repo, the.gitignoreis missing patterns
Detailed implementation plan
Affected Repositories
- PyAutoPrompt (only)
Work Classification
Library (treated as such for the standard /start_library → worktree → /ship_library flow).
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoPrompt | main | clean |
Suggested branch: feature/dashboard-dirty-listing
Worktree root: ~/Code/PyAutoLabs-wt/dashboard-dirty-listing/ (created later by /start_library)
Implementation Steps
-
Edit
PyAutoPrompt/scripts/pyauto_status.sh:- In the per-repo data-collection loop, capture
porcelain="$(git -C "$repo" status --porcelain 2>/dev/null)"into abashassociative array keyed by repo name (declare -A repo_porcelain). - Compute
modanduntrseparately from the cached porcelain output:modis lines NOT starting with??,untris lines starting with??. Usegrep -cagainst the cached string. - The flag column logic stays:
*if(mod + untr) > 0.
- In the per-repo data-collection loop, capture
-
Update the
printfformat string and column headers:- Old:
'%-32s %-30s %-36s %6s %5s %5s %s\n'with headersREPO BRANCH UPSTREAM BEHIND AHEAD DIRTY FLAGS. - New:
'%-32s %-30s %-36s %6s %5s %4s %4s %s\n'with headersREPO BRANCH UPSTREAM BEHIND AHEAD MOD UNTR FLAGS. - Adjust the dashed separator row to match.
- Old:
-
After the main row loop, emit the dirty-file listing:
- Iterate
reposagain. For each repo with non-empty${repo_porcelain[$name]}, on the first hit print a blank line andDirty files:header. Then print$name:followed by the porcelain content indented by 4 spaces (sed 's/^/ /'). - No cap on file count — load-bearing signal, not noise. Can revisit if a repo overflows in practice.
- Iterate
Key Files
PyAutoPrompt/scripts/pyauto_status.sh— single-file change.
Acceptance Verification
time pyauto-statusfrom a fresh shell still completes in <10s (no new git invocations).- A repo with 0 dirty shows
MOD=0 UNTR=0, no*flag, and is omitted from the listing. - A repo with both modified-tracked and untracked files shows non-zero in both columns, and both appear in the listing with the correct
M/??prefixes. bash PyAutoPrompt/scripts/status.sh --reposstill produces the new format (no regression on the delegation path).
Out of scope
- Auto-categorizing untracked files as "likely generated" by extension — fragile, user-eye is faster.
- Tracking dirty counts across runs (would need persistent state).
- Color/highlight — kept plain text.
Original Prompt
This issue does not have a prompt-file source — it's a direct follow-up enhancement to PR #3 surfaced during day-1 use of pyauto-status.
Activity
prompt: route dashboard-dirty-listing (#4) → /start_library
feat: dashboard dirty file listing + split MOD/UNTR columns (#5)
audit: add pyauto-audit shell function and drop rejected prompt 04 (#12)
prompt: route ic50-hpc-setup (#4) → /start_workspace
prompt: ship ic50-hpc-setup (#4) → complete
prompt: autocti-assistant Phase 4 demos authored+run (#4 open); all 4…
queue: add sed_chain_waveband_fit_can_spin_forever at #4