Skip to content

API Reference parrot.sdd.scripts.worktree_baseline

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.sdd.scripts.worktree_baseline

View source

Runnable baseline checkout of a base ref, with the compiled extensions in place.

Agents that need to know whether a failure "already happened on dev" used to improvise a baseline (git archive, git worktree add --detach, git show). Such a tree carries no gitignored .so files, so import parrot fails on parrot.utils.types and the agent ends up hand-copying artifacts — possibly built for another interpreter. This command is the one sanctioned way to get a baseline tree: it wraps the FEAT-699 prepare_baseline_checkout (detached worktree + sync_native_artifacts) and its cleanup.

Usage::

parrot sdd worktree baseline create --base origin/dev   # prints the checkout path
parrot sdd worktree baseline remove <path>

Function main

CLI entry point.

main(argv: Sequence[str] | None = None) -> int

Parameter Type Default Description
argv Sequence[str] | None None Arguments (defaults to sys.argv[1:]).

Returns: int — Process exit code.

Alias worktree_root

Re-exported from parrot.sdd.config.worktree_root.

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