Skip to main content

axm-echo

Neural similarity & echo detection over code corpora (MiniLM + scikit-learn).

axm-audit axm-init Coverage Python 3.12+


Overview

Neural similarity & echo detection over code corpora (MiniLM + scikit-learn).

Features

  • Neural by default — the st (MiniLM) backend ships in the base install (torch + sentence-transformers) and runs in-process; no extra to enable.
  • tfidf opt-out — the pure-CPU numpy + scikit-learn backend stays available (--backend tfidf) for callers that want to avoid loading torch.
  • Built on axm-ast for code-corpus extraction — the corpus feeding both echo_code (cross-package dedup) and echo_check (reuse retrieval).

Installation

# echo is neural by default — the install ships torch + sentence-transformers.
uv add axm-echo

Or as a workspace dependency in pyproject.toml:

[project]
dependencies = ["axm-echo"]

[tool.uv.sources]
axm-echo = { workspace = true }

Quick Start

from axm_echo import embed, extract_monorepo, neighbors

symbols = extract_monorepo()  # public symbols across the configured scope
matrix = embed([s["embed_text"] for s in symbols], backend="tfidf")
for idx, score in neighbors(matrix[0], matrix, k=5):
    print(f"{score:.3f}  {symbols[idx]['qualname']}")

See the documentation site for the echo_code / echo_check tools and the scope how-to.

Development

This package is part of the axm-forge-workspace uv workspace.

# Run tests for this package
uv run --package axm-echo pytest

# From workspace root
make test-axm-echo

License

MIT — © 2026 Gabriel Jarry

Metadata

Release files for axm-echo 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axm-echo 0.2.0
File Size Uploaded
axm_echo-0.2.0.tar.gz 55.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for axm-echo 0.2.0
File Interpreter ABI Platform
axm_echo-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 86.3 kB

Release files / axm_echo-0.2.0.tar.gz

Download URL axm_echo-0.2.0.tar.gz
Size 55.5 kB
Tags Source
SHA-256 checksum
How to use checksums
727835d5a804c7e2437d24160936d6c52fcc08ae3a9fb9bcf670fe68c0e36018
BLAKE2b-256 checksum
How to use checksums
b82f02d139bd5ef6f9d2e54a388fbaa3122bb805ecaad00be11a95b08234a4b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / axm_echo-0.2.0-py3-none-any.whl

Download URL axm_echo-0.2.0-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4023360a578b42fa05fae867f452f603bbd5af2c40336bfad1a2b0ee58fa1fa
BLAKE2b-256 checksum
How to use checksums
a2e23a3db2c8116e192349345726ba4b0eaa072eb1122db465329d5509d5505e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page