Skip to content

feat: wholesale pipeline visualization#94

Open
jonahsalama wants to merge 2 commits intopablodelucca:mainfrom
jonahsalama:wholesale-pipeline-viz-7e880
Open

feat: wholesale pipeline visualization#94
jonahsalama wants to merge 2 commits intopablodelucca:mainfrom
jonahsalama:wholesale-pipeline-viz-7e880

Conversation

@jonahsalama
Copy link

Summary

  • Rewire Pixel Agents extension to visualize 3 wholesale real estate pipeline agents (Lead Scout, Outreach Engine, Deal Closer)
  • Replace Claude Code JSONL tracking with 4 data sources: SQLite polling (wholesale.db), trigger file watching (.triggers/), process detection (pgrep), and log file tailing
  • Add StatusOverlay showing live pipeline metrics (leads, outreach stats, deals, send window status)
  • Remove dynamic agent add/remove — 3 fixed agents with predefined palettes

Architecture

New backend modules:

  • wholesaleDataPoller.ts — Polls wholesale.db via better-sqlite3, computes send window (Central Time)
  • triggerWatcher.ts — Watches .triggers/ directory for inter-agent signals
  • processDetector.ts — Detects running Python agent processes via pgrep
  • logTailer.ts — Tails agent log files with byte-offset tracking
  • agentStateMapper.ts — Combines all sources into WholesaleStateSnapshot

Removed (Claude-specific):

  • agentManager.ts, fileWatcher.ts, transcriptParser.ts, timerManager.ts

Test plan

  • Verify extension activates without errors in Extension Dev Host
  • Confirm 3 agents appear in pixel art office with correct names
  • Test with wholesale.db present — StatusOverlay shows pipeline metrics
  • Test without wholesale.db — graceful fallback to empty snapshot
  • Verify process detection correctly shows running/absent states
  • Test trigger file creation causes character animation changes
  • Verify send window logic matches Python timing_engine.py behavior

🤖 Generated with Claude Code

Jonah Salama and others added 2 commits March 7, 2026 16:52
…e.json and constants.ts accordingly. Adjusted command and view identifiers, and added better-sqlite3 as a dependency.
Replace Claude Code terminal tracking with wholesale real estate pipeline
data sources. The extension now visualizes 3 fixed agents (Lead Scout,
Outreach Engine, Deal Closer) driven by SQLite polling, trigger file
watching, process detection, and log tailing.

Backend:
- Add wholesaleDataPoller (better-sqlite3, send window logic)
- Add triggerWatcher (fs.watch + polling on .triggers/ dir)
- Add processDetector (pgrep-based process status)
- Add logTailer (byte-offset log file tailing)
- Add agentStateMapper (combines all sources into snapshots)
- Rewrite PixelAgentsViewProvider for wholesale data flow
- Remove Claude-specific modules (agentManager, fileWatcher,
  transcriptParser, timerManager)

Webview:
- Add StatusOverlay (pipeline metrics: leads, outreach, deals)
- Rewrite useExtensionMessages for wholesaleAgents/wholesaleState
- Rewrite ToolOverlay as WholesaleToolOverlay (status dots)
- Simplify BottomToolbar (remove +Agent, folder picker)
- Simplify App.tsx (remove subagent/tool tracking)
- Remove unused AgentLabels component

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant