Skip to main content

Provider-agnostic coding-agent CLI shims

Project description

agentshim

agentshim is a small Python package that wraps coding-agent CLIs behind a stable interface for higher-level runtimes.

It currently includes:

  • a CodingAgent base class and provider registry
  • CLI adapters for Claude Code, Codex, Gemini, and Opencode
  • MCP server config dataclasses
  • sandbox settings helpers for Claude Code
  • a lightweight litellm client and isolated subagent helper
  • a trajectory protocol with a no-op implementation

Install

pip install agentshim

For development:

uv sync --dev
uv run pytest

Quick Example

from agentshim.claude import ClaudeCodeCodingAgent

agent = ClaudeCodeCodingAgent(model="sonnet")
result = agent.generate("Summarize the repository layout.", cwd=".")
print(result)

Publishing

Build locally with:

uv build

Publish with:

uv publish

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

agentshim-0.1.0.tar.gz (201.0 kB view details)

Uploaded Source

Built Distribution

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

agentshim-0.1.0-py3-none-any.whl (37.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentshim-0.1.0.tar.gz
  • Upload date:
  • Size: 201.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentshim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14b290db39aa09cc498fde9566c8c127af1d3db2ba05be1e89a1fe6174535ed0
MD5 da6e824ae02f63d5c55e46f808fdfc12
BLAKE2b-256 3d6deba163c1bdb4bb474609f5ceb04783c05dc03a79ddbfdcae5a2c4ec6d80a

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentshim-0.1.0.tar.gz:

Publisher: publish.yml on vic-lsh/agentshim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: agentshim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 37.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentshim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf1a271b8f457d738bc7048a52d7074724e17be1ac1d71f499ea696e93f959e9
MD5 960e0d9f631e2fcc3a45791fa95d2f6a
BLAKE2b-256 9e0f1dcb4789fa2a94951c822d4156636b51410fb2ea6ea937a27f347b631cb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentshim-0.1.0-py3-none-any.whl:

Publisher: publish.yml on vic-lsh/agentshim

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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