Skip to content

Operations Global install the parrot managed runtime (reference)

github-actions[bot] edited this page Nov 10, 2026 · 2 revisions

title: "Global install: the parrot managed runtime (reference)"

Global install: the parrot-managed runtime (reference)

The install and first-use guide is docs/getting-started.md; this page holds the detail.

--global installs AI-Parrot once per machine under ~/.parrot (or $PARROT_HOME): a pinned uv, a uv-managed Python 3.12, ~/.parrot/venv (ai-parrot plus ai-parrot-tools at the same version, which wikitoolkit mcp needs) and parrot / wikitoolkit / bookstore on PATH. Your existing ~/.parrot data (wikis.json, library/, skills/, brains/, parrot.db) is never touched; the installer adds bin/, venv/ and python/ and, only when they are missing, env/.env and etc/config.ini (see Credentials). A failed run removes only what it created.

Supported platforms. The global install is officially supported on Linux x86_64 only. Linux aarch64 (ARM servers) is not supported: no wheel is published for it and the installer refuses it. On macOS arm64 and Windows x64 the installer runs but prints a warning. On macOS some dependencies (python-datamodel, navconfig, navigator-api, navigator-auth) publish no arm64 wheel, so the install compiles them and needs a C toolchain. On Windows it currently fails: navigator-auth has no Windows wheel, and uvloop, which proxylists requires, does not run on Windows. This affects a project install on Windows too.

What the installer checks and prints

Before writing anything the installer runs a read-only gate, in this order:

  1. platform: Linux x86_64 or macOS arm64 (Windows x64 for the PowerShell installer); anything but Linux x86_64 only prints a "not officially supported" warning (see above);
  2. a download tool (curl or wget) and a checksum tool (sha256sum or shasum; Get-FileHash on Windows);
  3. git;
  4. a writable PARROT_HOME (its nearest existing ancestor) with at least 2 GiB free;
  5. https://github.com and https://pypi.org/simple/ reachable (skipped under --dry-run).

A failure prints preflight: <what> - fix: <how> and exits before any file is created. A missing python3 is only a warning: the managed runtime brings its own Python, but the SDD workflow commands run python3 snippets. Then the script prints its plan, which reads:

This installer will download uv 0.11.28 from <url> and verify it against <url>.sha256,
create $PARROT_HOME/{bin,venv,python} (a uv-managed Python 3.12 and a venv with <ai-parrot spec>),
and add $PARROT_HOME/bin to PATH via a marker block in your shell profile.
If missing, it writes a commented-out credentials file $PARROT_HOME/env/.env (mode 0600)
and an empty navconfig $PARROT_HOME/etc/config.ini.
A uv already on your PATH is never used or modified. Existing $PARROT_HOME data is never touched.
Prefer not to pipe a download into bash? Fetch <raw>/install-parrot.sh and
<raw>/SHA256SUMS, run 'sha256sum -c --ignore-missing SHA256SUMS', read the script, then run it.

After installing it runs parrot self doctor --runtime-only. Only runtime failures (uv, Python, entry points, PATH) roll the run back; repository readiness never does.

Then it runs parrot self env --init, which creates the credentials file and an empty etc/config.ini when they are missing. A failure here only prints a warning.

Credentials ($PARROT_HOME/env/.env)

ai-parrot reads its credentials through navconfig. For the managed runtime, navconfig's project root is $PARROT_HOME, and it reads env/.env there while ENV is unset, or env/<ENV>/.env when you export ENV=<name>.

The installer writes that file owner-only: mode 0600 on Linux and macOS, an ACL granting only your user on Windows. It lists the variables the bundled LLM clients read (ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, ...), all commented out, so you only uncomment and fill the ones you use.

parrot self env --init creates the file at any time; it is a no-op when the file exists. It also creates an empty $PARROT_HOME/etc/config.ini, which navconfig reads for INI settings. Without that file, every command logs "INI file doesn't exists". An empty file changes no setting. The file is never overwritten by a re-install or self update, and self uninstall keeps it. If you export SITE_ROOT, navconfig uses that directory as its root instead, and reads $SITE_ROOT/env/....

