emdash
AGENTS.md5.9k starsChanged 9 months agoApache-2.0View on GitHub
Emdash is a local-first, cross-platform Electron app for running multiple AI coding agents in parallel. Each task is isolated in its own Git worktree and can run locally or over SSH, while the desktop app coordinates provider CLIs, ACP chat sessions, terminal sessions, issue and PR integrations, diff review, and release packaging. This is a pnpm workspace monorepo. The Electron app lives in apps/emdash-desktop/ as @emdash/emdash-desktop; shared packages live under packages/. Unless a path is prefixed with packages/ or another…
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about generalaction/emdash
- A Hacker News story“Show HN: Emdash – Open-source agentic development environment”Hacker News · Feb 24, 2026 · 206 points
- A Hacker News story“Show HN: OS layer for running multiple Codex agents in parallel”Hacker News · Sep 19, 2025 · 7 points
- @ernie.tedium.co“Another sign that AI ruined the em-dash—there’s an open-source AI project called emdash. Let’s beat them up …”Bluesky · Feb 24, 2026 · 3 likes
- A Hacker News story“Emdash: Open-Source Agentic Development. Multiple parallel coding agents”Hacker News · Feb 11, 2026 · 2 points
- A Hacker News story“Show HN: Emdash – Coding Agent Orchestrator Powered by Git Worktrees”Hacker News · Nov 2, 2025 · 2 points
The biggest 5 of 28 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 28
Talked about on GitHub, Hacker News and Bluesky (28 times).
On GitHub · 19
- Jan 16, 2026Map Shift+Enter to Ctrl+J in CLI terminal views — notkainoa/emdash1 reaction · 2 comments
- Sep 27, 2026Add Emdash — AppImage/appimage.github.io0 reactions · 1 comment
- Sep 15, 2026[oss-candidate] fix(git): report unavailable credential proxy — sprayberry-code/emdash0 reactions · 3 comments
- Sep 7, 2026[Tool Submission] Emdash — QAInsights/awesome-ai-tools0 reactions
- Jul 14, 2026[Feature]: Provide a portable package for Windows 11 — stablyai/orca0 reactions
14 more on GitHub
- Jul 9, 2026New label: emdash — Installomator/Installomator0 reactions
- May 28, 2026Emdash #1875 Linux safeStorage non-GNOME candidate — serejaris/corp-opensource0 reactions · 2 comments
- Apr 23, 2026Central MCP server registry with per-harness toggles (persistent even when unused) — RealBigFun/another-one0 reactions
- Apr 17, 2026Feedback — sidequery/ghostree0 reactions
- Apr 8, 2026[Request] emdash — chaotic-aur/packages0 reactions · 2 comments
- Apr 8, 2026idea/feat: going back and forth — Davidknp/emdash0 reactions · 1 comment
- Apr 2, 2026[failure] Show HN: Emdash – Open-source agentic development environment — steveash/hitchhikers-guide-to-ai-native-engineering0 reactions · 2 comments
- Mar 7, 2026feature request: remote agent support — The-Vibe-Company/companion0 reactions
- Feb 25, 2026Package emdash — ublue-os/homebrew-experimental-tap0 reactions
- Feb 25, 2026 [요청] Emdash – 오픈소스 에이전틱 개발 환경 소개 — jhl-labs/sepilot-wiki0 reactions · 3 comments
- Feb 16, 2026Add Emdash — sindresorhus/awesome-electron0 reactions
- Feb 13, 2026feat: Add "Check for Updates..." to menu — chrishoffman/emdash0 reactions
- Feb 10, 2026Add Emdash as a supporting tool for Agent Skills — agentskills/agentskills0 reactions · 2 comments
- Jan 22, 2026Revamp profile README with AI Software Engineer positioning — Devdha/Devdha0 reactions
On Hacker News · 5
- Feb 24, 2026Show HN: Emdash – Open-source agentic development environment206 points · 71 comments
- Sep 19, 2025Show HN: OS layer for running multiple Codex agents in parallel7 points · 2 comments
- Feb 11, 2026Emdash: Open-Source Agentic Development. Multiple parallel coding agents2 points
- Nov 2, 2025Show HN: Emdash – Coding Agent Orchestrator Powered by Git Worktrees2 points
- Oct 23, 2025Show HN: Emdash – OS UI for parallel coding agents and Linear tickets2 points
On Bluesky · 4
- Feb 24, 2026Another sign that AI ruined the em-dash—there’s an open-source AI project called emdash. Let’s beat them up and take it back.… — @ernie.tedium.co3 likes and reposts · 1 reply
- Mar 17, 2026emdash - an opensource agentic development environment ADE seems to be a topic, with jetbrains launching Air. I guess that IDEs have a high… — @spinscale.bsky.social1 likes and repost · 1 reply
- Feb 25, 2026https://github.com/generalaction/emdash Emdashは複数のコーディングエージェントを並行して実行できる開発ツール。 Claude CodeやQwen… — @topickapp.bsky.social1 likes and repost
- Feb 25, 2026⚡ Hackernews Top story: Show HN: Emdash – Open-source agentic development environment — @news.facts.dev1 likes and repost
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.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
32 rules. About 2 are common, 15 are distinctive, and 15 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 77
Use an isolated development database for schema or migration work:
- Very specific: line 83
Run focused database validation from apps/emdash-desktop/:
- Very specific: line 105
Use pnpm; do not introduce npm or yarn lockfile churn.
- Very specific: line 107
Keep formatted lines near the configured printWidth of 100 characters.
- Distinctive: line 108
Use 2 spaces, semicolons, single quotes in TS, double quotes in JSX, LF endings, trailing commas where valid in ES5, and sorted imports.
- Very specific: line 113
Avoid any; if a registry or boundary needs it, keep the escape local and documented.
- Very specific: line 114
Use top-level import statements.
- Distinctive: line 115
Never re-export as a shortcut.
- Distinctive: line 138
Commit messages should follow Conventional Commits:
- Common: line 233
Do not commit secrets, tokens, private keys, app databases, logs, build artifacts, generated dependency folders, or release artifacts.
- Distinctive: line 243
Treat ACP process spawning, SSH command construction, shell escaping, PTY spawning, and worktree paths as security-sensitive.
- Distinctive: line 245
Do not bypass path-safety, shell escaping, or validation helpers.
- Very specific: line 246
Use pnpm-lock.yaml for dependency integrity and review dependency changes.
- Distinctive: line 256
Prefer existing dependencies and workspace packages over adding new third-party packages.
- Distinctive: line 262
Start with this file for repo-wide context and required commands.
- Very specific: line 264
Prefer updating the smallest applicable agents/ page over expanding this file.
- Distinctive: line 265
If nested AGENTS.md files are added later, the closest file to the edited path wins.
- Very specific: line 267
Do not hand-edit numbered Drizzle migrations or drizzle/meta/.
- Very specific: line 268
Use pnpm run db:generate for new migrations, then update fixtures and migration tests.
- Very specific: line 269
Avoid editing dist/, release/, out/, build/, and generated package artifacts unless the task is explicitly about packaging, signing, or …
- Distinctive: line 271
Do not dispatch release workflows, publish packages, upload artifacts, or trigger external deployments unless the user explicitly asks for …
- Very specific: line 276
Read the matching agents/risky-areas/ page before touching database, PTY, SSH, or updater code.
- Common: line 278
Do not weaken shell quoting, spawn behavior, env allowlists, path validation, or secret redaction casually.
- Distinctive: line 280
Prefer existing service, provider, plugin, Wire, modal, view, tab, and store patterns over new abstractions.
- Very specific: line 285
Keep renderer-main calls on typed Wire contracts, live models, and typed events.
- Very specific: line 293
Never use asProvisioned(...)!
- Very specific: line 307
Follow .github/PULL_REQUEST_TEMPLATE.md: keep PRs small and focused, self-review before handoff, list checks run, attach UI evidence when …
- Distinctive: line 310
Call out high-risk changes explicitly in the PR description or handoff notes, especially database, ACP, PTY, SSH, updater, provider …
- Distinctive: line 313
Do not self-approve, merge, assign reviewers, edit branch protection, or change workflow permissions unless the user explicitly asks.
- Distinctive: line 315
Avoid scripted loops against GitHub, Linear, Jira, GitLab, provider CLIs, or release workflows.
- Distinctive: line 318
Keep automation scoped to the task.
- Very specific: line 357
Read registry-owned config through the keyed projectConfig live model or getProjectConfig.
≈ “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.
Files
Project Overview
Emdash is a local-first, cross-platform Electron app for running multiple AI coding agents in parallel. Each task is isolated in its own Git worktree and can run locally or over SSH, while the desktop app coordinates provider CLIs, ACP chat sessions, terminal sessions, issue and PR integrations, diff review, and release packaging.
Repository Structure
This is a pnpm workspace monorepo. The Electron app lives in
apps/emdash-desktop/ as @emdash/emdash-desktop; shared packages live under
packages/. Unless a path is prefixed with packages/ or another app, app paths
such as src/..., drizzle/, scripts/, and build/ are relative to
apps/emdash-desktop/.
Repo root:
.claude/- Local Claude agent settings for this checkout..github/- GitHub issue templates, reusable actions, CI, and release workflows.agents/- Agent-facing architecture, workflow, convention, integration, and risk docs.apps/emdash-desktop/- The Electron desktop app.apps/workspace-server/- Remote workspace server and its Docker-based dev stack.packages/chat-ui/- Shared transcript and ACP chat renderer with Storybook coverage.packages/core/- Transport-agnostic runtime primitives, including ACP session logic.packages/plugins/- Agent provider plugin definitions, hooks, and ACP adapters.packages/shared/- Shared primitives such as result types, logging, and markdown helpers.packages/theme/- Theme token codegen that emits the generated theme CSS.packages/ui/- Shared React UI components, theme tokens, recipes, and primitives.packages/wire/- Typed wire protocol contracts shared by app and workspace server.pnpm-workspace.yaml- Workspace package globs forapps/*andpackages/**.- Root config files -
package.json,nx.json,.nvmrc,.oxfmtrc.json,.oxlintrc.json, and lockfile/configuration owned at the workspace root.
Inside apps/emdash-desktop/:
build/- Electron packaging assets; avoid edits unless working on packaging/signing.drizzle/- Generated Drizzle SQL migrations and metadata.scripts/- Release, verification, and build support scripts.src/main/- Electron main process: bootstrap, Wire gateway, DB, and host services.src/entry/- Electron entry points:main.ts(main process) andpreload.ts, the typed preload bridge exposed to the renderer.src/renderer/- React composition shell, shared browser infrastructure, and tests.src/core/- Vertical slices with portable APIs, Node implementations, browser UI, and manifests.src/types/- Ambient and cross-cutting TypeScript declarations.tooling/- App-level development and test infrastructure not bundled into production.
Build & Development Commands
The only prerequisite is any pnpm on PATH: the root package.json pins
packageManager: pnpm@10.28.2 and devEngines.runtime node 24.14.0 with
onFail: "download", so pnpm provisions the pinned toolchain itself (no nvm or
corepack). The committed mise.toml is an optional convenience for mise users.
Root scripts are powered by Nx and run package targets in dependency order with
local caching where configured.
Golden-path commands (see Developer flows for the full index — one blessed command per flow, database flows, Storybook, packaging, remote development, and escape hatches):
pnpm install # complete setup from the repo root — nothing else needed
pnpm run doctor # report-only environment health check
pnpm run dev # full workspace dev (root); app-only from apps/emdash-desktop/
pnpm run build # build all workspace projects
pnpm run check # full merge gate: format, lint, typecheck, testThe four gate commands also run individually from the repo root:
pnpm run format
pnpm run lint
pnpm run typecheck
pnpm run testUse an isolated development database for schema or migration work:
EMDASH_DB_FILE=/tmp/emdash-scratch.db pnpm run devRun focused database validation from apps/emdash-desktop/:
pnpm run db:fixtures
pnpm run test:migrationsDeploy releases only when explicitly asked to do release work:
gh workflow run release-prod.yml --ref main -f arch=both
gh workflow run release-canary.yml --ref main -f arch=both
gh workflow run release-workspace-server.yml --ref main -f channel=stableProduction releases publish artifacts to GitHub Releases and Cloudflare R2. Canary releases currently publish to R2 only. See workspace-server packaging for its independent release and channel rules.
Code Style & Conventions
- Use
pnpm; do not introduce npm or yarn lockfile churn. - Format with
oxfmt; config is.oxfmtrc.json. - Keep formatted lines near the configured
printWidthof 100 characters. - Use 2 spaces, semicolons, single quotes in TS, double quotes in JSX, LF endings, trailing commas where valid in ES5, and sorted imports.
- Lint with
oxlint; config is.oxlintrc.jsonwith correctness, TypeScript, React hooks, and local repo rules enabled. - TypeScript strict mode is enabled; app targets share
apps/emdash-desktop/tsconfig.json. - Avoid
any; if a registry or boundary needs it, keep the escape local and documented. - Use top-level
importstatements; do not userequire(). - Never re-export as a shortcut; import from the original source.
- Components use
PascalCase; hooks useuseXcamelCase or an existing local pattern. - Tests use
*.test.tsor*.test.tsx. - Slice Wire controllers live in
src/core/features/<feature>/node/and are aggregated bysrc/core/manifests/node/controllers.ts; they delegate to imported operation or service functions. - Renderer-main calls go through Wire via the seeded connection seam in
src/core/primitives/wire/browser/connection.ts: the renderer bootstrap seeds it once at startup, and each slice exposes a typed domain client from itsapi/(for examplegetMcpClient()) built ondomainClient. - Feature UI lives under
src/core/features/<feature>/browser/; the editor slice owns Monaco and file rendering undersrc/core/features/editor/browser/; portable browser primitives (modals, views, navigation, commands, scoped stores) live undersrc/core/primitives/; the thin renderer host shell lives undersrc/renderer/lib/. - New feature modals and views must be exposed through the owning slice's
contributions/browser.tsand aggregated bysrc/core/manifests/browser/browser-contributions.ts. - New task tabs contribute providers through
src/core/features/<feature>/contributions/tabs.ts, aggregated bysrc/core/manifests/browser/task-tab-contributions.ts; the workbench registry lives atsrc/core/features/workbench/api/browser/task-tab-registry.ts. - New commands are defined with
defineCommand(src/core/primitives/commands/) in the owning slice'scontributions/commands.ts, aggregated bysrc/core/manifests/shared/command-catalog.ts; view scopes (src/core/primitives/view-scopes/) bind availability and implementation. - Commit messages should follow Conventional Commits:
<type>(<scope>): <short imperative summary>
Examples:
fix(opencode): change initialPromptFlag from -p to --prompt for TUI
feat(docs): add changelog tab with GitHub releases integrationArchitecture Notes
flowchart LR
User[User] --> Renderer[React renderer]
Renderer --> Clients[Typed Wire domain clients]
Clients --> Seam[Seeded wire connection seam]
Seam --> Preload[Preload wire port]
Preload --> Main[Electron main process]
Main --> Gateway[Desktop Wire gateway]
Gateway --> Controllers[Slice Wire controllers]
Controllers --> Services[Domain services]
Services --> DB[(SQLite via Drizzle)]
Services --> Runtime[Runtime services]
Runtime --> PTY[PTY sessions]
Runtime --> ACP[ACP sessions]
Runtime --> SSH[SSH and SFTP]
Services --> VCS[Git, GitHub, GitLab, PRs]
Services --> Issues[Issue integrations]
Services --> MCP[MCP and skills]
ACP --> CoreAcp[@emdash/core ACP runtime]
ACP --> Plugins[@emdash/plugins providers]
Renderer --> ChatUI[@emdash/chat-ui]
Main --> Events[Live models and typed events]
Events --> RendererThe app boots from src/entry/main.ts, which runs the phased bootstrap in
src/main/bootstrap/ (environment, database, window creation, recovery). Renderer-main
traffic is served by the desktop Wire gateway (src/main/gateway/desktop-wire.ts) from the
contract assembled in src/core/manifests/shared/desktop-wire-contract.ts and the controllers
aggregated in src/core/manifests/node/controllers.ts. The preload bridge
(src/entry/preload.ts) exposes only requestWirePort and getPathForFile. The renderer is
a React app that calls typed Wire domain clients, subscribes to live models and typed events,
and coordinates views, tabs, modals, commands, project state, terminal state, and task
workflows.
Task execution has two runtime paths. Legacy/TUI conversations run through PTY
services under packages/core/src/services/pty/ and the terminal/TUI runtimes under
packages/core/src/runtimes/terminals/ and packages/core/src/runtimes/tui-agents/.
Structured chat conversations use ACP: provider plugins in packages/plugins/ expose
ACP behavior, packages/core/src/runtimes/acp/ owns protocol/session state, terminal
management, and process hosting, the desktop launches that runtime as a Wire component worker
from src/main/gateway/entries/acp.ts (src/main/core/acp/ bridges agent status), and
src/core/features/conversations/browser/acp/ maps updates into @emdash/chat-ui.
Main-process adapter domains live under src/main/core/: ACP, agent status, app,
dependencies, file search, files, Git, preview servers, provider accounts, runtime,
shared, terminal shell, and utils. Portable domain logic lives in vertical slices
under src/core/ and in packages/core/ (for example PTY services under
packages/core/src/services/pty/ and resource monitoring under
packages/core/src/runtimes/resource-usage/). Expected failures should use the
Result<T, E> pattern from @emdash/shared or the app-local result helpers.
Testing Strategy
Local merge gate:
pnpm run format
pnpm run lint
pnpm run typecheck
pnpm run test- Root
pnpm run testuses Nx to run every workspace package test target. - App tests run with Vitest projects in
apps/emdash-desktop/vitest.config.ts. - App
nodetests coversrc/**/*.test.tsexcept DB, migration, and browser tests. - App
main-dbtests cover main-process integration tests that need real SQLite. - App
fixturestests generate DB fixtures viapnpm run db:fixtures. - App
migrationstests validate Drizzle migrations viapnpm run test:migrations. - App
scriptstests cover release and support scripts underscripts/**/*.test.ts. - App
browsertests use Playwright-backed@vitest/browserfor renderer behavior. packages/corehas ACP, dependency, plugin helper, Git, FS, and runtime unit tests.packages/chat-uihas node, browser, perf, and benchmark test targets.packages/ui,packages/shared, andpackages/pluginsrun their package-local tests.- Integration-style tests create temporary repos and worktrees in
os.tmpdir(). - CI runs
.github/workflows/code-consistency-check.ymlwithnx affectedforformat:check,typecheck,lint, andteston touched projects and dependents; the Playwright-backedbrowserVitest projects are skipped there. - Tests are still expected locally before merge even where CI coverage is narrower.
Security & Compliance
- The project is licensed under Apache-2.0; see
LICENSE.md. - Do not commit secrets, tokens, private keys, app databases, logs, build artifacts, generated dependency folders, or release artifacts.
- Application secrets are stored through encrypted app secret services and Electron safe storage; SSH credentials are managed through SSH services and OS-backed storage.
- Release secrets live in GitHub Actions secrets, including PostHog, Cloudflare R2, Apple signing/notarization, Azure Trusted Signing, and Cachix credentials.
- Telemetry must remain optional; users can disable it with
TELEMETRY_ENABLED=falseor in app settings. - File logging must preserve redaction of common secret patterns.
- PTY environment construction must go through
packages/core/src/services/pty/api/terminal-env.ts. - Treat ACP process spawning, SSH command construction, shell escaping, PTY spawning, and worktree paths as security-sensitive.
- Do not bypass path-safety, shell escaping, or validation helpers.
- Use
pnpm-lock.yamlfor dependency integrity and review dependency changes. - This checkout does not define repo-local Dependabot config, CODEOWNERS, or SECURITY.md;
do not assume extra repository-owned security automation beyond the workflows present
in
.github/workflows/. - Dependency changes must keep
pnpm-lock.yamlin sync, preservepackageManagerandpnpm.onlyBuiltDependencies, and avoid introducing new install scripts or native builds without explicit review. - CI installs with
pnpm install --frozen-lockfile --ignore-scriptsin.github/workflows/code-consistency-check.yml; changes that rely on install-time side effects need clear justification. - Prefer existing dependencies and workspace packages over adding new third-party packages. When adding a dependency, document why the existing stack is insufficient and check license/security posture before committing the lockfile change.
Agent Guardrails
- Start with this file for repo-wide context and required commands.
- Load only the relevant
agents/topic page for the area you are changing. - Prefer updating the smallest applicable
agents/page over expanding this file. - If nested
AGENTS.mdfiles are added later, the closest file to the edited path wins. - Explicit user or maintainer instructions override this file.
- Do not hand-edit numbered Drizzle migrations or
drizzle/meta/. - Use
pnpm run db:generatefor new migrations, then update fixtures and migration tests. - Avoid editing
dist/,release/,out/,build/, and generated package artifacts unless the task is explicitly about packaging, signing, or release behavior. - Do not dispatch release workflows, publish packages, upload artifacts, or trigger external deployments unless the user explicitly asks for release work.
- Treat
src/main/core/acp/,packages/core/src/services/pty/,src/core/services/ssh/,src/main/db/, updater code, and provider process spawning as high risk. - Read the matching
agents/risky-areas/page before touching database, PTY, SSH, or updater code. - Do not weaken shell quoting, spawn behavior, env allowlists, path validation, or secret redaction casually.
- Prefer existing service, provider, plugin, Wire, modal, view, tab, and store patterns over new abstractions.
- New Wire procedures belong in the owning slice's
api/contract with a controller innode/, registered throughsrc/core/manifests/shared/desktop-wire-contract.tsandsrc/core/manifests/node/controllers.ts. - Keep renderer-main calls on typed Wire contracts, live models, and typed events. The preload
bridge should stay small; add direct
window.electronAPIsurface only when an Electron/browser primitive cannot fit the Wire path. - Access task and Project MobX stores through selectors and task view hooks:
getTaskStore,asProvisioned,taskViewKind,getTaskManagerStore,getProjectStore,asAvailableProject,getProjectHostAccess,useTaskViewKind,useWorkspace,useWorkspaceId,useDevServers,useWorkspaceViewModel,useConversations, anduseTerminals. - Never use
asProvisioned(...)!orasAvailableProject(...)!; use explicit null checks. - State guards must check
kind !== 'ready'rather than enumerating non-ready states. - Access task managers through
getTaskManagerStore(projectId), notproject.taskManager. - Access available Project contexts through
asAvailableProject(getProjectStore(id)), not inline guards. Read Host-dependent action state through that context'shostaccess interface. - Task selectors live in
src/core/features/tasks/api/browser/task-state/task-selectors.ts. - Project selectors live in
src/core/features/projects/api/browser/stores/project-selectors.ts. - For provider changes, update plugin metadata, shared provider metadata, ACP support flags, PTY env passthrough if needed, hook integrations, renderer assumptions, and tests for non-standard behavior.
- For ACP changes, preserve protocol state-machine behavior in
packages/core/src/runtimes/acp/, keep provider-specific transforms inpackages/plugins/, and adapt UI payloads at app or chat-UI edges. - For MCP changes, keep canonical data in shared types and adapt provider formats at edges.
- Follow
.github/PULL_REQUEST_TEMPLATE.md: keep PRs small and focused, self-review before handoff, list checks run, attach UI evidence when applicable, and update docs and tests when behavior changes. - Call out high-risk changes explicitly in the PR description or handoff notes, especially database, ACP, PTY, SSH, updater, provider spawning, dependency, and release-related changes.
- Do not self-approve, merge, assign reviewers, edit branch protection, or change workflow permissions unless the user explicitly asks.
- Avoid scripted loops against GitHub, Linear, Jira, GitLab, provider CLIs, or release workflows. Use focused queries and respect existing workflow retries; ask before adding polling, bulk API calls, or scheduled automation.
- Keep automation scoped to the task. Do not run the full local merge gate repeatedly when a focused check is enough during iteration; run broader checks before handoff when the change scope justifies it.
Extensibility Hooks
- Agent provider plugins live in
packages/plugins/src/agents/impl/and are registered inpackages/plugins/src/agents/registry.ts. - Provider plugin hosting services live in
packages/core/src/services/agent-plugins/. - Agent provider metadata and capabilities live in
packages/plugins/src/agents/registry.tsandpackages/plugins/src/agents/impl/; renderer-facing DTOs are built bysrc/core/features/agents/node/agent-payload-builder.ts. - ACP support is exposed through plugin ACP capabilities and portable Core ACP APIs.
- Provider detection lives in
src/main/core/dependencies/. - Provider PTY behavior and env construction live under
packages/core/src/services/pty/. - Provider event hooks and plugins are installed and hosted by
packages/core/src/runtimes/tui-agents/; desktop projection lives undersrc/main/core/agent-status/. - ACP process hosting lives in
packages/core/src/runtimes/acp/; the desktop launches the runtime as a Wire component worker fromsrc/main/gateway/entries/acp.ts. - Feature modal and view definitions are contributed by slices and aggregated in
src/core/manifests/browser/browser-contributions.ts; renderer app registries compose host entries. - Task tab providers are aggregated through
src/core/manifests/browser/task-tab-contributions.ts. - MCP server config handling lives in
src/core/features/mcp/node/(wire controller and registration utils), canonical types insrc/core/primitives/mcp/api/, and UI insrc/core/features/mcp/browser/. - Skills types and validation live in Core primitives; skills UI and service code live in
src/core/features/skills/browser/andsrc/core/features/skills/node/. - Team-owned runtime settings live in each workspace's
.emdash.json:preservePatterns,scripts.prepare,scripts.setup,scripts.run,scripts.teardown, andshellSetup(a per-workspace override of the host default). - Project overrides such as
worktreeRoot,defaultBranch,baseRemote,pushRemote,githubAccount,agentGitCredentials, andtmuxare DB-backed, not.emdash.json. Effective tmux resolves through project override > host default > app default; it is not seeded from a default at project creation. - The workspace registry owns lifecycle and file-handling config. Host-local personal config
(
preservePatterns, scripts, and auto-run toggles) is versioned JSON on the repository or directory project-root record; worktrees resolve against their project root's personal config. - Read registry-owned config through the keyed
projectConfiglive model orgetProjectConfig. It exposes raw personal/team layers, team-file sources, and one{ value, from }result per field. Applicable precedence is personal > that workspace's.emdash.json> host default > built-in; arrays replace rather than merge. - Per-host defaults (
shellSetup,worktreeRoot,tmux) live in the host-settings runtime (packages/core/src/runtimes/host-settings/), stored as JSON in the host's emdash data directory and editable from the machines/system settings UI. - Desktop project settings compose self-contained domain snapshots: the registry owns lifecycle/file handling, while desktop DB and host-settings domains own Git identity and placement. Forms edit raw layers with explicit per-domain patches; there is no merged settings bag to persist.
- The scripts runtime is a strict executor: callers must provide resolved
commandandshellSetup; it never reads config files or host defaults. The workspace registry resolves and sequences lifecycle commands, then observes runs into durable lifecycle steps. - Desktop settings migrations are centralized under
src/core/features/projects/node/settings/migrations/and run in order when an attachment is established. Legacy schemas and readers stay migration-only; destination markers make imports idempotent and retryable. - Optional environment variables include
TELEMETRY_ENABLED,EMDASH_DB_FILE,EMDASH_DISABLE_NATIVE_DB,EMDASH_DISABLE_PTY,CODEX_SANDBOX_MODE, andCODEX_APPROVAL_POLICY. - Build-time telemetry configuration may use
VITE_POSTHOG_KEYandVITE_POSTHOG_HOST. - Runtime feature flags are read through telemetry-backed feature flag helpers.
- App-internal path aliases are defined in
tsconfig.json(@/*,@core/*,@renderer/*,@main/*,@root/*, and@tooling/*) and mirrored where needed inelectron.vite.config.ts; workspace packages resolve through theirexportsmaps with adevelopmentcondition, not aliases. - Versioned JSON column schemas use
defineVersionedSchema()from@emdash/core/primitives/versioned-schema/api(packages/core/src/primitives/versioned-schema/api/versioned-schema.ts) and DrizzleversionedJsonColumn()fromsrc/core/services/app-db/node/versioned-column.ts.
Further Reading
- Agent docs map
- Quickstart
- Architecture overview
- Settings ownership and precedence
- Main process architecture
- Renderer architecture
- Shared modules
- Developer flows
- Nx task orchestration and caching
- Testing workflow
- Worktrees workflow
- Remote development workflow
- Workspace server architecture
- Provider integration
- MCP integration
- IPC conventions
- Main-process patterns
- Renderer patterns
- TypeScript and React conventions
- Config file rules
- UI kit conventions
- UI styling conventions
- Versioned schema conventions
- Database risk notes
- PTY risk notes
- SSH risk notes
- Updater risk notes
- Contributing guide
- Project README
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.

