How akprasadop/blastradius works
Blastradius evaluates TypeScript pull requests against Linear intent, combining deterministic AST impact analysis with Gemini review before commenting on the PR. The webhook handler owns the workflow: it extracts the ticket, fetches intent and changed files, clones the branch, runs analysis, applies a confidence gate, and posts the result. The README documents this pipeline; source excerpts show the handler’s calls and the AST walker’s implementation. The graph omits undocumented internals of GitHub’s API and the unsampled behavior of external services.
Main entry points: server.ts Webhook Workflow · evaluator.ts Gemini Evaluator · app.ts GitHub App · client.ts Linear Client
Components 14
Webhook and GitHub
- Webhook Workflow
src/webhook/server.ts - GitHub App
src/github/app.ts
Requirement Intent
- Issue ID Parser
src/linear/parser.ts - Linear Client
src/linear/client.ts
Blast Radius Analysis
- Ephemeral Clone
src/webhook/server.ts - TypeScript AST Walker
src/walker/TypeScriptWalker.ts - Analysis Result Types
src/walker/types.ts
Evaluation and Reporting
- Gemini Evaluator
src/llm/evaluator.ts - Confidence Gate
src/webhook/server.ts - PR Review Comment
src/webhook/server.ts
Other components
- Pull Request
- GitHub API
- Linear API
- Gemini API
Connections 17
- Pull Request → Webhook Workflow: sends webhook
README.md - Webhook Workflow → GitHub App: uses app
src/webhook/server.ts - GitHub App → GitHub API: configures webhooks
src/github/app.ts - Webhook Workflow → Issue ID Parser: extracts issue ID
src/webhook/server.ts - Webhook Workflow → Linear Client: fetches intent
src/webhook/server.ts - Linear Client → Linear API: fetches issue
src/linear/client.ts - Webhook Workflow → GitHub API: fetches changed files
src/webhook/server.ts - Webhook Workflow → Ephemeral Clone: clones branch
src/webhook/server.ts - Ephemeral Clone → GitHub API: clones repository
README.md - Webhook Workflow → TypeScript AST Walker: runs analysis
src/webhook/server.ts - TypeScript AST Walker → Analysis Result Types: uses result types
src/walker/TypeScriptWalker.ts - Webhook Workflow → Gemini Evaluator: evaluates intent and impact
src/webhook/server.ts - Gemini Evaluator → Gemini API: requests evaluation
src/llm/evaluator.ts - Gemini Evaluator → Webhook Workflow: returns evaluation
src/webhook/server.ts - Webhook Workflow → Confidence Gate: checks confidence
src/webhook/server.ts - Confidence Gate → PR Review Comment: constructs report
src/webhook/server.ts - Webhook Workflow → GitHub API: posts comment
src/webhook/server.ts