Skip to content

feat: add AI chat to web dashboard powered by Claude Agent SDK - #6

Merged
VioletCranberry merged 1 commit into
mainfrom
feat/ai-chat-dashboard
Feb 18, 2026
Merged

feat: add AI chat to web dashboard powered by Claude Agent SDK#6
VioletCranberry merged 1 commit into
mainfrom
feat/ai-chat-dashboard

Conversation

@VioletCranberry

Copy link
Copy Markdown
Owner

Integrate an optional AI chat feature into the web dashboard that lets users ask questions about their codebase directly from the browser. The chat agent has access to semantic search, file reading, and grep, streaming responses with markdown rendering, tool use display, and session stats.

Key changes:

  • New chat/ module: ChatSession wraps ClaudeSDKClient in a private asyncio event loop thread; ChatSessionManager singleton manages up to 10 concurrent sessions with 30-minute idle timeout
  • Dashboard server & MCP server: /api/ai-chat/* endpoints (status, start, stream via SSE, delete session)
  • Frontend: [Search] [Ask AI] pill toggle, streaming chat UI with marked.js + DOMPurify for markdown, Prism.js syntax highlighting, collapsible tool use panels, and a stats bar (turns, tokens, cost)
  • Optional dependency: cocosearch[web-chat] installs claude-agent-sdk
  • Unit tests for session management (availability, capacity, cleanup)
  • Updated README with feature list restructure, new screenshots, and AI chat setup instructions
  • Updated CLAUDE.md with chat module architecture docs

Integrate an optional AI chat feature into the web dashboard that lets
users ask questions about their codebase directly from the browser.
The chat agent has access to semantic search, file reading, and grep,
streaming responses with markdown rendering, tool use display, and
session stats.

Key changes:
- New `chat/` module: ChatSession wraps ClaudeSDKClient in a private
  asyncio event loop thread; ChatSessionManager singleton manages up to
  10 concurrent sessions with 30-minute idle timeout
- Dashboard server & MCP server: /api/ai-chat/* endpoints (status,
  start, stream via SSE, delete session)
- Frontend: [Search] [Ask AI] pill toggle, streaming chat UI with
  marked.js + DOMPurify for markdown, Prism.js syntax highlighting,
  collapsible tool use panels, and a stats bar (turns, tokens, cost)
- Optional dependency: `cocosearch[web-chat]` installs claude-agent-sdk
- Unit tests for session management (availability, capacity, cleanup)
- Updated README with feature list restructure, new screenshots, and
  AI chat setup instructions
- Updated CLAUDE.md with chat module architecture docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@VioletCranberry
VioletCranberry merged commit a6c0efb into main Feb 18, 2026
3 checks passed
@VioletCranberry
VioletCranberry deleted the feat/ai-chat-dashboard branch February 18, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant