Mono-Agent Framework
A minimal, file-based agent framework inspired by smolagents and LangGraph, optimized for offline use and context efficiency.
Features
- CLI Scaffolding: Quickly start projects with
mono create. - Markdown Agents: Define agent personas and tools in simple Markdown files.
- Auto-Tool Sync: Python functions in
Tools/are automatically converted to OpenAI JSON schemas. - Context Efficient: Automatically wipes previous agent context during handoffs to save tokens.
- Persistent Memory: SQLite-based conversation history and Mem0 fact extraction.
- Human-in-the-Loop: Built-in support for human validation and steering.
Installation
Install the framework using your preferred package manager:
# Using uv (Recommended)
uv add mono-agent
# Using pip
pip install mono-agent
Quick Start
Once installed, you can set up a new project in seconds using the CLI:
-
Scaffold your project: This command creates the
Agents/andTools/folders, a sample agent, and amain.pyentry point. It also helps you configure your LLM provider.mono create -
Test your setup: Perform a dynamic dry run to ensure all files and configurations are correct.
mono test
-
Run your agent:
python main.py
Creating a Specialist Agent
-
Create a tool in
Tools/my_tool.py:def run(query: str) -> str: """Does something cool.""" return f"Result for {query}"
-
Generate the Agent file:
from mono_agent import MonoAgent agent = MonoAgent() agent.create_agent_file( name="MySpecialist", instructions="You are a specialist...", tool_names=["my_tool"] )
-
Load and Run:
agent.load_agent("MySpecialist") agent.run("Do the cool thing.")
License
MIT License. See LICENSE for details.
Metadata
Release files for mono-agent 0.1.1
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 | |
|---|---|---|---|---|
| mono_agent-0.1.1.tar.gz | 55.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mono_agent-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.7 kB
Release files / mono_agent-0.1.1.tar.gz
| Download URL | mono_agent-0.1.1.tar.gz |
|---|---|
| Size | 55.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a96d04208bc36dd70f6285d35dc6ce15d0f151dfec75ff9af82bf6ed3815d284
|
|
BLAKE2b-256 checksum How to use checksums |
298df48aa4fcaccc7b75ca6090fab92613b8d7190c84fa97240bc4bfb8a248af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / mono_agent-0.1.1-py3-none-any.whl
| Download URL | mono_agent-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84dec9f7183b7642fbe0716a221f9334c78155cc2737f1ffc95e2de4e3e16fa3
|
|
BLAKE2b-256 checksum How to use checksums |
dda849fb42098bd5bd3620c0b0a223f651b2efb7c557aac38e45e6555fab4af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for mono-agent 0.1.1
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.