Skip to main content

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

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.53.tar.gz (84.6 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.53-py3-none-any.whl (93.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentmatrix_core-0.7.0.53.tar.gz
  • Upload date:
  • Size: 84.6 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.53.tar.gz
Algorithm Hash digest
SHA256 f53b0b50d51c513c30ab6686b7c122990e6cbfe3968fda2ae43b71c791e97540
MD5 bf332b81b183fe4e4db3d51e6cff6765
BLAKE2b-256 86617f7cf0dae2895bd5256f0b080e9bee46ff230fdb0093ad5a93ae895b797b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmatrix_core-0.7.0.53.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.53-py3-none-any.whl.

File metadata

File hashes

Hashes for agentmatrix_core-0.7.0.53-py3-none-any.whl
Algorithm Hash digest
SHA256 f6c7fdfa87ae51a4c6d6afa8180cf0eeab85dd07dea51a2f4e5b4cd4bea564ed
MD5 6de3bb8aab826eedb2d8f5e956343b17
BLAKE2b-256 cb643580f004a2eb57a55214b08a355106ba842e5dce63041fc200474ffe006c

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentmatrix_core-0.7.0.53-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.

Release history Release notifications | RSS feed

0.7.0.54

2 files

This release

0.7.0.53 This release

2 files

0.7.0.52

2 files

0.7.0.51

2 files

0.7.0.50

2 files

0.7.0.49

2 files

0.7.0.48

2 files

0.7.0.47

2 files

0.7.0.46

2 files

0.7.0.45

2 files

0.7.0.44

2 files

0.7.0.43

2 files

0.7.0.41

2 files

0.7.0.40

2 files

0.7.0.35

2 files

0.7.0.34

2 files

0.7.0.32

2 files

0.7.0.30

2 files

0.7.0.29

2 files

0.7.0.28

2 files

0.7.0.27

2 files

0.7.0.26

2 files

0.7.0.25

2 files

0.7.0.24

2 files

0.7.0.23

2 files

0.7.0.22

2 files

0.7.0.20

2 files

0.7.0.19

2 files

0.7.0.18

2 files

0.7.0.17

2 files

0.7.0.16

2 files

0.7.0.15

2 files

0.7.0.14

2 files

0.7.0.13

2 files

0.7.0.12

2 files

0.7.0.11

2 files

0.7.0.10

2 files

0.7.0.9

2 files

0.7.0.8

2 files

0.7.0.7

2 files

0.7.0.6

2 files

0.7.0.5

2 files

0.7.0.4

2 files

0.7.0.3

2 files

0.7.0.2

2 files

0.7.0.1

2 files

0.7.0.0

2 files

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