How viespirkiu-grupe/tyras works
Tyras is a TypeScript orchestration system for Lithuanian public-procurement fraud investigations. A user supplies a case description; the orchestrator resumes or initializes case state, runs a planner, dispatches theme-specific investigators, and then runs reporting and technical review. Agents use Claude CLI sessions, with the planner and investigators querying Viešpirkiai MCP. Case files and resumable state are stored in the investigations workspace. The README documents the workflow and theme library; edges to unsampled subsystems are included only where that documentation supports them.
Main entry points: orchestrator.ts Orchestrator · base-agent.ts Agent framework · planner.ts Planning agent · workspace.ts Case workspace
Components 18
Investigation workflow
- Orchestrator
src/orchestrator.ts - CLI entry point
src/index.ts
Agent execution
- Planning agent
src/agents/planner.ts - Theme investigator
src/agents/investigator.ts - Report writer
src/agents/reporter.ts - Technical reviewer
src/agents/tech-reviewer.ts - Agent framework
src/agents/base-agent.ts
Runtime services
- Claude session runner
src/agent-loop.ts - Runtime configuration
src/config.ts - Investigation logger
src/io/logger.ts - Document formatting
src/io/format.ts
Case data and research
- Case workspace
src/io/workspace.ts - Theme library and MCP guidance
docs/themes - Agent prompts
docs/prompts
Other components
- Investigator
- Claude CLI
- Viešpirkiai MCP
- Procurement data
Connections 26
- Investigator → CLI entry point: starts case
README.md - CLI entry point → Orchestrator: invokes
src/index.ts - Orchestrator → Case workspace: reads and saves case
src/orchestrator.ts - Orchestrator → Planning agent: runs planning
src/orchestrator.ts - Orchestrator → Theme investigator: dispatches themes
src/orchestrator.ts - Orchestrator → Report writer: runs reporting
src/orchestrator.ts - Orchestrator → Technical reviewer: runs review
src/orchestrator.ts - Planning agent → Agent framework: extends
src/agents/planner.ts - Theme investigator → Agent framework: extends
src/agents/investigator.ts - Report writer → Agent framework: extends
src/agents/reporter.ts - Technical reviewer → Agent framework: extends
src/agents/tech-reviewer.ts - Agent framework → Claude session runner: runs session
src/agents/base-agent.ts - Claude session runner → Claude CLI: spawns process
src/agent-loop.ts - Planning agent → Viešpirkiai MCP: queries entities
README.md - Theme investigator → Viešpirkiai MCP: queries by theme
README.md - Viešpirkiai MCP → Procurement data: retrieves records
README.md - Planning agent → Theme library and MCP guidance: uses theme guidance
src/agents/planner.ts - Agent framework → Agent prompts: loads prompt
src/agents/base-agent.ts - Planning agent → Case workspace: writes dossier and plan
README.md - Theme investigator → Case workspace: writes findings
README.md - Report writer → Case workspace: reads findings and writes report
src/agents/reporter.ts - Technical reviewer → Case workspace: reads and writes review
src/agents/tech-reviewer.ts - Orchestrator → Runtime configuration: uses settings
src/orchestrator.ts - Orchestrator → Investigation logger: records progress
src/orchestrator.ts - Claude session runner → Investigation logger: logs session
src/agent-loop.ts - Orchestrator → Document formatting: formats documents
src/orchestrator.ts