Skip to content

Repository files navigation

CawAgent

Learning to Build a General-Purpose Open-Source Architecture from Scratch: OpenCode, Codex, Claude

mini-opencode

The core architecture is modeled after opencode to build the follow-up

Packages

  • packages/desktop: Electron shell. Starts the local server and loads the app.
  • packages/app: React + Vite renderer UI with shadcn-style components.
  • packages/server: Express local API.
  • packages/core: Session, runner, tools, permissions, and storage.
  • packages/provider: Vercel AI SDK model adapter, defaulting to Anthropic Messages.
  • packages/protocol: HTTP and event contracts shared by app/server/core.
  • packages/schema: Shared schema helpers and IDs.

Docs

Project notes and learning material live in docs.

Development

npm install
npm run dev

The renderer runs on http://127.0.0.1:53173 and the local API runs on http://127.0.0.1:43110.

Set your DeepSeek config in the app sidebar before sending prompts. The app stores it in .mini-opencode/config.json.

Optional startup defaults:

  • DEEPSEEK_API_KEY
  • DEEPSEEK_BASE_URL
  • DEEPSEEK_MODEL

About

Learning to Build a General-Purpose Open-Source Architecture from Scratch: OpenCode, Codex, Claude

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages