Skip to main content

Invokes agent harnesses (Antigravity CLI, Claude Code, Codex CLI) headlessly. Python wrapper around the agentsummons Go CLI.

Project description

agentsummons

Python wrapper around agentsummons, a Go library + CLI that invokes agent harnesses (Antigravity CLI, Claude Code, Codex CLI) headlessly: it owns the per-harness flag knowledge so scripts and experiments don't have to rediscover it.

The wheel bundles the real Go binary for your platform, plus a thin Python API.

CLI

pip install agentsummons
agentsummons run --harness claude-code -p "Summarize this repo" \
  --allowed-tools Read,Grep,Glob --auto-approve

Identical to the Go CLI — see the project README for the full surface (run, build, info, doctor).

API

import agentsummons

res = agentsummons.run(
    harness="claude-code",
    prompt="Summarize this repo",
    workdir=dir,
    allowed_tools=["Read", "Grep", "Glob"],
    auto_approve=True,
    timeout=300,
)
# res is the CLI's `run --json` envelope as a dict:
# res["exit_code"], res["stdout"], res["timed_out"], res["session_id"], ...

A nonzero harness exit is data (res["exit_code"]), not an exception; a timeout returns timed_out: True with the partial output. Bad requests raise RequestError, a missing harness binary raises NotInstalledError. build(...) returns the assembled argv without executing; binary_path() exposes the bundled binary for anything else.

Set AGENTSUMMONS_BINARY to override which binary the wrapper invokes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

agentsummons-0.1.0-py3-none-win_arm64.whl (1.2 MB view details)

Uploaded Python 3Windows ARM64

agentsummons-0.1.0-py3-none-win_amd64.whl (1.3 MB view details)

Uploaded Python 3Windows x86-64

agentsummons-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl (1.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64musllinux: musl 1.1+ x86-64

agentsummons-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64musllinux: musl 1.1+ ARM64

agentsummons-0.1.0-py3-none-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

agentsummons-0.1.0-py3-none-macosx_10_13_x86_64.whl (1.2 MB view details)

Uploaded Python 3macOS 10.13+ x86-64

File details

Details for the file agentsummons-0.1.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: agentsummons-0.1.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agentsummons-0.1.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d2a13585e2746dd2c210b7cf1951563b09b093cbdc46146980a0b6b568ccbf27
MD5 7f01772af90303e1ad3fa497ffab0e31
BLAKE2b-256 39f672776a3bd372c3642664e194452e394f42b1e8a24c6c3f1f41dea1c5b470

See more details on using hashes here.

File details

Details for the file agentsummons-0.1.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: agentsummons-0.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agentsummons-0.1.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a2c539150dad92acd5e5b9957b8a26bdc87e2b8664c2489da3725e62a7297c29
MD5 0d3d813b179dcad7334240a6eaf04f48
BLAKE2b-256 fc29c84e756e624dbc542694b83c5173f8a88a0f44672b97b0856db8f56d89cb

See more details on using hashes here.

File details

Details for the file agentsummons-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for agentsummons-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 3592f77297c26591a0de66e1433562d560a27dcb59b8dafa984ffe731499ecaa
MD5 48ab0e0cfa40562938340b5f84c73e4d
BLAKE2b-256 c17827e7f109da29ec39da48c09347df7d619e4b15fcca4a5b97dbfdf55ed4c9

See more details on using hashes here.

File details

Details for the file agentsummons-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for agentsummons-0.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 c653437a2d5b7ca6d794b69ca5696fc8929c4a6a325c35cc79579806bae9a26e
MD5 612df4466b81b0d00323138b7e5e23af
BLAKE2b-256 61c41609d48ba8db62667f703d09076a721898abe378c464a441d9d54fbf3f14

See more details on using hashes here.

File details

Details for the file agentsummons-0.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for agentsummons-0.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c5d033a06615f6bf91ea2f51e4ebc7ce81fcfe574c5bd369b1bedb10a7b0c4f9
MD5 33d815389deadf21d11d52eda4e87bed
BLAKE2b-256 0f33369b3e5c40a5ac703ab25d57c5f1c1c5480150e0edec08bdaf14a6e22de9

See more details on using hashes here.

File details

Details for the file agentsummons-0.1.0-py3-none-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for agentsummons-0.1.0-py3-none-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 00703f701bbd99de6ec505cbf6bb39a570a62244e166d98c7d57752f9fef5f90
MD5 6b912e8dad547e4e909a760b043dc58b
BLAKE2b-256 911c6d8467a6e95a88830cfc0c9dda343ea6b124bb0afc8c7bd4dd05b79576c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page