agentleFS
johannesjojohannesjo/parallel-code/AGENTS.md

parallel-code

AGENTS.md1k starsChanged 2 months agoMITView on GitHub

Electron desktop app for running coding agents in isolated Git worktrees. Desktop releases target macOS and Linux only. The phone UI is a separate web frontend. When committing, use conventional commit messages, such as fix(terminal): restore focus. Git hooks enforce the format and run lint-staged, npm run check, and a lockfile check on commit; pushing runs check and npm test. Changes to package.json must include the corresponding package-lock.json update.

Trending

Quiet since September.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 5 mentionsApr 2026: 0 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the johannesjo/parallel-code repository that our weekly crawl found: only 12 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about johannesjo/parallel-code

The biggest 5 of 12 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 12

Talked about on GitHub (12 times).

On GitHub · 12

7 more on GitHub
  • 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.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run focused tests while developing:

    line 15
  2. Very specific:

    When committing, use conventional commit messages, such as fix(terminal): restore focus.

    line 24
  3. Distinctive:

    Use SolidJS function components, signals, and stores.

    line 28
  4. Very specific:

    Keep strict TypeScript; use unknown and narrow it instead of introducing any.

    line 29
  5. Very specific:

    Use the existing loggers in src/lib/log.ts (desktop renderer) and electron/log.ts (main).

    line 30
  6. Very specific:

    Follow the existing store domain modules.

    line 31
  7. Very specific:

    When adding a named channel, update the manifest and the inline allowlist in electron/preload.cjs, plus the handler and frontend call site …

    line 38
  8. Very specific:

    Run npm run test:unit -- electron/preload-allowlist.test.ts after changing named channels or the preload allowlist.

    line 41
  9. Very specific:

    Use the existing atomic-write helpers in electron/mcp/atomic.ts for coordinator persistence.

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Parallel Code

Electron desktop app for running coding agents in isolated Git worktrees. Desktop releases target macOS and Linux only. The phone UI is a separate web frontend.

  • Frontend: SolidJS, strict TypeScript, Vite.
  • Backend: Node.js, Electron, node-pty.
  • Package manager: npm. CI uses Node.js 22.
  • Shared project guidance lives here; CLAUDE.md imports this file. Keep personal model and workflow preferences in global instructions.

Development and verification

  • npm run dev starts the Electron development app.
  • npm run build builds and packages the app; npm run build:remote rebuilds the phone UI.
  • npm run typecheck checks frontend types and their imports; it does not cover the entire Electron backend. npm run compile checks backend TypeScript and emits dist-electron/.
  • Run focused tests while developing:
    • npm run test:unit -- path/to/file.test.ts for logic/backend tests (Node environment).
    • npm run test:client -- path/to/file.client.test.tsx for DOM/component tests (happy-dom).
  • For code changes, run npm run check and relevant tests before handoff. It runs backend compilation, frontend type checking, lint, and a formatting check. For documentation-only changes, check the changed files with Prettier.
  • npm test runs both test suites. npm run test:ci adds unit coverage thresholds. npm run check:static includes dead-code and architecture checks as well as type checking and lint; use it when changing exports or module dependencies.
  • See .github/workflows/ci.yml for the complete CI sequence, including security-rule fixture tests and the real-PTY coordinator test. Ordinary test runs skip opt-in PTY, Docker, and real-agent suites; real-agent tests can launch paid services. Report skipped or unavailable verification.
  • CI tests that Semgrep rules work on fixtures; it does not scan the repository with Semgrep. npm run lint:security and npm run lint:secrets run separate scans and require Semgrep and Gitleaks respectively.
  • happy-dom cannot verify native Electron views. For browser-preview changes, follow the native smoke checks in docs/browser-preview.md.

When committing, use conventional commit messages, such as fix(terminal): restore focus. Git hooks enforce the format and run lint-staged, npm run check, and a lockfile check on commit; pushing runs check and npm test. Changes to package.json must include the corresponding package-lock.json update.

Architecture and conventions

  • Use SolidJS function components, signals, and stores. Preserve reactive property access and clean up subscriptions, timers, and terminal resources when their owner is disposed. The component convention does not prohibit utility classes.
  • Keep strict TypeScript; use unknown and narrow it instead of introducing any. Lint treats warnings as failures, including non-null assertions.
  • Use the existing loggers in src/lib/log.ts (desktop renderer) and electron/log.ts (main). Lint permits console.warn and console.error, but rejects other console methods unless explicitly exempted.
  • Follow the existing store domain modules. src/store/core.ts owns the main store; src/store/store.ts re-exports domain operations.
  • Electron TypeScript uses NodeNext resolution: follow existing relative imports with .js suffixes.
  • Desktop renderer/main communication uses Electron IPC. The phone UI uses the existing HTTP/WebSocket API. Renderer imports of backend code are restricted to the shared modules allowed in .dependency-cruiser.cjs.

IPC changes

  • Named channels originate in electron/ipc/channel-manifest.json; electron/ipc/channels.ts exports the manifest and its type.
  • When adding a named channel, update the manifest and the inline allowlist in electron/preload.cjs, plus the handler and frontend call site as needed. The sandboxed preload cannot require the local JSON manifest.
  • Desktop frontend helpers are in src/lib/ipc.ts; handlers are registered in electron/ipc/register.ts and subsystem registration modules such as electron/documents/register.ts.
  • Dynamic channel:<uuid> streams are managed by Channel<T> and are separate from manifest entries.
  • Run npm run test:unit -- electron/preload-allowlist.test.ts after changing named channels or the preload allowlist.

Worktree and runtime boundaries

  • Worktree cleanup must not follow symlinks into the main checkout. Preserve the handling in electron/ipc/worktree-cleanup.ts.
  • Subtask instructions injected by the app are temporary runtime content. Keep them out of committed project guidance. When editing instruction-file handling, read electron/mcp/preamble.ts; do not copy its reserved delimiter strings into these guidance files, because cleanup treats them as runtime markers even inside Markdown examples.
  • Preserve remote token roles and task scoping. Keep coordinator tokens out of shared URLs and bearer tokens out of logs; reuse the validation and redaction helpers in electron/remote/server.ts.
  • Use the existing atomic-write helpers in electron/mcp/atomic.ts for coordinator persistence. Validate setup inputs before filesystem side effects; see .semgrep/filesystem-safety.yml.

Where to look

  • src/components/, src/lib/, src/store/: desktop UI, frontend utilities, and app state.
  • electron/ipc/: terminal, Git/worktree, task, persistence, and other desktop handlers.
  • electron/mcp/: MCP server and subtask coordinator; electron/agent-hooks/: agent lifecycle hooks.
  • src/remote/, electron/remote/: phone UI and its server.
  • src/documents/, electron/documents/: document workspaces; see docs/document-workspaces.md.
  • docs/browser-preview.md: native browser architecture, limitations, and verification.
  • docs/architecture-overview.html: broader architecture overview. New files under docs/ are ignored unless explicitly included in .gitignore.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.