Git-like workflow management for AI agents
Project description
AgentFlow
Git-like workflow management for AI agents.
Overview
AgentFlow is a workflow management system designed to help AI agents track and manage their work sessions in a structured, version-controlled manner similar to how Git manages code.
Features
- Workspace Management - Organize work into isolated workspaces for different projects
- Session Tracking - Track work sessions with start/end times and status
- Action Logging - Log detailed actions during active sessions
- Commit System - Create commits to summarize completed work with parent-child relationships
- Multiple Databases - Support for PostgreSQL and SQLite
Installation
pip install agentflow-cli
Or using uv:
uv pip install agentflow-cli
Quick Start
1. Initialize
Interactive setup:
agentflow init
Or with a direct database URL:
agentflow init --db-url "postgresql://user:pass@localhost/agentflow"
For SQLite:
agentflow init --db-url "sqlite:///agentflow.db"
2. Create a Workspace
agentflow workspace create my-project
agentflow workspace switch my-project
3. Start a Session
agentflow session start "Implement user authentication"
4. Log Actions
agentflow session log "Created User model"
agentflow session log "Added login endpoint"
5. Check Status
agentflow session status
Commands
Configuration
agentflow init- Initialize configurationagentflow config show- Show current configurationagentflow config test- Test database connection
Workspace
agentflow workspace create <name>- Create a new workspaceagentflow workspace list- List all workspacesagentflow workspace switch <name>- Switch to a workspaceagentflow workspace current- Show current workspace
Session
agentflow session start <task>- Start a new sessionagentflow session status- Show current session statusagentflow session abort- Abort the current sessionagentflow session log <action>- Log an action to the current session
Requirements
- Python >= 3.14
- PostgreSQL or SQLite
Development
Install development dependencies:
uv pip install -e ".[dev]"
Run tests:
uv run pytest
Lint:
uv run ruff check
Type check:
uv run mypy
License
MIT
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 agentflow_cli-0.1.0.tar.gz.
File metadata
- Download URL: agentflow_cli-0.1.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
373dae580260d77d93729c2464839573614e988463906aa601a6d2abef426813
|
|
| MD5 |
4d7d9ea02356d055ab94cb9b5386b645
|
|
| BLAKE2b-256 |
d7651360c7dacc6ce7c8394a8d20bd4d0616899d34d308845bdb5be61ba970bd
|
File details
Details for the file agentflow_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentflow_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e072dc5fd6a8e077054192884e23537da55625118b170db8d04c1c46a8977035
|
|
| MD5 |
5249bc31a147da0c0ede83f14b7dfa1d
|
|
| BLAKE2b-256 |
795c0d69c5ba5d05f2a0c7bdc7795f61eb0d08f00cab6575e5d0b2cd525b7f12
|