Jenkins plugin: reusable AI Agent build step for Claude Code, Codex CLI, Cursor Agent, OpenCode, and Gemini CLI
# AI Agent [](https://github.com/jenkinsci/ai-agent-plugin/actions/workflows/ci.yml) [](https://opensource.org/licenses/MIT) [](https://www.jenkins.io/) A Jenkins plugin that adds a reusable **Run AI Agent** build step for running autonomous coding agents (Claude Code, Codex CLI, Cursor Agent, OpenCode, Cursor CLI) in Jenkins jobs and pipelines. Plugin ID (artifactId): `ai-agent` ## Features - **Reusable build step** — add `Run AI Agent` to Freestyle jobs or Pipeline via `aiAgent(...)`. - **Multiple agent support** — Claude Code, Codex CLI, Cursor Agent, OpenCode, and Cursor CLI. - **Inline conversation view** — live-streaming conversation on the build page with structured display of assistant messages, tool calls with inputs/outputs, and thinking blocks. Multiple invocations in the same build are shown as separate cards (latest expanded, older collapsible). - **Markdown rendering** — assistant and result messages are rendered as formatted HTML. - **Approval gates** — optionally pause builds for human review before tool execution. - **Usage statistics** — token counts, cost, and duration extracted from agent logs and displayed per build. - **Codex per-job config** — optionally provide a job-scoped `~/.codex/config.toml` to override settings/MCP for Codex runs. - **Standard Jenkins integrations** — SCM checkout, build triggers, credentials injection, post-build shell steps, and publishers. ## Supported Agents | Agent | Output Format | Cost Tracking | |-------|--------------|---------------| | [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | stream-json | Full (tokens + cost) | | [Codex CLI](https://github.com/openai/codex) | JSON | Tokens only | | [Cursor Agent](https://www.cursor.com/) | stream-json | Tokens only | | [OpenC
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.