Skip to main content

Reference command-line agent built on wormhole-sdk.

Project description

Wormhole CLI

A reference command-line coding agent built on wormhole-sdk. Mostly exists to claim the wormhole-cli namespace on PyPI alongside wormhole-core and wormhole-sdk, but it's also a working terminal agent you can use as the starting point for your own CLI.

Install

pip install wormhole-cli

This pulls in wormhole-sdk (which pulls in wormhole-core and anthropic).

Run

export ANTHROPIC_API_KEY="sk-ant-..."
wormhole

You'll get a prompt; type natural-language instructions and the agent will read/write/edit files in the current directory and run shell commands, asking for approval before each tool call.

You: Read README.md and tell me what this project does
You: Create hello.py that prints hello world, then run it
You: quit

Flags

wormhole --help

  --api-key STR        Anthropic API key (or set ANTHROPIC_API_KEY)
  --base-url STR       Custom API endpoint (e.g. https://your-proxy.com)
  --model STR          Model name (default: claude-sonnet-4-20250514)
  --context-limit INT  Auto-compaction context limit (default: 200000)

What this is and isn't

It is: a small, working agent loop with terminal-based approval prompts and streaming output rendering. About 200 lines, no fancy UI.

It is not: a polished product. There's no fancy TUI, no config file, no persistence between runs. If you want any of those, fork agent.py — that's why it's a reference.

For a more involved example with task delegation, see packages/sdk/examples/coding_agent.py in the source repo, which this CLI is derived from.

License

wormhole-cli is distributed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE for the full text.

Version History

Version Milestone Notes
0.1.0 Initial release Reference terminal coding agent. Pulls wormhole-sdk>=0.13.0,<0.14.0.

Project details


Download files

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

Source Distribution

wormhole_cli-0.1.0.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

wormhole_cli-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file wormhole_cli-0.1.0.tar.gz.

File metadata

  • Download URL: wormhole_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for wormhole_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dcdbe76ec50ef611c42dbcf1830d63f2b0d63e4b1b9d68963defe73bc215129d
MD5 fdc550e419b644755fd61131a3b90466
BLAKE2b-256 a683e811b636a6a94cd2cf761d728b163d05da21e90161cd932f8e90c65d1ff6

See more details on using hashes here.

File details

Details for the file wormhole_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wormhole_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for wormhole_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ef27f593b53b2c6d404ab35da07e4122c532d99b35b32508fe2ea392b40e93
MD5 1fb589adceb2ea7914eb851b8375aa8c
BLAKE2b-256 a5f31e82caf4e249fb06ec9a89417937219a34d7d3bca11a87017ad5c5bb169d

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