agentmatrix-core
Let LLMs think. Don't make them write JSON.
A Python execution engine for building AI agent applications. Separates reasoning from formatting: the large model thinks in natural language, a dedicated module handles the structured output.
What It Is
agentmatrix-core provides the execution engine behind AgentMatrix. It includes:
- MicroAgent — A task execution engine with think-negotiate-act loop
- AgentShell Protocol — Clean boundary between execution and I/O
- Cerebellum — Intent parsing and parameter negotiation
- Action System — Pluggable skill registry and execution
- SessionStore — Conversation persistence
- Auto-Compression — Working Notes for arbitrarily long tasks
- Signal System — Event-driven communication
The core knows nothing about desktop apps, file systems, or networks. All external interaction goes through the AgentShell protocol, which you implement for your target environment.
Install
pip install agentmatrix-core
Requires Python 3.12+.
Quick Example
from agentmatrix import AgentMatrix, Email
# Create the runtime
matrix = AgentMatrix("./MatrixWorld")
# Send an email to an agent
email = Email(
sender="User",
recipient="Researcher",
subject="Search for Python 3.13 features",
body="Find and summarize the major new features in Python 3.13"
)
# Dispatch via PostOffice
await matrix.post_office.dispatch(email)
For a complete minimal example implementing AgentShell, see the CLI tutorial in the repository.
Architecture
┌─────────────────────────────────────────────┐
│ Your App (Desktop / CLI / Server) │
├─────────────────────────────────────────────┤
│ AgentShell Protocol (you implement this) │
├─────────────────────────────────────────────┤
│ MicroAgent Engine (this package) │
│ - Brain (reasoning in natural language) │
│ - Cerebellum (intent → action params) │
│ - Action Registry │
│ - SessionStore │
└─────────────────────────────────────────────┘
Key Design
- No JSON output required — Brain reasons in plain text
- Dynamic skill composition — Mixins assembled at runtime per task
- Checkpoint-based pause/resume — Cooperative, not forced interruption
- Auto context compression — LLM-generated Working Notes prevent overflow
- Nested MicroAgents — Tasks can spawn sub-tasks with different skill sets
Documentation
- Full docs: https://github.com/webdkt/agentmatrix/docs
- CLI tutorial: https://github.com/webdkt/agentmatrix/tree/main/tutorial/cli-agent
License
Apache License 2.0
Metadata
Release files for agentmatrix-core 0.7.0.54
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentmatrix_core-0.7.0.54.tar.gz | 84.6 kB | With provenance | Details for agentmatrix_core-0.7.0.54.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentmatrix_core-0.7.0.54-py3-none-any.whl | Python 3 | none | any | Details for agentmatrix_core-0.7.0.54-py3-none-any.whl |
Total release size: 178.4 kB
Release files / agentmatrix_core-0.7.0.54.tar.gz
| Download URL | agentmatrix_core-0.7.0.54.tar.gz |
|---|---|
| Size | 84.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
333b1ac754802553a7ab61ad56ad3dc5132d540de0f9ddedef5cbd1a76514a8f
|
|
BLAKE2b-256 checksum How to use checksums |
c25c783e45479e8d7ec38d595bac406d1c4600c54d0c8836e13a48be6d3c5982
|
| 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 Aug 11, 2026.
Transparency logRelease files / agentmatrix_core-0.7.0.54-py3-none-any.whl
| Download URL | agentmatrix_core-0.7.0.54-py3-none-any.whl |
|---|---|
| Size | 93.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1d7fa34fb5ebd2aafceff42e782f9917f306e520567f91bc662c4f22c268dd0
|
|
BLAKE2b-256 checksum How to use checksums |
fcbb793855f762dfc50d8035ea514983525d1ec4095e4255c796f981da268da5
|
| 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 Aug 11, 2026.
Transparency logSecurity for agentmatrix-core 0.7.0.54
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.
Attestation for agentmatrix_core-0.7.0.54.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 Aug 11, 2026.
Transparency logA 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.