Skip to main content

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

Project description

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: leaxp-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4755ec52da8a2f7148f67b11f2f614cf95efaf33ebb9b3342b2bcb9a71c731ea
MD5 f20d54ff31e1b13c473e4bfae45a08f5
BLAKE2b-256 7f02eb9cb23a6ae38fca25f3085042ee7e791c03e239030a3104e2f0ad4350c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for leaxp-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: leaxp-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f33677cf60c8cb7631580ebec62d81c26287f8313cff45aa5aa2eb9aa89b47
MD5 626237b4d59589dfa986cb2fd7bdac8e
BLAKE2b-256 2c5b80502cd23b3c2c8ee46bdcd0d90c41e65f4c21fc0c22c5c640f97d5d7035

See more details on using hashes here.

Provenance

The following attestation bundles were made for leaxp-0.0.1-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