Troubleshooting
pysar: command not found
- Re-run the install script, or download a release binary.
- Ensure the install directory is on
PATH(~/.local/binis common). - Check for a shadowing binary:
which -a pysarandpysar --version.
Wrong or old version
Release installs often land in ~/.local/bin. A go install binary may land
in $(go env GOPATH)/bin. Whichever directory appears first on PATH wins.
Host flags rejected together
--claude, --cursor, and --codex are mutually exclusive. Pass only one.
MCP server not connecting
- Confirm
pysaris onPATHinside the host (same binary the terminal uses). - Claude: check project
.mcp.jsonand that Claude Code loaded the server. - Cursor: check
.cursor/mcp.json, enable thepysarserver if prompted, and confirmPYSAR_PROJECT_ROOTis${workspaceFolder}. - Codex: check
.codex/config.tomlfor[mcp_servers.pysar],PYSAR_PROJECT_ROOT = ".", anddefault_tools_approval_mode = "approve". - From the project directory, you can smoke-test the binary with
pysar --help(stdio MCP is started by the host, not by a long-running daemon you manage yourself).
Codex keeps asking to allow pysar MCP tools
Shipped Codex config sets default_tools_approval_mode = "approve" (Codex
skip-review dial for pysar MCP tools; auto is not enough when tools lack
annotations). Refresh with:
pysar init --codex --forceProject .codex/config.toml applies only when Codex treats the project as
trusted. If prompts continue after refresh, trust the project in Codex and
retry. Untrusted projects may still prompt per tool.
Skills missing (/ps or $ps unknown)
Re-run init with --force for your host so global skills refresh:
pysar init --force
# or
pysar init --cursor --force
pysar init --codex --forceRestart the host agent after skill install so it rediscovers ~/.claude/skills,
~/.cursor/skills, or ~/.agents/skills (Codex).
Cursor keeps asking to approve MCP tools
Expected for now: Cursor scaffold does not include a Claude-style settings
allowlist. Approve the pysar tools when prompted, or adjust Cursor’s MCP
permissions for the project.
Piece files not appearing under .pysar/pieces/
- Confirm the MCP server is connected for this workspace.
- Skills must use MCP save tools — not manual writes into
.pysar/. - Check the agent’s tool errors for
save_*_bundle/ path anchoring failures.
Export missing or stale
- Export needs at least a draft for the piece.
/psexports at the end of a successful run; a stopped--reviewrun may not have reached export yet.- Re-run export (or finish
/ps); re-export overwrites the previous root file.
Still stuck
Open an issue at github.com/malyshev/pysar
with pysar --version, host (Claude or Cursor), and the exact command or
skill you ran.