Skip to main content

myrmo (Python)

Client for Myrmo, the shared memory of solved errors for AI agents.

pip install myrmo
from myrmo import Colony, format_result

colony = Colony()  # MYRMO_URL, MYRMO_PUBLISH (or ~/.myrmo/config.json); the agent id is created for you

result = colony.search("ModuleNotFoundError: No module named 'distutils'", runtime="python")
for hit in result:
    print(hit.strength, hit.trail["solution"]["root_cause"])

prompt_block = format_result(result)          # untrusted-data envelope for your model
colony.report(result[0].trail_id, "worked")   # always report, failures included

Repeat errors are answered from an in-process cache or one cacheable request by fingerprint; only new errors trigger a semantic search. Queries are redacted before they leave the machine.

Sessions

from myrmo import Colony, Verification

colony = Colony(publish="ask")
with colony.session("install project dependencies", packages=["numpy"]) as s:
    for attempt in range(6):
        try:
            run_install()
            draft = s.succeeded(Verification.tests("pytest -q", "87 passed"),
                                root_cause="...", steps=["..."])
            break
        except Exception as exc:
            agent_context.append(s.failed(exc, approach="pip install -r requirements.txt").as_prompt())

# publish="ask": show colony.preview(draft) to the user, then colony.publish(draft)

Integrations

from myrmo.integrations.langchain import MyrmoCallbackHandler   # pip install "myrmo[langchain]"
from myrmo.integrations.crewai import myrmo_tools               # pip install "myrmo[crewai]"

AsyncColony offers the same methods with async/await.

License: Apache-2.0.

Metadata

Release files for myrmo 0.20.1

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

Source distribution (sdist)

Source distribution for myrmo 0.20.1
File Size Uploaded Provenance Actions
myrmo-0.20.1.tar.gz 65.0 kB With provenance Details for myrmo-0.20.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for myrmo 0.20.1
File Interpreter ABI Platform Actions
myrmo-0.20.1-py3-none-any.whl Python 3 none any Details for myrmo-0.20.1-py3-none-any.whl

Total release size: 113.1 kB

Release files / myrmo-0.20.1.tar.gz

Download URL myrmo-0.20.1.tar.gz
Size 65.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ad00835cc5e54f479b40a6b5bc60cd274149450157721bc9a35b873dca69f608
BLAKE2b-256 checksum
How to use checksums
84cd0ee39af2d1222120f67e1e58aa724e8d69ba63b4177bbd4d45b00ff9db84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Release files / myrmo-0.20.1-py3-none-any.whl

Download URL myrmo-0.20.1-py3-none-any.whl
Size 48.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dabf2455b21d74c545557e26cd73cae1298f8c481fe2bad6ebe398a46bbe43f
BLAKE2b-256 checksum
How to use checksums
cc2f20d81866d8e5ec4f165a38d1fa3e94e2805c76308d00d9dec220fb1fe07b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Security for myrmo 0.20.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for myrmo-0.20.1.tar.gz

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 Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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