Skip to content

Troubleshoot installation

Everything on this page happens before you have done any work in Fito: the session will not start, the commands are not there, a package is too old, or the login will not finish. Problems that appear while you are working a case or authoring content are on their own pages, linked at the end.

A healthy install looks like this, and each part has its own section on this page:

  • Exactly one Fito install, from npm. pi list shows npm:fito-tui, and no clone of the Fito repository.
  • pi-subagents 0.68.0 or newer, for the twelve commands that use a worker persona.
  • A Fito package the Fito server still accepts.
  • On Windows, Git for Windows, which brings Git Bash, and pi started from Windows Terminal, PowerShell or cmd.

Type /fito- in the session. If the completion list offers nothing, Fito is not loaded.

  1. Leave the session.

  2. Check that the install recorded:

    Terminal window
    pi list

    If the list does not show npm:fito-tui, install Fito, as in Install and prerequisites.

  3. If the list shows it, run pi config and turn Fito’s resources on again. pi config turns a package off without removing it.

  4. Start pi again and type /fito- a second time.

Confirm it worked: the list offers /fito-login.

pi refuses to start: Tool "fito_knowledge_fetch" conflicts with …

Section titled “pi refuses to start: Tool "fito_knowledge_fetch" conflicts with …”

The session does not start at all, and the error names two absolute paths and no remedy.

pi loads Fito twice. The usual cause is a clone install of Fito beside the npm install, because earlier versions of the install page installed Fito from a clone. pi treats a duplicate tool registration as a fatal extension-load error, and raises it before it checks your credentials. The session dies rather than starting degraded.

One of the two paths in the error is in your clone of the Fito repository. That is the install to remove. The steps are in Move off a clone install.

Unknown tool: subagent, or /run is not recognised

Section titled “Unknown tool: subagent, or /run is not recognised”

pi-subagents is not installed. Twelve Fito commands hand their work to a worker persona and reach it through that package — the tutor and the rubric scoring among them.

Terminal window
pi install npm:pi-subagents

Then restart pi.

The same cause has a quieter symptom: Fito’s worker personas are declared for pi-subagents in the package manifest, so without that package nothing loads them. The session says so at startup.

Your pi-subagents is older than the version Fito’s worker personas need. Fito checks it as pi starts, and shows:

Fito needs pi-subagents 0.68.0 or newer. Run: `pi update --extensions`

To update it, run this in your shell, then start pi again:

Terminal window
pi update --extensions

Confirm it worked: the message does not appear when pi starts.

The Fito server accepts a Fito package only from a minimum version up. Fito asks the server as pi starts, and the server also refuses each command that an older package sends. The message names your version and the server’s minimum, for example:

Your Fito TUI 0.2.1 is too old. The minimum is 0.3.0. Update it with: `pi update --extensions`

To update, run this in your shell, then start pi again:

Terminal window
pi update --extensions

If the message comes back, Fito is probably a clone install, which pi update skips. Move off it, as in Move off a clone install.

This message appears on Windows only. Fito’s commands run in pi’s Bash, and the scoring runs each rubric command with sh, so Fito needs a Bash on Windows too. Fito checks it as pi starts, and shows:

Fito needs Bash, which pi did not find. Set `shellPath` in pi's settings.json to a bash.exe, or install Git for Windows, which brings Git Bash: https://git-scm.com/download/win

To repair it, install Git for Windows, then start pi again. If you keep Bash somewhere else, set shellPath in pi’s settings.json to that bash.exe instead.

Confirm it worked: the message does not appear when pi starts.

pi opens, then text such as ;0;rgb:0000/0000/0000 appears in its input box, or an editor opens that you did not ask for. In the Git Bash app window, pi reads the terminal’s answers to its own questions as typed text.

Close that window, and start pi from Windows Terminal, PowerShell or cmd instead. pi still runs Git Bash by itself whenever it needs it.

/fito-login opens a browser at the address in FITO_URL. When that variable is unset, it opens the hosted Fito, at https://fito.codes. So the login page opens on the wrong Fito when FITO_URL names another Fito, or when it is unset and you meant a local one.

pi’s footer names the Fito the TUI talks to. While pi runs, its last line shows the Fito version you installed, the API address every Fito call uses, and the account you are logged in as on that Fito:

▂▄▆ Fito <version> · API https://fito.codes/api · logged in as <username>

Without a login on that Fito, the line ends not logged in. The account comes from your saved login, and the line changes as soon as a login or logout command ends.

The address in front of /api is the one /fito-login opens. To see where it comes from, check the variable in the shell you start pi from:

Terminal window
echo "$FITO_URL"

In PowerShell, run $env:FITO_URL. In cmd, run echo %FITO_URL%.

Set it to the Fito you mean, or unset it for the hosted Fito, then start pi again. The full list is on TUI configuration.

/fito-login waits five minutes for the browser to hand the tokens back, then gives up. Nothing is broken by a timeout — run it again.

What you see What to do
The browser does not open The terminal prints the URL. Open it yourself
You signed in, and the terminal is still waiting Return to the tab; it tells you when the handoff is done
The page says The Fito CLI is not logged in Your sign-in worked, and the page could not reach the terminal: the browser blocked the call, or the command stopped waiting. Allow Apps on device for the Fito site in your browser’s site settings, then run /fito-login again. Or run /fito-login-by-device
No browser can reach this machine — over SSH, or in a VM Run /fito-login-by-device, and approve the code in a browser anywhere
It timed out Run /fito-login again
✗ The code expired. Run /fito-login-by-device again. Run it again, and approve the new code within ten minutes

Confirm a login worked:

✓ Logged in. Credentials saved to ~/.fito/credentials-fito.codes (mode 0600).

On Windows, the line names no mode.

If a later command still asks you to log in, check that FITO_URL names the Fito you logged in to: each Fito has its own login. If it does, the credentials file may be half-written — a malformed file is read as not logged in rather than as an error. Run /fito-login again to rewrite it.

Collect these before asking for help. Together they identify every cause on this page:

  • The output of pi list.
  • The folder you started the pi session in.
  • The exact first error line, including any paths it names.
  • Whether FITO_URL is set, and to what.
  • The Fito line in pi’s footer, with the version, the API address and the account.