# 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.

Devtoolwatch Board, the week of Nov 8–14, 2026. Canonical page: https://index.devtoolwatch.com/tools/pulseaiclub-phi/

## 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](https://index.devtoolwatch.com/categories/coding-agents/)
- **Maintained by:** pulseaiclub (organization, [@pulseaiclub](https://github.com/pulseaiclub) on GitHub)
- **License:** MIT
- **Language:** Go, Rust, TypeScript
- **Repository:** [github.com/pulseaiclub/phi](https://github.com/pulseaiclub/phi)
- **Website:** [pulseaiclub.github.io](https://pulseaiclub.github.io/)
- **Latest release:** [v0.29.7](https://github.com/pulseaiclub/phi/releases/tag/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 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

- 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.

## Usage data (the week of Nov 8–14, 2026)

- Board rank: #102 overall, #55 in Coding agents, momentum score 65
- New GitHub stars per week (last 12 weeks): Aug 23: 53; Aug 30: 78; Sep 6: 86; Sep 13: 72; Sep 20: 58; Sep 27: 7; Oct 4: 4; Oct 11: 37; Oct 18: 116; Oct 25: 142; Nov 1: 151; Nov 8: 61

## phi alternatives

| Rank | Tool | Stars | Downloads/wk |
|---|---|---|---|
| #1 | [DSH Go](https://index.devtoolwatch.com/tools/ccch1mneyyy-dsh-go/) | 22.7k | – |
| #2 | [OpenMausBot](https://index.devtoolwatch.com/tools/milind-soni-openmausbot/) | 22.8k | – |
| #3 | [OpenFilm](https://index.devtoolwatch.com/tools/openfilm-openfilm/) | 7.1k | – |
| #4 | [dsh-superagent](https://index.devtoolwatch.com/tools/deepseek-ai-dsh-superagent-prototype/) | 23.1k | – |
| #5 | [OpenBot](https://index.devtoolwatch.com/tools/copilotkit-openbot/) | 12.3k | – |
| #6 | [OpenBot](https://index.devtoolwatch.com/tools/nightly-labs-openbot/) | 7.8k | – |

## 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](https://github.com/pulseaiclub/phi)
2. [phi README](https://github.com/pulseaiclub/phi/blob/main/README.md)
3. [phi website](https://pulseaiclub.github.io/)
4. [Release v0.29.7 (Nov 5, 2026)](https://github.com/pulseaiclub/phi/releases/tag/v0.29.7)
5. [Release v0.29.6 (Nov 4, 2026)](https://github.com/pulseaiclub/phi/releases/tag/v0.29.6)
6. [Release v0.29.5 (Nov 2, 2026)](https://github.com/pulseaiclub/phi/releases/tag/v0.29.5)
7. [Devtoolwatch Board, the week of Nov 8–14, 2026](https://index.devtoolwatch.com/)
