# Claude Code port

Featyard runs on [Claude Code](https://claude.com/claude-code) as the `featyard` plugin (the repo's `claude/` directory): the same workflow, skills, subagents, guardrails, todo list and kanban board. Its [README](../claude/README.md) says how to install and use it. This document is for those who know featyard on pi: the names on the other side, what behaves differently, and how one project is worked on from both.

## Names

| In pi | In Claude Code |
|-------|----------------|
| `/skill:fy-design`, `/skill:fy-plan`, … | `/featyard:fy-design`, `/featyard:fy-plan`, … |
| `/fy:next`, `/fy:resume`, `/fy:reset`, `/fy:continue` | `/fy-next`, `/fy-resume`, `/fy-reset`, `/fy-continue` |
| `/fy:settings`, `/todo:settings`, `/parallel-work-guardrail:settings` | `/fy-settings`, `/todo-settings`, `/parallel-work-guardrail-settings` |
| `/fy:kanban`, `/fy:kanban-release`, `/fy:auto-agent`, `/fy:auto-worker`, `/fy:auto-designer`, `/fy:auto-pause`, `/fy:auto-stop` | `/fy-kanban`, `/fy-kanban-release`, `/fy-auto-agent`, `/fy-auto-worker`, `/fy-auto-designer`, `/fy-auto-pause`, `/fy-auto-stop` |
| `/fy:archive-artifacts`, `/fy:archive-designs` | `/fy-archive-artifacts`, `/fy-archive-designs` |
| the tools `phase_ready`, `task_ready_advance`, `add_to_backlog` | `mcp__featyard__phase_ready`, `mcp__featyard__task_ready_advance`, `mcp__featyard__add_to_backlog` |
| the subagent `fy-implementer` | the agent type `featyard:fy-implementer` |

## What differs from pi

- **Questions** are Claude Code's own. A question with more than four options comes in pages and takes a typed number. A note for a choice is typed under "Other", then the choice is made.
- **The guardrail's question with a time limit** (`ask-block-15m`, `ask-allow-15m`) is a pane that counts the quarter of an hour down and goes with it, on a terminal of 144 columns or more while the prompt is empty. On a narrower terminal it is Claude Code's own question: it stays on screen after the guardrail decided, and answering it then changes nothing.

  ![the guardrail's question with a time limit](../claude/assets/images/timed-question.png)

- **A skill the plugin starts** (a phase's, the next task's, the one after a compaction) shows as the command's line, `❯ /featyard:fy-plan`, with `● featyard: /featyard:fy-plan started by the plugin` under it. pi shows `[featyard] skill fy-plan`.
- **A line above the prompt wider than the terminal** (a long todo item) is cut at the edge; pi wraps it.
- **`/rewind`** does not roll featyard's state back. Use `/fy-resume`, `/fy-next` or `/fy-reset`.
- **A session started with `--fork-session`** does not carry the workflow and the todo list over from the session it was forked from: take the feature up with `/fy-resume`. A fork made inside a running session carries them.
- **A cleared conversation** asks whether to continue the active workflow or reset it, as in pi. One cleared while the plugin is unavailable starts without the question: take the feature up with its skill or `/fy-resume`.
- **After the plugin's process was started anew** (the line above the prompt said `featyard unavailable` for a while), the feature and the todo list are where they were. Run `/fy-continue` when the workflow does not go on by itself; an auto-agent's loop and the board's server are started again with their commands.
- **A test run Claude Code moves to the background** gives featyard no result: the verification stays open until the tests ran again in the foreground, with a longer timeout.
- **Reviewers dispatched as forks** run on the session's model. A model set for a subagent applies where the dispatch mode is `new`.
- **Headless sessions** (`claude -p`) do not compact at workflow boundaries, and questions take their defaults.
- **Not included:** the settings of `avtc-pi-subagent` for timeouts, concurrency and depth (Claude Code runs the agents), and `avtc-pi-unstuck`.

## Settings and data

- **Settings** are kept in Claude Code's folders, and pi's settings files are not read. The [configuration reference](CONFIGURATION.md#claude-code-port) has the files and the model routing.
- **The data root** (the artifact store behind `.featyard/`, its archive and the kanban data) is `featyard/` in Claude Code's config folder, not `~/.pi/featyard`.

## A project both pi and Claude Code work on

- When the project's `.featyard` link already points into pi's root `~/.pi/featyard`, the plugin takes that root: pi and Claude Code then share one store, one feature state and one board. A note names the adopted root each time the plugin starts.
- Keep both installs on one featyard version.