Install (Linux / macOS)

curl -fsSLO https://raw.githubusercontent.com/phenobarbital/ai-parrot/main/scripts/install/install-parrot.sh
curl -fsSLO https://raw.githubusercontent.com/phenobarbital/ai-parrot/main/scripts/install/SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS   # macOS: shasum -a 256 -c --ignore-missing SHA256SUMS
bash install-parrot.sh --global

Install (Windows, PowerShell)

Invoke-WebRequest https://raw.githubusercontent.com/phenobarbital/ai-parrot/main/scripts/install/install-parrot.ps1 -OutFile install-parrot.ps1
Invoke-WebRequest https://raw.githubusercontent.com/phenobarbital/ai-parrot/main/scripts/install/SHA256SUMS -OutFile SHA256SUMS
(Get-FileHash install-parrot.ps1).Hash        # compare with the install-parrot.ps1 line of SHA256SUMS
powershell -ExecutionPolicy Bypass -File install-parrot.ps1 -Global

The installer edits the USER PATH (never the Machine PATH); reopen the terminal afterwards. The -Global switch accepts the same options as the POSIX --global, listed next.

Installer options

Option (PowerShell) Effect
--provider <k>[,<k>...] (-Provider) LLM provider extras of the managed venv: anthropic (default), openai, google, claude-code, codex-code. Run the installer again with another --provider to add one; the venv is reused.
--with <c>[,<c>...] (-With) Runs parrot self add <c> for each component after the runtime is verified (see Components and toolkits). Names are checked before anything is downloaded, under --dry-run too; an unknown name exits 1 with the valid list. A component that fails to install leaves the runtime in place and makes the installer exit 1.
--version <X> (-Version) Pins ai-parrot and ai-parrot-tools to X.
--python <v> (-Python) Python version for the managed venv (default 3.12).
--dry-run (-DryRun) Prints the plan and every command without running anything.

--with and --version only apply to --global; without it they are refused. --venv, --with-wiki and --system-deps are project-mode flags and are refused with --global.

Managing the runtime

parrot self env
parrot self env --init        # create $PARROT_HOME/env/.env and etc/config.ini if missing
parrot self doctor            # runtime + host configs + components (+ SDD readiness when sdd/ exists)
parrot self doctor --sdd      # SDD readiness checks forced
parrot self add scraping
parrot self add scraping --here
parrot self update
parrot self uninstall --yes
  • self env prints the venv the launcher resolves, the rule that picked it, and versions. --init creates the navconfig files instead (see above).
  • self doctor diagnoses the runtime, host configs and toolkit requirements; it exits 1 only when a non-informational check in the selected scope fails. --sdd forces the repository-readiness checks (origin remote, base branch, committed ledger, worktrees ignore, .gitattributes block, ledger git hooks, gh auth, jq and python3 while the installed commands use them, SDD files current; host CLIs informational). --runtime-only is the bootstrap's scope (managed uv, Python, entry points, PATH) and is mutually exclusive with --sdd.
  • self add <component> installs a component's packages (and post-install step) into the managed venv. --here installs into the project venv instead, and is the only way a dependency enters a project venv. See Components and toolkits.
  • self update upgrades ai-parrot and ai-parrot-tools together in the managed venv; --version pins an exact release.
  • self uninstall removes bin/, venv/ and python/; wikis, library, skills, brains, parrot.db, env/ (credentials) and etc/ stay. The # >>> parrot >>> PATH block stays in your shell profile; delete it by hand (on Windows, remove ~\.parrot\bin from your USER PATH).

Components and toolkits

