epiq README

README проекта с github.com/ljtn/epiq. Одним файлом markdown: README.md.

Epiq - issue tracking as code

Epiq is a self-hosted issue tracker persisting state as an immutable event log in your repository, versioned and synchronized via Git.

Epiq offers issue tracking as an integrated part of the development environment with workflow replay, inline code-diffs, filtering, and a tight code integration.

Docs, blog, etc. →

The Epiq GUI: the event log, the board and a ticket's code diff, under the time travel timeline

Audit the workflow

Because state is an event log, you can replay the board to find out what happened when, who made the changes, and what what lead up to it.

Code, linked to tickets

Commits are linked to a ticket with an Epiq-Ref: line in its body, naming the ticket's ref:

git commit -m "fix the parser" -m "Epiq-Ref: 1YRTG8T"

A ticket's Code tab, showing the diff of a linked commit

Commits from other repos

A board can read commits from other repositories too. Connecting is a board-wide action: every contributor's epiq downloads the repo on their next sync.

Terminal + Browser

Epiq originated from the command line and offers a first-class terminal experience, but also features a browser interface.

The Epiq terminal UI: the same board rendered in a terminal, with the command palette along the bottom

What Epiq brings

Fundamental design choices gives a system with:


Installation

Quick install

Binary:

curl -fsSL https://raw.githubusercontent.com/ljtn/epiq/main/install.sh | sh

Installs to ~/.local/bin by default. Override with EPIQ_INSTALL_DIR (or XDG_BIN_HOME); pin a version with EPIQ_VERSION=v1.0.0.

Via npm

npm install --global epiq

Verify

epiq --version

Getting Started in 2 steps

  1. Make sure you're inside a Git repository
# If needed:
git init
# For collaboration, use a repo with a remote (e.g. clone from GitHub)
  1. Run:
epiq

If it is your first run, epiq asks two questions, your name (proposed from git) and auto sync (on), so two presses of enter set you up. In a repository without a project, it then asks whether to start one: enter to initialize, esc to skip. If the repository already has a board, on origin or on another branch, initializing picks that one up rather than starting a second.

To change your name or auto sync later, run epiq setup (or :setup inside epiq). The TUI edits in $VISUAL or $EDITOR; pick another with :config editor code --wait.

In a script, epiq init starts the project without the TUI. It needs an author: the configured user, or one named by EPIQ_USER_NAME (or --as).

That’s it!

To leave the terminal UI, type :q (or :exit, :quit). q steps back out a level, and at the top offers :exit, one enter away.

Once your project is set up, you can also launch the browser user interface with:

epiq gui

On a machine with no display, or with --no-open, it serves without opening a browser; open the URL it prints.

Setup wizard creates: User config persisted in ~/.epiq-global/config.json.

Initialization creates:

  • Project definition in ./.epiq/project.json
  • Authoritative Git state at ~/.epiq-global/worktrees/<id>, one per clone: a second clone of the board gets <id>-<hash>
  • Updates your .gitignore to ignore local-only .epiq/events/ and .epiq/log/ Epiq manages a dedicated Git state branch and worktree automatically as the source of truth for synchronization.
  • A local debug log at .epiq/log/epiq.log — check it first if sync, boot, or a Git operation is misbehaving.

MCP & Agent Compatibility

Epiq provides a MCP (Model Context Protocol) server for agents to interact with, making it easy to plug into modern agent frameworks. The server is exposed by the epiq-mcp binary that ships with the package.

Claude Code

The reliable way to register the server is with the claude mcp add command — it writes to the correct config file for you, so you don't have to hand-edit JSON:

# Available everywhere (recommended)
claude mcp add --scope user epiq -- npx -y --package=epiq epiq-mcp

# Or only in the current project
claude mcp add epiq -- npx -y --package=epiq epiq-mcp

Verify the connection with claude mcp list (it should report epiq … ✔ Connected). MCP servers are loaded at startup, so restart Claude Code after adding the server before its tools become available.

Skills

Find skill at .claude/skills/epiq/SKILL.md that documents a recommended workflow for working the Epiq board. epiq_skill_install writes the same file into any repository that lacks it, so a project set up from an agent gets the rules too — after epiq_project_init, since init refuses a repository with uncommitted files; it leaves an identical copy alone and refuses to overwrite a differing one unless told to with force.

Agent identity

Every process — your TUI, your GUI, each agent's MCP server - writes as your user, so by default the board cannot tell one agent from another. The MCP allows agents to assume an identity, so at the start of a session, tell your agent which name it should assume.

That agent then shows up in the contributor list, assigns itself rather than you, and authors its own events. This can be useful when tracing many agents at the same time. Consider reusing names instead of inventing one per session, or the registry fills with single-run identities.

Board and lane conventions

A board's or a lane's description holds its conventions: "tests before review", "one ticket per PR". The MCP hands them to agents where they apply. Assuming an identity returns the board rules, getting or moving a ticket returns its lane's, and creating one returns both. Agents are told to follow them unless they conflict with their user's instructions. Write them with epiq_board_description_edit and epiq_swimlane_description_edit, in the board's or the lane's panel in the GUI, or with edit description on a selected lane or board in the TUI.

Other MCP clients

For clients that are configured by hand, add the following to the client's MCP config file — note this is not the same as Claude Code's ~/.claude.json; Claude Desktop uses claude_desktop_config.json:

