Skip to content

theinterneti/TTA.dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TTA.dev - AI Development Toolkit

Production-ready agentic primitives and workflow patterns for building reliable AI applications.

CI Quality TODO Compliance Python 3.11+ Code style: Ruff Type checked: Pyright


🎯 What is TTA.dev?

TTA.dev is a curated collection of battle-tested, production-ready components for building reliable AI applications. Every component here has:

  • βœ… 100% test coverage
  • βœ… Real-world production usage
  • βœ… Comprehensive documentation
  • βœ… Zero known critical bugs

Philosophy: Only proven code enters this repository.


🀝 Relationship to TTA (The Game)

TTA.dev was originally extracted from the Therapeutic Text Adventure (TTA) project.

  • TTA.dev (This Repo): The reusable DevOps, infrastructure, and agentic primitives.
  • TTA (Game Repo): The narrative storytelling game built on top of this platform.

πŸ“¦ Repository Structure

TTA.dev is organized into platform infrastructure packages and apps for end-user deployments:

TTA.dev/
β”œβ”€β”€ platform/              # Infrastructure packages (7)
β”‚   β”œβ”€β”€ primitives/        # Core workflow primitives
β”‚   β”œβ”€β”€ observability/     # OpenTelemetry integration
β”‚   β”œβ”€β”€ agent-context/     # Agent context management
β”‚   β”œβ”€β”€ agent-coordination/# Multi-agent orchestration
β”‚   β”œβ”€β”€ integrations/      # Pre-built integrations
β”‚   β”œβ”€β”€ documentation/     # Docs automation
β”‚   └── kb-automation/     # Knowledge base maintenance
β”‚
β”œβ”€β”€ templates/             # πŸš€ Vibe Coding Templates (Start Here)
β”‚   β”œβ”€β”€ basic-agent/       # Simple agent with cache/retry
β”‚   └── workflow/          # Multi-step workflow
β”‚
β”œβ”€β”€ apps/                  # User-facing applications (1)
β”‚   └── observability-ui/  # VS Code observability dashboard
β”‚
β”œβ”€β”€ config/                # Configuration files
β”œβ”€β”€ data/                  # Data artifacts
β”‚   └── ace_playbooks/     # ACE Agent Playbooks
β”œβ”€β”€ docs/                  # Documentation
β”œβ”€β”€ scripts/               # Automation scripts
└── tests/                 # Integration tests

πŸ—οΈ Platform Packages

Core Infrastructure (Production-Ready)

1. tta-dev-primitives β†’ platform/primitives/

Core workflow primitives for building reliable, observable agent workflows.

Features:

  • πŸ”€ Router, Cache, Timeout, Retry, Memory primitives
  • πŸ”— Composition operators (>>, |)
  • ⚑ Parallel and conditional execution
  • πŸ“Š OpenTelemetry integration
  • πŸ’ͺ Comprehensive error handling
  • πŸ“‰ Cost reduction via intelligent caching and routing

Installation:

uv add tta-dev-primitives

Quick Start: See GETTING_STARTED.md for a quick start guide.

πŸ“š Full Documentation


2. tta-observability-integration β†’ platform/observability/

OpenTelemetry integration for tracing, metrics, and logging across TTA.dev primitives.

Features:

  • πŸ“Š Automatic OpenTelemetry tracing and metrics
  • πŸ“ Structured logging
  • πŸ“ˆ Prometheus-compatible metrics export
  • πŸ›‘οΈ Graceful degradation when observability backend is unavailable

Installation:

uv add tta-observability-integration

πŸ“š Full Documentation


3. universal-agent-context β†’ platform/agent-context/

Agent context management and orchestration for multi-agent workflows.

Features:

  • 🧠 Centralized context management for agents
  • πŸ”„ Context propagation across primitives
  • πŸ”‘ Secure handling of agent-specific data
  • 🀝 Facilitates multi-agent coordination

Installation:

uv add universal-agent-context

πŸ“š Full Documentation


Extended Platform (Active Development)

4. tta-agent-coordination β†’ platform/agent-coordination/

Atomic DevOps Architecture for multi-agent coordination.

πŸ“š Documentation

5. tta-dev-integrations β†’ platform/integrations/

Pre-built integration primitives (Supabase, PostgreSQL, Clerk, JWT).

πŸ“š Documentation

6. tta-documentation-primitives β†’ platform/documentation/

Automated docs ↔ Logseq sync with AI metadata.

πŸ“š Documentation

7. tta-kb-automation β†’ platform/kb-automation/

Automated knowledge base maintenance (links, TODOs, flashcards).

πŸ“š Documentation


πŸ“± Applications

tta-observability-ui β†’ apps/observability-ui/

LangSmith-inspired observability dashboard with VS Code webview integration.

Features:

  • πŸ“Š Real-time trace visualization
  • πŸ” Primitive-aware debugging
  • 🎯 VS Code integration (coming Phase 3)

πŸ“š Documentation


πŸš€ Quick Start

For a comprehensive quick start guide, including installation and your first workflow, please refer to GETTING_STARTED.md.


πŸ“š Documentation

Additional Resources


πŸ§ͺ Testing

All packages maintain 100% test coverage with comprehensive test suites.

# Run all tests
uv run pytest -v

# Run with coverage
uv run pytest --cov=platform --cov=apps --cov-report=html

# Run specific package tests
uv run pytest platform/primitives/tests/ -v

πŸ› οΈ Development

Prerequisites

  • Python 3.11+
  • uv (recommended)
  • VS Code with recommended extensions (see .vscode/extensions.json)

Setup

# Clone repository
git clone https://github.com/theinterneti/TTA.dev
cd TTA.dev

# Install dependencies
uv sync --all-extras

# Run tests
uv run pytest -v

# Run quality checks
uv run ruff format .
uv run ruff check . --fix
uvx pyright platform/ apps/

VS Code Workflow

We provide VS Code tasks for common operations:

  1. Press Cmd/Ctrl+Shift+P
  2. Type "Task: Run Task"
  3. Select from:
    • πŸ§ͺ Run All Tests
    • βœ… Quality Check (All)
    • πŸ“¦ Validate Package
    • πŸ” Lint Code
    • ✨ Format Code
    • πŸ“Š PR Dashboard
    • πŸ” PR Analytics
    • πŸ₯ PR Triage
    • πŸ₯ PR Health Check
    • πŸ’‘ PR Recommendations

See full task list

PR Management

TTA.dev includes intelligent PR management tools:

# Dashboard - Visual overview of all open PRs
python scripts/pr_manager.py dashboard

# Analytics - Detailed metrics and insights
python scripts/pr_manager.py analyze

# Triage - Categorize and prioritize PRs
python scripts/pr_manager.py triage

# Health Check - Identify PRs needing attention
python scripts/pr_manager.py health-check

# Recommendations - Get actionable next steps
python scripts/pr_manager.py recommend

Features:

  • πŸ“Š Smart categorization (critical, ready-to-merge, stale, etc.)
  • 🎯 Priority scoring (0-100) based on urgency and impact
  • πŸ₯ Automated health monitoring
  • πŸ’‘ Actionable recommendations
  • πŸ”— Integration with Logseq TODO system
  • πŸ€– Weekly automated monitoring via GitHub Actions

See PR Management Guide for details.


🀝 Contributing

We welcome contributions! However, only battle-tested, proven code is accepted.

Contribution Criteria

Before submitting a PR, ensure:

  • βœ… All tests passing (100%)
  • βœ… Test coverage >100% (for new code)
  • βœ… Documentation complete
  • βœ… Ruff + Pyright checks pass
  • βœ… TODO compliance (100%) - All Logseq TODOs properly formatted
  • βœ… Real-world usage validation
  • βœ… No known critical bugs

TODO Compliance Requirement

All TODOs in Logseq journals must follow the TODO Management System:

  • Category tag required: #dev-todo or #user-todo
  • For #dev-todo: Must include type::, priority::, package:: properties
  • For #user-todo: Must include type::, audience::, difficulty:: properties

Validation:

# Check TODO compliance locally
uv run python scripts/validate-todos.py

# Expected output: 100.0% compliance

The CI will automatically validate TODO compliance on all PRs. Non-compliant TODOs will block the merge.

Contribution Workflow

  1. Create feature branch

    git checkout -b feature/add-awesome-feature
  2. Make changes and validate

    ./scripts/validate-package.sh <package-name>
  3. Commit with semantic message

    git commit -m "feat(package): Add awesome feature"
  4. Create PR

    gh pr create --title "feat: Add awesome feature"
  5. Squash merge after approval

See full contribution guide


πŸ“‹ Code Quality Standards

Formatting

  • Ruff with 88 character line length
  • Auto-format on save in VS Code

Linting

  • Ruff with strict rules
  • No unused imports or variables

Type Checking

  • Pyright in basic mode
  • Type hints required for all functions

Testing

  • pytest with AAA pattern
  • 100% coverage required
  • All tests must pass

Documentation


🚦 CI/CD

All PRs automatically run:

  • βœ… Ruff format check
  • βœ… Ruff lint check
  • βœ… Pyright type check
  • βœ… pytest (all tests)
  • βœ… Coverage report
  • βœ… Multi-OS testing (Ubuntu, macOS, Windows)
  • βœ… Multi-Python testing (3.11, 3.12)

Merging requires all checks to pass.


πŸ“Š Project Status

Current Release: v0.1.0 (Initial)

Package Version Tests Coverage Status
tta-dev-primitives 0.1.0 12/12 βœ… 100% 🟒 Stable
tta-observability-integration 0.1.0 TBD TBD 🟒 Stable
universal-agent-context 0.1.0 TBD TBD 🟒 Stable

Roadmap

  • v0.2.0: Add more workflow primitives (saga, circuit breaker)
  • v0.3.0: Enhanced observability features
  • v1.0.0: First stable release

πŸ”— Related Projects

  • TTA - Therapeutic text adventure game (private)
  • Augment Code - AI coding assistant
  • GitHub Copilot - AI pair programmer

πŸ“„ License

MIT License - see LICENSE for details


πŸ™ Acknowledgments

Built with:


πŸ“§ Contact


⭐ Star History

If you find TTA.dev useful, please consider giving it a star! ⭐


Last Updated: 2025-11-10


Logseq: [[TTA.dev/Readme]]