AGENTS / GITHUB / Agena
githubinferredactive

Agena

provenance:github:aozyildirim/Agena
WHAT THIS AGENT DOES

Agena is a system that automatically writes and improves computer code. It handles the entire process, from understanding a task to creating and submitting code changes. This solves the problem of needing skilled developers for every coding task, potentially speeding up software development and reducing costs. Businesses and development teams would find Agena useful for automating routine coding tasks and accelerating project timelines. What makes it special is its ability to manage the coding process with multiple "virtual workers" – a project manager, developer, reviewer, and finalizer – all working together autonomously. It also learns from past projects to improve its performance over time.

View Source ↗First seen 27d agoNot yet hireable
README
[![Sponsor AGENA](https://img.shields.io/badge/Sponsor-AGENA-ff69b4?logo=githubsponsors&logoColor=white)](https://github.com/sponsors/aozyildirim)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![Website](https://img.shields.io/badge/Website-agena.dev-0d9488)](https://agena.dev)

# AGENA — Agentic AI Platform | Pixel Agent Powered Autonomous Code Generation

<p align="center">
  <img src="frontend/public/readmeimg/boss.png" alt="AGENA Pixel Office — Boss Mode" width="800" />
</p>

> **The open-source agentic AI platform that writes code, reviews quality, and ships pull requests autonomously.**

AGENA is a production-ready, multi-tenant **agentic AI** orchestration platform with **pixel agent** technology. Built with FastAPI + CrewAI + LangGraph + Redis + MySQL, it provides autonomous code generation, AI-powered PR automation, and a full Next.js 14 dashboard.

**Key highlights:**
- **Agentic AI Pipeline** — Autonomous PM → Developer → Reviewer → Finalizer workflow
- **Pixel Agent Technology** — Visual task orchestration with real-time agent monitoring
- **Multi-Tenant SaaS** — Organization isolation, JWT auth, usage limits, billing
- **PR Automation** — Auto-generates branches, commits, and pull requests on GitHub & Azure DevOps

## What is Included

- Async FastAPI backend
- SQLAlchemy models + Alembic scaffold
- JWT auth + organization isolation
- Free/Pro subscription limits with usage enforcement
- Stripe + Iyzico payment integration paths
- Redis queue + auto-scaling async worker (`MAX_WORKERS`)
- LangGraph state flow: `fetch_context -> analyze -> generate_code -> review_code -> finalize`
- CrewAI role orchestration (PM, Developer, Reviewer, Finalizer)
- GitHub branch/commit/PR automation
- Token/cost tracking and org-level usage counters
- LLM optimization (`services/llm`): prompt cache, model routing, context truncation
- Optional vector memory (`memory/base.py`, `memory/qdrant.py`)
- Next.js frontend routes for landing, pricing, auth, tasks, and task timeline

## Documentation

- Full feature inventory: `docs/FEATURES.md`
- Generated OpenAPI schema (Swagger source): `docs/openapi.json`
- Regenerate OpenAPI schema:

```bash
PYTHONPATH=. python3 scripts/export_openapi.py
```

## Feature Catalog (Current)

### Vector Memory (Qdrant)
- Dockerized Qdrant backend is included in local stack (`qdrant` service).
- Memory is used during orchestration `fetch_context` stage for similarity retrieval.
- Stored payload fields:
  - `key`: task identifier
  - `organization_id`: tenant filter key
  - `input`: task title + effective description snapshot
  - `output`: finalized generated code snapshot
- Retrieval behavior:
  - query vector is built from current task title/description
  - top similar memories are fetched from Qdrant
  - results are injected into context summary before `analyze -> generate_code`
- API (Swagger-visible):
  - `GET /memory/status` (backend/collection/vector status)
  - `GET /memory/schema` (what is stored and how it is used)
- Important:
  - current embedding mode is deterministic placeholder (baseline mode)
  - set `QDRANT_ENABLED=true` to activate memory lookups

### Core Delivery
- AI assignment from internal, Jira, and Azure sourced tasks
- Redis-based queue worker with dynamic concurrency
- Task cancellation endpoint and UI action (`POST /tasks/{id}/cancel`)
- Queue lock guard to prevent same-repo concurrent execution
- Retry/backoff handling for transient Codex/OpenAI execution failures
- Stale-running watchdog (auto-fail for long-running stuck jobs)

### Task Intelligence
- Queue insights on API/UI:
  - `queue_position`, `estimated_start_sec`, `queue_wait_sec`, `retry_count`
  - lock scope and blocker task info
- Execution telemetry:
  - start/end/duration
  - token and usage metrics
  - step-level logs with code preview and diff preview
- PR risk scoring per task:
  - `pr_risk_score`, `pr_risk_level`, `pr_risk_reason`

### Dependency & Governance
- Task Dependency Graph:
  - `GET /tasks/{id}/dependencies`
  - `PUT /tasks/{id}/dependencies`
  - cycle detection and self-dependency protection
  - assignment blocked while dependency blockers exist
- Tenant Playbooks (org-specific coding policy layer):
  - `PUT /integrations/playbook`
  - `GET /integrations/playbook/content`
  - playbook rules automatically injected into orchestration prompt context

### Story & Budget Controls
- Task Story Mode (implemented):
  - task-level fields: `story_context`, `acceptance_criteria`, `edge_cases`
  - these fields are injected into orchestration prompt context before generation
  - available in task create UI and task detail view
- Cost Guardrails (implemented):
  - task-level limits: `max_tokens`, `max_cost_usd`
  - run fails before PR creation when usage or estimated cost exceeds limit
  - guardrail events are written to task logs (`stage=guardrail`)

### Frontend
- Landing page sections for Flow/Agent engine and advanced capabilities showcase
- Dashboard overview with operations radar and queue forecast
- Task list with runtime, queue wait, retry, and token visibility
- Task detail panels for queue insight, dependency management, PR risk, and live logs

### Integrations
- Jira, Azure DevOps, OpenAI, and Playbook integration providers
- Org-scoped integration credentials and settings
- Repo mapping UX for Azure repo ↔ local path workflows

## Screenshots

### Boss Mode — Pixel Office
Manage your AI team in a retro pixel-art office. Each agent is a character you can click, assign tasks, and monitor in real time.

![Boss Mode](frontend/public/readmeimg/boss.png)

### Agent Management
Configure AI agents with different roles (Manager, PM, Lead Developer, Developer, QA). View performance analytics — flow coverage, activity share, latency, and success index per agent.

![Agent Management](frontend/public/readmeimg/agentmanage.png)

### Create Agent — Pick Character, Type & Model
Three-step wizard: pick a pixel character and name, choose provider (OpenAI, Gemini, Codex CLI, Claude CLI, Custom), then select a model.

| Step 1 — Character | Step 2 — Provider | Step 3 — Model |
|---|---|---|
| ![Pick Character](frontend/public/readmeimg/bossagentadd1.png) | ![Select Type](frontend/public/readmeimg/bossagentadd4.png) | ![Choose Model](frontend/public/readmeimg/bossagentadd2.png) |

### Create Agent — Advanced (Agents Page)
Full agent creation form with character picker, label, color, provider, model name, system prompt, Create PR toggle, and enable/disable switch.

![Create Agent Advanced](frontend/public/readmeimg/createagent.png)

### Agent Detail — Assign & Run Tasks
Click any agent to see its config, assign sprint tasks or create new ones, and trigger runs directly.

![Agent Detail](frontend/public/readmeimg/bossagentadd3.png)

### AI Team Panel
The sidebar shows all AI team members with their pixel avatars. Click "+" to add a new agent to the team.

![AI Team](frontend/public/readmeimg/bossagent.png)

### Agent Flows — Visual Pipeline Builder
Drag-and-drop flow editor with nodes for PM Analysis, Technical Plan, Development, and QA Test. Includes approval gates, run history, version control, dry run, and flow templates.

![Agent Flows](frontend/public/readmeimg/flow.png)

### Sprint Board
Kanban-style board with color-coded columns per state (Backlog, Blocked, Ready for Production, UAT, Code Review, Done). Import tasks directly from Azure DevOps or Jira sprints.

![Sprint Board](frontend/public/readmeimg/Sprintboard.png)

### Sprint Performance
Team health dashboard with circular gauge score, timeline progress, completion tracking, and per-member expandable cards showing individual task status (green/yellow/red).

![Sprint Performance](frontend/public/readmeimg/sprintperformance.png)

### Task Feed — Create & Manage
Create tasks with title, description, story context, acceptance criteria, edge cases, and cost guardrails. Filter by status (New, Queued, Running, Completed, Failed) and source (Azure, Jira).

![Task F

[truncated…]

PUBLIC HISTORY

First discoveredApr 1, 2026

IDENTITY

inferred

Identity inferred from code signals. No PROVENANCE.yml found.

Is this yours? Claim it →

METADATA

platformgithub
first seenMar 21, 2026
last updatedMar 31, 2026
last crawledtoday
version

README BADGE

Add to your README:

![Provenance](https://getprovenance.dev/api/badge?id=provenance:github:aozyildirim/Agena)