{
	"mcpServers": {
		"epiq": {
			"command": "npx",
			"args": ["-y", "-p", "epiq", "epiq-mcp"]
		}
	}
}

Once registered, agents can interact with your local Epiq instance through the MCP.

Sandboxed or network-restricted environments

npx -y -p epiq epiq-mcp resolves the package against the npm registry every time it starts, even if it's already cached locally. In agent sandboxes with restricted network access, this can make the MCP server appear to hang. If you're running Epiq's MCP server in such an environment, install it globally once and point your MCP config at the resolved executable directly, bypassing npx (and the registry lookup) entirely on every subsequent start:

npm install --global epiq
which epiq-mcp   # use this absolute path in your MCP config
{
	"mcpServers": {
		"epiq": {
			"command": "/absolute/path/to/epiq-mcp"
		}
	}
}

npx remains the simpler option for normal, network-connected setups.


How Epiq is synchronized

Epiq uses Git in the background - no manual Git commands are required. Running :sync synchronizes changes between your local state (persisted at ~/.epiq-global/worktrees/<id>/) and the remote state. By utilizing Git worktrees, synchronization stays isolated from your regular development workflow. Project tracking metadata is stored in .epiq/project.json.

Conflict Avoidance & Data Integrity

Epiq is designed to provide robustness in a distributed, Git-backed environment where multiple users may update state concurrently. Instead of mutating shared files, Epiq uses an event-sourced model to prevent merge conflicts and make concurrent changes predictable.

Event-sourced state

All changes are stored as append-only events in user-scoped files, rather than modifying a shared state file. This avoids in-place edits to the same lines and significantly reduces the likelihood of Git conflicts.

State is reconstructed in-memory by replaying a merge of all user logs.

Deterministic materialization

The current state is derived by replaying events in a deterministic order.

Events use a composite of time-sortable IDs (ULIDs) and a reference to the last known event ("edge"). On creation, events are appended relative to the last known event. If multiple events share the same reference point, their relative order is resolved using their time-based IDs.

This approach:

Conflict handling model

Epiq resolves concurrent changes at the event level:

Local-first with eventual consistency

Epiq follows a local-first model:

Frequent synchronization reduces divergence and keeps the system predictable


GitHub Sponsors

epiq (ljtn/epiq)

Ищем в базе…

Что это?Epiq — self-hosted трекер задач на базе Git: хранит всё состояние как неизменяемый журнал событий, позволяя проиграть рабочий процесс проекта в реальном времени или постфактум и точно увидеть, что происходило.
Это CLI-инструмент или есть и графический интерфейс?И то и другое: Epiq начинался как терминальное (TUI) приложение, но также имеет браузерный интерфейс; оба используют один движок событий на базе Git, работать можно из любого.
Как это запустить?Установите бинарник epiq (quick-install-скрипт или npm), затем просто выполните epiq внутри Git-репозитория — первый запуск откроет интерактивный мастер настройки, который конфигурирует проект примерно за 30 секунд; браузерный UI можно запустить отдельной командой.
Нужен ли существующий Git-репозиторий для Epiq?Да — Epiq рассчитан на работу внутри Git-репозитория и использует выделенную ветку Git и worktree как источник истины; вне репозитория его использовать не предполагается.
Есть ли подводные камни при настройке или синхронизации?Инициализация проекта отказывается работать в репозитории с незакоммиченными файлами, а в изолированных агентских средах установка по умолчанию через npx может выглядеть зависшей, так как при каждом старте заново резолвит пакет из npm-реестра — глобальная установка с указанием на уже разрешённый бинарник это устраняет.
Можно ли пользоваться Epiq без интернета?Да, Epiq построен по принципу local-first и полностью работает офлайн: синхронизация с Git идёт только когда вы явно или автоматически запускаете её, а сверка происходит, когда связь возвращается.
Проходят ли мои данные через облачный сервис?Нет — у Epiq нет аккаунтов или SaaS-бэкенда: всё состояние хранится локально и версионируется через ваш собственный Git-репозиторий.
Что именно даёт воспроизведение рабочего процесса?Поскольку каждое изменение — это дописываемое в конец (append-only) событие, можно проиграть историю доски и увидеть, кто какую задачу и когда переместил, почти как при перемотке записи всего спринта.
Как Epiq избегает конфликтов слияния, когда несколько агентов правят доску одновременно?Каждый пользователь или агент пишет в свой файл журнала событий вместо общего файла состояния, события несут сортируемые по времени ULID и ссылку на предыдущее событие, а при конфликте побеждают более поздние — так что слияния Git сводятся к объединению независимых файлов.
Могут ли несколько AI-агентов работать над одним проектом без конфликтов?Да — MCP позволяет каждому агенту принять отдельную идентичность в начале сессии, поэтому его действия видны под собственным именем в списке контрибьюторов, а не затирают действия пользователя.
Как коммиты связываются с задачами?Добавьте в начало темы коммита ref задачи (например, её ID), чтобы связать их; коммит появится во вкладке code-diff этой задачи, а комментировать конкретные строки или завести новую задачу можно прямо из выделения.
Какие есть похожие проекты?kanzo, iCode, ruflo, hyperfide-oss, agent-autoloop, super-productivity, lean-ctx, bb-browser
Автор
ljtn
Размер
82.3 MB
Звёзды
590
Возраст
1 г
Коммиты · 90 дней