TraceMind smart agent runtime and tooling
Project description
TraceMind
TraceMind – A lightweight, event-sourced smart agent framework. It records and reflects every transaction, supports pipeline-based field analysis, static flow export, and interactive summaries/diagnosis/plans. Designed with a clean DDD structure, minimal dependencies, and safe container execution.
Current release: v0.2.1 — see CHANGES.md for highlights.
Agent Evolution Timeline ───────────────────────────────────────────── (1) Client + Server (2) Digital Twin (3) Autonomous Agent ─────────────── ─────────────── ──────────────────── • Proxy / Adapter • Mirror of entity • Observer • Sip, Websocket • Present + feedback • Executor • Hide protocol • IoT, Telecom • Collaborator complexity • State visualization • AI-driven autonomy • Simulation / feedback • Coordination in MAS
Value: simplify access Value: insight + control Value: autonomy + learning
✨ Features
-
Event Sourcing Core: append-only event store powered by the Binary Segment Log (
tm/storage/binlog.py). JSONL and SQLite remain optional adapters planned for future expansion. -
DDD Structure: clear separation of domain, application, and infrastructure layers.
-
Pipeline Engine: field-driven processing (Plan → Rule → Step), statically analyzable.
-
Tracing & Reflection: every step produces auditable spans.
-
Smart Layer:
- Summarize: human-readable summaries of recent events.
- Diagnose: heuristic anomaly detection with suggested actions.
- Plan: goal → steps → optional execution.
- Reflect: postmortem reports and threshold recommendations.
-
Visualization:
- Static: export DOT/JSON diagrams of flows.
- Dynamic: SSE dashboard with live DAG and insights panel.
-
Protocols:
- MCP (Model Context Protocol) integration (JSON-RPC 2.0) – see the
latest specification
and the community GitHub org.
Example flow recipe:
from tm.recipes.mcp_flows import mcp_tool_call spec = mcp_tool_call("files", "list", ["path"]) runtime.register(_SpecFlow(spec))
- MCP (Model Context Protocol) integration (JSON-RPC 2.0) – see the
latest specification
and the community GitHub org.
Example flow recipe:
-
Interfaces:
- REST API:
/api/commands/*,/api/query/*,/agent/chat. - Metrics:
/metrics(Prometheus format). - Health checks:
/healthz,/readyz.
- REST API:
📂 Architecture (ASCII Overview)
+----------------+
| REST / CLI |
+----------------+
|
[Commands]
v
+----------------+
| App Service |
+----------------+
|
+------+------+
| |
[Event Store] [Event Bus]
| |
+-------+ +----+-----------------+
| | |
[Projections] [Pipeline Engine] [Smart Layer]
| (Summarize/Diagnose/Plan/Reflect)
v
[Trace Store]
📚 Documentation
🚀 Quick Start
Requirements
- Python 3.11+
- Standard library only (no third-party dependencies by default)
Run in development
# clone
git clone https://github.com/<your-username>/trace-mind.git
cd trace-mind
# install and scaffold a demo project
pip install -e .
tm init demo
cd demo
# execute the sample flow
tm run flows/hello.yaml -i '{"name":"world"}'
Run in container
docker build -t trace-mind ./docker
docker run --rm -it \
--read-only \
-v $(pwd)/data:/data \
-p 8080:8080 \
trace-mind
🧩 Roadmap
- More connectors (file bridge, http bridge, kafka bridge)
- Richer dashboard with interactive actions
- Adaptive thresholds in Reflector
- Optional LLM integration for natural summaries
📜 License
MIT (for personal and experimental use)
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 trace_mind-0.2.1.tar.gz.
File metadata
- Download URL: trace_mind-0.2.1.tar.gz
- Upload date:
- Size: 85.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8f8bd88ff22659c7eeb9dbc6762cc81fabb9bb2cb8c2f114a2e32e332ef4555
|
|
| MD5 |
e9b6d096f3db40f699cd8382e210f6dd
|
|
| BLAKE2b-256 |
5b52a334f76b37bc4445daa7ae624acd983640031f7c03a94e4af4176caf4a5b
|
Provenance
The following attestation bundles were made for trace_mind-0.2.1.tar.gz:
Publisher:
release.yml on RaphaelYu/TraceMind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trace_mind-0.2.1.tar.gz -
Subject digest:
e8f8bd88ff22659c7eeb9dbc6762cc81fabb9bb2cb8c2f114a2e32e332ef4555 - Sigstore transparency entry: 566042418
- Sigstore integration time:
-
Permalink:
RaphaelYu/TraceMind@de35499590b629f6080598886168beee7f68d739 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/RaphaelYu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@de35499590b629f6080598886168beee7f68d739 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trace_mind-0.2.1-py3-none-any.whl.
File metadata
- Download URL: trace_mind-0.2.1-py3-none-any.whl
- Upload date:
- Size: 111.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3de90bd1db5b6107ecbd469975c21fe358becb3352677d613ec8bb2815906bde
|
|
| MD5 |
19d8a7d65eecdf578fd8e7ec1139329d
|
|
| BLAKE2b-256 |
ee941f5e1b07c70ecba9b27c6c63ed2940f62106e1dbc3457a3a4364c0575b93
|
Provenance
The following attestation bundles were made for trace_mind-0.2.1-py3-none-any.whl:
Publisher:
release.yml on RaphaelYu/TraceMind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trace_mind-0.2.1-py3-none-any.whl -
Subject digest:
3de90bd1db5b6107ecbd469975c21fe358becb3352677d613ec8bb2815906bde - Sigstore transparency entry: 566042430
- Sigstore integration time:
-
Permalink:
RaphaelYu/TraceMind@de35499590b629f6080598886168beee7f68d739 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/RaphaelYu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@de35499590b629f6080598886168beee7f68d739 -
Trigger Event:
push
-
Statement type: