Core execution engine for building AI agent applications — MicroAgent, AgentShell protocol, Cerebellum, and skill system
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentmatrix_core-0.7.0.49.tar.gz.
File metadata
- Download URL: agentmatrix_core-0.7.0.49.tar.gz
- Upload date:
- Size: 80.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45b157b933f1003ea11b93fed6d418fdbef1093e2de3361b5c5c68195cc28328
|
|
| MD5 |
e38240791144f68e95036d14cefbbc25
|
|
| BLAKE2b-256 |
aaf9701d8ea3221d2b79033f90bdcc5fbad3e53b6f8623a33fd49c59ecde9c44
|
Provenance
The following attestation bundles were made for agentmatrix_core-0.7.0.49.tar.gz:
Publisher:
publish.yml on webdkt/agentmatrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentmatrix_core-0.7.0.49.tar.gz -
Subject digest:
45b157b933f1003ea11b93fed6d418fdbef1093e2de3361b5c5c68195cc28328 - Sigstore transparency entry: 1894612946
- Sigstore integration time:
-
Permalink:
webdkt/agentmatrix@1fffed68e9feb44ea62dc7a504207867d264629e -
Branch / Tag:
refs/tags/v0.7.0.49 - Owner: https://github.com/webdkt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1fffed68e9feb44ea62dc7a504207867d264629e -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentmatrix_core-0.7.0.49-py3-none-any.whl.
File metadata
- Download URL: agentmatrix_core-0.7.0.49-py3-none-any.whl
- Upload date:
- Size: 89.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a85ab13c4f14ea895747cb9d05e44595b4bbce062e846468e76b6d476ab0f48a
|
|
| MD5 |
19506a9df6ab722b323f30bdd26c7fd2
|
|
| BLAKE2b-256 |
8556b4682fe3925c93b2e889a067f08c79efa1799b546558cc31d48701ddcc83
|
Provenance
The following attestation bundles were made for agentmatrix_core-0.7.0.49-py3-none-any.whl:
Publisher:
publish.yml on webdkt/agentmatrix
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentmatrix_core-0.7.0.49-py3-none-any.whl -
Subject digest:
a85ab13c4f14ea895747cb9d05e44595b4bbce062e846468e76b6d476ab0f48a - Sigstore transparency entry: 1894613105
- Sigstore integration time:
-
Permalink:
webdkt/agentmatrix@1fffed68e9feb44ea62dc7a504207867d264629e -
Branch / Tag:
refs/tags/v0.7.0.49 - Owner: https://github.com/webdkt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1fffed68e9feb44ea62dc7a504207867d264629e -
Trigger Event:
push
-
Statement type: