How redward42/pitcrew works
PitCrew is a data-center operations product: sector agents investigate faults, create and route work for qualified technicians, and preserve field findings through lead handoff. The README describes the main journey as Overview → Sector evidence → Work queue → Field checks → Lead handoff. The graph includes that sector workflow alongside earlier investigation, procedure, decision, and communications capabilities. Evidence is limited to the README, SOURCE INDEX references, and sampled excerpts; unsampled UI and API wiring is not inferred.
Main entry points: store.ts State and command store · field-app.tsx Field and investigation UI · index.ts Escalation and handoff · fleet-agent.ts Fleet agent workflows
Components 24
Operator experience
- Sector operations UI
apps/field/components/fleet-app.tsx - Field and investigation UI
apps/field/components/field-app.tsx - Decision room
apps/field/components/decision-room.tsx - Task experience
apps/field/components/task-experience.tsx - Investigation UI
apps/field/components/investigation.tsx
Application API
- Core API routes
apps/field/app/api - Fleet API
apps/field/app/api/fleet/route.ts - Agent tools API
apps/field/app/api/tools/route.ts - Procedure compile API
apps/field/app/api/procedures/compile/route.ts - Photon webhook API
apps/field/app/api/photon/webhook/route.ts
Operations domain
- Shared contracts
packages/contracts/fleet.ts - State and command store
services/core/store.ts - Fleet incidents and tickets
services/core/fleet.ts - Investigation state
services/core/investigation.ts - Deterministic engines
services/core/engines/index.ts - Plant simulator
services/sim/index.ts
Agents and analysis
- Fleet agent workflows
services/agents/fleet-agent.ts - Advisory tools
services/agents/tools.ts - Model provider
services/agents/provider.ts
Field and communications
- Escalation and handoff
services/comms/index.ts - Photon messaging adapter
services/comms/photon.ts - ElevenLabs voice adapter
services/comms/elevenlabs.ts - Procedure compiler
services/agents/compiler-api.ts
Other components
- Operator / technician
Connections 31
- Operator / technician → Sector operations UI: uses
README.md - Operator / technician → Field and investigation UI: records field checks
README.md - Sector operations UI → Fleet API: requests fleet data
- Field and investigation UI → Core API routes: uses Core API
README.md - Field and investigation UI → Decision room: renders
apps/field/components/field-app.tsx - Field and investigation UI → Investigation UI: renders
apps/field/components/field-app.tsx - Field and investigation UI → Task experience: renders
apps/field/components/field-app.tsx - Fleet API → Fleet incidents and tickets: calls
apps/field/app/api/fleet/route.ts - Fleet API → Shared contracts: validates with
apps/field/app/api/fleet/route.ts - Core API routes → State and command store: dispatches to
apps/field/app/api/command/route.ts - Agent tools API → State and command store: reads state from
apps/field/app/api/tools/route.ts - Agent tools API → Advisory tools: calls
apps/field/app/api/tools/route.ts - Procedure compile API → Procedure compiler: calls
apps/field/app/api/procedures/compile/route.ts - Photon webhook API → State and command store: updates
apps/field/app/api/photon/webhook/route.ts - Photon webhook API → Photon messaging adapter: uses
apps/field/app/api/photon/webhook/route.ts - Photon webhook API → Escalation and handoff: uses
apps/field/app/api/photon/webhook/route.ts - State and command store → Plant simulator: advances simulation
services/core/store.ts - State and command store → Fleet agent workflows: invokes coordinator
services/core/store.ts - State and command store → Escalation and handoff: processes escalations
services/core/store.ts - State and command store → Investigation state: uses
services/core/store.ts - State and command store → Shared contracts: validates state
services/core/store.ts - Fleet incidents and tickets → Fleet agent workflows: uses
services/core/fleet.ts - Fleet agent workflows → Model provider: runs model workflows
- Fleet agent workflows → Deterministic engines: runs deterministic checks
- Advisory tools → Deterministic engines: calls
services/agents/tools.ts - Model provider → Advisory tools: executes tools
services/agents/provider.ts - Escalation and handoff → ElevenLabs voice adapter: checks voice availability
services/comms/index.ts - Photon messaging adapter → Escalation and handoff: implements delivery adapter
services/comms/photon.ts - ElevenLabs voice adapter → Escalation and handoff: implements delivery adapter
services/comms/elevenlabs.ts - Procedure compiler → Model provider: uses model provider
services/agents/compiler-api.ts - Procedure compiler → Shared contracts: uses schemas
services/agents/compiler-api.ts