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), MYRMO_AGENT_ID
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.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myrmo-0.3.0.tar.gz | 29.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myrmo-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.8 kB
Release files / myrmo-0.3.0.tar.gz
| Download URL | myrmo-0.3.0.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f170fa7e27b48a63d05553816fd66ceb936b63496b3895db55da944b188cd295
|
|
BLAKE2b-256 checksum How to use checksums |
6146dd1265c230185abc41ee669a69d741f7e48cf3fe513533b800776c160797
|
| 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 Oct 2, 2026.
Transparency logRelease files / myrmo-0.3.0-py3-none-any.whl
| Download URL | myrmo-0.3.0-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f04a40a242fb3849126fb1aeef978b3c5064418135d475ff0359ad516c5157c
|
|
BLAKE2b-256 checksum How to use checksums |
14cd9d8401801b6bb438fb5f3f82e251fe567b00378849194dc38d6b86701935
|
| 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 Oct 2, 2026.
Transparency log