How gritgridtechnologies/gritgrid-workbench works
GritGrid Workbench is an employee-facing control center with server-side session authentication and an AI-workforce interface. Employees sign in, inspect workforce state, and use the dashboard or task page to view and act on backend tasks; the API gateway restricts mutations by role and proxies requests to the configured workforce service. The documented AI capabilities also include agents, orchestration, approvals, memory, events, runs, artifacts, and providers. The excerpts do not show dashboard request call sites, so those UI-to-client links are marked unverified; other links use shown calls or README statements.
Main entry points: client.ts AI API client · workforce-dashboard.tsx Workforce dashboard · route.ts AI proxy route · auth-server.ts Session service
Components 18
Authentication
- Sign-in page
app/login/page.tsx - Auth provider
lib/auth.tsx - Session API routes
app/api/auth - Session service
lib/auth-server.ts
AI Workforce
- Workbench home
app/page.tsx - Workforce dashboard
components/workbench/workforce-dashboard.tsx - AI workforce views
components/workbench/ai-workforce.tsx - Task detail page
app/tasks/[taskId]/page.tsx - Approvals and memory
lib/ai/client.ts - Agents and orchestration
lib/ai/client.ts - Status and activity
lib/ai/client.ts - Artifacts and providers
lib/ai/client.ts
Backend Gateway
- AI API client
lib/ai/client.ts - AI proxy route
app/api/ai/[...path]/route.ts
AI Data Contracts
- Workforce data contracts
lib/ai/types.ts
Other components
- Workbench employee
- Neon PostgreSQL
- FastAPI workforce
Connections 19
- Workbench employee → Sign-in page: signs in
- Sign-in page → Auth provider: uses
app/login/page.tsx - Auth provider → Session API routes: fetches session and login
lib/auth.tsx - Session API routes → Session service: authenticates and checks sessions
app/api/auth/login/route.ts - Session service → Neon PostgreSQL: reads and writes sessions
lib/auth-server.ts - Workbench employee → Workbench home: opens workbench
- Workbench home → Workforce dashboard: renders
app/page.tsx - Workforce dashboard → AI workforce views: renders workforce views
- Workforce dashboard → AI API client: requests workforce data
components/workbench/workforce-dashboard.tsx - Workbench employee → Task detail page: opens task
app/tasks/[taskId]/page.tsx - Task detail page → AI API client: loads task
app/tasks/[taskId]/page.tsx - AI API client → Workforce data contracts: uses contracts
lib/ai/client.ts - AI API client → AI proxy route: requests same-origin API
app/api/ai/[...path]/route.ts - AI proxy route → Session service: checks mutation role
app/api/ai/[...path]/route.ts - AI proxy route → FastAPI workforce: proxies requests
app/api/ai/[...path]/route.ts - AI API client → Agents and orchestration: calls agent and orchestration endpoints
lib/ai/client.ts - AI API client → Approvals and memory: calls approval and memory endpoints
lib/ai/client.ts - AI API client → Status and activity: calls status and activity endpoints
lib/ai/client.ts - AI API client → Artifacts and providers: calls catalog endpoints
lib/ai/client.ts