npm package
@earendil-works/pi-coding-agent review
Consider @earendil-works/pi-coding-agent for a terminal coding workflow when you can control its environment and review its output.
A coding assistant's working folder does not contain its file access. @earendil-works/pi-coding-agent 1.8.0 is a coding-agent CLI with read, bash, edit, write tools and session management. Its documented options let you select tools, process a prompt and exit, or continue saved work. These controls shape a task, but enabled tools still use the operating-system permissions of the Pi process.
Consider @earendil-works/pi-coding-agent for a terminal coding workflow when you can control its environment and review its output. Begin by inspecting the installed help, then try a file-inspection task inside an appropriate external boundary. The supplied evidence supports the documented controls, not a claim about coding-task quality.
Answers from our run
@earendil-works/pi-coding-agent or @earendil-works/pi-agent-core: which should you use?
@earendil-works/pi-agent-core: Consider @earendil-works/pi-agent-core when you need a general-purpose agent with transport abstraction, state management, and attachment support. The supplied 1.4.0 registry description establishes that scope; it does not establish feature parity with the coding CLI or compatibility with its 1.8.0 dependencies. Consider @earendil-works/pi-coding-agent for a terminal coding workflow when you can control its environment and review its output.
When should you not use @earendil-works/pi-coding-agent?
You require approval before every tool call. Pi's security guide says it does not ask before every call.
Use it if
Skip it if
Setup reality
The published manifest declares Node >=22.19.0 and maps the pi command to dist/bundle/cli.js. The examples below are unexecuted shell illustrations based on the supplied v1.8.0 manifest, argument parser and built-in help. No installation, provider authentication, model call or coding-task measurement is supplied for this guide. Accepted arguments alone do not establish successful runtime behavior.
Decide where Pi will run before choosing tools. The security guide says Pi can read, change and execute files with the permissions of the account that started it. Extensions and child processes share those permissions unless an external boundary restricts them. A container, virtual machine or restricted account can limit exposure. Provide only the files, credentials and services the task needs. Version control helps recovery and diff review; it does not contain a shell command.
Project trust controls resource loading. --no-approve skips trust-gated project resources for this run, but does not restrict tool access. Context files still load unless context discovery is disabled. Pi also reads the project's sessionDir setting before resolving project trust, so declining trust does not undo that lookup.
A plain --tools list keeps MCP tools unless an entry starts with mcp__. The inspection examples therefore also use --no-mcp and --no-extensions. The help says --no-mcp disables built-in MCP support, including server connections and MCP tools. Explicit -e paths still work with --no-extensions, so inspect extension code before adding one. These options narrow the configured tools and resources; operating-system permissions remain a separate decision.
Choose session storage deliberately. The help describes --continue as continuing the most recent session for the current directory and --no-session as an ephemeral session that is not saved. That session option does not govern files you create through shell redirection. Review sessions privately before exporting or sharing them because their contents can include credentials and source files.
The v1.8.0 changelog limits the getShellConfig() commandTransport: "env" change to Git Bash and other bash.exe on Windows, excluding WSL launchers. When commandTransport is "env", extensions spawning that shell must pass the command through the environment variable named by SHELL_COMMAND_ENV_VAR rather than append it to args. Separately, SessionManager.open(path) without sessionDir now places new sessions created by /new, /fork or /clone in the default directory for the session's cwd. Pass the folder as sessionDir to retain placement in the opened file's folder.
The rating notes assess documentation evidence: documented interface behavior and breaking changes for API stability; explanation of permissions and controls for documentation quality; recorded release work for maintenance; and declared integration points for ecosystem. No custom numerical scale is assigned here. Runtime reliability, adoption and third-party compatibility remain unmeasured; the notes do not establish numerical ratings for those properties. Numerical scoring belongs to the site's scoring code.
For the lower-level integration choices, see the supplied guides to pi-agent-core and pi-ai. Their supplied registry descriptions are for version 1.4.0, while this CLI's manifest declares dependencies on version 1.8.0 of both packages. The comparison below concerns their described roles, not compatibility between those versions.
Patterns
Install the specified release install-pinned-cli
npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.8.0
pi --versionUnexecuted installation illustration. The manifest requires Node >=22.19.0 and declares the pi executable. The version flag is documented. This guide does not establish that an installation with lifecycle scripts disabled completes successfully.
Inspect the installed help inspect-options
pi --no-extensions --no-mcp --no-approve --no-context-files --helpThe supplied parser accepts these flags. The help describes their intended behavior. This illustration does not verify startup behavior, model access or isolation; no explicit -e extension path is included.
Select file-inspection tools inspect-project
pi --no-extensions --no-mcp --no-approve --no-context-files \
--tools read,grep,find,ls --print \
'Explain how this repository runs its tests. Do not change files.'Unexecuted illustration using documented tool names. A plain --tools list keeps MCP tools unless an entry starts with mcp__. --no-mcp disables built-in MCP support, while --no-extensions disables extension discovery and built-in extensions. File access still uses the process account's permissions.
Select JSON output mode select-json-mode
pi --no-extensions --no-mcp --no-approve --no-context-files \
--no-tools --no-session --mode json --print \
'List questions to ask before changing a public API.'The parser accepts json as an output mode, and the help describes --print as processing a prompt and exiting. This unexecuted illustration makes no claim about JSON event framing, record structure or how an integration should consume the output.
Continue with explicit tool selection continue-session
pi --continue --no-extensions --no-mcp --no-approve \
--no-context-files --tools read,grep,find,ls \
'Review the previous discussion before proposing another change.'The help says --continue selects the most recent session for the current directory. Use the intended directory and review the prior conversation. The flags state this invocation's requested restrictions; they do not undo earlier actions.
Name an inspection session name-session
pi --name 'Review test setup' --no-extensions --no-mcp \
--no-approve --no-context-files --tools read,grep,find,ls \
'Explain the test configuration.'The help defines --name as setting a session display name. It does not describe that name as a session ID or permission rule. This unexecuted invocation does not request an ephemeral session.
Request an ephemeral session avoid-session-storage
pi --no-session --no-tools --no-extensions --no-mcp \
--no-approve --no-context-files --print \
'What should a reviewer check in an error-handling change?'The help describes --no-session as not saving the session and --no-tools as disabling all tools by default. These options do not establish a provider's retention policy or deletion of terminal output. The example has not been executed.
Append review instructions append-review-instructions
pi --no-extensions --no-mcp --no-approve --no-context-files \
--tools read,grep,find,ls \
--append-system-prompt 'Cite file paths. Separate observations from guesses.' \
--print 'Explain the public entry points.'The help says --append-system-prompt appends text or file contents and can be repeated. The prompt requests an answer format; it does not establish factual accuracy or enforce operating-system permissions. This is an unexecuted illustration.
Export a session for private review export-private-session
pi --no-extensions --no-mcp --no-approve --no-context-files \
--export ./session.jsonl ./session-review.htmlReplace session.jsonl with an existing session file. The help documents --export <file> [output] as exporting a session to HTML and exiting. No export was run for this guide. Review sessions privately because they can contain prompts, file contents, tool arguments, command output and exposed credentials.
Alternatives
| Package | Registry | Pick it when |
|---|---|---|
| @earendil-works/pi-agent-core | npm | Consider @earendil-works/pi-agent-core when you need a general-purpose agent with transport abstraction, state management, and attachment support. The supplied 1.4.0 registry description establishes that scope; it does not establish feature parity with the coding CLI or compatibility with its 1.8.0 dependencies. |
| @earendil-works/pi-ai | npm | Consider @earendil-works/pi-ai when you need a unified LLM API with automatic model discovery and provider configuration. The supplied 1.4.0 registry description supports that role, rather than a comparison of coding-task performance or CLI features. |
More ai / ml guides
How this guide is made: grounded in the library's documentation, release notes, changelog, and issue history, on a fixed rubric — not a hands-on install of every release. The 50 most-downloaded entries are additionally install-verified in clean containers. Corrections: contact the desk.