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

Uploaded Python 3

File details

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

File metadata

  • Download URL: leaxp-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f16316111de4e643ecad490e4be8219dabe8313466647fb02ebf6e3c2dba3e94
MD5 ee655b3c19ba411a2c95c4ac51e35563
BLAKE2b-256 dddf41acf29f3c695379054439000396914eed20b135cdc9fbe8d32892c43be7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: leaxp-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a6771d503add283229c9f3c6fed43bbca68e70c50a1e81f08ae0537b91f7bed
MD5 f49f1ef53de7229c0edc1aa3f2deb309
BLAKE2b-256 4cc66576eedaf30435ad883f325b46a165124494216b3a9c92ea0c66e8d870e5

See more details on using hashes here.

Provenance

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