@fiftth/fiftth-cli
v1.1.5
Published
CLI for the Fiftth , start orchestrating your AI engineering workflow
Maintainers
Readme
Fiftth CLI
. . . ....The official CLI for Fiftth.
Fiftth CLI is the entrypoint for the full Fiftth execution flow: authenticate, select a workspace, register local repositories, validate planning context, recover task-linked branches, and launch Nexus orchestration for agent execution.
How The Flow Works
. . . .... 1. Shell setup
You install the CLI, authenticate with Fiftth, select a workspace, choose a default model, and register the local repositories that belong to your tasks.
This can be done from any directory. The CLI persists its own configuration and repository mappings, so ftt checkout does not require you to be inside a git repository.
. . . .... 2. Planning flow
Inside a repository, ftt planning-context validates whether the current repo is actually linked to the selected task before you create or refine a PRD.
The typical planning sequence is:
write-prdto pressure-test the design and produce the PRDprd-to-issuesto split the PRD into runnable GitHub issues with priority and dependency metadata
. . . .... 3. Checkout flow
ftt checkout
|
v
+-----------------------+
| resolve active task |
+-----------------------+
|
v
+-----------------------+
| load mapped repos |
+-----------------------+
|
v
+-----------------------+
| validate repo paths |
| git state + PRDs |
+-----------------------+
|
v
+-----------------------+
| move task to |
| IN_PROGRESS |
+-----------------------+
|
v
+-----------------------+
| wait for target |
| branches |
+-----------------------+
|
v
+-----------------------+
| start Nexus |
| orchestration |
+-----------------------+When you run ftt checkout, the CLI:
- Resolves the selected task from the current workspace
- Loads the locally mapped repositories for that task
- Verifies each mapped path exists, is a git repository, and has a clean working tree
- Validates that each linked repository has an unambiguous PRD for the task
- Moves the task to
IN_PROGRESSwhen needed - Polls execution stages until the target branches are available
- Starts Nexus to execute the agent pipeline against the recovered branches
. . . .... 4. Nexus orchestration
Nexus lives under .fiftthnexus/ and is started by ftt checkout after branch recovery.
At runtime, Nexus:
- Uses
gh authfrom the host machine for GitHub access - Ensures required GitHub labels exist in each repository
- Builds the
copilot-agentDocker image automatically if it is missing - Resolves the issue dependency graph for the selected PRD or task scope
- Creates isolated worktrees when worktree mode is enabled
- Runs the three-stage pipeline for each runnable issue in Docker
- Repeats until there are no runnable issues left or the queue is exhausted
The three execution stages are:
PLAN: analyze the issue context and produce an execution planIMPLEMENT: apply the code changes in the isolated workspaceREVIEW: run a lightweight final review pass focused on concrete blockers
Requirements
- Node.js 18 or newer
- Git available in your shell
- Docker available locally for checkout and Nexus execution
- GitHub CLI (
gh) authenticated for repositories that will run Nexus
Install
npm install -g @fiftth/fiftth-cliLocal development link
npm install
npm run build
npm linkAfter linking, both commands should work:
fiftth --help
ftt --helpTo remove the global development link later:
npm run unlinkQuick Start
- Authenticate with Fiftth
fiftth loginFor CI or non-interactive shells, you can pass a token directly:
fiftth login --token <token>- Choose a workspace
fiftth useYou can also switch directly by slug or name:
fiftth use my-workspace- Choose the default model used by checkout and Nexus
fiftth modelOr set it directly:
fiftth model gpt-5.4- Install the bundled planning skills for your preferred agent runtime
fiftth skillsThis command prompts you to install write-prd and prd-to-issues into one of these user directories:
The files are installed relative to the directory where you run the command:
- GitHub Copilot:
./.github/agents - Claude Code:
./claude/skills
- Register the local repositories used by your task-linked execution flow
fiftth repo add api ~/dev/api
fiftth repo add mobile C:\Users\you\Desktop\Owner\repo- If you are about to create or refine a PRD from inside a repository, validate planning context first
fiftth planning-context- Run checkout from any directory to start the orchestration flow
fiftth checkoutTo target a specific task directly:
fiftth checkout <taskId>To keep the main repository checkout untouched and let Nexus branch from a worktree instead:
fiftth checkout --worktreeTo stream verbose Nexus logs during checkout:
fiftth checkout --verbose- If you need to verify GitHub authentication for Nexus on the host machine
gh auth statusCommands
General
fiftth --helpfiftth --versionfiftth configfiftth modelfiftth model <name>fiftth skillsfiftth skills <agent>
Authentication
fiftth loginfiftth login --token <token>fiftth login --host <host>fiftth login statusfiftth login logout
To use fiftth login --token <token>, you must first sign in on the Fiftth and generate your token there.
Workspace
fiftth usefiftth use <workspace>
Repository Registry
fiftth repo add <repoName> <path...>fiftth repo listfiftth repo remove <repoName>
Tasks and Checkout
fiftth planning-contextfiftth planning-context <taskId>fiftth planning-context <taskId> --jsonfiftth checkoutfiftth checkout <taskId>fiftth checkout --worktreefiftth checkout --verbose
Configuration
Main CLI configuration is saved to:
~/.fiftth/config.json
The file stores the current host, access token, selected workspace, workspace id, and preferred model.
Current defaults:
- Host:
https://www.fiftth.com/api - Model:
gpt-5.4
Supported model values:
gpt-5.4gpt-5.4-minigpt-5.3-codexclaude-sonnet-4.6claude-opus-4.6claude-haiku-4.5
To inspect the current resolved shell configuration:
fiftth configNotes
checkoutrequires local repo mappings for linked repositories (fiftth repo add ...)checkoutrequires a clean git working tree in every linked repositorycheckoutrequires Docker available on the host machinecheckout --verbosekeeps the normal preflight and then streams detailed Nexus logs once orchestration startsplanning-contextis the safe preflight for skills and manual planning flows: it validates that the current git repository is one of the repositories linked to the selected task and exits non-zero when it is notplanning-contextis the command that depends on the current directory being a git repository;checkoutdoes not have that requirement- if no
taskIdis provided,checkoutprompts for an active task interactively - with
checkout --worktree, the CLI fetches the target branches, cleans up previous Nexus worktrees for the task, and leaves the main repo checkout unchanged before starting Nexus - after local checkout succeeds,
checkoutmoves the task toIN_PROGRESS, polls/api/tasks/:taskId/execution-stagesevery 5 seconds, and starts Nexus once the target branches are available planning-context --jsonis intended for agent and automation flows and exits with code1when the current repository is not part of the selected task- the orchestrator uses the host
ghauthentication state and injects that token into each isolated agent container
License
MIT
