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.2.tar.gz (19.7 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.2-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leaxp-0.0.2.tar.gz
  • Upload date:
  • Size: 19.7 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.2.tar.gz
Algorithm Hash digest
SHA256 aeb59e541d9fb4ad5e314365e929afa195c026a3671c1a5b55dc98e7d90a3b4b
MD5 30cc6e1f7a4f6c25c835ba0570ca9246
BLAKE2b-256 e259631b3be0f969031c969a6e163ef148a0a80536dfd3fe11c0d95ce00cead1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: leaxp-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0d79118a34a0ea730b2f3abbf8a9d03ca9eea728def11a2c118afe16687d01
MD5 695b2a516d1b3387abd1152fcdc6dc0e
BLAKE2b-256 5f6ba3f32a1e1c5c9eb5a87ddb07ba8ac3a6abeb0f0da1f40df3b11f5bf4d317

See more details on using hashes here.

Provenance

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