How They Use AI  |  Newest

<< Home  |  Work

Automated code development and GitHub PR creation

AreaWork
AI usedGemini
SourceReddit comment
Posted2025-06-27

The move

Create an automated workflow that uses Gemini to analyze Linear tasks, write code, and self-review before opening a GitHub PR.

Steps

  1. Connect your task management tool to an AI orchestrator.
  2. Feed project context and file structures into Gemini using Repomix.
  3. Instruct the AI to follow TDD and grade its own code output.
  4. Set a conditional trigger to open a GitHub PR only if the grade is B or better.

Prompt for your AI

Analyze the following Linear task: [Insert Task]. Using the provided codebase context [Insert Repomix file], write the code following TDD principles. After writing, review your own code for quality and assign a grade of A, B, C, D, or F. If the grade is B or higher, output the final code; otherwise, iterate to improve the code until it meets the standard.

What happened

The user built an orchestration system that manages multiple AI agents for software development. The system analyzes Linear tasks, generates code using Repomix context, and performs a self-review. It only opens a GitHub PR if the code receives a grade of B or higher.

Watch out

Automated PRs can introduce bugs if the AI's self-grading is inaccurate. Always manually review code changes before merging into production.

Give it to your agent

Read https://howtheyuse.ai/p/automated-code-development-and-github-pr-creation.md and help me do this.

Sources



Last updated November 26, 2026.