Skip to content

docs: rewrite AGENTS.md, add internal docs and refresh package READMEs - #179

Merged
sanchitrk merged 1 commit into
canaryfrom
docs/agents-and-internals
Nov 24, 2026
Merged

sanchitrk merged 1 commit into
canaryfrom
docs/agents-and-internals

Conversation

@sanchitrk

@sanchitrk sanchitrk commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Agents and new contributors had one long instruction file with several claims the code contradicts, no internal docs, and package READMEs that had drifted (a CLI section in the harness README, wrong defaults and "no auth" in the CLI README, an aikit example with the wrong validateToolArguments signature). This replaces all of it, with every claim checked against the source.

AGENTS.md and CLAUDE.md

  • AGENTS.md is the single instruction file; CLAUDE.md is now @AGENTS.md.
  • Sections: what CodeWork never compromises on, architecture domains, terminology, Hit Every Layer, dev servers and test data, verifying, pull requests (branch flow canary → dev → main), documentation, plans and work artifacts, where code lives, and taste.
  • Testing is "E2E first", not "E2E only", and never writing unit tests after the code is stated in both AGENTS.md and the testing doc.

docs/

  • docs/internals/00–14: glossary, architecture, services, models, runtime, projects, sandboxes, settings, plugins, server, Relay, desktop, telemetry, testing and releasing. 15_performance.md is a TODO stub.
  • docs/operations/00_development.md: a dev home under .scratch/home, then the RPC server (vp run dev:cli serve --port 0), then the desktop app (vp run dev:desktop).
  • CONTRIBUTING.md: what we welcome, understand your code, issues, and what to run before a PR.

READMEs

  • New: packages/schema, apps/{desktop,server,web,contract,widget}, infra/relay, extras/codework-sandbox-vercel.
  • Rewritten or corrected: packages/{aikit,harness,plugin,codework}, infra/catalog, the three existing extras READMEs, and the root README's dev commands.
  • The four npm READMEs link to docs/ with GitHub URLs, so the links work on npm once this is on main.

Code

  • Two comments (harness/src/settings/file.ts, codework/src/cli/jsonc.ts) now name the RPC server, not the app server, as the writer of settings files. Comment-only.

Testing

  • vp run verify passes (only existing Effect suggestions in the output).
  • vp fmt over all 36 changed markdown files; a sweep for em dashes, tracker ids, vendored repo names, tables wider than three columns and broken links came back clean.
  • Each doc and README was reviewed against the code by a separate agent, with corrections cited to file and line.
  • Not run: test suites (docs-only change). The README code examples were checked by name against the exports but not compiled.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

AGENTS.md now says what CodeWork never compromises on, its domains,
and how to run, verify and ship changes. CLAUDE.md points at it.

docs/internals adds a glossary and pages per area, checked against
the code. docs/operations/00_development.md covers the dev home and
starting the RPC server, then the desktop app. CONTRIBUTING.md is new.

Package READMEs are rewritten or added for packages, apps, infra and
extras, with stale commands, flags and examples corrected. Two code
comments now name the RPC server, not the app server, as the writer
of settings files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sanchitrk
sanchitrk merged commit 8b6596f into canary Nov 24, 2026
2 checks passed
@sanchitrk
sanchitrk deleted the docs/agents-and-internals branch November 24, 2026 13:21
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