Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add olaservo/mcp-agent-skills --skill claude-agent-ui-tsgit clone --depth 1 https://github.com/olaservo/mcp-agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/olaservo/mcp-agent-skills/claude-agent-ui-ts)<a href="https://agentmods.dev/skills/olaservo/mcp-agent-skills/claude-agent-ui-ts"><img src="https://agentmods.dev/badge/skills/olaservo/mcp-agent-skills/claude-agent-ui-ts/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/olaservo/mcp-agent-skills/claude-agent-ui-ts"><img src="https://agentmods.dev/badge/skills/olaservo/mcp-agent-skills/claude-agent-ui-ts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.01061 |
| Opus 5.5 | $0.00010 | $0.00424 |
| Sonnet 5.5 | $0.00005 | $0.00212 |
| Haiku 4.5 | $0.00003 | $0.00106 |
Grade A, and why
claude-agent-ui-ts scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Agent UI (TypeScript)
Add a web UI to your Claude Agent SDK agents. Includes real-time WebSocket communication, interactive tool approval, and SQLite persistence for chat history.
Prerequisites
- Node.js 18+
- Claude Agent SDK configured (see claude-agent-sdk-ts skill for setup)
Quick Start
-
Copy the snippets to your project:
client.tsxfrom this skillwebsocket-server-sqlite.tsandwebsocket-types.tsfrom claude-agent-sdk-ts skill
-
Install dependencies:
npm install express cors ws @anthropic-ai/claude-agent-sdk better-sqlite3 react react-dom npm install -D @types/better-sqlite3 @types/express @types/cors @types/ws -
Edit the server CONFIG section (workingDirectory, model, allowedTools, dbPath)
-
Start server:
npx tsx server.ts -
Add
client.tsxto your React app and open in browser
Architecture
React Client <--WebSocket--> Express Server <--SDK--> Claude Agent
(client.tsx) (server.ts)
|
v
SQLite DB
(chat.db)
Flow:
- User types message in React UI
- Message sent via WebSocket to server
- Server persists message to SQLite and forwards to Claude Agent SDK
- When agent wants to use a tool, server sends approval request to client
- User approves or rejects in UI
- Server continues or blocks tool based on response
- Agent responses persisted to SQLite and streamed back to UI
Snippets
| Snippet | Source | Description |
|---|---|---|
client.tsx |
This skill | React chat UI with WebSocket and tool approval buttons |
websocket-server-sqlite.ts |
claude-agent-sdk-ts | Express + WebSocket + SQLite server with SDK integration |
websocket-types.ts |
claude-agent-sdk-ts | Shared TypeScript types for messages |
Configuration
Edit the CONFIG object in the server:
const CONFIG = {
port: 3001,
workingDirectory: process.cwd(), // Scope file operations
model: "sonnet", // opus, sonnet, or haiku
allowedTools: ["Bash", "Read", "Write", "Edit", "Glob", "Grep"],
systemPrompt: "You are a helpful AI assistant.",
dbPath: "./chat.db", // SQLite database path
};
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 140 lines · 26 tokens per session scan A ea6ec5f699f2
claude-agent-ui-ts is a skill published in the GitHub repository olaservo/mcp-agent-skills (2 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 26 tokens to every session and 1,061 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
claude-agent-ui-ts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| claude-agent-ui-tsolaservo/mcp-agent-skills | Skill | 2 | 9mo ago | Apache-2.0 | A | 26 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | today | MIT | A | 200 | Claude Code, Codex |
| playwright-climicrosoft/playwright | Skill | 99k | today | Apache-2.0 | A | 19 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 314k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| chat-pet-sprite-creationmicrosoft/vscode | Skill | 195k | today | MIT | A | 53 | Claude Code, Codex |