Add your description here
Project description
Kaizen
Self-improving agents through iterations.
Kaizen is a system designed to help agents improve over time by learning from their trajectories. It uses a combination of an MCP server for tool integration, vector storage for memory, and LLM-based conflict resolution to refine its knowledge base.
Features
- MCP Server: Exposes tools to get guidelines and save trajectories.
- Conflict Resolution: Intelligently merges new insights with existing guidelines using LLMs.
- Trajectory Analysis: Automatically analyzes agent trajectories to generate tips and best practices.
- Milvus Integration: Uses Milvus (or Milvus Lite) for efficient vector storage and retrieval.
Architecture
Quick Start
Installation
Prerequisites:
- Python 3.12 or higher
uv(recommended) orpip
git clone <repository_url>
cd kaizen
uv sync && source .venv/bin/activate
Configuration
Set your OpenAI API key:
export OPENAI_API_KEY=sk-...
For detailed configuration options (custom LLM providers, backends, etc.), see CONFIGURATION.md.
Running the MCP Server
uv run fastmcp run kaizen/frontend/mcp/mcp_server.py --transport sse --port 8201
Verify it's running:
npx @modelcontextprotocol/inspector@latest http://127.0.0.1:8201/sse --cli --method tools/list
Available tools:
get_guidelines(task: str): Get relevant guidelines for a specific task.save_trajectory(trajectory_data: str, task_id: str | None): Save a conversation trajectory and generate new tips.create_entity(content: str, entity_type: str, metadata: str | None, enable_conflict_resolution: bool): Create a single entity in the namespace.delete_entity(entity_id: str): Delete a specific entity by its ID.
Documentation
- CONFIGURATION.md - Detailed configuration options
- CLI.md - Command-line interface documentation
- CLAUDE_CODE_DEMO.md - Claude Code demo walkthrough
Development
Running Tests
uv run pytest
Phoenix Sync Tests
Tests for the Phoenix trajectory sync functionality are skipped by default since they require familiarity with the Phoenix integration. To include them:
# Run all tests including Phoenix tests
uv run pytest --run-phoenix
# Run only Phoenix tests
uv run pytest -m phoenix
End-to-End (E2E) Low-Code Verification
To run the full end-to-end verification pipeline (Agent -> Trace -> Tip):
KAIZEN_E2E=true uv run pytest tests/e2e/test_e2e_pipeline.py -s
See docs/LOW_CODE_TRACING.md for more details.
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 kaizen-0.2.1.tar.gz.
File metadata
- Download URL: kaizen-0.2.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
747f3e086f476271243c838bbb0de99a2fb5a9847f968fd3650cd7ca5b153a09
|
|
| MD5 |
02818881c8311224c7b9dcfdac9808c3
|
|
| BLAKE2b-256 |
79154b7dfc38ca8c95c968816b78eef11a0c8a4025bed790472897540479b059
|
Provenance
The following attestation bundles were made for kaizen-0.2.1.tar.gz:
Publisher:
python-publish.yml on AgentToolkit/kaizen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kaizen-0.2.1.tar.gz -
Subject digest:
747f3e086f476271243c838bbb0de99a2fb5a9847f968fd3650cd7ca5b153a09 - Sigstore transparency entry: 934144932
- Sigstore integration time:
-
Permalink:
AgentToolkit/kaizen@993b07e7934bf0c2d43c8f741dd269a50cf98427 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/AgentToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@993b07e7934bf0c2d43c8f741dd269a50cf98427 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kaizen-0.2.1-py3-none-any.whl.
File metadata
- Download URL: kaizen-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 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 |
6e19bc72626f32d9b0934539d3ce882be35b87514eb34f4c85bd4bb93a4ef08a
|
|
| MD5 |
f1f9091e4f190c119186b2f8e890f188
|
|
| BLAKE2b-256 |
f7d1f42a3e2eee62faa7c64f90117a61ddca67e59fbaf60e69199d8839043c87
|
Provenance
The following attestation bundles were made for kaizen-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on AgentToolkit/kaizen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kaizen-0.2.1-py3-none-any.whl -
Subject digest:
6e19bc72626f32d9b0934539d3ce882be35b87514eb34f4c85bd4bb93a4ef08a - Sigstore transparency entry: 934144995
- Sigstore integration time:
-
Permalink:
AgentToolkit/kaizen@993b07e7934bf0c2d43c8f741dd269a50cf98427 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/AgentToolkit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@993b07e7934bf0c2d43c8f741dd269a50cf98427 -
Trigger Event:
release
-
Statement type: