nextui.dev
Home
Docs
Saved
Pricing
Components37
  • Forms & inputs7
  • Cards13
  • Buttons, badges & avatars8
  • Feedback & display6
  • Effects3
Agents17
  • Chat inputNew
  • Task checklistNew
  • ReasoningNew
  • Tool callNew
  • Tool approvalNew
  • SourcesNew
  • Agent timelineNew
  • Artifact panelNew
  • Streaming messageNew
  • Conversation shellNew
  • Voice agentNew
  • Voice orbNew
  • Thinking ring
  • Thinking waveNew
  • Thinking sparkle
  • Thinking bot
  • Prompt deckNew
Blocks20
  • Agent chatNew
  • Pill heroNew
  • Grid hero
  • Moodboard generatorNew
  • Waitlist heroNew
  • Intro bannerNew
  • Creative home heroNew
  • Chat heroNew
  • App shelfNew
  • Usage card
  • Design resultsNew
  • Pricing tiers
  • Dashboard home
  • The shiftNew
  • Launch perksNew
  • Testimonials
  • Quote
  • Team
  • Leads tableNew
  • Sign in
Pages13
  • ASCII workspace$49
  • Research agent$49
  • Support agent$49
  • Coding agent$49
  • CRM overviewNew
  • Marketing dashboardNew
  • Developer portfolio$49
  • Particle landing$49
  • Particle story$49
  • Statement converter$49
  • AI photo studio$49
  • Group card launch$49
  • Month-end storyNew
Themes9
  • Default
  • Ember
  • Ocean
  • Forest
  • Grape
  • Rose
  • Amber
  • Clay
  • Brutal
Upgrade
nextui.dev

nextui components, blocks and themes you install with one command.

Product

  • Components
  • Blocks
  • Themes
  • Pricing

Resources

  • Docs
  • Roadmap
  • GitHub

Legal

  • License
  • Privacy
  • Terms
  • Refunds

nextUI

[ 200 OK ] · nextUI

© 2026 NEXTUI • All rights reserved.

Upgrade
PagesCoding agent

Coding agentNew

Coding agent app built from the agent primitives: the agent reads the code, reproduces the bug with a failing test, edits the file and shows the diff, runs the tests green and asks before it opens a pull request. A side panel holds the file before and after, each with a live preview. Scripted end to end, so it runs with no backend until you plug in your model.

Buy template · $49

Installation

Set your access key from API keys as NEXTUI_TOKEN in .env.local and add the @nextui namespace below to components.json once. Then every item installs by name. Each install counts as a copy on a free account.

$pnpm dlx shadcn@latest add @nextui/coding-agent
1{
2 "registries": {
3 "@nextui": {
4 "url": "https://nextui.dev/r/{name}.json",
5 "headers": { "Authorization": "Bearer ${NEXTUI_TOKEN}" }
6 }
7 }
8}

Usage

1"use client";
2
3import { CodingAgent } from "@/components/pages/coding-agent";
4
5export default function Page() {
6 return <CodingAgent brand="Forge" onOpenPullRequest={() => console.log("open PR")} />;
7}

API reference

PropTypeDefaultDescription
brandstring"Forge"Product name in the top bar
taskstringa pricing bugAsked on load so the page opens with the agent at work; pass an empty string to start on the suggestions
suggestionsstring[]3 tasksShown in the empty chat
scriptCodingScriptthe pricing fixReasoning, steps, failing and passing test runs, diff, the file before and after with previews, summary and pull request step
onOpenPullRequest() => void–The person approved opening the pull request
classNamestring–Extra classes on the section

What it is made of

  • ConversationShell, Reasoning, AgentTimeline, ToolCall (a failing then a passing test run), StreamingMessage, ToolApproval and ArtifactPanel; the 7 primitives are free, MIT licensed and installed with the template
  • A diff card shows the edit; the side panel keeps v1 and v2 of the file with a live preview of each, so the fix can be checked by clicking
  • The side panel shows from 900px wide and on narrower screens the file shows in the answer; Ask AI hides and shows the panel

Plugging in a real agent

  • useCodingRun plays the script against a clock; replace it with useChat from @ai-sdk/react
  • Map your read_file, run_tests and edit_file tool calls to AgentTimeline events and ToolCall cards; render the edit's patch with the diff card
  • Give create_pull_request toolApproval (AI SDK 7) and render approval-requested parts with ToolApproval
  • The free agent starter in the nextui repo wires approvals up: npx degit tini-coder/nextui/starters/agent my-agent

Related

All pages
$49

ASCII workspaceNew

$49

Research agentNew

Sign in to see the code

Preview it freely. A free account copies code and prompts a few times a day.

$49 template
Sign in