How kirtijha/langgraph-interrupt-workflow-template works
Repo Steward is a human-in-the-loop GitHub maintainer agent. A maintainer selects a repository and mission in the browser; the API starts a streamed LangGraph mission, which examines repository state and proposes actions. Risk policy gates public actions for approval, edit, rejection, or reply; approved work updates the board and produces a report. The README documents time travel, persistence, memory, model choices, and offline missions. Some backend wiring is unsampled, so edges below rely on explicit README statements or indexed references.
Main entry points: agent.py Steward agent · main.py Mission routes · Workspace.tsx Mission workspace · api.ts API client
Components 26
Maintainer UI
- Mission home
frontend/app/page.tsx - Mission workspace
frontend/components/Workspace.tsx - Mission state
frontend/lib/useMission.ts - Approval controls
frontend/components/ApprovalCard.tsx - Board and feed
frontend/components/BoardPanel.tsx - API client
frontend/lib/api.ts - Browser credentials
frontend/lib/github.ts - Model settings
frontend/lib/modelSettings.ts
Mission API
- Mission routes
backend/main.py
Agent workflow
- Steward agent
backend/steward/agent.py - Mission catalog
backend/steward/catalog.py - Offline pilot
backend/steward/pilot.py - GitHub action tools
backend/steward/tools.py
Repository and state
- GitHub access
backend/steward/github.py - Sample repository
backend/steward/fixture.py - Mission board state
backend/steward/world.py - Checkpoint storage
backend/persistence.py - Repository memory
backend/memory.py
Models and policy
- Risk policy
backend/steward/policy.py - Approval policy
backend/approval_policy.py - Client model config
backend/client_model.py - Model factory
backend/llm.py - Mission evaluations
backend/evals/run_evals.py
Other components
- Maintainer
- GitHub REST
- Model provider
Connections 27
- Maintainer → Mission home: selects mission
README.md - Mission home → Mission workspace: opens mission
frontend/app/page.tsx - Mission home → Mission state: loads state
frontend/app/page.tsx - Mission workspace → Approval controls: renders decisions
frontend/components/Workspace.tsx - Mission workspace → Board and feed: renders board
frontend/components/Workspace.tsx - Mission workspace → Mission state: dispatches decisions
frontend/app/page.tsx - Mission state → API client: streams requests
frontend/lib/useMission.ts - API client → Mission routes: calls routes
README.md - Browser credentials → API client: adds GitHub header
- Model settings → API client: adds model headers
frontend/lib/modelSettings.ts - Mission routes → Steward agent: starts and resumes
backend/main.py - Mission routes → Mission catalog: serves missions
backend/main.py - Mission routes → Checkpoint storage: loads checkpointing
backend/main.py - Mission routes → Repository memory: stores outcomes
backend/main.py - Steward agent → GitHub action tools: provides actions
backend/steward/agent.py - Steward agent → Risk policy: gates tool calls
README.md - Risk policy → Approval policy: scores actions
backend/steward/policy.py - Steward agent → Offline pilot: uses offline model
backend/steward/agent.py - Steward agent → Client model config: uses client choice
backend/steward/agent.py - Steward agent → Model factory: uses model factory
backend/steward/agent.py - GitHub action tools → GitHub access: executes actions
backend/steward/tools.py - GitHub action tools → Mission board state: updates board
README.md - GitHub access → GitHub REST: reads and writes
README.md - GitHub access → Sample repository: uses fixture backend
backend/steward/github.py - Steward agent → Mission board state: keeps board in state
README.md - Model factory → Model provider: calls provider
- Mission evaluations → Steward agent: evaluates missions
backend/evals/run_evals.py