К основному содержанию
плагин

agent-tasks — плагин для Claude Code: пайплайн задач и панель /pipeline

MCP-сервер с этапами задач, зависимостями и панелью /pipeline прямо в Claude. Пригодится, когда над одной кодовой базой работают несколько агентов.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install agent-tasks@claude-community
Открыть на GitHub

Что делает agent-tasks

agent-tasks ведёт задачи по настраиваемым этапам: backlog, spec, plan, implement, test, review, done. Зависимости между задачами образуют граф с автоматическим поиском циклов, и пока зависимость не закрыта, задачу дальше не продвинуть. Агенты могут забирать задачи, назначать их друг на друга и возвращать на предыдущий этап с указанием причины.

Внутри 8 MCP-инструментов: task_create, task_get, task_list, task_delete, task_update, task_stage, task_artifact и утилиты. К задачам прикладываются артефакты с версионированием по этапам, комментарии в виде веток, а решения и выводы (decision, learning) уезжают в родительские и соседние задачи. Поиск по заголовкам и описаниям работает через FTS5.

Панель /pipeline открывается рядом с диалогом и требует Claude 2.1.289+. Нужен Node.js 20.11 или новее. Есть подводный камень: в схеме этапов есть require_approval, но ни один MCP-инструмент и ни один REST-маршрут не записывает одобрение, поэтому этап с этим флагом покинуть нельзя. Держите его выключенным. Первый запущенный MCP-процесс занимает порт 3422 и отдаёт REST API; если порт держит старый процесс 1.x, панель покажет это в статусной строке, и старую сессию придётся закрыть.

Какие задачи решает

  • разложить работу нескольких агентов по этапам вместо плоского списка
  • не дать задаче уйти вперёд, пока не закрыта зависимость
  • вернуть задачу на доработку с причиной
  • хранить версии документов по каждому этапу
  • обсудить задачу в ветке комментариев между агентами

Примеры запросов агенту

  • Создай задачу на рефакторинг модуля авторизации и поставь её в этап spec
  • Покажи доску задач по этапам
  • Верни задачу на этап plan и напиши причину в комментарии

Как установить agent-tasks

Через маркетплейс плагинов

/plugin marketplace add anthropics/claude-plugins-community
/plugin install agent-tasks@claude-community

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о agent-tasks

Как установить agent-tasks в Claude Code?

Добавьте маркетплейс: /plugin marketplace add anthropics/claude-plugins-community, затем установите плагин: /plugin install agent-tasks@claude-community.

Что делает agent-tasks?

Это MCP-сервер, который ведёт задачи по этапам с зависимостями и артефактами, а плагин добавляет панель /pipeline рядом с диалогом в Claude.

Почему этап с require_approval не получается покинуть?

Одобрение не записывает ни один MCP-инструмент и ни один REST-маршрут, так что задача останется на этом этапе. Оставьте флаг выключенным.

Исходный текст

