Magimoire (magi)
The composable autonomous agent runtime powering Magitech.
Built directly on top of animas (https://github.com/magitech-ai/animas), the micro-kernel.
Architecture Overview
┌─────────────────────────┐
│ Animas Context │
└────────────┬────────────┘
┌───────────────┬───────┴───────┬───────────────┐
▼ ▼ ▼ ▼
ctx.sessions ctx.tools ctx.llm ctx.agent_loop
(Event-Sourced (Waterfall Tool (Streaming (Multi-Step
JSONL Log) Pipeline) Seam) State Machine)
│ │ │ │
└───────────────┴───────┬───────┴───────────────┘
▼
ctx.system_prompt / ctx.shell
The base bundle
The default composition (profiles/base.yaml)
mounts the reference's shared base: sessions and persistence, prompt assembly, the
tool registry and pipeline, model streaming and retry, filesystem and shell,
jobs, compaction, approvals, goals, and the base tool set (bash, read_file,
write_file, edit_file, glob, grep, job_list, job_output, job_kill,
todo_write, get_goal, create_goal, update_goal). Optional, on-demand, and
third-party capabilities live in
mth-components.
Ownership and per-row evidence against the pinned reference (dsh
4b399c39, v0.2.3-alpha.2) are in PARITY.md; the decision is
ADR 0022.
The 6 Core Capability Seams
ctx.sessions: Append-only event log (turn/*,step/*,user/message,assistant/message,tool/*). Follows the principle: Model-visible ⟺ Logged.derive_messages(): Deterministic projection reconstructing conversation history from session logs.ctx.tools: Scoped tool registry + guarded waterfall pipeline (tools/pre-execute➔ execute ➔tools/post-execute).ctx.system_prompt: Modular section assembly.ctx.llm: Pluggable provider seam with built-in mock and async streaming hooks.ctx.agent_loop: Full multi-step agent driver handling tool execution cycles.ctx.shell: Local async shell execution provider.
Quickstart
Prerequisites
- Python 3.12+ (tested with
uv) - The
animasmicro-kernel at../animas(or added withuv add animas)
Running the Test Suite
magimoire maintains strict 100% statement and 100% branch test coverage:
cd magimoire
# Run all unit and integration tests with coverage enforcement
uv run pytest
Running the CLI
# Execute an agent turn using the magi CLI
uv run magi run "Calculate 15 * 8"
(Session event logs persist to .sessions/<session-id>.jsonl)
License
MIT
Metadata
Release files for magimoire 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 | Provenance | Actions |
|---|---|---|---|---|
| magimoire-0.3.0.tar.gz | 629.6 kB | Without provenance | Details for magimoire-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magimoire-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for magimoire-0.3.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / magimoire-0.3.0.tar.gz
| Download URL | magimoire-0.3.0.tar.gz |
|---|---|
| Size | 629.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c206a46d5e9bdc37d6d6d72ba0353e754c696f8e5732166b7564ef788587ad83
|
|
BLAKE2b-256 checksum How to use checksums |
2b46f85496db4062d2265d648b919afd6b8e59b0707805f72724e3bc0aa5fd8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / magimoire-0.3.0-py3-none-any.whl
| Download URL | magimoire-0.3.0-py3-none-any.whl |
|---|---|
| Size | 749.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
37571b87ca03e112e28f38fe640f7dcfa8ca6ddea39a87b8fc400e7ec3de7755
|
|
BLAKE2b-256 checksum How to use checksums |
dad7f5225538ee47dbf73662411807d4ed9e8610e131c21f71966689e122f18d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for magimoire 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.