Dependencies·Pushed May 1, 2026·M
LangChain and OpenAI dependencies added to action
GitHub Actions workflow now defaults to GPT-4o-mini via LangChain, replacing the previous Anthropic integration. New packages (LangChain, OpenAI, Octokit GraphQL, Zod) enable AI-powered story generation in future phases.
The action workspace now supports OpenAI as its AI provider, with LangChain installed and configured. GitHub Actions workflows accept an [[code ref=1]]openai-model[[/code]] input (defaulting to gpt-4o-mini) and an optional [[code ref=2]]OPENAI_API_KEY[[/code]] secret. The setup reflects a phased approach — the API key remains optional for now, with full AI calls coming in a later phase.
This change builds the foundation for AI-powered PR analysis and story generation. The [[code ref=3]]langchain[[/code]] and [[code ref=4]]@langchain/openai[[/code]] packages enable structured LLM interactions, while [[code ref=5]]@octokit/graphql[[/code]] handles repository data fetching. The [[code ref=6]]zod[[/code]] dependency suggests schema validation will be used to structure AI outputs. In the action workspace, [[code]]tsx[[/code]] is also added as a dev dependency for running TypeScript scripts directly.
Technical description
This commit establishes OpenAI as the AI provider for the GitHub Actions workflow, replacing the previous Anthropic configuration.
**Dependency additions in [[code]]action/package.json[[/code]]:**
The action gains LangChain and related packages. [[code ref=3]]langchain[[/code]] 1.3.5 serves as the primary AI orchestration library. [[code ref=4]]@langchain/openai[[/code]] 1.4.5 provides OpenAI-specific integrations. [[code ref=5]]@octokit/graphql[[/code]] 9.0.3 enables structured GraphQL queries against the GitHub API. [[code ref=6]]zod[[/code]] 4.4.1 (not the older v3) handles input validation and schema enforcement. Dev dependencies include [[code]]tsx[[/code]] 4.21.0 for running TypeScript directly and [[code]]@types/node[[/code]] 25.6.0.
**Workflow configuration in [[code]].github/workflows/analyze.yml[[/code]]:**
The [[code ref=1]]openai-model[[/code]] input replaces the former [[code]]anthropic-model[[/code]], defaulting to gpt-4o-mini instead of claude-sonnet-4-6. The secret name shifts from [[code ref=2]]ANTHROPIC_API_KEY[[/code]] to [[code ref=2]]OPENAI_API_KEY[[/code]], though it remains optional (comment notes: "Phase 0 has no AI calls; required from Phase 2 onward"). This phased approach means the infrastructure is ready but actual LLM calls aren't wired up yet.
**Lock file updates:**
[[code]]yarn.lock[[/code]] grows by ~450 lines to accommodate the new dependency tree, including platform-specific binaries for esbuild/tsx across multiple architectures.
Files at a glance:
- [[code]].github/workflows/analyze.yml[[/code]] — Renamed workflow inputs from Anthropic to OpenAI
- [[code]]action/package.json[[/code]] — Added LangChain, OpenAI, Octokit GraphQL, Zod dependencies
- [[code]]yarn.lock[[/code]] — Lock file updates for new packages
- [[code]]site/next-env.d.ts[[/code]] — Auto-generated Next.js type reference update (unrelated)
Categories
- Dependencies (50%) — The majority of the diff is new package.json dependencies (LangChain, OpenAI, Octokit, Zod, TSX) and a 451-line yarn.lock update
- Configuration (30%) — Workflow inputs are renamed (anthropic-model → openai-model, API key renamed), default model changed to gpt-4o-mini
- CI/CD (20%) — GitHub Actions workflow file (.github/workflows/analyze.yml) is modified with new input names