A component is one of the MCP toolkits that ship with ai-parrot. Using a toolkit from a coding assistant takes up to two commands, with different scopes:

  • parrot self add <name> (or --with <name> at install time) installs the toolkit's Python packages and runs its post-install step, in the managed venv. Once per machine.
  • parrot toolkits install <name> --yes adds the toolkit to the repository's .parrot/mcp-toolkits.yaml and registers its MCP server with each host (--host claude|codex|google, repeatable; default: every host detected in the repository). Once per repository. Without a name it opens an interactive picker, which needs a terminal; scripts pass the names and --yes.

parrot toolkits install never installs packages. When a toolkit's packages are missing it prints run: parrot self add <name>; parrot toolkits list shows them as missing and parrot self doctor reports them.

Component What parrot self add installs
scraping, browsing ai-parrot-tools[scraping] (Playwright, Selenium), then python -m playwright install chromium
querysource ai-parrot-tools[db] (QuerySource); the toolkit also needs PG_USER and PG_PWD
bounded-source, lsp, targeted-writer ai-parrot-tools, already part of the base runtime: nothing to add
database-query, memory, sdd-coder nothing: they run on the core package

The SDD flow is not a component: it ships with the base runtime and is enabled per repository with parrot sdd install (next sections).

parrot self add scraping                              # once per machine
cd my-repo && parrot toolkits install scraping --yes  # once per repository

Which venv runs? (launcher resolution)

From the managed venv, parrot / wikitoolkit / bookstore re-exec into, in order: PARROT_VENV; the project venv (a worktree's own .venv first, then the main checkout's); VIRTUAL_ENV; else the managed venv. A project .venv without the command is skipped with one stderr warning per session. Outside the managed venv nothing changes.

Committable host config: --portable

parrot claude install --portable
parrot codex install --portable
parrot google install --portable

Fresh host configurations use portable commands when the managed launcher is on PATH. Otherwise the installer writes baked paths and prints a note explaining how to migrate. Existing managed configurations keep their form until --portable or --no-portable is supplied.

  • Claude Code: .mcp.json entries and the PreToolUse hook use bare commands; no PARROT_PROJECT pin is emitted, the host's cwd scopes the project.
  • Codex: bare wikitoolkit / parrot commands and the relative toolkit --config, no absolute cwd; the project comes from the host cwd or a PARROT_PROJECT you set.
  • Google Antigravity: bare commands with no absolute paths or cwd, which a multi-repo-safe ~/.gemini/config/mcp_config.json requires.

Run installers from the primary checkout. An implicit linked-worktree target is refused; pass --path DIRECTORY to select a worktree deliberately. Toolkit install, uninstall, enable and disable accept this override. Wiki configuration and initial builds remain on the primary checkout while host assets are written into the selected checkout.

The SDD flow in any repository

parrot sdd install --host claude --dry-run
parrot sdd install --host claude
parrot sdd status
git add sdd .claude .gitignore .gitattributes   # what --host claude wrote
git commit -m "sdd: install the SDD flow" && git push   # reserve_ids reads the ledger from git
parrot sdd ids reserve --kind task --count 1 --base-branch dev --label demo
parrot sdd uninstall --dry-run
parrot sdd uninstall --stalled --dry-run    # stale files + stale MCP entries, claude host (add --host codex/google)

