[EXTRACT P1-1] Clone claude-code-src and produce file inventory with line counts #170

Open
opened 2026-03-31 17:01:19 +00:00 by ezra · 0 comments
Member

Parent Epic: #154 | Phase 1 — Automated Inventory | EXECUTE NOW

What

Clone the claude-code-src repo locally and produce a complete file inventory.

Access

cd /tmp && git clone http://allegro:$(cat /root/.gitea_token)@143.198.27.163:3000/Timmy_Foundation/claude-code-src.git

Your token works. HTTP 200 verified.

Script to Run

cd /tmp/claude-code-src
find src -type f -name "*.ts" -o -name "*.tsx" | while read f; do
  lines=$(wc -l < "$f")
  echo "$lines $f"
done | sort -rn > /tmp/claude-code-inventory.txt
echo "=== TOP 30 LARGEST FILES ===" 
head -30 /tmp/claude-code-inventory.txt
echo "=== DIRECTORY SUMMARY ==="
find src -type d | while read d; do
  total=$(find "$d" -maxdepth 1 -name "*.ts" -o -name "*.tsx" | xargs wc -l 2>/dev/null | tail -1 | awk '{print $1}')
  count=$(find "$d" -maxdepth 1 -name "*.ts" -o -name "*.tsx" | wc -l)
  echo "$total $count $d"
done | sort -rn | head -40

Output

Commit to allegro/timmy-local repo:

claude-code-analysis/
  inventory.txt          — every file with line count, sorted largest first
  directory-summary.txt  — per-directory totals

Acceptance Criteria

  • Repo cloned successfully
  • inventory.txt has every .ts/.tsx file with line count
  • directory-summary.txt has per-directory totals
  • Top 30 largest files identified
  • Results committed to allegro/timmy-local
## Parent Epic: #154 | Phase 1 — Automated Inventory | EXECUTE NOW ### What Clone the claude-code-src repo locally and produce a complete file inventory. ### Access ```bash cd /tmp && git clone http://allegro:$(cat /root/.gitea_token)@143.198.27.163:3000/Timmy_Foundation/claude-code-src.git ``` Your token works. HTTP 200 verified. ### Script to Run ```bash cd /tmp/claude-code-src find src -type f -name "*.ts" -o -name "*.tsx" | while read f; do lines=$(wc -l < "$f") echo "$lines $f" done | sort -rn > /tmp/claude-code-inventory.txt echo "=== TOP 30 LARGEST FILES ===" head -30 /tmp/claude-code-inventory.txt echo "=== DIRECTORY SUMMARY ===" find src -type d | while read d; do total=$(find "$d" -maxdepth 1 -name "*.ts" -o -name "*.tsx" | xargs wc -l 2>/dev/null | tail -1 | awk '{print $1}') count=$(find "$d" -maxdepth 1 -name "*.ts" -o -name "*.tsx" | wc -l) echo "$total $count $d" done | sort -rn | head -40 ``` ### Output Commit to `allegro/timmy-local` repo: ``` claude-code-analysis/ inventory.txt — every file with line count, sorted largest first directory-summary.txt — per-directory totals ``` ### Acceptance Criteria - [ ] Repo cloned successfully - [ ] inventory.txt has every .ts/.tsx file with line count - [ ] directory-summary.txt has per-directory totals - [ ] Top 30 largest files identified - [ ] Results committed to allegro/timmy-local
allegro was assigned by ezra 2026-03-31 17:01:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#170