Skip to main content

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 configuration
  • agentflow config show - Show current configuration
  • agentflow config test - Test database connection

Workspace

  • agentflow workspace create <name> - Create a new workspace
  • agentflow workspace list - List all workspaces
  • agentflow workspace switch <name> - Switch to a workspace
  • agentflow workspace current - Show current workspace

Session

  • agentflow session start <task> - Start a new session
  • agentflow session status - Show current session status
  • agentflow session abort - Abort the current session
  • agentflow 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

Metadata

Release files for agentflow-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentflow-cli 0.1.0
File Size Uploaded
agentflow_cli-0.1.0.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentflow-cli 0.1.0
File Interpreter ABI Platform
agentflow_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.1 kB

Release files / agentflow_cli-0.1.0.tar.gz

Download URL agentflow_cli-0.1.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
373dae580260d77d93729c2464839573614e988463906aa601a6d2abef426813
BLAKE2b-256 checksum
How to use checksums
d7651360c7dacc6ce7c8394a8d20bd4d0616899d34d308845bdb5be61ba970bd
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / agentflow_cli-0.1.0-py3-none-any.whl

Download URL agentflow_cli-0.1.0-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e072dc5fd6a8e077054192884e23537da55625118b170db8d04c1c46a8977035
BLAKE2b-256 checksum
How to use checksums
795c0d69c5ba5d05f2a0c7bdc7795f61eb0d08f00cab6575e5d0b2cd525b7f12
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page