Poracode
AGENTS.md113 starsChanged 2 months agoApache-2.0View on GitHub
Universal AI agent orchestrator — Electron desktop app managing Claude, Codex, and Gemini via real PTY sessions (terminal-native) and structured runtimes (native chat).
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,691 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 repository7 other files it gives its agents.
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- heroui-reactSkill
- interactive-testingSkill
- provider-chat-smokeSkill
- release-notesSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Use HeroUI v3 for all non-terminal UI.
- Distinctive: line 31
Keep visual scope tight. Do not add layout stabilizers, decorative styling, or state treatments unless they are part of the request.
- Distinctive: line 35
When changing Codex/OpenCode behavior, verify current provider payloads or protocol behavior and check cross-provider parity when …
- Distinctive: line 37
Prevent God Files: Do not allow files to grow indefinitely.
- Very specific: line 38
Use pnpm exec vitest run ...
- Very specific: line 40
Put investigation dumps, screenshots, and other temporary files under tmp/ or .tmp/ (both gitignored).
- Very specific: line 47
Run pnpm i18n:extract (skipping this leaves the UI in English with no error).
- Very specific: line 51
Before finishing: no raw user-facing literals in src/renderer.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Poracode
Universal AI agent orchestrator — Electron desktop app managing Claude, Codex, and Gemini via real PTY sessions (terminal-native) and structured runtimes (native chat).
Quick Reference
- Package manager:
pnpm(12.3.4, pinned inpackage.json#packageManager) - Node: >= 24.10.0
- Typecheck:
pnpm run typecheck(tsc, TypeScript 7 native) - Lint:
pnpm run lint(oxlint) - Format:
pnpm run fmt(oxfmt) /pnpm run fmt:check - Test:
pnpm run test(vitest) - Dev:
pnpm run dev - Build:
pnpm run buildthenpnpm run dist
Critical Rules
- Terminal-presentation threads must be backed by a real PTY process; GUI-presentation threads must be backed by the provider structured runtime process. The active presentation surface is the source of truth.
- The renderer must never spawn agent processes — the supervisor runtime owns all agent processes.
- React Compiler is the default memoization strategy. Do not add
useMemo,useCallback, orReact.memounless escaping the compiler. Keepbabel-plugin-react-compilerpinned to an exact version. - Use HeroUI v3 for all non-terminal UI. When working with HeroUI components, always load the
heroui-reactskill first (/skill heroui-react). - Every user-facing string you add or change in
src/renderermust be localized. Wrap it in a Lingui macro, runpnpm i18n:extract, then fill the newmsgstrin all 12 non-English catalogs — never ship empty translations (that leaves a half-English UI). See Internationalization (i18n). - The codebase is provider-agnostic — declare behavior, never branch on it. Providers are self-contained plugins (supervisor adapter + renderer UI). Shared runtime, UI, and layout code must contain no provider name, no
kind === "<provider>"branch, and no constant, regex, parser, or state field that exists to serve one agent. When one provider needs different behavior, add a named, documented option to the shared module and declare its value in the provider folder — the shared side must read as a capability, not as a vendor workaround. Vendor payload formats are parsed behind a provider-supplied hook that owns its own state. Tests follow the code: a test named after a provider belongs in that provider's suite. Adding a new provider should require zero changes to existing shared files. Before you touch a shared file for one provider, read Provider Isolation — Hard Rules. - Windows projects use native Windows cwd. WSL agent commands run through
wsl.exe -d <distro> --cd <linuxPath> --exec <agent command>. - Version every compatibility boundary intentionally. Before finishing a change to persisted state, a cache or derived index, a serialized manifest, a wire/IPC protocol, or a deployed helper/plugin, audit the version at that boundary and every mirrored copy. If an older app artifact can remain present but is no longer valid, add a migration or invalidate it with a version bump and a pre-upgrade regression test. See Versioned State & Protocols for the required checklist and repository inventory.
Working Rules
- For UI changes, follow existing app patterns first. Prefer shared variants and local component conventions over raw library defaults or new visual treatments.
- For absolutely positioned HeroUI tooltips, put positioning on an out-of-flow wrapper and keep
Tooltip.Triggernormally positioned inside it.Tooltip.Triggerrenders aninline-block; wrapping an absolute child directly can add layout space and anchor the tooltip to the wrong box. - Keep visual scope tight. Do not add layout stabilizers, decorative styling, or state treatments unless they are part of the request.
- For runtime/chat bugs, trace the real state path before changing the display layer. Timer, notification, resume, and launch symptoms usually come from thread runtime state.
- For performance complaints, investigate render invalidation, measurement loops, and sync I/O before applying cosmetic workarounds.
- For provider work, normalize provider-native payloads at the provider boundary. Shared UI/runtime code should consume provider-agnostic shapes only. If the fix seems to require editing a shared file, first look for an existing extension point there — most shared modules already expose one, and adding a second special case is how the boundary rots.
- When changing Codex/OpenCode behavior, verify current provider payloads or protocol behavior and check cross-provider parity when applicable.
- For focused fixes, prefer nearby tests plus touched-file lint/format checks. If asked to fix all checks, run and make green:
pnpm run typecheck,pnpm run lint, andpnpm run test. - Prevent God Files: Do not allow files to grow indefinitely. If a file becomes complex or violates single-responsibility principles during your work, refactor it by extracting related logic into new modules or sub-components. Splitting files is preferred over extending existing ones.
- Use
pnpm exec vitest run ...for targeted Vitest runs; do not use Jest-only flags like--runInBand. - With
exactOptionalPropertyTypes, avoid passing explicitundefinedfor optional props; use conditional spreads when needed. - Put investigation dumps, screenshots, and other temporary files under
tmp/or.tmp/(both gitignored). Never write scratch artifacts into the repo root or tracked paths likeverification-shots/.
Internationalization (i18n)
Any user-facing string in src/renderer (menus, buttons, dialogs, labels, placeholders, tooltips, toasts, aria-label) must be localized in the same change. Lingui (@lingui/* v6) scans only src/renderer. Source locale is en; fill all 12 non-English catalogs (es, ru, uk, zh-CN, ja, pt-BR, de, fr, ko, pl, vi, tr) at src/renderer/locales/{locale}/messages.po. Macros, examples, terminology, and "add a language" steps: Internationalization (i18n).
- Wrap with the right macro: JSX body →
<Trans>; attributes/strings in a component →t`…`fromuseLingui(); module-level labels →msg; toasts/actions →i18n._(msg…); supervisor/main → key insrc/shared/messages.tsplus descriptor insrc/renderer/i18n/sharedMessages.ts. - Run
pnpm i18n:extract(skipping this leaves the UI in English with no error). - Fill every new
msgstr ""in all 12 non-English catalogs — they are fully translated, not English-fallback. KeepPoracode,WSL,.poracode/worktreesliteral; grep an existing catalog entry for terminology. - Re-run
pnpm i18n:extractand confirm 0 missing for every locale.
Before finishing: no raw user-facing literals in src/renderer; extract stats 0 missing; all 12 msgstr filled; typecheck and lint pass on touched files.
Guidelines
- Architecture & Code Organization
- Agent Adapter Rules
- UI Patterns & Component Reuse
- Editing & React Patterns
- Internationalization (i18n)
- Versioned State & Protocols
- Computer Use
- Mobile Dev & Remote Pairing —
pnpm run dev:ios, simulator pairing, deep linking
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.

