Skip to main content

Agentic experience kit — package and distribute agent skills as portable .xp files.

Project description

Leaxp

Leaxp

CI codecov PyPI Python License

Learn -> experience — an agentic experience kit. Package and distribute agent skills as portable, deduplicated, model-agnostic .xp files.

Leaxp learns agent skills from examples (text, code, images) and packages them into *.xp files that any agent can load and recall via MCP. Smaller context, cheaper inference, model-agnostic.

Status: pre-alpha bootstrap.

Install

# minimal
pip install leaxp

# with the local-first stack (Chroma + sentence-transformers)
pip install "leaxp[chroma,local-embed]"

# everything
pip install "leaxp[all]"

Quickstart

exp init                                    # configure providers + create leaxp.toml
exp learn ./docs --goal "use leaxp"         # extract records, embed, store
exp try ./docs/index.md --goal "use leaxp"  # debug a single doc
exp forge                                   # cluster, consolidate, dedupe (optional)
exp build my-skill.xp                       # export to a portable .xp
exp load my-skill.xp                        # load + locally re-embed
exp mcp --port 8822                         # serve via MCP for any agent
exp use --local 8822 --claude               # wire MCP into Claude Code

Concepts

  • Claim — undisputable fact the agent must know but cannot modify.
  • Hint — adjustable best-practice the agent can adapt to context.
  • Recall — the MCP tool agents call; returns records grouped by Useful WHEN: <condition>.
  • .xp file — zip with a manifest + JSONL of raw records (no embeddings). Embeddings are computed locally on exp load so the same pack works with any embedding model.

Project structure

See CLAUDE.md for the package architecture overview.

Development

uv sync                                  # create venv, install deps
uv run pre-commit install                # enable hooks
uv run ruff check . && uv run pyright    # lint + typecheck
uv run pytest --cov                      # tests with coverage
uv run exp --help

License

Apache-2.0 — see LICENSE.txt.

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

leaxp-0.0.3.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

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

leaxp-0.0.3-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file leaxp-0.0.3.tar.gz.

File metadata

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

File hashes

Hashes for leaxp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3abf754f68cdf79ca2bf49ecad758977f1a2084a9ebbda7debd79db38e682ef5
MD5 eef3f7d6630b082f814e62d33d578e4f
BLAKE2b-256 98d0c239625952f86300e1f400d42fffe3cb2166c08958888ee3189d27779aed

See more details on using hashes here.

Provenance

The following attestation bundles were made for leaxp-0.0.3.tar.gz:

Publisher: release.yml on vunone/leaxp

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

File details

Details for the file leaxp-0.0.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for leaxp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b908b8a8b5b55cf6af44b31c5a2e0e0a7ee787ed9c56635b1103c3a3f24652b8
MD5 0717a0a65424f8115247fd979d2662d1
BLAKE2b-256 14f969f1bf91c0671e278a7c87e1ab51ef152aa9f2155fc335e2671c7b0c912b

See more details on using hashes here.

Provenance

The following attestation bundles were made for leaxp-0.0.3-py3-none-any.whl:

Publisher: release.yml on vunone/leaxp

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