Skip to content

zxyao145/d-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClaudeCodeSdk and ClaudeCodeSdk.MAF Example

This project demonstrates the ClaudeCodeSdk and ClaudeCodeSdk.MAF (Message Agent Framework) with a standalone web UI and WebSocket backend.

This is extracted from the d-system repository, which is still under development. (As development is ongoing, it remains in private status.)

demo-2.mp4

Backend (ASP.NET Core)

The backend lives under src/d-code/backend with a minimal host project that serves the Claude Code WebSocket controller.

Requirements

  • .NET 10 SDK
  • Claude Code credentials (e.g. ANTHROPIC_AUTH_TOKEN) or a custom API base URL

Run

cd src/d-code/backend

dotnet restore

dotnet run --project DSystem.DCode.Host

The backend will listen on the default ASP.NET Core URL (e.g. http://localhost:5015).

Note: ClaudeCodeAgentDbSeeder.cs is included for reference but excluded from compilation because it depends on the full D-System database model.

Frontend (Next.js)

The frontend lives under src/d-code/frontend and provides a web-based interface for the Claude Code UI.

Run

cd src/d-code/frontend

pnpm install
pnpm dev

By default, the frontend proxies /api/* to http://localhost:5015. You can override this with:

export DCODE_BACKEND_BASE_URL=http://localhost:5015

Then open http://localhost:3000 (automatically redirects to /claude-code).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors