open-codesign
CLAUDE.md8k starsChanged 7 months agoMITView on GitHub
Instructions for Claude Code (and any AI coding agent) working in this repository. Read this before making changes. open-codesign is an Electron desktop app that turns natural-language prompts into design artifacts (HTML prototypes, PDFs, PPTX decks, marketing assets). It's the open-source counterpart to Anthropic's Claude Design, with multi-provider model support via pi-ai and a local-first storage model. The full vision and locked decisions live in docs/VISION.md when the internal docs are present locally. Public checkouts may not have docs/; in…
- Reads credentials
- Installs packages
Trending
More talk lately.thin dataabout the whole repository
Who's talking about OpenCoworkAI/open-codesign
- sudosubin/agents.nix“agent-skills.github.opencoworkai.open-codesign: init at 0.2.2”GitHub · Oct 3, 2026
- AppImage/appimage.github.io“Add open-codesign”GitHub · Sep 27, 2026
- microsoft/winget-pkgs“New version: OpenCoworkAI.OpenCoDesign 0.2.0”GitHub · May 9, 2026
- @camilleroux.com“Alternative open-source à Claude Design / v0 / Bolt : prompt → prototype, slides ou PDF, en local, avec la …”Bluesky · Apr 23, 2026
- microsoft/winget-pkgs“Add OpenCoworkAI.OpenCoDesign version 0.1.2”GitHub · Apr 21, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
No bundled model runtimes: No Ollama, llama.cpp, Python, or browser binaries shipped in the installer.
- Very specific: line 18
BYOK only: No proxied API calls, no cloud account, no telemetry by default.
- Very specific: line 34
Model layer: All LLM calls go through @mariozechner/pi-ai.
- Very specific: line 73
Check
docs/RESEARCH_QUEUE.mdwhen available: before starting work that touches sandbox / inline-comment / slider / PPTX / pi-ai … - Distinctive: line 74
Respect the lean budget: Before adding a dependency: search for a tiny alternative, consider inlining, ask if it can be a peer dep.
- Very specific: line 75
UI must use
packages/uitokens: Don't hard-code colors, fonts, or spacing in app code.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md — Open CoDesign
Instructions for Claude Code (and any AI coding agent) working in this repository. Read this before making changes.
What this project is
open-codesign is an Electron desktop app that turns natural-language prompts into design artifacts (HTML prototypes, PDFs, PPTX decks, marketing assets). It's the open-source counterpart to Anthropic's Claude Design, with multi-provider model support via pi-ai and a local-first storage model.
The full vision and locked decisions live in docs/VISION.md when the internal docs are present locally. Public checkouts may not have docs/; in that case use AGENTS.md, public issues/PRs, and README context instead of blocking.
Note:
docs/is gitignored — internal team materials (research, roadmaps, handoffs) live there but are not part of the public repo. Clone contributors will not have this directory; team members will find it present locally after cloning and copying the internal docs back.
Hard constraints (do not violate)
These are project-level commitments, not preferences:
- No bundled model runtimes. No Ollama, llama.cpp, Python, or browser binaries shipped in the installer. Use system installs or lazy-download on demand.
- BYOK only. No proxied API calls, no cloud account, no telemetry by default. User credentials stay in
~/.config/open-codesign/config.toml(plaintext, file mode 0600 — matching Claude Code / Codex / gh CLI conventions). - Local-first storage. v0.2 design state is file/session based and local-first. Do not add new SQLite-backed session/design feature state.
- Permissive shipped dependencies. Shipped app/runtime dependencies, bundled assets, scaffolds, skills, brand refs, and copied code must be MIT-compatible permissive. Workflow-only CI/release tools may use copyleft licenses when they are not vendored, bundled, linked, or copied into the product; document the reason.
- Lazy-load heavy features. PPTX export, web capture, codebase scan, etc. must dynamic-import on first use, not on app start.
- Compatibility, upgradeability, no bloat, elegance — the four PRINCIPLES §5b checks. Every PR description must mark all four green.
Stack & conventions
- Package manager:
pnpmonly. Never usenpmoryarn. Workspace declared inpnpm-workspace.yaml. - Build orchestration: Turborepo.
- Lint + format: Biome (single tool, no ESLint + Prettier).
- Tests: Vitest (unit) + Playwright (E2E). New features require at least one Vitest test.
- TypeScript:
strict: true,verbatimModuleSyntax: true,moduleResolution: "bundler". Noany. - Commits: Conventional Commits, enforced by commitlint.
- Versioning: Changesets. Don't hand-edit
CHANGELOG.md. - Node: 22 LTS (pinned via
.nvmrc+engines). - Model layer: All LLM calls go through
@mariozechner/pi-ai. Don't import provider SDKs directly in app code; if pi-ai lacks a feature, add it topackages/providersas a thin extension.
Frontend stack (locked)
- UI framework: React 19 + Vite 6
- Styles: Tailwind v4 + CSS variables (tokens in
packages/ui) - State: Zustand (do not introduce Redux / Recoil / MobX)
- Routing: native
useStateview switching at first; TanStack Router only when route count > 5 - Components: Radix UI primitives + custom shadcn-style wrappers in
packages/ui - Icons:
lucide-react(only) - Forms: native
<form>+FormData(do not introduce react-hook-form / formik) - Animations: Tailwind transitions (do not introduce framer-motion / motion)
- Sandbox renderer: Electron iframe
srcdoc+ esbuild-wasm + import maps (seedocs/research/03-sandbox-runtime.md) - Electron version: latest stable, but NOT 41.x (cross-origin isolation regression)
- Storage: file/session-backed design state; TOML files for config (no electron-store blob)
Repository layout
apps/
desktop/ # Electron app shell (main + renderer)
packages/
core/ # Generation orchestration (prompt → artifact pipeline)
providers/ # pi-ai adapter + custom provider extensions
runtime/ # Sandbox renderer (iframe-based preview)
ui/ # Shared design system (aligned with open-cowork tokens)
artifacts/ # Artifact schema (HTML / React / SVG / PPTX)
exporters/ # PDF / PPTX / ZIP exporters (lazy-loaded)
templates/ # Built-in demo prompts and starter templates
shared/ # Types, utils, zod schemas
docs/ # Vision, roadmap, principles, RFCs (gitignored — internal only)
examples/ # Reproductions of Claude Design public demosDoing tasks here
- Read
docs/VISION.mdanddocs/PRINCIPLES.mdwhen available for any non-trivial change. Public contributors may not have internal docs. - Use the planning-with-files workflow for any task spanning > 5 tool calls or > 3 files. Plans live in
.claude/workspace/. - Use git worktrees for parallel work. See
docs/COLLABORATION.mdfor the workflow. Never run two unrelated feature branches in the same checkout. - Check
docs/RESEARCH_QUEUE.mdwhen available before starting work that touches sandbox / inline-comment / slider / PPTX / pi-ai capabilities — research may still be pending and decisions unresolved. - Respect the lean budget. Before adding a dependency: search for a tiny alternative, consider inlining, ask if it can be a peer dep.
- UI must use
packages/uitokens. Don't hard-code colors, fonts, or spacing in app code. If a token is missing, add it topackages/uifirst. - No "design for the future" abstractions. Three similar lines is fine. Don't introduce factories, plugin systems, or config-driven dispatch unless we have two real callers.
- No comments explaining what code does. Names should do that. Only comment the why when it's surprising.
- Schema-version everything that lives on disk. Config files, SQLite tables, IPC payloads, exported bundle formats — all carry a
schemaVersionfield so we can migrate without breaking older installs.
Things to avoid
- ❌ Adding
node_modules, build outputs, or.env*files to git - ❌ Importing from a provider SDK (
@anthropic-ai/sdk,openai,@google/genai) in app code - ❌ Writing tests that mock the LLM at the SDK level — mock at the
coreboundary instead - ❌ Adding tracking, analytics, or auto-update without explicit opt-in UX
- ❌ Hard-coding any path; respect XDG base dirs / Electron
app.getPath() - ❌ Synchronous I/O in the main process
- ❌
console.*inapps/desktop/src/main/**,packages/core/**,packages/providers/**,packages/exporters/**,packages/shared/**— usegetLogger()(main) or the injectedCoreLogger(core/providers/exporters). Biome enforces this.
Useful commands
pnpm i # install (uses Corepack-pinned pnpm)
pnpm dev # start Electron + Vite renderer
pnpm test # vitest watch
pnpm test:e2e # playwright
pnpm lint # biome check
pnpm typecheck # tsc --noEmit across workspace
pnpm build # produce signed Mac/Win installers
pnpm changeset # record a release-worthy changeOpen questions / pending research
See docs/RESEARCH_QUEUE.md. Don't prematurely lock in answers to questions still under investigation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

