How matraix-ai/matraix-persona-8b works
MatrAIx is a persona-driven evaluation platform. Users configure a task and cohort in the Playground, launch simulated users against Survey, Chatbot, Web, or App environments, then inspect traces and aggregate results. The repository also includes persona generation and curation, a reusable Harbor execution runtime, and a separate job viewer. The README documents the end-to-end capabilities; sampled backend wiring confirms the Playground API delegates to service modules, but does not expose every launch-time call, so some cross-subsystem links are documented rather than source-verified.
Main entry points: main.py Harbor runtime · harbor_job_service.py Job orchestration · app.py Playground API · persona_pool_service.py Persona pool
Components 26
Playground
- Run cockpit
application/playground/frontend/src/components/cockpit/PlaygroundCockpit.tsx - Playground UI
application/playground/frontend/src/App.tsx - Playground API
application/playground/backend/api/app.py - Task catalogs
application/playground/backend/service/playground_task_registry.py - Task detail
application/playground/backend/service/task_detail_service.py
Persona data
- Persona pool
application/playground/backend/service/persona_pool_service.py - Agent context
src/matraix/persona_agent_context.py - Persona generation
src/matraix/persona_generator.py - Persona curation
persona/synthesis/sampler/sampler.py
Evaluation runtime
- Job orchestration
application/playground/backend/service/harbor_job_service.py - Execution plane
application/playground/backend/service/execution_plane.py - Harbor runtime
environment/runtime/harbor/cli/main.py - Survey tasks
application/playground/backend/service/survey_harbor_tasks.py - Chatbot tasks
application/playground/backend/service/chatbot_tasks.py - Web tasks
application/playground/backend/service/web_tasks.py - App tasks
application/playground/backend/service/os_app_tasks.py - Chatbot sidecars
application/playground/backend/service/chatbot_sidecar_service.py
Results and inspection
- Job aggregation
application/playground/backend/service/job_aggregation.py - Trial debrief
application/playground/backend/service/harbor_trial_debrief.py - PDF reports
application/playground/backend/service/report_pdf.py - Run store
application/playground/backend/service/run_store.py - Harbor viewer
environment/runtime/harbor/viewer/server.py - Viewer routes
apps/viewer/app/routes.ts
Other components
- Researcher
- Model provider
- Task environment
Connections 27
- Researcher → Playground UI: configures runs
README.md - Playground UI → Run cockpit: opens cockpit
- Run cockpit → Playground API: submits setup
- Playground API → Task catalogs: serves task catalog
application/playground/backend/api/app.py - Playground API → Task detail: delegates details
application/playground/backend/api/app.py - Playground API → Persona pool: resolves cohorts
application/playground/backend/api/app.py - Playground API → Job orchestration: launches jobs
application/playground/backend/api/app.py - Researcher → Persona generation: creates personas
- Persona generation → Persona curation: curates records
- Persona curation → Persona pool: supplies cohorts
- Persona pool → Job orchestration: selects personas
application/playground/backend/service/harbor_job_service.py - Job orchestration → Agent context: configures agent context
application/playground/backend/service/harbor_job_service.py - Job orchestration → Execution plane: dispatches jobs
application/playground/backend/service/harbor_job_service.py - Execution plane → Harbor runtime: runs trials
- Harbor runtime → Survey tasks: executes tasks
- Harbor runtime → Chatbot tasks: executes tasks
- Harbor runtime → Web tasks: executes tasks
- Harbor runtime → App tasks: executes tasks
- Chatbot tasks → Chatbot sidecars: uses sidecars
application/playground/backend/service/chatbot_tasks.py - Harbor runtime → Model provider: invokes model
- Harbor runtime → Task environment: runs against
README.md - Job orchestration → Job aggregation: summarizes jobs
application/playground/backend/service/harbor_job_service.py - Job orchestration → Trial debrief: builds debriefs
application/playground/backend/service/harbor_job_service.py - Job orchestration → Run store: persists runs
- Job aggregation → PDF reports: feeds reports
- Researcher → Harbor viewer: inspects results
README.md - Harbor viewer → Viewer routes: serves viewer API