Skip to main content

Halo host adapter for the Claude Agent SDK (Python): a PostToolUse encode hook plus in-process halo_walk / halo_fetch MCP tools. install_halo() wires it in one call.

Project description

halo-format-claude

Halo host adapter for the Claude Agent SDK (Python). install_halo() wires it in one call:

  • a PostToolUse encode hook that replaces a large tool result with a halo shape map (root kind + one line per field: ref, kind, and a bounded preview), so the payload stays out of the model's context while it still sees what's there;
  • a single in-process halo_fetch MCP tool the model uses to pull back only the leaves it needs, verified on read — a ref that lands on a branch returns that branch's sub-refs, so one batch API both pulls and expands (there is no separate halo_walk).
from claude_agent_sdk import ClaudeAgentOptions, query
from halo_format_claude import install_halo

result = install_halo(ClaudeAgentOptions(...))
# pass result.options to query(); result.session holds the shared store for audit/inspection

The encode hook is deterministic plumbing (it always fires, even for built-in tools); the Halo Skill is the navigation guidance. Pass store=FileStore(dir) for the heavy/persistent deployment. The core engine is halo-format; this package is only the shim.

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

halo_format_claude-0.1.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

halo_format_claude-0.1.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file halo_format_claude-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for halo_format_claude-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5ea3d1e4e515bb19881eaa8bf0e5b64285ac0b1c910161eed790dc2c295f7569
MD5 41f6dfcbce4a9c4493cd2132cf5ea2ed
BLAKE2b-256 69e7e644acad6bffb5894754e2c5f7c6a18b3b5dcfc6cd176413e792e8f822a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for halo_format_claude-0.1.1.tar.gz:

Publisher: publish-python-claude.yml on halo-format/halo

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

File details

Details for the file halo_format_claude-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for halo_format_claude-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df604e1399de17d53040c9b226b60a7577a411447eb2d823804c17b092f325cf
MD5 70dd6ac6ade5bb41a46284675467fcc8
BLAKE2b-256 f521b6a2fe0d5d46fcecfd675486707acf22b24752bb208831e6bcbb1976cd71

See more details on using hashes here.

Provenance

The following attestation bundles were made for halo_format_claude-0.1.1-py3-none-any.whl:

Publisher: publish-python-claude.yml on halo-format/halo

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