-
Notifications
You must be signed in to change notification settings - Fork 112
Contributing
The full guide lives in CONTRIBUTING.md. This page is the short orientation, plus how to fix a page in this wiki.
| You have | Send it to |
|---|---|
| A bug | An issue, with OS, install method, browser, and which CLI the session was running. |
| A question or setup problem | Discussions. |
| An idea | Ideas, where it gets voted on. |
| A small fix | Straight to a PR. |
| A bigger feature | An issue or Discussion first, then build once the design has a nod. |
| A security problem | Never a public issue. See SECURITY.md. |
Issues usually get a response within a day, and every release credits its contributors and bug reporters by name.
git clone https://github.com/Ark0N/Codeman.git
cd Codeman
npm install # postinstall builds the vendored xterm addon bundles
npm run dev # http://localhost:3000Requirements: Node 22+, tmux, and at least one agent CLI on your PATH.
The frontend is plain JavaScript with no bundler in dev: edit a .js or .css file and
reload. The exception is index.html, which is read once at server start, so markup changes
need a restart.
CI runs all of these, so running them locally saves a round trip:
npm run typecheck
npm run lint
npm run format:check
npm run check:frontend-syntax
npm run check:browser-excludes
npm test -- test/<file>.test.ts # one file, the normal way
npm run test:ci # the full CI sweepnpm install installs a pre-push git hook that runs the static checks above (about 10-40s,
machine-dependent) and blocks a push that would fail them. It skips itself when you push
something other than the checked-out HEAD, or when the tree has uncommitted changes the
checks would read. Skip it once with CODEMAN_SKIP_PREPUSH=1 git push; a
pre-push hook of your own is never overwritten.
Never run bare npm test. The default configuration includes browser-driven Playwright
suites that need a live server, Chromium, and environment-specific baselines; they hang or
fail on a normal machine. test:ci is the honest "run everything".
Tests are tmux-safe by design: under vitest the tmux layer becomes an in-memory mock, so tests cannot touch real sessions. If you add a test that binds a port, pick a unique one at 3150 or above, and never 3000.
- Every source file opens with a
@fileoverviewblock. Read it before the file; it is the map. -
CLAUDE.mdat the repo root is the densest architecture primer there is. It is written for AI coding agents, but its invariants apply identically to humans, and most review feedback traces back to something already written there. -
docs/architecture-invariants.mdholds the deep mechanisms and the history behind each rule.
- A theme skin. A skin is four things kept in sync, and a static test checks the sync, so if the test passes your skin works.
- A language. The i18n module is dependency-free, English is canonical, and Simplified Chinese is a complete example to copy.
- Docs. If you got stuck and then figured it out, the sentence that would have unstuck you is a pull request.
- Anything labelled good first issue.
Worth discussing first: new CLI backends, and real-device testing reports, especially mobile, which always find things emulation cannot.
- One change per PR. Small and focused reviews fast; a grab bag stalls.
- Target
master. - Keep your branch mergeable. A PR with conflicts silently gets no CI runs at all, which is a GitHub quirk rather than a Codeman one. Rebase when conflicts appear.
- Include or update tests when you change behaviour.
- Do not bump versions or edit the changelog; releases are handled after merge.
- AI-assisted contributions are welcome, with one condition: understand what you are submitting, and actually run it. "The model said it works" is not a test.
These pages are generated from
docs/wiki/ in the main
repository, and pushed here automatically when master changes.
Editing a page in the browser will be overwritten by the next sync. Send a pull request
against docs/wiki/ instead. It is plain markdown, and a documentation PR is a genuinely
useful contribution.
Conventions for wiki pages:
- Links between pages use the wiki form:
[Remote Access](Remote-Access), no.md. - Links into the repository are absolute
https://github.com/Ark0N/Codeman/blob/master/...URLs. - Images are referenced from the main repository over raw URLs rather than being copied into the wiki.
- Say what the default is, especially when it is off. Most of Codeman is opt-in.
- Label Claude-only behaviour every time it appears. Nine of the ten run modes are not Claude.
Be kind, be direct, assume good faith. Report unacceptable behaviour privately via the contact in SECURITY.md.
Documents Codeman 1.33.x. Something wrong or missing on this page? These pages are
generated from docs/wiki/ in
the main repository, so browser edits here are overwritten on the next sync. Send a pull
request against that directory instead, or open a
Discussion.
Getting started
Using it
- The Dashboard
- Agent CLIs
- Custom Model Endpoints
- Working With Files
- Input And Voice
- Mobile Guide
- Keyboard Shortcuts
- Settings Reference
Keeping agents running
Where it runs
Access & security
Automation
Operating it