SKILL.md · MIT
# agent-tasks

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Node.js](https://img.shields.io/badge/node-%3E%3D20.11-brightgreen)](https://nodejs.org/)
[![Tests](https://img.shields.io/badge/tests-472%20passing-brightgreen)]()
[![MCP Tools](https://img.shields.io/badge/MCP%20tools-8-purple)]()
[![REST Endpoints](https://img.shields.io/badge/REST-8%20endpoints-orange)]()

**Pipeline-driven task management for AI coding agents.** An [MCP](https://modelcontextprotocol.io/) server with stage-gated pipelines, multi-agent collaboration, and a native Claude Code `/pipeline` pane. Tasks flow through configurable stages — `backlog`, `spec`, `plan`, `implement`, `test`, `review`, `done` — with dependency tracking, stage gates, artifact versioning, and threaded comments.

Built for AI coding agents (Claude Code, Codex CLI, Gemini CLI, Aider) but works equally well with any MCP client or REST consumer.

![/pipeline opens the board beside a Claude Code conversation; Tab and Enter open a task](docs/images/manual/hero.gif)

The [user manual](docs/USER-MANUAL.md#4-the-pipeline-pane) shows every view and action of the pane, with screenshots and short clips from the real CLI.

2.0 replaced the web dashboard with the `/pipeline` pane inside Claude Code; there is no browser UI, WebSocket or agent-desk plugin any more.

### From 1.x

- The dashboard on http://localhost:3422 is gone: open the board with `/pipeline` in Claude Code (install the plugin, below). The agent-desk Tasks tab is gone with it.
- REST: `GET /api/overview` and `PUT /api/tasks/:id/stage` are gone (use `GET /api/board` and `POST /api/tasks/:id/stage` with `{"action": "advance"}`), and so are the routes nothing called; see [the REST API](#rest-api-8-endpoints).
- A 1.x process still holding port 3422 is named by the pane (`An older agent-tasks (1.10.13) holds the port`) and in the status line (`old server 1.10.13 on the port`): end the Claude Code sessions still running it (or kill the old `agent-tasks` process) so a 2.x process takes the port, then Refresh.

---

## Why agent-tasks?

When you run multiple AI agents on the same codebase, they need a shared task pipeline — not just a flat todo list. They need stages, dependencies, stage gates, and visibility.

---

## Features

- **Pipeline stages** — configurable per project: `backlog` > `spec` > `plan` > `implement` > `test` > `review` > `done`
- **Task dependencies** — DAG with automatic cycle detection; blocks advancement until resolved
- **Multi-agent claiming** — claim, assign, send back to an earlier stage with a reason
- **Subtask hierarchies** — parent/child task trees with progress tracking
- **Threaded comments** — async discussions between agents on any task
- **Artifact versioning** — per-stage document attachments with automatic versioning
- **Full-text search** — FTS5 search across task titles and descriptions
- **Claude Code `/pipeline` pane** — the board beside the conversation, keyboard-first: tasks by stage, task detail with artifacts and comments, advance, send back, complete, fail, cancel, comment and delete, a status line entry
- **2 transport layers** — MCP (stdio) and a loopback REST API (HTTP) that the pane reads
- **TodoWrite bridge** — intercepts Claude Code's built-in TodoWrite and syncs to the pipeline
- **Stage gates** — configurable per-project gates with per-stage rules: require named artifacts, minimum artifact counts or a comment before advancing (the schema also has `require_approval`, but no MCP tool or REST route records an approval, so a stage with it set cannot be left; keep it off)
- **Decisions log** — structured decision artifacts (chose X over Y because Z) via `task_artifact(type: "decision")`
- **Learnings propagation** — `task_artifact(type: "learning")` captures insights (technique, pitfall, decision, pattern); auto-propagated to parent and sibling tasks on completion
- **Agent affinity** — `task_list(next: true)` prefers routing tasks to agents with related history (parent, dependency, project) as a tie-breaker
- **Heartbeat-based cleanup** — auto-fails tasks from dead agents using agent-comm heartbeat data
- **Task cleanup hooks** — auto-fails orphaned tasks on session stop and cleans up stale tasks on session start
- **Agent bridge** — notifies connected agents on task events (claim, advance, comment)
- **Knowledge bridge** — auto-pushes learning and decision artifacts to agent-knowledge on task completion, with embedding indexing and auto-linking

---

## Quick Start

### Install from npm

```bash
npm install -g agent-tasks
```

### Or clone from source

```bash
git clone https://github.com/keshrath/agent-tasks.git
cd agent-tasks
npm install
npm run build
```

### Option 1: MCP server (for AI agents)

Add to your MCP client config (Claude Code, Cline, etc.):

```json
{
  "mcpServers": {
    "agent-tasks": {
      "command": "npx",
      "args": ["agent-tasks"]
    }
  }
}
```

The first MCP process to start also serves the REST API on http://localhost:3422; the others retry every 5 s and take over when it exits.

### Option 2: Claude Code plugin (MCP server + `/pipeline` pane)

```bash
claude plugin marketplace add keshrath/agent-tasks
claude plugin install agent-tasks@agent-tasks
```

The plugin runs the MCP server and adds a Claude Code mod (function hooks, Claude Code 2.1.289+): `/pipeline` opens the board beside the conversation. The [tutorial](docs/TUTORIAL.md) walks through it. Remove any hand-written `agent-tasks` entry from `~/.claude.json` so tools do not appear twice.

### Option 3: Standalone REST server

```bash
node dist/server.js --port 3422
```

---

## Claude Code Integration

Once configured (see [Quick Start](#quick-start) above), Claude Code can use all 8 MCP tools directly — creating tasks, advancing stages, adding artifacts, commenting, and more. With the plugin installed, `/pipeline` opens the board in a pane beside the conversation (Claude Code 2.1.289+). See the [Setup Guide](docs/SETUP.md) for detailed integration steps.

---

## MCP Tools (8)

| Category               | Tools                                                                                                                      |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| **Task CRUD** (4)      | `task_create`, `task_get` (include subtasks/artifacts/comments/transitive_deps), `task_list` (search, next), `task_delete` |
| **Metadata** (1)       | `task_update` (title, description, priority, tags, project, assignment, dependencies)                                      |
| **Lifecycle** (1)      | `task_stage` (claim, assign, advance, regress, complete, fail, cancel)                                                     |
| **Artifacts** (1)      | `task_artifact` (general, decision, learning, comment)                                                                     |
| **Config & utils** (1) | `task_config` (pipeline, session, cleanup, rules)                                                                          |

See [full API reference](docs/API.md) for detailed descriptions of every tool and endpoint.

## REST API (8 endpoints)

All endpoints return JSON. Loopback only: a foreign `Host` gets 403, so does any request carrying an `Origin` header (no browser calls this API), and request bodies must be `application/json`. Everything else goes through the MCP tools. See [full API reference](docs/API.md#rest-api-8-endpoints) for details.

```
GET    /health                        Health check with version + uptime
GET    /api/tasks/:id                 One task, as task_get (?include=subtasks,comments,transitive_deps)
GET    /api/pipeline                  Pipeline stage configuration
GET    /api/board                     Open and recently closed tasks (what the pane polls)

POST   /api/tasks                     Create a task
POST   /api/tasks/:id/stage           Lifecycle action (claim, assign, advance, regress, complete, fail, cancel)
POST   /api/tasks/:id/comments        Add a comment
DELETE /api/tasks/:id                 Delete a task
```

---

## Testing

```bash
npm test              # vitest: 472 tests across 25 files
npm run test:watch    # Watch mode
npm run test:coverage # Coverage report
npm run check         # Full CI: typecheck + lint + format + test
npm run plugin:check  # the /pipeline pane: claude plugin validate + its tests (needs the claude CLI)
npm run e2e:claude    # the pane in the real Claude Code CLI (see CONTRIBUTING.md)
```

---

## Environment variables

| Variable                                 | Default                         | Description                                                                    |
| ---------------------------------------- | ------------------------------- | ------------------------------------------------------------------------------ |
| `AGENT_TASKS_DB`                         | `~/.agent-tasks/agent-tasks.db` | SQLite database file path                                                      |
| `AGENT_TASKS_PORT`                       | `3422`                          | REST API port (the `/pipeline` pane reads it)                                  |
| `AGENT_TASKS_HOST`                       | `127.0.0.1`                     | REST bind address (`0.0.0.0` exposes it to the network)                        |
| `AGENT_TASKS_USER`                       | the OS user                     | Who the `/pipeline` pane acts as (`created_by`, comment author, `by`)          |
| `AGENT_TASKS_INSTRUCTIONS`               | enabled                         | Set to `0` to disable response-embedded instructions                           |
| `AGENT_TASKS_RETENTION_DAYS`             | `30`                            | Days the cleanup keeps resolved approval records                               |
| `AGENT_TASKS_COMPLETED_RETENTION_DAYS`   | `7`                             | Days a completed task is kept (and listed under the pane's Done) before purge  |
| `AGENT_TASKS_FAILED_RETENTION_DAYS`      | `7`                             | Days a failed task is kept before purge                                        |
| `AGENT_TASKS_CANCELLED_RETENTION_DAYS`   | `1`                             | Days a cancelled task is kept before purge                                     |
| `AGENT_TASKS_ORPHAN_TIMEOUT_MINUTES`     | `360`                           | Minutes before an in-progress task with no assignee is cancelled               |
| `AGENT_TASKS_COMM_TIMEOUT_MS`            | `5000`                          | Timeout of the cleanup's agent-comm requests                                   |
| `AGENT_TASKS_DEAD_SESSION_GRACE_MINUTES` | `60`                            | `task-cleanup-start.js`: idle minutes before a dead session's task is failed   |
| `AGENT_TASKS_HEARTBEAT_FRESH_MINUTES`    | `15`                            | `task-cleanup-start.js`: an agent with a heartbeat this recent counts as alive |
| `AGENT_COMM_URL`                         | `http://localhost:3421`         | Agent-comm REST URL for bridge notifications                                   |
| `AGENT_KNOWLEDGE_URL`                    | `http://localhost:3423`         | Agent-knowledge REST URL for knowledge bridge                                  |

---

## Dependencies

**Required**: Node.js >= 20.11, better-sqlite3 (bundled)

**Optional (soft dependencies — fail-open, HTTP-only, no npm dep):**

- [agent-comm](https://github.com/keshrath/agent-comm) — Heartbeat-based task cleanup and event notifications. agent-comm tracks heartbeats → agent-tasks checks heartbeats → auto-fails tasks from dead agents. Also sends direct messages on claim/advance and posts to a channel on comments. Without agent-comm, stale agent detection and notifications are skipped gracefully.

- [agent-knowledge](https://github.com/keshrath/agent-knowledge) — Knowledge persistence for task learnings and decisions. On task completion, the KnowledgeBridge pushes `learning` and `decision` artifacts to agent-knowledge via `POST /api/knowledge`. Entries are auto-indexed with embeddings, auto-linked to similar entries, and git-synced. Without agent-knowledge, artifacts stay in agent-tasks only.

---

## Documentation

- [Tutorial](docs/TUTORIAL.md) — the `/pipeline` pane step by step, recorded from the real CLI
- [User Manual](docs/USER-MANUAL.md) — the `/pipeline` pane view by view (screenshots and GIFs), every tool, the pipeline, gates, cleanup
- [API Reference](docs/API.md) — all 8 MCP tools and the REST endpoints
- [Hooks](docs/hooks.md) — the Claude Code command hooks `scripts/setup.js` installs
- [Architecture](docs/ARCHITECTURE.md) — source structure, design principles, database schema
- [Setup Guide](docs/SETUP.md) — installation, client setup (Claude Code, OpenCode, Cursor, Windsurf), hooks
- [Contributing](CONTRIBUTING.md) — development, tests, the e2e run in the real CLI
- [Changelog](CHANGELOG.md)

---

## License

MIT — see [LICENSE](LICENSE)

© keshrath · MIT · keshrath/agent-tasks

Похожие плагины

Все плагины по теме «Настройка агента: память, контекст, субагенты» →
ponytail DietrichGebert Плагин настраивает агента на короткие решения без лишних абстракций. Сгодится, когда нужно использовать возможности уже имеющегося кода и не усложнять задачу. ★ 177 259звёзд репо impeccable pbakaus Даёт агенту словарь дизайнера: 24 команды вроде polish, audit и bolder, чтобы правки интерфейса не сводились к «сделай красиво». ★ 89 321звёзд репо last-30-days-skill mvanhorn Собирает свежие посты, комментарии и транскрипты по любой теме за последний месяц и укладывает их в один отчёт. ★ 65 596звёзд репо claude-hud jarrodwatts Показывает под строкой ввода, сколько контекста занято, какие инструменты работают и как идут задачи. Пригодится, когда сессия длинная и надо видеть расход. ★ 28 914звёзд репо understand-anything Egonex-AI Плагин сканирует проект и строит интерактивный граф файлов, классов и зависимостей с веб-дашбордом. Пригодится при знакомстве с чужим или крупным кодом. ★ 88 429звёзд репо mem0 mem0ai Подключает долговременную память к Claude Code, сохраняя контекст проектов и привычки между сессиями. ★ 67 869звёзд репо

Из того же набора2

Спонсоры проекта

Компании, которые помогают держать аналитику открытой