ClawX
AGENTS.md7.6k starsChanged 8 months agoMITView on GitHub
ClawX is a cross-platform Electron desktop app (React 19 + Vite + TypeScript) providing a GUI for the OpenClaw AI agent runtime. It uses pnpm as its package manager (pinned version in package.json's packageManager field). Standard dev commands are in package.json scripts and README.md. Key ones:
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
pnpm run lintrace condition: If pnpm run uv:download was recently run, ESLint may fail with ENOENT: no such file or directory, scandir … - Very specific: line 37
Gateway startup: When running pnpm dev, the OpenClaw Gateway process starts automatically on port 18789.
- Very specific: line 47
Do not add new direct window.electron.ipcRenderer.invoke(...) calls in pages/components.
- Very specific: line 48
Do not call Gateway HTTP endpoints directly from renderer (fetch('http://127.0.0.1:18789/...') etc.).
- Very specific: line 50
Comms-change checklist: If your change touches communication paths (gateway events, runtime send/receive, delivery, or fallback), run pnpm …
- Very specific: line 51
Doc sync rule: After any functional or architecture change, review README.md, README.zh-CN.md, and README.ja-JP.md for required updates.
- Very specific: line 54
Harness CI/local parity: Run pnpm run harness:ci to exercise the same baseline harness checks used by GitHub Actions.
- Very specific: line 55
Harness reference docs: Keep durable, non-executable architecture and compatibility details under harness/reference/.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Cursor Cloud specific instructions
Overview
ClawX is a cross-platform Electron desktop app (React 19 + Vite + TypeScript) providing a GUI for the OpenClaw AI agent runtime. It uses pnpm as its package manager (pinned version in package.json's packageManager field).
Quick reference
Standard dev commands are in package.json scripts and README.md. Key ones:
| Task | Command |
| Install deps + download uv | pnpm run init |
| Dev server (Vite + Electron) | pnpm dev |
| Lint (ESLint, auto-fix) | pnpm run lint |
| Type check | pnpm run typecheck |
| Unit tests (Vitest) | pnpm test |
| Comms replay metrics | pnpm run comms:replay |
| Comms baseline refresh | pnpm run comms:baseline |
| Comms regression compare | pnpm run comms:compare |
| E2E tests (Playwright) | pnpm run test:e2e |
| Chat performance profiles | pnpm run perf:chat |
| Electron Main inspector | pnpm run profile:main |
| Build frontend only | pnpm run build:vite |
Non-obvious caveats
- pnpm version: The exact pnpm version is pinned via
packageManagerinpackage.json. Usecorepack enable && corepack prepareto activate the correct version before installing. - Electron on headless Linux: The dbus errors (
Failed to connect to the bus) are expected and harmless in a headless/cloud environment. The app still runs fine with$DISPLAYset (e.g.,:1via Xvfb/VNC). - Performance profiling:
pnpm run perf:chatwrites synthetic Renderer/Main CPU profiles and versioned metrics under ignored Playwrighttest-results/. For live Renderer CDP useCLAWX_REMOTE_DEBUGGING_PORT=9223 pnpm dev; for live Main inspection usepnpm run profile:mainand port 9229. - E2E parallel isolation: Functional Electron specs run concurrently with
CLAWX_E2E_WORKERS=2by default. Keep tests parallel-safe and test-scoped; applyE2E_EXCLUSIVE_TAGfromtests/e2e/parallel-policy.tsto tests that use the real clipboard or other OS-global state, andE2E_PERFORMANCE_TAGto host performance profiles. Extendtests/unit/e2e-parallel-policy.test.tsfor recognizable new global APIs. pnpm run lintrace condition: Ifpnpm run uv:downloadwas recently run, ESLint may fail withENOENT: no such file or directory, scandir '/workspace/temp_uv_extract'because the temp directory was created and removed during download. Simply re-run lint after the download script finishes.- Build scripts warning:
pnpm installmay warn about ignored build scripts for@discordjs/opusandkoffi. These are optional messaging-channel dependencies and the warnings are safe to ignore. pnpm run init: This is a convenience script that runspnpm installfollowed bypnpm run uv:download. Either runpnpm run initor run the two steps separately.- Gateway startup: When running
pnpm dev, the OpenClaw Gateway process starts automatically on port 18789. It takes ~10-30 seconds to become ready. Gateway readiness is not required for UI development—the app functions without it (shows "connecting" state). - No database: The app uses
electron-store(JSON files) and OS keychain. No database setup is needed. - AI Provider keys: Actual AI chat requires at least one provider API key configured via Settings > AI Providers. The app is fully navigable and testable without keys.
- Token usage history implementation: Dashboard token usage history is not parsed from console logs. It reads OpenClaw session transcript
.jsonlfiles under the local OpenClaw config directory, scans both configured agents and any runtime agent directories found on disk, and treats normal,.deleted.jsonl, and.jsonl.reset.*transcripts as valid history sources. It extracts assistant/tool usage records withmessage.usageand aggregates fields such as input/output/cache/total tokens and cost from those structured records. Note: "Delete conversation" in the sidebar is a hard delete — the Main process unlinks<id>.jsonlplus any leftover<id>.deleted.jsonland<id>.jsonl.reset.*siblings, and OpenClaw's trajectory artefacts (<id>.trajectory.jsonlflight recorder +<id>.trajectory-path.jsonpointer); when the pointer references a runtime file outside the agent'ssessions/folder (theOPENCLAW_TRAJECTORY_DIRoverride), that off-disk file is unlinked too. Deleted conversations stop contributing to this chart — use a fresh session if you want history retained. - Models page aggregation: The 7-day/30-day filters are relative rolling windows, not calendar-month buckets. When grouped by time, the chart should keep all day buckets in the selected window; only model grouping is intentionally capped to the top entries.
- OpenClaw Doctor in UI: In Settings > Advanced > Developer, the app exposes both
Run Doctor(openclaw doctor --json) andRun Doctor Fix(openclaw doctor --fix --yes --non-interactive) through the host-api. Renderer code should call the host route, not spawn CLI processes directly. - UI change validation: Any user-visible UI change should include or update an Electron E2E spec in the same PR so the interaction is covered by Playwright.
- i18n & styling conventions: New user-facing features must (1) route all text through
react-i18nextwith full locale coverage (en/zh/ja/ruundershared/i18n/locales/<lang>/<ns>.json) — never hardcode display strings, and (2) use the design tokens and substitution rules documented insrc/styles/globals.css(surfacesbg-surface-modal/bg-surface-input, selected statebg-black/5 dark:bg-white/10, status colourstext-X-700 dark:text-X-400, page H1/H2font-serif font-normal tracking-tight, etc.) — see the Component conventions block inglobals.cssfor the full substitution table. - Renderer/Main API boundary (important):
- Renderer must use
src/lib/host-api.tsandsrc/lib/api-client.tsas the single entry for backend calls. - Do not add new direct
window.electron.ipcRenderer.invoke(...)calls in pages/components; expose them through host-api/api-client instead. - Do not call Gateway HTTP endpoints directly from renderer (
fetch('http://127.0.0.1:18789/...')etc.). Use Main-process proxy channels (hostapi:fetch,gateway:httpProxy) to avoid CORS/env drift. - Transport policy is Main-owned and fixed as
WS -> HTTP -> IPC fallback; renderer should not implement protocol switching UI/business logic.
- Renderer must use
- Comms-change checklist: If your change touches communication paths (gateway events, runtime send/receive, delivery, or fallback), run
pnpm run comms:replayandpnpm run comms:comparebefore pushing. - Doc sync rule: After any functional or architecture change, review
README.md,README.zh-CN.md, andREADME.ja-JP.mdfor required updates; if behavior/flows/interfaces changed, update docs in the same PR/commit. - Spec-driven harness rule: AI Coding tasks that touch backend communication must start from a task spec under
harness/specs/tasks/and referencegateway-backend-communicationwhen the change involves renderer/Main/host-api/api-client/Gateway/OpenClaw runtime paths. Runpnpm harness validate --spec <task-spec>before implementation review, andpnpm harness run --spec <task-spec>or--dry-runwhen checking the selected validation flow. - Spec/rule growth rule: When adding a new feature, user-visible OpenClaw scenario, or recurring AI Coding constraint, add or update the relevant harness scenario spec and rule spec in the same PR so future AI work can validate the behavior instead of relying on tribal knowledge.
- Harness CI/local parity: Run
pnpm run harness:cito exercise the same baseline harness checks used by GitHub Actions. Real task specs should be validated without--no-diff;--no-diffis only for structural checks of checked-in examples. - Harness reference docs: Keep durable, non-executable architecture and compatibility details under
harness/reference/. Link them from the relevant scenario, rule, and task specs, but do not pass reference documents toharness validateorharness run.
Trending
Quiet since August.about the whole repository
Who's talking about ValueCell-ai/ClawX
- @githubfeed.bsky.social“🚀 GitHub Intelligence Drop nocobase (TypeScript • 🟢) ⭐ 23.6K → https://github.com/nocobase/nocobase ClawX …”Bluesky · Aug 12, 2026 · 1 likes
- openclaw/openclaw“[Bug]: Browser tool suppresses retries after transient network failures”GitHub · Jul 18, 2026 · 1 reactions
- @technews4869.bsky.social“github.com/ValueCell-ai/ClawX GitHub - ValueCell-ai/ClawX: ClawX is a desktop app that provides a graphical …”Bluesky · Mar 6, 2026 · 1 likes
- indulgeback/OpenClawDesktop“[Bug]: 这是一个抄袭作品,用ai写的,抄袭对象是https://github.com/ValueCell-ai/ClawX”GitHub · May 27, 2026
- ashione/mobius-harness“[codex] initialize runtime-specific agent gates”GitHub · May 22, 2026
The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 16
Talked about on GitHub and Bluesky (16 times).
On GitHub · 14
- Jul 18, 2026[Bug]: Browser tool suppresses retries after transient network failures — openclaw/openclaw1 reaction · 1 comment
- May 27, 2026[Bug]: 这是一个抄袭作品,用ai写的,抄袭对象是https://github.com/ValueCell-ai/ClawX — indulgeback/OpenClawDesktop0 reactions
- May 22, 2026[codex] initialize runtime-specific agent gates — ashione/mobius-harness0 reactions
- May 22, 2026Add ClawX integration guide — deepseek-ai/awesome-deepseek-agent0 reactions
- Apr 22, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions
9 more on GitHub
- Apr 17, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions
- Apr 12, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions
- Apr 7, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions
- Apr 2, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions
- Mar 26, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions · 2 comments
- Mar 20, 2026[SUBMISSION] ClawX — ProSkillsMD/proskills0 reactions · 3 comments
- Mar 17, 2026Runtime support for global skills + agent override (effective skill resolution) — openclaw/openclaw0 reactions · 4 comments
- Mar 17, 2026Runtime contract for cron agentId + delivery(channel/to) semantics — openclaw/openclaw0 reactions · 4 comments
- Feb 8, 2026Add ClawX feature analysis and implementation guide (Chinese) — chatu-ai/webhub-frontend0 reactions
On Bluesky · 2
- Aug 12, 2026🚀 GitHub Intelligence Drop nocobase (TypeScript • 🟢) ⭐ 23.6K → https://github.com/nocobase/nocobase ClawX (TypeScript • 🟢) ⭐ 7.6K →… — @githubfeed.bsky.social1 likes and repost
- Mar 6, 2026github.com/ValueCell-ai/ClawX GitHub - ValueCell-ai/ClawX: ClawX is a desktop app that provides a graphical interface for Open... — @technews4869.bsky.social1 likes and repost
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 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.
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.

