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.0.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.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: halo_format_claude-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 1b1ecd1d7bfbb6b00570bbe555105f99b9027bb385877438b672b2ef02c1f5aa
MD5 612ecc1692dff92451ff2cbe10c563dd
BLAKE2b-256 c463bf80c3f377faf04598a5ae5b52943f42778d79733a74e292d6e4a0bd36cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for halo_format_claude-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for halo_format_claude-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 247702aa94ea5c897028b9addfdf90a2b3ad4bc6f44cfe059fa557226caac6ee
MD5 15940611a8db2a3a6e933e999e9e03da
BLAKE2b-256 acf07efe1a909c7e51a7b0029a65c28890ab0a8af87026ccd2414ec422157f81

See more details on using hashes here.

Provenance

The following attestation bundles were made for halo_format_claude-0.1.0-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