reserve_ids needs the base branch (dev above, base_branch in sdd/config.json) on origin, with the seeded sdd/tasks/.id_ledger.json committed and pushed to it. parrot self doctor --sdd checks that the branch exists on origin and that the ledger is tracked by git.

  • Helpers run as parrot sdd <noun> <verb>, never python -m ...: in a global-only install the repo's python cannot import parrot.
  • sdd/.sdd-installed.json records every file parrot wrote with its hash. parrot sdd status reports each asset as missing | current | outdated | edited | foreign, and seeds as seed-present | missing.
  • Upgrade rule: every SDD file the package ships is replaced with the packaged copy — untouched (outdated), edited, and foreign (present but not in the receipt) alike. --keep-edits skips edited and foreign files with a warning. Seeds are never overwritten. (--force is accepted as a deprecated no-op.)
  • parrot sdd uninstall removes every SDD file the package ships, including edited or unrecorded ones; --keep-edits removes only files whose hash matches the receipt. Seeds and state are kept.
  • It also seeds sdd/tasks/.id_ledger.json and an ignore block for the resolved worktree root (default .parrot/worktrees/, or WORKTREE_BASE_PATH) and .parrot/ (parrot's local ledger index and wiki store), writes a marked .gitattributes block (merge=union for the shared ledger log, recorded in the receipt) and installs the four parrot-ledger git hooks; parrot self doctor --sdd checks both. parrot sdd install and parrot self doctor refuse while worktrees remain under the legacy .claude/worktrees/ and print the migration recipe.
  • sdd/config.json fields: base_branch (default dev), staging_branch, hotfix_base (default main), issue_tracker (jira | none), jira_host, reviewer (codex | none), test_command, projects.
  • test_command: required for a repository whose tests are not pytest. When set (non-blank), each task's ## Validation Commands may use the repository's own runner (check_task_graph only warns about a non-pytest command instead of rejecting it), cache_test_contract in /sdd-task and select_tests / test_report in /sdd-done are skipped and the command runs once from the repo root; a non-zero exit blocks the merge and a run that executed zero tests is reported as "not run", never as passing. When null, the ai-parrot selection steps apply and, if the FEAT-699 kernel cannot be loaded or the planned test runner (e.g. pytest) is not installed, they stop with a one-line message. parrot sdd install warns when it is null.
  • sdd/CONVENTIONS.md is a seed with ## Repository layout and ## Project areas; created once, never overwritten. /sdd-insight is not installed.

Antigravity (agy): permission hook and rules

agy runs a shell command without asking only when a permissions.allow rule in the user's agy settings.json matches it; a hook can block or force a confirmation, but cannot approve. parrot sdd install --host google therefore does two things, so that /sdd-spec, /sdd-task, /sdd-brief and /sdd-fix run without a prompt on every command:

  • It registers parrot sdd hooks agy-permissions --hook in the repository's .agents/hooks.json (named hook parrot-sdd-permissions, matcher run_command; commit the file). The hook denies what the dangerous-actions guard denies plus any push to main/master/hotfix_base, and asks for confirmation whenever a managed rule would approve something it cannot classify as routine: find -exec/-delete, sed -i, reads or redirects outside the workspace (symlinks, brace expansion and $(…)/variable paths included), writes into .agents/ or .git/, git push with any flag beyond -u/-q/-v/-n, git commit --amend, a bare pytest, and parrot sdd / wikitoolkit verbs outside the SDD surface. PARROT_ALLOW_DANGEROUS=1 turns it off for a deliberate recovery.
  • Only once the hook is registered, it adds the managed SDD rules (command(find), command(git -C), command(parrot sdd), command(pytest), …) to ~/.gemini/antigravity-cli/settings.json, and to the snap build's copy under ~/snap/antigravity-cli/common/ when that file exists; nothing is created in your home when agy has never run. Your own rules and settings are kept. parrot-sdd-rules.json, next to each settings file, records which rules parrot added and which repositories rely on them: parrot sdd uninstall --host google removes those rules only when no other repository still uses them, and never a rule you already had.

--no-agy-permissions skips both; parrot sdd status --json reports the hook and how many managed rules are missing. agy refuses a command whose hook cannot run, so keep parrot on PATH for agy sessions (the managed launcher or an activated venv); if the policy itself fails it answers "confirm this command" rather than letting the broad rules apply unchecked. ai-parrot's own tracked hook runs scripts/sdd/agy_hook.sh instead, which evaluates the checkout's source with the main checkout's .venv and asks before every command when it cannot. The snap build of agy cannot run the SDD flow at all: its confinement hides the project venv's interpreter and cannot run ssh, so parrot, wikitoolkit and git push fail inside it. Install the official build instead: curl -fsSL https://antigravity.google/cli/install.sh | bash (it installs ~/.local/bin/agy).

Cleaning up stale SDD files

parrot sdd uninstall --stalled removes stale SDD files and stale MCP toolkit entries. It scans all three hosts by default; --host claude (or codex, google) narrows the scan.

Stale file reasons:

  • receipt-orphan: a file recorded in sdd/.sdd-installed.json that the current manifest no longer ships.
  • retired: a known legacy path (e.g. scripts/sdd/**, old worktree rules).
  • sdd-orphan: a file in a host folder whose name starts with sdd- but is not in the current manifest. The sdd- prefix belongs to parrot — team-made sdd-* commands are removed unless --keep protects them.

Stale MCP entry reasons:

  • retired-toolkit: a parrot-<name> entry whose toolkit no longer exists.
  • undeclared: a parrot-<name> entry not enabled in this repository's .parrot/mcp-toolkits.yaml.
  • foreign-repo: a parrot-<name> entry whose --config points to another repository.
  • missing-repo: (Gemini global only) a parrot-<name> entry whose repository folder no longer exists.

Usage:

  • Always run with --dry-run first to preview.
  • --keep GLOB protects files matching the glob; --keep '<file>#<key>' protects an MCP entry by file and key.
  • parrot sdd install reports stale files and points to parrot sdd uninstall --stalled.
  • parrot sdd status shows stale: N and stale mcp: M when present.

Source-checkout guard: in the ai-parrot source checkout, --stalled refuses to delete files (they are the originals). --dry-run still lists them with a note.

CI note: if your CI still runs scripts/sdd/<x>.py, switch to parrot sdd <noun> <verb> or use --keep 'scripts/sdd/<file>' to preserve the old scripts.

Re-registering toolkits: after removing a stale MCP entry, re-enable the toolkit with parrot toolkits install <name>.

Worktree management: parrot sdd worktree list and parrot sdd worktree remove manage feature worktrees. These commands are now shipped to all three hosts (claude, codex, google).

The parrot sdd command tree

Besides install, uninstall and status, parrot sdd groups the packaged helpers by noun (parrot sdd <noun> --help lists the verbs):

  • ids — reserve, check, ledger: TASK/FEAT id allocation and collision checks.
  • worktree — ensure, status, guard: feature/hotfix worktrees and the PreToolUse shared-environment guard.
  • task — close, finalize, graph, heal, review, state: task lifecycle and index health.
  • tests — select, contract, report, e2e-closeout: test selection, Validation Contract, reports and the E2E gate.
  • ledger — the work ledger; a second spelling of wikitoolkit ledger (same commands).
  • launch — worker, brief, fix: start an SDD cycle interactively (parrot sdd launch worker <FEAT-ID> [--tmux]).
  • spec, docs, brief, hooks, closeout — spec/document tooling, briefs, git hooks and closeout helpers.

Version skew

If wikitoolkit (or any wiki code) opens a store written with a newer schema than the running runtime, it refuses with WikiStoreVersionError:

wiki store <db> has schema version <n>, newer than this runtime's <m> (ai-parrot <running>). This store was
written by ai-parrot <release>; upgrade to ai-parrot >= <release>: `parrot self update` (managed runtime) or
`parrot self add --here` (project venv).

The gate compares the store's schema number only. min_runtime_version is stamped and quoted in the message but informational: a store written by a newer release with the same schema opens normally. Runtimes older than this release have no gate. The fix is parrot self update (managed) or parrot self add --here (project venv).

Windows notes

The PowerShell installer needs an x64 Windows with PowerShell 5.1+ (Invoke-WebRequest, Get-FileHash), verifies the uv zip with Get-FileHash, and edits only the USER PATH; a rollback is designed to restore the original value.

Windows status (pending CI verification): the -Global path has not yet run on a Windows runner. CI checks the script's syntax, its -DryRun plan and its pre-write gates under pwsh on Linux; the install itself, the post-install rollback and the USER PATH restore are covered only by an offline harness that is still marked expected-to-fail. They become verified claims when the install-matrix Windows leg passes.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally