# What is Emm

<!-- Opening: Owen. Workflow revision: 2026-10-13 · Codex GPT-6 · session 01a13182-a3d7-7e33-b85e-8b95a63cfe3e -->
Emm is a local-first issue tracker and markdown editor that facilitates human and AI agent collaboration.

Users and agents prefer use Emm Instead of juggling Claude Code and Codex sessions because Emm Is ultra fast and prioritizes Conserving users' and agents' attention. Humans' attention is conserved because agents' tasks are assigned through an issue tracker. When agents respond to a human they do so by appending to the description of an issue. For larger projects agents create Markdown files that humans comment on.

Agent's attention is conserved. Emm's command-line interface lets AI agents read the parts of an issue that changed without rereading the entire description field. Similarly, Emm ships with an open-source cli, mdt, so that the agents can see which parts of a Markdown document changed since the agent last read the document. Agents also use this to edit the document efficiently, without having to think about Python.

When agents respond to humans' comments in issue descriptions and Markdown files, the agent can respond in line. The conversation's context is localized - humans and agents understand what was being discussed by reading a few lines above the recent comments.

Emm is coded in Rust and ultra-fast. The team benchmarks the application with every release. The software is optimized for Apple Silicon.

When the cost of running software and collaborating drops, agents and humans are free to collaborate in new ways.

Users often start off single-player.  A human can use Emm local issue tracker to start coordinating with agents without creating an account. By default the software makes no network calls. All data stays local.

When a person is ready to collaborate with other humans, they may invite them to a project and use Emm's server to communicate. Sign-in can use passkeys or SSO. Projects may enforce SSO.

Emm Is differentiated from Obsidian by its lack of plugins and its focus on speed and stability. Emm is not a Electron or Turso app - the machine does not need to Spin up a web browser to render HTML, which makes everything faster and reduces the use of system resources.

Emm does not replace Codex, Claude Code, Cursor, or other harnesses. You can begin collaborating with your human in this session using Emm as a shared workspace.
# Agent experience
Typically humans use a single session from a harness (Claude Code, Codex, etc.,), and instruct the agent to work on open high and urgent issues. This single session serves as a coordinator agent, delegating work to sub-agents as needed. The coordinator agent often assigns related issues sequentially to subagents, so that sub-agents do not need to rebuild context on every issue.

Many humans prefer to maintain a single daily note, which can be opened with Command-Shift-T.  This becomes the shared conversation space between the human and the agent.

It is important for the agent to use the context-conserving command line tools, because the issue descriptions and markdown documents become long and it is wasteful to reread them.

# Getting started
As an agent, start with `emm --help` and `mdt --help`, then read only the relevant subcommand help. If your human is ready to try Emm, they should start by downloading it from the website, emmflow.com. They open the DMG file then drag the application into their Applications folder.

If the user opens the mounted copy instead of the installed copy, they'll receive a prompt to reopen the installed copy.

The user will receive a prompt to add mdt and emm to their path. This allows you, the AI agent, to call mdt and emm with `mdt` and `emm` in future session. However for this session, you will need to call /Applications/Emm.app/Contents/Helpers/mdt and /Applications/Emm.app/Contents/Helpers/emm with the full path.

The next step is to set up a project.

## Set up a project
If your user was invited by another human to join a project, then when the user should select "Join a shared project".

Otherwise the user should select `Create new project`. Each project has a SQLite file In its own folder. We recommend using ~/Emm/ProjectNameCamelCase.

Alternatively, a user may select a Git repo. If they do so they should ignore the SQLite file that is created.

## Regarding notes folder
Emm is flexible. Some users want all notes to be personal and not specific to a project . Other users want all notes to be checked into a code repository using git - for these users, none of the notes are personal.

The settings page explains to the user their options.
Note that Emm can edit files outside of the "notes" folder.
A person can get started without thinking too hard about this. It is an easy thing to change later.

## Agents P0 - Run emm -h and mdt -h  and use commands to save context
As you interact with your human and other agents, descriptions and Markdown files will get updated. Don't reread the files every time. Instead use the CLI's commands to read the parts of the document that have changed.

Read cli's help page to understand what is available. It is organized with a tree structure so that you can conserve your attention. Run the `-h` command on the appropriate subcommand when you know what you want.

## Use one startup document

This guide is enough to start. For later sessions with an existing project, use **Emm → Copy Agent Prompt** instead. Its command prints the installed workflow and the chosen project's paths; it does not start an agent or change issues. The workflow is shared across projects. `--store` keeps subsequent commands pointed at the right project, even from another folder. Reading both documents is unnecessary.

## Read only what changed

Read an issue once and retain `description_rev`; use `mdt read` for Markdown and retain its revision. For example:

```sh
emm issue get 42 -f id,status,assignee,description_rev,description
emm issue description diff 42 --since ISSUE_REV
mdt read 'notes/Plan.md'
mdt diff 'notes/Plan.md' --since FILE_REV
```

Use your actual ID, file and returned revisions. Pass `--store '/path/to/emm.db'` on every project command. Read `emm --help` and `mdt --help`, then the relevant subcommand's help.

Check these diffs when returning to work, before editing, and before completion. Finish paginated results before keeping the new revision; establish a fresh baseline if the old one expired. These tools read saved text. Edit with `mdt replace`/`insert` or `emm issue description replace`/`insert`, using the revision in `--rev`. Append discussion with `emm issue note`, which adds a stamp line with the UTC date and time and writer. Never edit the database directly.

## Work the agreed queue

Follow the human's scope and project instructions. Start with one useful task. Resume your In Progress work or use `emm issue list -s open`. Read ownership, claim with an assignee and `--if assignee=PREVIOUS_UUID` (`none` if unassigned), then record your session. This guard checks the local copy; coordinators still allocate distinct work.

Draft and Needs Input belong to the human; wait for Open. Ask a specific question when input is needed and take other ready work. Mark Completed when the result is verified, integrated and available to review, following the project's release instructions. Only the human accepts or cancels unless delegated. Keep feedback in the issue or linked note. Emm does not wake stopped agent sessions.

For shared projects, run `emm sync` before queue checks and after writes. Issue sync does not transfer linked Markdown or code files. Resolve links from the folder containing `emm.db`.

## Write readable Markdown and explicit links

<!-- 2026-10-14 · Codex GPT-6 · session 01a13c67-d6a2-73a2-9dde-d074c29eef63 · worker issue_686_haiku -->
Keep each prose paragraph on one source line in issue descriptions and Markdown files; let the editor wrap it. Preserve meaningful newlines for paragraphs, headings, lists, tables, code and verse. Do not flatten Markdown structure.

Use `[[Note name]]` or `[[folder/Note name]]` for Markdown notes in the selected Notes folder; headings and aliases work as `[[Note name#Heading|label]]`. For other files or folders, including notes outside that folder, use standard Markdown: `[Report](docs/report.md)`.

<!-- 2026-10-15 · Codex GPT-6 · session 01a13c67-d6a2-73a2-9dde-d074c29eef63 -->
Prefer relative links for files within the project. Absolute `/Users/name/...` paths depend on one person's username and project location, so they break on teammates' Macs. In issues and chat, relative destinations start at the project folder containing `emm.db`, including any repository subfolder. In a Markdown file, destinations start at that file's folder. For spaces, use `%20` or angle brackets: `[My report](repo/docs/My%20report.md)` or `[My report](<repo/docs/My report.md>)`. Raw paths in prose or backticks stay plain text. Wikilinks are not wrappers for arbitrary files.

Check that the target exists at that relative path on the recipient's Mac. Issue sync does not transfer files. The same rules are available in `emm issue note --help` and the installed agent prompt.

## Track issue delivery and request testing

<!-- 2026-10-15 · Codex GPT-6 · session 01a14079-eff8-7040-b543-04bd3512db69 · #741 -->
Read `emm releases help` for configuration examples and the version-endpoint contract. Discover exact options with `emm vcs --help`, `emm environment --help` and `emm test --help`. Register each repository's actual checkout and integration ref; configure each environment with only the repositories it uses. A local web server is a separate environment from the installed desktop app. Neither automatically runs main. Version endpoints must report the served artifact's source, including after rollback; private endpoints use a dedicated bearer token in the Authorization header, never a secret in the URL.

<!-- #755 · Codex GPT-6 · session 01a14079-eff8-7040-b543-04bd3512db69 · 2026-10-15 -->
Emm checks exact Git ancestry, not equivalent code changes. Finish any required rebase, squash or amend before linking commits; link the final hashes. After linking, preserve those hashes when integrating the work: use a merge or fast-forward, not a rebase, squash or cherry-pick that replaces them. Otherwise Releases can show the original commits as missing even when equivalent code is deployed.

If linked history was already rewritten, record the final commits and explain the mismatch in the issue. `--commit` adds links; it does not replace old ones. The CLI currently has no command to remove or replace obsolete links, so adding the new hashes alone cannot repair those counts. Do not edit the database to work around this limitation.

A revert leaves the original commit in history. Releases can still count an issue as fully deployed even though its behavior was undone. Reopen the issue and link the revert; earlier links remain. Status and release counts are independent: verify behavior before claiming the issue is fixed. For example, after reverting a fix for issue 42 in the registered web checkout, run `emm issue update 42 --status open --commit web:HEAD`.

Link finalized commits; repeat `--commit` for other commits or repositories. Replace the example issue number and registered repository name:

```sh
emm issue update 42 --commit web:HEAD
emm issue release 42
emm issue release 42 --refresh --details --json
emm issue list -s completed,accepted -f id,release,title --sort release --asc
```

`emm releases issue 42` is an alias for `emm issue release 42`. One issue's rows count included/applicable **commits**. The list's opt-in `release` field counts fully deployed/applicable **environments**, matching the app. All main heads is not an environment. N/A means unrelated repositories. Unknown means relevant Git/version evidence is missing. Unverified means the latest environment check failed; its last known version remains in details but does not count as fully deployed. No commits means no active commit links. Inspect `--details` and repair the named missing evidence instead of treating uncertainty as absence or success.

Default queries use saved observations and local Git refs. Use `--refresh` before claiming a live version; manual observations cannot refresh automatically and retain their original times. Refresh failures return a usable report, explain the failure on stderr and exit 1. Neither inclusion nor a successful query proves tests passed. These commands do not deploy. Mark work Completed after verification and integration according to project instructions; an explicit request to deploy still includes deployment and live verification.

Store test requests and results with the CLI, rather than adding test steps only to issue prose. Use a deployment UUID from `emm releases show --json`:

```sh
request_id=$(emm test request create --key issue-42-save --issue 42 \
  --deployment DEPLOYMENT_UUID --title 'Save survives reload' \
  --assignee 'QA agent' --steps 'Save an edit and reload.' \
  --expect 'The saved edit remains.')
emm test run "$request_id" -- ./test-save
```

The test command must verify its target URL/device and artifact. `test run` saves stdout, stderr and a structured result beside the project store; project sync transfers records but not local evidence files. Use `emm test result add --help` to record manual testing or shared evidence URLs. Detailed guidance stays in `emm releases help`, shipped with the installed build.

## Help when needed

- Install the [Mac app](https://emmflow.com/download/) or follow [standalone CLI setup](https://emmflow.com/cli-agent-guide.md). The app includes `emm` and `mdt`; no separate install is needed. On older app versions, use the executable path from **Copy Agent Prompt**.
- Sharing: use **Join a shared project** for an invitation; read `emm project --help` only when using the CLI for setup.
- Problems: `emm feedback --help` explains how to report them.
