How kavyatejani/github-triager works
GitHub Triager is an RL environment for training and evaluating agents on issue triage. The primary loop is client reset → server task creates an issue observation → agent submits a typed action → task grader returns reward and completion status; batch and clarification tasks add their own staged interaction. The README also documents four task modes and GRPO training. Source excerpts establish the server’s HTTP/WebSocket paths and training’s use of grading; unsampled data and task internals are represented only where README or excerpts support them.
Main entry points: app.py Environment API · environment.py Curated issue store · graders.py Task graders · client.py HTTP / WS clients
Components 19
Agent interfaces
- HTTP / WS clients
client.py - Environment API
server/app.py - WebSocket messages
server/ws_handler.py
Triage environment
- Action schemas
models.py - Observation schemas
models.py - Curated issue store
server/environment.py - Annotated issues
data/simulated_issues.json - Project/team map
data/project_structure.json - Label classification
server/environment.py - Full triage
server/environment.py - Batch triage
server/environment.py - Clarification triage
server/environment.py - Session store
server/session_store.py
Reward scoring
- Reward configuration
server/config.py - Task graders
server/graders.py
Agent learning
- Baseline inference
inference.py - GRPO training
training/train_github_triager.py
Other components
- Triage agent
- LLM provider
Connections 34
- Triage agent → HTTP / WS clients: uses
README.md - HTTP / WS clients → Environment API: resets / steps
client.py - Environment API → Curated issue store: loads issues
server/app.py - Curated issue store → Annotated issues: reads
server/environment.py - Curated issue store → Project/team map: reads
server/environment.py - Environment API → Label classification: dispatches
server/app.py - Environment API → Full triage: dispatches
server/app.py - Environment API → Batch triage: dispatches
server/app.py - Environment API → Clarification triage: dispatches
server/app.py - Environment API → Session store: stores sessions
server/app.py - Environment API → WebSocket messages: formats WS
server/app.py - WebSocket messages → Action schemas: parses actions
server/ws_handler.py - Label classification → Curated issue store: samples issue
server/environment.py - Full triage → Curated issue store: samples issue
server/environment.py - Batch triage → Curated issue store: samples batch
server/environment.py - Clarification triage → Curated issue store: selects issue
server/environment.py - Label classification → Observation schemas: emits
server/environment.py - Full triage → Observation schemas: emits
server/environment.py - Batch triage → Observation schemas: emits
server/environment.py - Clarification triage → Observation schemas: emits
server/environment.py - Environment API → Action schemas: validates
server/app.py - Label classification → Task graders: scores action
server/environment.py - Full triage → Task graders: scores action
server/environment.py - Batch triage → Task graders: scores trajectory
server/environment.py - Clarification triage → Task graders: scores triage
server/environment.py - Task graders → Reward configuration: uses weights
server/graders.py - Task graders → Environment API: grades request
server/app.py - Environment API → Triage agent: returns observation / reward
README.md - Triage agent → Baseline inference: evaluated by
README.md - Baseline inference → HTTP / WS clients: runs episodes
inference.py - Baseline inference → LLM provider: requests completions
inference.py - GRPO training → HTTP / WS clients: samples episodes
training/train_github_triager.py - GRPO training → Environment API: requests grading
training/train_github_triager.py - GRPO training → LLM provider: trains model
README.md