open-codesign
AGENTS.md8k starsChanged 7 months agoMITView on GitHub
Instructions for Codex and other AI coding agents working in this repository. Read this before making changes. CLAUDE.md may lag behind the current plan. For Codex work, treat this file as the public source of truth. If local internal docs such as docs/VISION.md, docs/PRINCIPLES.md, or docs/v0.2-plan.md exist, use them as additional context; if they are missing, do not block public-contributor work on them. Open CoDesign is an open-source desktop design agent. It turns prompts, local files, skills, scaffolds, brand systems,…
- Pipes a download into a shell
- 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.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
24 rules. About 0 are common, 13 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
No bundled model runtimes.
- Distinctive: line 26
Every design has a workspace.
- Distinctive: line 35
When building or updating any website, project homepage, product page, personal site, documentation site, blog, or public project page, …
- Very specific: line 37
Add /llms.txt with a concise Markdown overview of the site, author or organization, key pages, canonical project or product descriptions, …
- Very specific: line 38
Add /llms-full.txt when the site has enough substantive public content to justify a fuller AI-readable context file.
- Very specific: line 41
Add appropriate JSON-LD structured data where useful, such as Person, Organization, WebSite, BlogPosting, SoftwareApplication, FAQPage, or …
- Distinctive: line 42
Prefer clean Markdown or JSON machine-readable endpoints for important entities such as profiles, projects, posts, docs, releases, FAQs, …
- Distinctive: line 43
Keep the content truthful, source-backed, and non-spammy.
- Very specific: line 49
Use pi-coding-agent and pi-ai.
- Very specific: line 50
Use pi built-ins for read, write, edit, bash, grep, find, and ls.
- Very specific: line 52
Read capabilities from pi Model<T> fields such as input, reasoning, cost, contextWindow, and maxTokens.
- Very specific: line 54
All LLM calls go through pi-ai.
- Distinctive: line 78
Do not reintroduce a verifier subagent, snip tool, custom bash tool, custom list-files tool, or agent-written working memory for v0.2 …
- Distinctive: line 98
Treat starter/scaffold assets as product code, not prompt filler.
- Very specific: line 101
Avoid weak placeholder copy such as "Deck title", "Page content", "Replace this", or "Point one".
- Very specific: line 103
When touching apps/desktop/resources/templates/scaffolds/, audit for extension/content mismatches, external network URLs, stale placeholder …
- Very specific: line 149
Use planning files in .Codex/workspace/ for tasks spanning more than five tool calls or more than three files when a durable local plan …
- Distinctive: line 150
Use git worktrees for parallel or unrelated feature work.
- Very specific: line 151
Check docs/RESEARCH_QUEUE.md before touching sandbox, inline comments, tweaks, PPTX, pi capabilities, scaffolds, skills, or brand refs when …
- Distinctive: line 152
Keep edits scoped. Avoid drive-by refactors.
- Distinctive: line 153
Before adding a shipped/runtime dependency, check license, install size, alternatives, and whether it can be a peer dep.
- Distinctive: line 154
Add or update Vitest coverage for feature work.
- Distinctive: line 155
Prefer manifest and switch logic over registries until two real callers need more.
- Distinctive: line 167
Do not hide blocked tool calls.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md - Open CoDesign
Instructions for Codex and other AI coding agents working in this repository. Read this before making changes.
CLAUDE.md may lag behind the current plan. For Codex work, treat this file as the public source of truth. If local internal docs such as docs/VISION.md, docs/PRINCIPLES.md, or docs/v0.2-plan.md exist, use them as additional context; if they are missing, do not block public-contributor work on them.
What This Project Is
Open CoDesign is an open-source desktop design agent. It turns prompts, local files, skills, scaffolds, brand systems, and model output into design artifacts on the user's laptop.
The v0.2 direction is no longer a single-prompt generator. Each design is a long-running pi session with a real workspace. The agent can read and edit files, run permissioned commands, ask structured questions, preview artifacts, expose tweak controls, generate images when the configured model supports it, and produce DESIGN.md design-system artifacts.
The original inspiration was Claude Design. The product boundary is now clearer: Open CoDesign borrows proven coding-agent mechanics, then adds design-specific tools and a local-first workspace model.
Product model: a Design owns a workspace. The agent edits design source files in that workspace; the preview runtime turns those sources into a rendered web document; exporters turn the rendered/source document into standard outputs such as HTML, PDF, PPTX, ZIP, or Markdown. In v0.2 the default source entry is App.jsx; index.html is reserved for standalone exports or legacy workspace files.
docs/ is gitignored. Maintainers may have internal plans, handoffs, and research locally; public contributors may not. Do not cite docs/** in public PR review comments unless the file exists in the public checkout.
Hard Constraints
These are project commitments, not preferences:
- No bundled model runtimes. Do not ship Ollama, llama.cpp, Python, browser binaries, or model weights inside the installer. Use system installs or lazy-download with user-visible consent.
- BYOK only. No hosted account, proxied API, or telemetry by default. User credentials stay in human-readable local config.
- Local-first storage. v0.2 uses pi JSONL sessions plus real workspace files. Existing v0.1 SQLite data may be migrated, but do not add new SQLite tables for sessions, chat history, comments, snapshots, or design files.
- Every design has a workspace. No sealed/open split in v0.2. The workspace filesystem is the source of truth for artifacts and assets.
- Shipped app/runtime dependencies, bundled assets, scaffolds, skills, brand refs, and copied code must be MIT-compatible permissive. Reject GPL, AGPL, SSPL, proprietary deps, and unclear copied assets in anything that is bundled, linked, imported by app code, or distributed to users. Workflow-only CI/release tools may use copyleft licenses when they are not vendored, bundled, linked, or copied into the product; document the reason and keep their outputs limited to ordinary metadata or manifests.
- Lazy-load heavy features. PPTX export, web capture, scaffolds, skills, brand refs, and image generation must load on demand rather than at app start.
- Reuse pi primitives first.
pi-coding-agentowns sessions, built-in tools, bash execution, event streaming, model registry, provider registration, and capability data unless a design-specific need proves otherwise. - Brand values are data, not model memory. Use
DESIGN.md, user files, official CSS/SVG/screenshots, or brand URLs. Do not invent brand hex values from memory. - PRs should stay compatible, upgradeable, lean, and elegant. If
docs/PRINCIPLES.mdis present, use its Principles 5b wording as the detailed checklist.
AI Visibility For Web Work
When building or updating any website, project homepage, product page, personal site, documentation site, blog, or public project page, include AI visibility in the default delivery scope unless the user explicitly opts out.
- Add
/llms.txtwith a concise Markdown overview of the site, author or organization, key pages, canonical project or product descriptions, and links to machine-readable resources. - Add
/llms-full.txtwhen the site has enough substantive public content to justify a fuller AI-readable context file. - Configure
robots.txtdeliberately: allow search and retrieval crawlers that help AI systems cite or retrieve public content, and treat training crawlers as a separate policy decision. - Maintain
sitemap.xmland make sure it covers important public pages. Mention Google Search Console and Bing Webmaster Tools submission when relevant. - Add appropriate JSON-LD structured data where useful, such as
Person,Organization,WebSite,BlogPosting,SoftwareApplication,FAQPage, orCreativeWork. - Prefer clean Markdown or JSON machine-readable endpoints for important entities such as profiles, projects, posts, docs, releases, FAQs, and product facts.
- Keep the content truthful, source-backed, and non-spammy. The goal is to help AI systems understand and cite existing real content accurately, not to generate low-quality SEO filler.
Current Architecture Direction
Agent Runtime
- Use
pi-coding-agentandpi-ai. - Use pi built-ins for
read,write,edit,bash,grep,find, andls. - Gate tools through the pi
tool_callhook and the Open CoDesign permission UI. - Read capabilities from pi
Model<T>fields such asinput,reasoning,cost,contextWindow, andmaxTokens. - Register custom providers through
pi.registerProvider(). Do not build a parallel provider SDK layer. - All LLM calls go through
pi-ai; do not import provider SDKs directly in app code.
Storage
- Design equals pi session.
- Session history lives under app user data as pi JSONL.
- Design source files, generated JSX/HTML/CSS, assets, exports,
AGENTS.md, andDESIGN.mdlive in the user workspace. - Workspace settings live in
.codesign/settings.jsonwithschemaVersion. settings.local.jsonis personal and should stay gitignored.- v0.1 SQLite is legacy data to migrate, not the v0.2 storage model.
Tools
The v0.2 tool surface is pi's seven built-ins plus Open CoDesign design tools:
ask(questions)renders structured questions and waits for the user.scaffold(kind, path)copies a curated starter into the workspace.skill(name)lazy-loads skill text from a manifest.preview(path)renders artifacts and returns console errors, asset errors, DOM outline, metrics, and screenshots for vision models.gen_image(prompt, path)writes generated images to disk when capability and provider config allow it.tweaks(blocks)declares editable controls across files.todos(items)shows task state for complex turns.done(path)ends a turn after preview self-check.
Do not reintroduce a verifier subagent, snip tool, custom bash tool, custom list-files tool, or agent-written working memory for v0.2 unless the plan changes.
Design System
DESIGN.mdfollows the Google spec and can be both input and output.- Agent-generated multi-screen work should keep visual consistency by updating
DESIGN.mdas tokens emerge. - Built-in brand refs must include attribution, source, license metadata, and a "not affiliated" note.
- Built-in skills use the agentskills-style
SKILL.mdformat. - Skill and scaffold manifests should carry license and source metadata.
Resource Boundaries
- Markdown skills in
apps/desktop/resources/templates/skills/*.mdare method rules. They tell the agent how to work; they do not copy files into a workspace. - Brand refs in
apps/desktop/resources/templates/brand-refs/*/DESIGN.mdare reference-only design systems loaded asskill("brand:<slug>"). Do not edit them for a project; translate adopted choices into the workspaceDESIGN.md. - Scaffolds in
apps/desktop/resources/templates/scaffolds/**are concrete starter/source assets copied byscaffold(kind, destPath). They can be JSX, HTML, CSS, Markdown, or other text formats if the manifest describes them accurately. - Design-skill snippets in
apps/desktop/resources/templates/design-skills/*.jsxare copyable JSX component patterns exposed through the virtual filesystem asskills/<file>.jsx. They are source snippets, not markdown skills and not brand authority. - Workspace
DESIGN.mdis the project-specific design-system baton. It is authoritative for the current design once present, and generated work should preserve or repair it rather than treating it as another preset.
Built-In Starters And Scaffolds
- Treat starter/scaffold assets as product code, not prompt filler. Review the actual file contents as well as the manifest before changing or adding presets.
- Keep source format and filename extension aligned. Full HTML documents must live as
.html, JSX/React starters as.jsx, and CSS snippets as.css. Thescaffold()tool should preserve the source extension when copying, but the preset asset itself should still be correctly named and described. - Built-in HTML starters should be self-contained and previewable in the current runtime. Do not add Reveal.js, React, Babel, Chart.js, or other CDN/runtime scripts to scaffold assets. If a starter needs runtime behavior, use local plain HTML/CSS/JS or an app-provided/lazy-loaded dependency with a clear license path.
- Avoid weak placeholder copy such as "Deck title", "Page content", "Replace this", or "Point one". Use neutral, usable sample content and expose obvious replacement points through
TWEAK_DEFAULTSwhen the starter is JSX. - Manifest descriptions should say when a starter is HTML or CSS and should call out extension-sensitive assets, especially files that agents might otherwise copy into
_starters/*.jsx. - When touching
apps/desktop/resources/templates/scaffolds/**, audit for extension/content mismatches, external network URLs, stale placeholder copy, and manifest drift. Add or update focused scaffold/runtime tests when the change affects copy paths, preview classification, or tool details.
Stack and Conventions
- Package manager:
pnpmonly. Never usenpmoryarn. - Build orchestration: Turborepo.
- Lint and format: Biome.
- Tests: Vitest for unit tests, Playwright for E2E.
- TypeScript: strict mode,
verbatimModuleSyntax, bundler resolution, noany. - Commits: Conventional Commits.
- Versioning: Changesets. Do not hand-edit
CHANGELOG.md. - Node: 22 LTS, pinned by
.nvmrcandengines. - Exact package versions live in
package.json, workspace manifests, andpnpm-lock.yaml. Read those files instead of trusting stale docs.
Frontend
- React + Vite + Tailwind v4 + CSS variables.
- State uses Zustand. Do not introduce Redux, Recoil, or MobX.
- Components use Radix primitives and custom shadcn-style wrappers in
packages/ui. - Icons use
lucide-react. - Forms use native
<form>andFormData. - Animations use Tailwind transitions. Do not introduce framer-motion or motion.
- App chrome must use
packages/uitokens. Generated design sources and exports may define their own visual system. - Sandbox preview remains Electron iframe
srcdocplus runtime tooling.App.jsxJSX source is wrapped by the runtime for preview/export; exportedindex.htmlis the standalone deliverable.
Repository Layout
apps/
desktop/ # Electron app shell, main process, renderer
packages/
core/ # Agent orchestration, prompts, design tools
providers/ # pi integration and provider compatibility shims
runtime/ # Sandbox renderer and preview runtime
ui/ # Shared app UI tokens and components
artifacts/ # Artifact schemas and bundle formats
exporters/ # PDF / PPTX / ZIP exporters, lazy-loaded
templates/ # Built-in examples and starter templates
shared/ # Shared types, utils, schemas
docs/ # Internal vision, plans, principles, research; gitignored
examples/ # Public demo reproductionsDoing Tasks Here
- For non-trivial architecture or product work, read
docs/VISION.md,docs/PRINCIPLES.md, anddocs/v0.2-plan.mdwhen they exist locally. Public checkouts may not havedocs/; in that case rely on this file, public issues/PRs, and README context. - Use planning files in
.Codex/workspace/for tasks spanning more than five tool calls or more than three files when a durable local plan would help. Do not create planning churn for small, direct fixes. - Use git worktrees for parallel or unrelated feature work. Do not mix two unrelated branches in one checkout.
- Check
docs/RESEARCH_QUEUE.mdbefore touching sandbox, inline comments, tweaks, PPTX, pi capabilities, scaffolds, skills, or brand refs when that file exists locally. - Keep edits scoped. Avoid drive-by refactors.
- Before adding a shipped/runtime dependency, check license, install size, alternatives, and whether it can be a peer dep. For workflow-only tools, document why they are not bundled and whether their outputs affect distributed artifacts.
- Add or update Vitest coverage for feature work. Broaden tests when changing migrations, permissions, tool hooks, or shared contracts.
- Prefer manifest and switch logic over registries until two real callers need more.
- Comment only when the reason would surprise the next maintainer.
Permission Model
Open CoDesign uses one permission model with tiers:
- Tier 0: workspace-local reads/writes, simple file commands, and read-only git may run without interruption.
- Tier 1: installs, build commands, non-local network fetches, and cwd-external commands ask once and can be allowlisted.
- Tier 2: publishing, pushing, sudo, and high-blast-radius commands ask every time.
- Tier 3: destructive system commands,
curl | sh, and system-directory writes are blocked without override.
Do not hide blocked tool calls. Show the command, path, tier, and reason.
Things to Avoid
- Adding
node_modules, build outputs,.env*, generated release artifacts, or private local files to git. - Importing
@anthropic-ai/sdk,openai,@google/genai, or other provider SDKs in app code. - Writing tests that mock the LLM at the SDK level. Mock at the core or pi boundary.
- Adding tracking, analytics, account flows, cloud sync, or auto-update without explicit opt-in UX.
- Hard-coding user paths. Respect XDG, Electron
app.getPath(), and workspace roots. - Adding new SQLite-backed feature state for v0.2 session/design data.
- Introducing
projectas a product abstraction in v0.2. Multiple sessions can share a workspace, but the sidebar lists sessions. - Exposing session branching UI, undo/version rollback, MCP support, or community skill installation in v0.2 unless the plan changes.
- Using
console.*inapps/desktop/src/main/**,packages/core/**,packages/providers/**,packages/exporters/**, orpackages/shared/**. Use the project logger.
Useful Commands
pnpm i
pnpm dev
pnpm test
pnpm test:e2e
pnpm lint
pnpm typecheck
pnpm build
pnpm changesetDoes 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.

