Skip to main content

cop

Delegate coding tasks to a GitHub Copilot CLI agent running in a Herdr pane, and collect the result later.

Typical use: Claude Code is your daily driver, but cheap/parallelizable subtasks get farmed out to Copilot running the Luna model (gpt-5.6-luna) — Luna is cheaper and noticeably sharper than Haiku, so it beats reaching for Haiku as your low-cost delegate:

cop start "Add unit tests for src/foo.py" --dir ~/r/myrepo --model gpt-5.6-luna

Install

uv tool install cop-pilot
# or: pip install cop-pilot
# or: uv tool install git+https://github.com/vivainio/cop-pilot

Requires: running inside a Herdr-managed pane (HERDR_ENV=1); herdr and copilot on PATH.

Usage

cop start "Add unit tests for src/foo.py" --dir ~/r/myrepo
# -> prints a job id immediately, agent keeps working in its own pane

echo "fix the typo in README" | cop start --dir ~/r/myrepo
# task from stdin

cop collect <job-id> --wait
# -> blocks until the agent settles, prints/stores its response

cop respond <job-id> "yes, proceed"
# answer a permission/approval prompt that left the job blocked

cop show <job-id>          # full detail for one job
cop list                   # all known jobs, cached status (offline)
cop status                 # all known jobs, refreshed from herdr

cop start [<task>] --dir <path> [--name <mnemonic>] [--model <id>] — agent is named cop-<name-or-dirname>, falling back to appending the job id if that name is taken. --model is passed through to copilot --model <id>; omit it and copilot falls back to whatever's set as the default model in ~/.copilot/settings.json ("model": "...", set via the /model slash command in an interactive copilot session). Every job gets its own herdr workspace, labeled with its agent name so it's identifiable in the workspace list. Add --worktree to also run it in a fresh git worktree (branch worktrees/<name>) instead of --dir directly, so it can't collide with other work already in that checkout. --branch <ref> (only with --worktree) picks what that new branch starts from, instead of --dir's current HEAD.

cop collect <job-id> [--wait] [--timeout MS] [--raw] — without --wait, non-blocking status check. --raw dumps the full pane instead of just the last turn.

Every command accepts --json. Jobs are flat JSON files under ~/.cop/jobs (override with COP_HOME).

Claude Code skill

cop install-skills                       # installs to ~/.claude/skills/
cop install-skills --skills-dir ./skills # custom target

With the skill installed, Claude Code drives cop itself when you delegate:

/cop check this pre-commit hook script, does it need updating for the new CI runner: https://issues.example.com/browse/PROJ-1234

Claude reworks the short ask into a self-contained task before handing it off — the delegate has no memory of this conversation:

cop start "Review the repo's pre-commit hook script(s) against
https://issues.example.com/browse/PROJ-1234 (CI runner is being upgraded).
Determine whether the hook needs changes to keep working there, and if so
propose the fix." --dir ~/r/myrepo

Delegated. Job started: 504ce49b (agent cop-check-hook, pane w8K:p6) in ~/r/myrepo.

Collecting in the background.

Development

uv sync                    # install with dev dependencies
uv run pytest tests/ -v    # run tests
uv run ruff format .       # format
uv run ruff check .        # lint
uv run ty check            # type check

hookmaster init . installs a pre-commit hook (githooks.toml) that runs ruff format --check ..

Known limitations

  • Pane reads can truncate very long responses — ask the task (via respond) to write its answer to a file and reply with the path instead.
  • No session reuse across jobs — each start begins a fresh Copilot session.

Metadata

Release files for cop-pilot 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cop-pilot 0.2.0
File Size Uploaded Provenance Actions
cop_pilot-0.2.0.tar.gz 23.6 kB With provenance Details for cop_pilot-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cop-pilot 0.2.0
File Interpreter ABI Platform Actions
cop_pilot-0.2.0-py3-none-any.whl Python 3 none any Details for cop_pilot-0.2.0-py3-none-any.whl

Total release size: 43.4 kB

Release files / cop_pilot-0.2.0.tar.gz

Download URL cop_pilot-0.2.0.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
18b799512231866b20254208be464607ff22557c7742a0034291600d03cf18c3
BLAKE2b-256 checksum
How to use checksums
d92451685a44bb469fa5486546e092dc8d842290723fb9db4a2abb5eacd359ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / cop_pilot-0.2.0-py3-none-any.whl

Download URL cop_pilot-0.2.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f209fceb4a6841f856f10eaf09994c97f73afdda72f5d3b807c33f0f55163aa6
BLAKE2b-256 checksum
How to use checksums
e5a404cadb9b44c76a1779ebea8e58f1d22d580e814b88ee08835b3c16a04014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Security for cop-pilot 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cop_pilot-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page