Skip to main content

AI/Human task management system with file-based storage

Project description

Todozi - AI/Human Task Management System

Todozi is a comprehensive, AI-first task and knowledge management system that enables seamless collaboration between humans and AI agents. Built entirely in Python, Todozi combines powerful task management with semantic understanding, memory systems, and intelligent automation.

๐ŸŽฏ Core Philosophy

Todozi is designed around a TAG-FIRST approach where AI models can naturally embed structured information directly in conversations. This allows models to remember, organize, and manage tasks better than humans - capturing context, dependencies, and relationships automatically.

๐Ÿš€ Key Features

1. AI-Powered Task Management

  • Intelligent task creation with automatic priority inference
  • Semantic search across all content types
  • AI/human/collaborative task assignment
  • Project-based organization with automatic grouping
  • Real-time progress tracking and analytics

2. Enhanced Terminal UI (TUI)

  • Beautiful, feature-rich terminal interface with 8 comprehensive tabs
  • Real-time analytics dashboard with completion tracking
  • Modal dialogs for task editing and management
  • Toast notifications and activity feed
  • Live file watching for automatic updates
  • Server management and API key controls

3. Chat Interface for AI Models ๐Ÿ†•

The chat/ directory contains a revolutionary web-based chat interface that demonstrates Todozi's core value proposition:

  • 20% Sidebar: Chat history with scrollable session list
  • 40% Chat Interface: Real-time messaging with AI assistant
  • 40% Todozi Panel: Dynamic task management with project filtering

Why This Matters: The chat interface shows how AI models can use Todozi tags (<todozi>, <memory>, <idea>, etc.) to naturally structure information during conversations. This allows models to:

  • Remember context better than humans
  • Automatically organize tasks and knowledge
  • Maintain project continuity across sessions
  • Capture insights and ideas in real-time

4. Training System ๐Ÿ†•

The train/ directory contains powerful training scripts for fine-tuning AI models on Todozi data:

  • train-todozi-basic.py: Comprehensive BCO (Best-of-N) training script
  • Supports multiple batch strategies (balanced, bootstrap, k-fold, stratified, etc.)
  • Integration with Hugging Face models (Gemma, Llama, etc.)
  • Automatic dataset loading from batch files
  • Configurable training parameters

Training Features:

  • Multiple batch file formats and strategies
  • BCO (Best-of-N) training with reference model
  • Support for bf16/fp16 precision
  • Automatic checkpointing and progress tracking
  • Integration with TRL library for RLHF

5. Memory & Knowledge System

  • Structured memory capture with importance levels
  • Short-term and long-term memory retention
  • Emotional memory tracking
  • Secret/human/standard memory types
  • Semantic memory search

6. Idea & Innovation Tracking

  • Capture creative ideas with importance levels
  • Team/public/private sharing options
  • Breakthrough idea identification
  • Tag-based organization

7. Advanced Features

  • Error logging with severity classification
  • Reminder system with overdue detection
  • Training data collection for model improvement
  • Code chunking for large projects
  • Emotional state tracking
  • Content summarization

๐Ÿ“ฆ Installation

pip install todozi

Or for development installation:

git clone https://github.com/cyber-boost/todozi.git
cd todozi/tdz_py
pip install -e .

๐Ÿ› ๏ธ Quick Start

Terminal UI (TUI)

Launch the enhanced terminal interface:

todozi
# or
python -m todozi.tui

Keyboard Shortcuts:

  • 1-8: Direct tab access (Projects, Tasks, Done, Find, More, API, Feed, Bye)
  • a: Add new task
  • e: Edit task
  • c: Complete task
  • d: Delete task
  • Space: Task actions menu
  • Enter: Task details modal
  • Ctrl+E: Modal task editing
  • Ctrl+R: Full refresh
  • ?: Help

Command Line Interface (CLI)

Use the tdz command for quick operations:

# Launch TUI (default)
tdz

# CLI commands
tdz task "Review quarterly budget"
tdz urgent "Fix critical security issue"
tdz find "authentication"
tdz stats

Python API

from todozi import Storage, Task, Priority, Status

# Initialize storage
storage = await Storage.new()

# Create a task
task = Task.new_full(
    user_id="user123",
    action="Implement user authentication",
    time="4 hours",
    priority=Priority.HIGH,
    parent_project="web-app",
    status=Status.TODO,
    assignee=Assignee.AI,
    tags=["backend", "security"],
    context_notes="Use OAuth2 with JWT tokens"
)

# Add to project
await storage.add_task_to_project(task)

# List tasks
tasks = storage.list_tasks_across_projects(TaskFilters())

# Complete task
storage.complete_task_in_project(task.id)

๐Ÿ’ฌ Chat Interface

The chat interface demonstrates Todozi's tag-based approach for AI models:

cd chat
pip install -r requirements.txt
python chat.py

Then open http://localhost:8275 in your browser.

Example Conversation:

User: "I need to build a user authentication system for my web app"

AI: I'll help you organize this! <todozi>Build user authentication system; 4 hours; high; web-app; todo; ai; backend,security; none; Implement OAuth2 with JWT tokens; 0%</todozi>

<memory>standard; OAuth2 flows are complex; Need secure token handling; Important for web security; high; long; security,authentication</memory>

What specific authentication methods do you want to support?

The AI automatically:

  • Creates structured tasks with proper fields
  • Captures important memories
  • Maintains project context
  • Organizes information semantically

๐ŸŽ“ Training AI Models

Train models on Todozi data using the training scripts:

cd train
pip install -r requirements.txt

# Basic training
python pure/train-todozi-basic.py

# Advanced training (if available)
python pure/train-todozi-advanced.py

Training Script Features:

  • Automatic batch file selection
  • BCO (Best-of-N) training configuration
  • Support for multiple model architectures
  • Configurable training parameters
  • Progress tracking and checkpointing

Available Batch Strategies:

  • balanced/: Balanced sampling across categories
  • bootstrap/: Bootstrap resampling
  • kfold/: K-fold cross-validation splits
  • stratified/: Stratified sampling
  • progressive/: Progressive training sets
  • ml/: Machine learning optimized splits
  • custom/: Custom batch configurations

๐Ÿ“š Todozi Tags

Todozi uses XML-like tags that AI models can naturally embed in conversations:

Task Creation

<todozi>action; time; priority; project; status; assignee; tags; dependencies; context; progress%</todozi>

Example:

<todozi>Fix login bug; 2 hours; high; auth-system; in_progress; ai; bug,security; none; JWT validation issue; 25%</todozi>

Memory Capture

<memory>type; moment; meaning; reason; importance; term; tags</memory>

Example:

<memory>standard; Discovered async patterns in Rust; Makes concurrent code cleaner; Will use for API calls; high; long; rust,async,patterns</memory>

Idea Capture

<idea>idea; share; importance; tags; context</idea>

Example:

<idea>Voice-controlled task management; team; breakthrough; innovation,product,ai; Could revolutionize productivity</idea>

Error Logging

<error>title; description; severity; category; source; context; tags</error>

Example:

<error>Database timeout; Connection failed after 30s; critical; database; postgres; Need connection pooling; performance,database</error>

๐Ÿ—๏ธ Project Structure

tdz_py/
โ”œโ”€โ”€ todozi/          # Main package
โ”‚   โ”œโ”€โ”€ tui.py       # Enhanced Terminal UI
โ”‚   โ”œโ”€โ”€ cli.py       # Command-line interface
โ”‚   โ”œโ”€โ”€ storage.py   # File-based storage
โ”‚   โ”œโ”€โ”€ models.py    # Data models
โ”‚   โ”œโ”€โ”€ server.py    # REST API server
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ chat/            # Chat interface for AI models
โ”‚   โ”œโ”€โ”€ chat.py      # Flask chat server
โ”‚   โ”œโ”€โ”€ system.py    # AI system prompts
โ”‚   โ”œโ”€โ”€ tdz.html     # Web interface
โ”‚   โ””โ”€โ”€ requirements.txt
โ”œโ”€โ”€ train/           # Training scripts
โ”‚   โ”œโ”€โ”€ pure/        # Pure training scripts
โ”‚   โ”‚   โ”œโ”€โ”€ train-todozi-basic.py
โ”‚   โ”‚   โ””โ”€โ”€ train-todozi-advanced.py
โ”‚   โ”œโ”€โ”€ batches/     # Training batch files
โ”‚   โ””โ”€โ”€ requirements.txt
โ”œโ”€โ”€ tests/           # Test suite
โ”œโ”€โ”€ tdz.py           # CLI entry point
โ”œโ”€โ”€ pyproject.toml   # Package configuration
โ””โ”€โ”€ py.sh            # Build & publish script

๐Ÿ”ง Development

Building the Package

Use the automated build script:

./py.sh              # Build only
./py.sh --upload     # Build and upload to PyPI

The script automatically:

  • Increments version number (patch version)
  • Cleans old build artifacts
  • Builds source distribution and wheel
  • Optionally uploads to PyPI

Running Tests

pytest
# or
python -m pytest

Development Installation

pip install -e ".[dev]"

๐Ÿ“Š Features Overview

Terminal UI Tabs

  1. ๐Ÿ“ Projects: Manage and organize projects
  2. ๐Ÿ“‹ Tasks: View, filter, and manage tasks with analytics
  3. โœ… Done: Completed tasks with sorting and filtering
  4. ๐Ÿ” Find: Semantic search across all content
  5. ๐Ÿ”ฎ More: Extended data (Ideas, Memories, Feelings, Errors, Training, Queue, Reminders, Analytics)
  6. ๐Ÿ”‘ API: Server management and API key administration
  7. ๐Ÿ“ฐ Feed: Live activity feed with real-time updates
  8. ๐Ÿ‘‹ Bye: Exit screen

API Server

Start the REST API server:

from todozi.server import start_server

# Start server on default port
await start_server()

Key Endpoints:

  • GET /tasks - List all tasks
  • POST /tasks - Create new task
  • GET /tasks/search?q={query} - Semantic search
  • GET /agents - List AI agents
  • POST /chat/process - Process chat with Todozi tags

๐ŸŽฏ Use Cases

For Developers

  • Project task management
  • Code review tracking
  • Bug tracking and resolution
  • Documentation tasks
  • Learning and knowledge capture

For AI Researchers

  • Training data collection
  • Model fine-tuning workflows
  • Experiment tracking
  • Knowledge base building
  • Multi-agent coordination

For Teams

  • Collaborative task management
  • Shared knowledge base
  • Project planning and tracking
  • Meeting notes and action items
  • Innovation capture

๐Ÿ”— Links

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿค Contributing

Contributions welcome! Please see CONTRIBUTING.md for guidelines.

๐Ÿ™ Acknowledgments

Built with love for the AI and developer communities. Special thanks to all contributors and users who help make Todozi better every day.


Todozi - Where AI and humans collaborate seamlessly. ๐Ÿš€

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

todozi-0.1.8.tar.gz (11.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

todozi-0.1.8-py3-none-any.whl (11.5 MB view details)

Uploaded Python 3

File details

Details for the file todozi-0.1.8.tar.gz.

File metadata

  • Download URL: todozi-0.1.8.tar.gz
  • Upload date:
  • Size: 11.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for todozi-0.1.8.tar.gz
Algorithm Hash digest
SHA256 943e8979560f15400c28022899f82ac0d18018b3d86cb5ee92999ff7cee09028
MD5 8e657cb5261755a91e908ba3b4f87f93
BLAKE2b-256 dbacd32f4e2795592e1eba99f143095b6d1da1484ef625de94ae7a6391592bf7

See more details on using hashes here.

File details

Details for the file todozi-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: todozi-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for todozi-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6a4f85be54c6011e4d18e5d672d1beaf78a2ce514e31c61b5a68532195dd70a9
MD5 d067650f0e9f7e0af9b351ad6af165cf
BLAKE2b-256 272c4daed26861c911f18126bc3cb38e67d5f327b855db5f6296b19c12e8d3fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page