youtrack-task
Claude Code plugin: pick up a JetBrains YouTrack issue — fetch, branch, In Progress, plan, write-back — over YouTrack's remote MCP server
ActiveCI passing- Developer Tools
- ai-agent
- claude-code
- claude-code-plugin
- developer-tools
- mcp
- youtrack
★ 0 · Last push 3 Dec 2026
Installation
/plugin marketplace add JtheGunner/youtrack-task
/plugin install youtrack-task@youtrack-taskReleases
Show changes
- Fix: the review-gate hook blocked a push because of a redirection.
hooks/require-reviewread2>&1,>fileand the like as refspecs, sogit push origin <branch> 2>&1was denied even for a branch without an issue ID. Redirections are now removed before the command is parsed. This also closes a gap: a push with a redirection in front (2>&1 git push …) was not checked at all.
- Fix: the review-gate hook blocked a push because of a redirection.
Show changes
all --decide [ask|auto]. Issues with open questions, without acceptance criteria or of architectural size can now be worked on. A new read-onlyticket-decideragent lists the criteria and classifies every open point.ask(default) puts the critical ones to you at the start;autodecides them too. Servers, network, secrets, data stores, deletions and costs are never decided.- Decisions are posted on the issue, labelled
useroragent, checked by the review and listed in the PR. --decideworks with--auto-merge. The start question then also covers push, PR and merge. Only issues without an unchecked critical decision or derived criteria are merged.- A worker's
BLOCKEDquestion is now posted with theNeeds attentionheading.
Show changes
- Fix: the chat language held in the primary flow only. In
all --auto-mergeruns the language was German in one session and English in the next, with the same invocation: only the primary flow printed→ Chat language:, soalland the other sub-commands depended on the model remembering the rule. Nowread-config(step 0, run on every invocation) ends with aCHAT_LANGUAGE_TODO=reminder,allprints the line as its first output and names the language in the worker and reviewer briefing, and the other sub-commands print it right after step 0. - Fix: the language fell back to English after a compaction. The compaction summary is
English and says nothing about the chat language. A new
SessionStarthook with matchercompact(hooks/remind-chat-language) reminds the agent of the last printed language and to relay notices from hooks and plugins such as claude-mem in it. Text claude-mem writes itself is not under the plugin's control. SKILL.mdline budget 400 → 410 for the Language table. Newtests/remind-chat-language.sh.
- Fix: the chat language held in the primary flow only. In
Show changes
- The config file creates and maintains itself. A
SessionStarthook (hooks/sync-config) runs once per plugin version, on the first Claude Code start after an install or update. Without~/.config/youtrack-task/config.tomlit creates the file fromconfig.example.toml, so you start from one file with every option. With one, it appends the options the new version added (commented out, with their comment, placed before any[table]header so they still work when uncommented) and removes the ones it dropped, judged against a snapshot of the previous example. Your own values, keys and comments are never touched, aconfig.toml.bakis written before any change, and one line tells you what happened. An unchanged version exits at once;read-configstays read-only. The first update after adopting this removes nothing, because there is no earlier snapshot. tests/sync-config.shcovers create, no-op, add, prune, idempotence, backup, the[type_prefix]block, the real example and the read-only case.
- The config file creates and maintains itself. A
Show changes
- Chat language follows the session, else the issue. The skill now has a rule for what it
says to you in the chat, separate from git artifacts (always English) and YouTrack text (the
issue's language). Order: your instruction, then the language of the session if you had
already written to the agent before the invocation, else the issue's language. The step-2
brief starts with
→ Chat language: <language> (<reason>), so later replies follow a visible value. Before, replies came out in English even for a German issue. tests/skill-text.shchecks the rule, the brief line and that no reference file repeats it; theSKILL.mdline limit goes from 390 to 400 for it.
- Chat language follows the session, else the issue. The skill now has a rule for what it
says to you in the chat, separate from git artifacts (always English) and YouTrack text (the
issue's language). Order: your instruction, then the language of the session if you had
already written to the agent before the invocation, else the issue's language. The step-2
brief starts with
Show changes
- Docs: README mentions the reviewer's extra commands. The review-gate step of the README
says the reviewer is read-only and that a project can allow more commands for it in
.youtrack-task/reviewer-commands, linkingdocs/configuration.md#letting-the-reviewer-run-more; the Configuration entry of the docs table names them. No behaviour change. tests/skill-text.shchecks that the README links that section and that the heading exists.
- Docs: README mentions the reviewer's extra commands. The review-gate step of the README
says the reviewer is read-only and that a project can allow more commands for it in
Show changes
- Reviewer: an allowed way to verify, still read-only. The
ticket-reviewerguard (hooks/guard-subagent) now also allowsswift test,swift build,go build ./...,golangci-lint runandscripts/*test*. Options that write or steer a build (--fix,-o,-toolexec,-ldflags,-Xswiftc,--package-path) stay rejected. - New config key
reviewer_commandsand a per-project file.youtrack-task/reviewer-commands(one command per line,#comments): extra commands the reviewer may run, each matched exactly (whole command, no regex, no prefix). The project file is read from the base branch withgit show, never from the branch under review, so a branch cannot allow commands for its own review. Seereference/reviewer-allowlist.mdanddocs/configuration.md. - A rejected reviewer command is no longer a code finding. The hook marks it
[blocked-by-guard]; the reviewer reportsBLOCKED_BY_GUARDand the review gate returnsBLOCKEDwithout a fix round, without a stamp, listing the commands and how to allow them. Before, "build, lint or CI not checkable" ended asCHANGES_REQUESTED. - The base branch of
.youtrack-task/reviewer-commandsis resolved from full ref names (refs/remotes/origin/HEAD,refs/remotes/origin/main|master,refs/heads/main|master) and read by commit id, so a tag namedmainororigin/maincannot shadow it. The worker guard also deniesgit symbolic-refwrites,git remote set-head,git replace,git fetch/git pullinto refs (also--refmap),git branch --force/--move/--copy(also abbreviated),git checkout -B,git switch -Candgit worktree add -B, checked on the command with its quote characters removed (andgit -C <dir>normalised first, the dir read as a whole shell word: quoted, escaped or plain) so quoting an argument does not hide it; the lookups ignore replace refs. read-configresolvesreviewer_commands(REVIEWER_COMMANDS, entries joined with;). Tests cover the new built-ins, both extra sources and the self-allowing branch.
- Reviewer: an allowed way to verify, still read-only. The
Show changes
Docs: not just a Claude Code plugin. The README header, tagline and badge now say the tool also runs in Cursor, GitHub Copilot, Codex CLI and other MCP-capable agents. The install step offers four routes (Claude Code plugin, Agensi, Product Hunt, other agents), and the README shows the Product Hunt badge (in the header and in the install table) and links the Agensi listing. The agent setup moved to the new
docs/other-agents.md(MCP settings per agent, what differs outside Claude Code, building the Agensi package).tests/skill-text.shchecks that the README linksdocs/other-agents.md, the Agensi listing and the Product Hunt badge, and that the header names other agents.Docs: shorter, scannable README.
README.mdis now the entry point only: what the plugin does, a quick start, the task flow, a command cheat sheet and links. The detail moved, unchanged in substance, todocs/usage.md,docs/batch.md,docs/configuration.mdanddocs/troubleshooting.md(the troubleshooting table is grouped by topic).tests/skill-text.shreads the Config overrides section and the fixed-ladder statement fromdocs/, and checks that the README links every docs page.
README
YouTrack Flow for AI Agents
Work JetBrains YouTrack issues without leaving your repo. Capture, pick up, branch, plan, open the PR, and walk the state ladder — all from inside Claude Code or any MCP-capable AI agent.
📥 capture → 🌿 branch + plan → 🚀 PR → ✅ done
✨ What it does
Works JetBrains YouTrack issues from inside any
project repo. It is a Claude Code plugin and a portable SKILL.md agent skill:
the same workflow runs in Cursor, GitHub Copilot, Codex CLI and other MCP-capable
agents. No PhpStorm YouTrack plugin needed: it talks to YouTrack's own remote MCP
server.
| Command | What it does | |
|---|---|---|
| 📝 | /youtrack-task new "<free text>" |
Turns your text into a titled, structured issue. |
| 🌿 | /youtrack-task <ID> |
Picks up an issue: branch, state → In Progress, plan written back as a comment. |
| 🚀 | /youtrack-task pr · testing · done |
Checks the independent review, opens the PR and links it, then walks the state ladder. |
| 🌲 | /youtrack-task worktree … |
Runs several tasks at once, each in its own git worktree. |
| 🤖 | /youtrack-task all |
Works through many issues in parallel with an independent reviewer per result. |
⚡ Quick start
1. Check the requirements
- An AI agent that can use MCP servers: Claude Code (plugin route) or another agent (skill route, see step 3)
- YouTrack 2025.3+ (Cloud or Server) with the remote MCP server at
https://<your-host>/mcp giton yourPATHjqon yourPATH— needed for the hook protections; the skill itself works without it- (optional) the
ghCLI forpr - (optional) the
superpowersplugin for planning and implementation
Tip
Behind a reverse proxy or SSO (Authelia, Authentik, oauth2-proxy…)? Allow the/mcppath through with bearer-token auth.
2. Create an API token
YouTrack → your avatar → Profile → Account Security → New token.
Scope: YouTrack. Copy the perm:... value.
3. Install
Pick the route that matches your agent:
| Route | How | |
|---|---|---|
| 🟣 | Claude Code | Plugin: the steps right below. Gives you every feature. |
| 📦 | Agensi | Get the skill from the Agensi listing, then add the YouTrack MCP server to your agent. |
| 🚀 | Product Hunt | Find the product on Product Hunt and follow its links: Image: YouTrack Flow for AI Agents on Product Hunt |
| 🧩 | Cursor, Copilot, Codex, others | Skill folder plus the YouTrack MCP server in the agent's MCP settings: Other agents. |
Claude Code plugin. Export two environment variables in your shell startup
(~/.zshrc, ~/.bashrc), open a new shell and start Claude Code from there:
export YOUTRACK_MCP_URL="https://youtrack.example.com/mcp"
export YOUTRACK_TOKEN="perm:xxxxxxxxxxxxxxxxxxxx"
Then install the plugin and restart Claude Code. /mcp should now list the youtrack
tools.
/plugin marketplace add JtheGunner/youtrack-task
/plugin install youtrack-task@youtrack-task
Note
Outside Claude Code the review gate runs in its weaker, non-independent mode andall --auto-mergestays off. Details in Other agents.
4. Try it
/youtrack-task # list your Open / In Progress issues and pick one
/youtrack-task INFRA-42 # go straight to an issue
Note
Nothing instance-specific is stored in this repo. The bundled.mcp.jsononly references${YOUTRACK_MCP_URL}and${YOUTRACK_TOKEN}.
🧭 How a task flows
/youtrack-task new … create the issue (optional)
│
▼
/youtrack-task ADMIN-6 branch · In Progress · plan · (--implement) code + review
│
▼
/youtrack-task pr review check · push · PR · link on issue · → Testing
│
… PR review + merge …
▼
/youtrack-task done → Done
A worked walk-through with the state changes and comments of each step:
examples/full-lifecycle.md.
On pickup the plugin:
- 📥 Fetches the issue and its comments
- 🌿 Creates the branch
‹prefix›/‹ID›-‹slug›(in a worktree if configured) - 📌 Moves the issue to In Progress and comments
- 📝 Plans the work and, once you approve, posts the plan as a comment
- 🛠️ Implements it only when you pass
--implement, then runs the review gate. The reviewer is read-only; a project can allow more commands for it in.youtrack-task/reviewer-commands(how)
Important
Nothing is pushed until you runpr, and it asks first. Branch names, commits and PR text are always English; YouTrack comments follow the issue's language. Chat replies keep your session's language, or follow the issue's in a fresh session, in every sub-command includingall, and across a compaction.
🧰 Command cheat sheet
/youtrack-task ‹ID› [--implement] # pick up (plan only without --implement)
/youtrack-task new "<free text>" # capture an issue
/youtrack-task comment [‹ID›] <text> # comment on an issue
/youtrack-task log [‹ID›] 1h30m <what> # log time
/youtrack-task pr # push + PR + link + Testing
/youtrack-task link <pr-url> # attach an already-open PR
/youtrack-task testing | done # move the issue forward
/youtrack-task worktree list|prune|take <ID>|remove <ID>
/youtrack-task all [ID ...] [--decide [ask|auto]] [--max N] [--dry-run] [--auto-merge]
- State ladder:
Open → In Progress → Testing → Done, forward-only. - Issue ID:
comment,log,pr,link,testinganddoneread it from your branch name. Pass an ID to override. - Common flags:
--no-move,--no-writeback,--base ‹branch›,--worktree,--no-review,--no-confirm-branch,--no-confirm-pr. All of them are in the flag table.
📚 Documentation
| Page | Covers | |
|---|---|---|
| 🚀 | Usage | Pickup steps, flags, creating issues, parallel worktrees, sub-commands |
| 🤖 | Batch (all) |
Triage, workers, review loop, --decide, --auto-merge, guard hook |
| ⚙️ | Configuration | Config keys with defaults, how the config file is created and kept up to date, extra reviewer commands, what lives where, MCP tools used |
| 🧩 | Other agents | Cursor, Copilot, Codex and the Agensi package: MCP setup and what differs |
| 🩺 | Troubleshooting | Symptoms and fixes, grouped by topic |
🧩 Use it in other agents
skills/youtrack-task/ is a self-contained SKILL.md skill, so the workflow is not
tied to Claude Code. It runs in Cursor, GitHub Copilot, Codex CLI and other
MCP-capable agents, and is listed on
Agensi.io and
Product Hunt. What changes
outside Claude Code (MCP setup, tool names, optional scripts/, the review gate) is
on the Other agents page.
🤝 Contributing
Issues and pull requests are welcome. Every behaviour change also updates the docs, changelog, spec, config example and manual test checklist. See CONTRIBUTING.md for the full checklist.
Every pull request and every push to main runs the ci workflow:
- the test suites in
tests/ - ShellCheck on the hooks and scripts
- a JSON syntax check
- a check that
plugin.jsonandmarketplace.jsonhave the same version
The release workflow runs the same checks before it builds the package. To use ci
as a required check, add it under Settings → Branches → Branch protection.
📜 Changelog
See CHANGELOG.md. Versioning follows SemVer;
each release is also a git tag (vMAJOR.MINOR.PATCH).
📄 License
MIT — see LICENSE.