claude-code
ui · paidClaude Code's terminal UI, drawn from an agent session
npx shadcn add @ag/claude-codeA paid item: its source installs with a licence key, kept in .env.local as AG_LICENCE_KEY and sent from components.json. The source stays in your project and out of any public repository. The licence
{
"registries": {
"@ag": {
"url": "https://ui.adriangalilea.com/r/{name}.json",
"headers": { "Authorization": "Bearer ${AG_LICENCE_KEY}" }
}
}
}Already installed? Preview an update
npx shadcn add @ag/claude-code --dry-runYour installed source stays unchanged until you update it. How updates work
Latest changes · 2026-09-30
- New: Claude Code's terminal UI drawn from an agent-session: the welcome box, your prompts as full-width grey bars (the only tinted lines, as in the real CLI),
⏺replies and tool calls with their⎿results, the working line as the CLI draws it (✢ Shimmying… (1s), then(5s · thinking),(14s · still thinking),(25s · thinking more), the stage in the verb's colour, and↓ 2.9k tokensonce the turn has output: the spinner breathing through· ✢ ✳ ✶ ✻ ✽, a light band sweeping the verb, a new verb from Claude Code's own list on every request, all a pure function of time), the grey line a finished turn leaves (✻ Sautéed for 8m 37s), the prompt box. Reads like a terminal: from the top while it fits, the oldest lines scrolled away once it does not.
shelf devices & demos
uses agent-session
the demo above, verbatim
"use client"
import * as React from "react"
import { Sample } from "@/app/samples"
import {
type AgentEntry,
requestTokens,
} from "@/registry/base-nova/lib/agent-session"
import { ClaudeCode } from "@/registry/base-nova/ui/claude-code"
// #region session
const ENTRIES: AgentEntry[] = [
{ kind: "prompt", text: "Migrate billing to the v2 API and run the tests." },
{ kind: "say", text: "I'll start with the client, then the call sites." },
{
kind: "tool",
name: "Read",
arg: "src/billing/client.ts",
result: ["Read 214 lines"],
},
{
kind: "tool",
name: "Update",
arg: "src/billing/client.ts",
result: ["Updated src/billing/client.ts with 38 additions and 12 removals"],
},
]
// #endregion
/** Time since the demo mounted: the working line is a function of it. */
function useMs() {
const [ms, setMs] = React.useState(0)
React.useEffect(() => {
const t0 = performance.now()
let frame = requestAnimationFrame(function tick(now) {
setMs(now - t0)
frame = requestAnimationFrame(tick)
})
return () => cancelAnimationFrame(frame)
}, [])
return ms
}
export default function ClaudeCodeDemo() {
const ms = useMs()
return (
<Sample
name="working"
glance="large"
title="at work"
description="a transcript and the working line"
with="session"
>
<div className="h-[420px] rounded-xl bg-[#161617] p-5 font-mono text-[13px] leading-[1.45]">
<ClaudeCode
entries={ENTRIES}
work={{
seconds: 192 + ms / 1000,
// One request's life, over and over: a beat, thinking, streaming.
request: (ms / 1000) % 40,
tokens: 2140 + requestTokens((ms / 1000) % 40),
ms,
}}
draft=""
cwd="~/billing"
/>
</div>
</Sample>
)
}