Skip to main content

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


License

Apache License 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentmatrix_core-0.7.0.45.tar.gz (79.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentmatrix_core-0.7.0.45-py3-none-any.whl (89.0 kB view details)

Uploaded Python 3

File details

Details for the file agentmatrix_core-0.7.0.45.tar.gz.

File metadata

  • Download URL: agentmatrix_core-0.7.0.45.tar.gz
  • Upload date:
  • Size: 79.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentmatrix_core-0.7.0.45.tar.gz
Algorithm Hash digest
SHA256 4abbceb3a1c76a10514efeee61c65bdee317d6e3197e8b58627607e8786997f2
MD5 d8bd152d754771f94d08c71646a79b4f
BLAKE2b-256 c535353dbbe28bc777c9a4cc9dbf58e1a2bf16b53565954c664d8d12e83acfc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmatrix_core-0.7.0.45.tar.gz:

Publisher: publish.yml on webdkt/agentmatrix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentmatrix_core-0.7.0.45-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmatrix_core-0.7.0.45-py3-none-any.whl
Algorithm Hash digest
SHA256 2d83a15355e6aebee882d3c33b82a8681f326541fa8f56fcc399fd6cd5684206
MD5 79221fb75ab3cd292d0630929aa82c61
BLAKE2b-256 512e6fbb4f4978b7b83de1bb1e14a429e5adf0fe47dc5362802d340fa7a093f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmatrix_core-0.7.0.45-py3-none-any.whl:

Publisher: publish.yml on webdkt/agentmatrix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page