Cognotik Build Tools

Supercharge your CI/CD pipeline with AI-powered automation. Automatically fix failing builds, review code against best practices, and resolve GitHub issues with intelligent agents integrated directly into your workflow.

Key Capabilities

Auto-Fix Builds

Automatically detect and fix failing builds in pull requests. The agent analyzes build logs and applies intelligent fixes.

Code Review

Review source files against best practices and standards. Generate improvement suggestions automatically.

Issue Resolution

AI agents that analyze GitHub issues and create pull requests with proposed fixes automatically.

GitHub Actions

Pre-configured workflows for immediate integration into your GitHub repository.

Gradle Plugin

Run code review, fixing, and implementation tasks directly from your Gradle build scripts.

Multi-Provider Support

Works with OpenAI, Google Gemini, Anthropic Claude, and Groq. Use your preferred AI provider.

Getting Started

Quick Setup

  1. Fork or clone the demo repository
  2. Add your API keys as repository secrets (Settings → Secrets → Actions):
    • GOOGLE_API_KEY - Google Gemini API key (recommended)
    • OPENAI_API_KEY - OpenAI API key
  3. Enable GitHub Actions - workflows will automatically activate

Gradle Tasks

Three main tasks are available for local development:

Code Reviewer

./gradlew codeReview \
  -PreviewPrompt="Update implementation file (%s) according to best practices" \
  -PreviewSrc="src/main/java" \
  -PreviewThreads=4

Code Fixer

./gradlew codeFixer \
  -PfixPrompt="Fix the build errors reported in build.log" \
  -PfixLog="build.log"

Code Implementer

./gradlew codeImplementer \
  -PimplPrompt="Create a REST API endpoint for user management" \
  -PimplHeadless=true

GitHub Actions Workflows

Auto-Fixing Build Validator

Triggered on pull requests to main. Automatically fixes failing builds:

  1. Runs the test suite and captures output
  2. If tests fail, invokes the Code Fixer agent
  3. Agent analyzes build log and fixes implementation files
  4. Commits fixes automatically

Agentic Issue Handler

Triggered when issues are labeled with agent-help:

  1. Analyzes the issue title and description
  2. Reviews relevant source files
  3. Creates a pull request with proposed changes

Supported AI Providers

Provider Model Example Environment Variable
Google Gemini 3.0 GOOGLE_API_KEY
OpenAI GPT-4o OPENAI_API_KEY
Anthropic Claude 4.5 ANTHROPIC_API_KEY
Groq Llama 3 70B GROQ_API_KEY