Devtoolwatch BoardGet it every Monday

phi review

phi is a terminal coding agent harness written in Go, with sub-agents, anchored edits, a permission gate, MCP support, and in-TUI diff review.

Updated Nov 15, 2026. Review written Nov 8, 2026 from the project's own sources; usage data refreshed every Monday.

TL;DR

phi is a minimal terminal coding agent harness in Go that works with OpenAI, Anthropic, and Gemini models. It is for developers who want a TUI agent or a headless agent for scripts and CI. phi stands out for anchored hashline edits, isolated sub-agents, a permission gate, and MCP tool schemas that stay out of the model prompt.

phi at a glance

Category
Coding agents
Maintained by
pulseaiclub (organization, @pulseaiclub on GitHub)
License
MIT
Language
Go, Rust, TypeScript
Repository
github.com/pulseaiclub/phi
Website
pulseaiclub.github.io
Latest release
v0.29.7 on GitHub, Nov 5, 2026
First published
Aug 3, 2026

What phi does

  • phi gives the model read, write, edit, and bash tools, plus grep, find, and ls, to carry out your requests.
  • phi edits files through @file#TAG and LINE#HASH anchors instead of rewriting whole files, and it rejects stale anchors.
  • phi spawns sub-agents as isolated jobs, so their work does not fill the parent context.
  • phi gates tools through permission modes and bash allow, ask, or deny rules before destructive actions run.
  • phi's /diff command opens a full-screen git review where you leave line notes and send them to the agent.
  • phi connects to MCP servers without putting their tool schemas into the model prompt.
  • phi runs one agent loop headlessly with phi run, and it can emit JSONL events to stdout.

How it works

phi runs as a terminal TUI or headlessly through phi run. It reads ~/.phi/config.yaml, and environment variables override that file. The explicit api field routes requests to OpenAI, OpenAI-compatible, Anthropic, or Gemini providers. Sessions persist per working directory as JSONL. phi extends through SKILL.md skills, MCP servers, and native PXB extension binaries.

How to install and start using phi

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/pulseaiclub/phi/main/scripts/install.sh | bash

Windows (PowerShell 5.1+)

irm https://raw.githubusercontent.com/pulseaiclub/phi/main/scripts/install.ps1 | iex

From source

make install

Requirements

  • phi needs an API key and model from OpenAI, Anthropic, Gemini, or an OpenAI-compatible provider.
  • phi runs on macOS and Linux, and on Windows with PowerShell 5.1+.
  • Building phi from source requires Go 1.26.3+.
  • The /diff and /branch features require a git repository.

First steps

  1. Run phi config to open the config editor and add a model with its API key.
  2. For a one-off run, set PHI_MODEL and PHI_API_KEY as environment variables instead of editing the config.
  3. Run phi to start the TUI, then type @ to mention files or / to pick slash commands.
  4. Run phi run -p with a prompt to execute one agent loop without the TUI.

Who phi is for

  • Developers who prefer a terminal-first coding agent over a web or editor app.
  • Teams running agents in CI or scripts through headless mode with JSONL output and exit codes.
  • Developers who switch between OpenAI, Anthropic, and Gemini models.
  • Users who want explicit permission control over agent shell commands.

Limitations to know

  • phi denies permission ask decisions in headless mode, so arbitrary shell commands require --yolo for that run.
  • phi has no built-in external HTTP fetch. Fetching is available only through a configured MCP server.
  • phi keeps /diff line notes in memory only. Switching diffs drops them.
  • phi requires an explicit api field for Anthropic models and does not guess the provider from the name or URL.

Is phi growing? Usage data

In the week of Nov 8–14, 2026, phi ranked #102 on the Devtoolwatch Board and #55 in Coding agents, with a momentum score of 65 out of 100.

New GitHub stars per week for phi12 weeks from Aug 23, 2026: 53, 78, 86, 72, 58, 7, 4, 37, 116, 142, 151, 61 new stars, an average of 72 a week.Aug 23week of Nov 8
New GitHub stars per week for the last 12 weeks, from GitHub's stargazer history (today's stargazers by the week they starred).
Show the weekly numbers
New GitHub stars per week for phi
Week ofNew stars
Aug 23, 202653
Aug 30, 202678
Sep 6, 202686
Sep 13, 202672
Sep 20, 202658
Sep 27, 20267
Oct 4, 20264
Oct 11, 202637
Oct 18, 2026116
Oct 25, 2026142
Nov 1, 2026151
Nov 8, 202661

The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.

phi alternatives

Other AI coding agents on the Board in the week of Nov 8–14, 2026, by momentum:

Coding agents ranked by momentum, the week of Nov 8–14, 2026
RankToolStarsDownloads/wk
#1DSH GoDSH Go is an unofficial Android app for DeepSeek Harness that runs DSH on your phone or connects to DSH on a computer.22.7k–
#2OpenMausBotOpenMausBot is an open-source desktop chat app where each contact is a local Claude, Codex, or Grok CLI agent with its own computer.22.8k–
#3OpenFilmOpenFilm is an open source AI video agent that lets coding agents write films as web pages, with a local browser editor called Studio.7.1k–
#4dsh-superagentdsh-superagent is a research-prototype proactive coding agent for one GitHub repository, packaged as a bundle for DeepSeek Harness.23.1k–
#5OpenBotOpenBot is an open-source, self-hosted template for AI coworkers that each get their own browser, files and granted tools, with every…12.3k–
#6OpenBotOpenBot is a local-first desktop workspace for persistent AI teammates such as Codex, Claude, and Grok, each with its own workspace.7.8k–

All AI coding agents, ranked

Recent phi releases

phi FAQ

Is phi free and open source?

Yes. phi's source code is on GitHub (pulseaiclub/phi) under the MIT license, so you can use it for free.

How do I install phi?

Run curl -fsSL https://raw.githubusercontent.com/pulseaiclub/phi/main/scripts/install.sh | bash. The install section above has the other options from the project's README.

Is phi still maintained?

Yes. The pulseaiclub/phi repository was last updated on Nov 8, 2026, and the latest release, v0.29.7 on GitHub, came out on Nov 5, 2026.

How popular is phi?

phi has 1k GitHub stars as of Nov 15, 2026. It gained 61 new stars in the week of Nov 8–14, 2026, against a 12-week average of 72 a week. That made it #55 among AI coding agents on the Devtoolwatch Board.

What are the best alternatives to phi?

Other AI coding agents on the Devtoolwatch Board in the week of Nov 8–14, 2026, by momentum: DSH Go (#1), OpenMausBot (#2), OpenFilm (#3), dsh-superagent (#4), OpenBot (#5). The alternatives table above has their numbers.

Which models does phi support?

phi supports OpenAI, OpenAI Responses, Anthropic, Gemini, and OpenAI-compatible APIs. The explicit api field in config.yaml selects the provider. Built-in presets exist for models such as deepseek-flash and gemini-2.5-flash. You can switch models at runtime.

Can phi run without the interactive TUI?

Yes. phi run -p "…" runs one agent loop headlessly. Human logs go to stderr, and --jsonl sends machine-readable events to stdout. Exit codes are 0 for success, 1 for runtime or LLM errors, 2 when max rounds are reached, and 3 for config or usage errors.

How does phi control what the agent can do?

phi uses permission modes: interactive, readonly, autopilot, headless-strict, and allow-all. Bash rules can be set to ask, allow, or deny, and deny takes priority over ask, which takes priority over allow. The code viewer also refuses sensitive paths such as ~/.ssh and .env.

Does phi keep conversation history?

Yes. phi persists sessions automatically per working directory under ~/.phi/session/ as JSONL trajectories. List them with phi sessions or /sessions. Resume headlessly with phi run --session or --continue-last.

How do sub-agents work in phi?

phi sub-agents run as isolated jobs, so their work stays out of the parent context. Job artifacts are stored under ~/.phi/jobs/. You can assign per-role models for explore, review, and worker, or disable sub-agents with agents.enabled: false.

How can I extend phi?

phi loads skills from SKILL.md files in ~/.phi/skills/ and injects them into the agent's context. It also runs native extension binaries over the PXB protocol, which can add tools, commands, and event handlers. SDKs exist for Go, Rust, and TypeScript.

Sources

  1. pulseaiclub/phi on GitHub
  2. phi README
  3. phi website
  4. Release v0.29.7 (Nov 5, 2026)
  5. Release v0.29.6 (Nov 4, 2026)
  6. Release v0.29.5 (Nov 2, 2026)
  7. Devtoolwatch Board, the week of Nov 8–14, 2026

phi README badge

Maintainers can show the tool's weekly Board rank in their README:

Devtoolwatch badge for phi

[![Devtoolwatch](https://index.devtoolwatch.com/badge/pulseaiclub-phi.svg)](https://index.devtoolwatch.com/tools/pulseaiclub-phi/)

How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].