OmoiOS / backend
CLAUDE.md79 starsChanged 10 months agoApache-2.0View on GitHub
Required webhook events: - checkout.session.completed - customer.subscription.created - customer.subscription.updated - customer.subscription.deleted - invoice.paid - invoice.payment_failed ALWAYS use get_app_settings() for database connections - never hardcode connection strings: This automatically loads credentials from .env / .env.local files (.env.local takes precedence). The Railway production database URL is configured in .env.local. OmoiOS is a spec-driven, multi-agent orchestration system built on top of the OpenHands Software Agent SDK. It combines autonomous agent execution with a structured spec-driven workflow (Requirements → Design → Tasks → Execution)…
- Reads credentials
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .claude/skills/oip-proposal/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- .cursor/rules/development.mdcCursor rule
- browser-useSkill
- agent-browserSkill
- billing-automationSkill
- canvas-designSkill
- claude-agent-sdk-pythonSkill
- doc-expanderSkill
- docxSkill
- frontend-designSkill
- internal-commsSkill
- litho-budgeted-analysisSkill
- mcp-builderSkill
- oip-proposalSkill
- paypal-integrationSkill
- pci-complianceSkill
- pdfSkill
- pptxSkill
- skill-creatorSkill
- spec-driven-devSkill
- stripe-integrationSkill
- template-skillSkill
- theme-factorySkill
- webapp-testingSkill
- web-artifacts-builderSkill
- xlsxSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
ALWAYS use
get_app_settings()for database connections: - never hardcode connection strings: - Distinctive: line 194
Event Broadcasting: All state changes (task created, assigned, completed, failed, retried, timed out) are published as Redis events for …
- Distinctive: line 234
No Explicit Instructions: Instead of programming every scenario, the system discovers effective patterns and adapts
- Very specific: line 260
Default OpenHands model: openhands/claude-sonnet-4-5-20250929
- Very specific: line 266
Rule: Always prefer structured_output() for LLM responses that need structured data.
- Distinctive: line 270
When you need structured data from an LLM:
- Distinctive: line 271
Create a Pydantic model defining the expected output structure
- Very specific: line 272
Use llm_service.structured_output() with the model
- Very specific: line 273
Use model_dump(mode='json') if you need JSON-serializable dict (e.g., for JSONB storage)
- Distinctive: line 316
No automatic retry on parse errors
- Distinctive: line 317
Not compatible with JSONB storage
- Very specific: line 345
Always use omoi_os.utils.datetime.utc_now() for timezone-aware datetime objects.
- Distinctive: line 348
Use the DatabaseService context manager pattern:
- Very specific: line 364
Instead of metadata, use: change_metadata, item_metadata, config_data, extra_data
- Very specific: line 365
Instead of registry, use: agent_registry, service_registry
- Distinctive: line 392
All significant state changes should publish events via EventBusService:
- Very specific: line 559
Test settings come from config/test.yaml (NOT .env):
- Very specific: line 573
Only secrets/URLs in .env.test:
- Distinctive: line 617
Every configuration section MUST use this pattern:
- Distinctive: line 701
Always test migrations on both fresh databases and existing data.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Production Domains
- Frontend:
https://omoios.dev - Backend API:
https://api.omoios.dev
Stripe Webhook Configuration
The Stripe webhook endpoint is:
https://api.omoios.dev/api/v1/billing/webhooks/stripeRequired webhook events:
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedinvoice.paidinvoice.payment_failed
Development Commands
Package Management (UV)
# Install dependencies
uv sync
# Install test dependencies
uv sync --group test
# Install dev dependencies (includes OpenHands server/workspace)
uv sync --group dev
# Run commands with uv
uv run python -m omoi_os.worker
uv run uvicorn omoi_os.api.main:app --host 0.0.0.0 --port 8000 --reload
uv run alembic upgrade headTesting
# Run all tests
uv run pytest
# Run specific test file
uv run pytest tests/test_task_dependencies.py
# Run tests with coverage
uv run pytest --cov=omoi_os --cov-report=html
# Run specific test markers
uv run pytest -m unit # Unit tests only
uv run pytest -m integration # Integration tests only
uv run pytest -m e2e # End-to-end tests only
# Run single test
uv run pytest tests/test_task_queue.py::TestTaskQueueService::test_enqueue_task -vDatabase Operations
# Run migrations
uv run alembic upgrade head
# Create new migration
uv run alembic revision -m "description"
# Rollback migration
uv run alembic downgrade -1
# View migration history
uv run alembic historyDatabase Connection in Scripts
ALWAYS use get_app_settings() for database connections - never hardcode connection strings:
from omoi_os.config import get_app_settings
from omoi_os.services.database import DatabaseService
settings = get_app_settings()
db = DatabaseService(connection_string=settings.database.url)
with db.get_session() as session:
# Your database operations here
from omoi_os.models.task import Task
tasks = session.query(Task).filter(Task.status == "running").all()This automatically loads credentials from .env / .env.local files (.env.local takes precedence).
The Railway production database URL is configured in .env.local.
Docker Development
# Start all services
docker-compose up -d
# Start specific services
docker-compose up -d postgres redis
# View logs
docker-compose logs -f api
docker-compose logs -f worker
# Rebuild and restart
docker-compose up -d --buildAPI Development
# Start API server (local development)
uv run uvicorn omoi_os.api.main:app --host 0.0.0.0 --port 8000 --reload
# API Documentation (when server is running)
# Swagger UI: http://localhost:8000/docs
# ReDoc: http://localhost:8000/redocSmoke Test
# Verify minimal E2E flow works
uv run python scripts/smoke_test.pyArchitecture Overview
OmoiOS is a spec-driven, multi-agent orchestration system built on top of the OpenHands Software Agent SDK. It combines autonomous agent execution with a structured spec-driven workflow (Requirements → Design → Tasks → Execution) to enable engineering teams to scale development without scaling headcount.
For complete product vision, see docs/product_vision.md.
Spec-Driven Workflow Model
OmoiOS follows a structured spec-driven approach inspired by Hephaestus best practices:
- Requirements Phase: Structured requirements (EARS-style format with WHEN/THE SYSTEM SHALL patterns) capturing user stories and acceptance criteria
- Design Phase: Architecture diagrams, sequence diagrams, data models, error handling, and implementation considerations
- Planning Phase: Discrete, trackable tasks with dependencies and clear outcomes
- Execution Phase: Code generation, self-correction, property-based validation, integration tests, PR generation
Each workflow/spec is stored in OmoiOS (database/storage), not as repo files. Users can export specs to markdown/YAML for version control if desired.
See Hephaestus-Inspired Workflow Enhancements for detailed implementation.
Front-End Architecture
Technology Stack:
- Framework: Next.js 15+ (React 18+) with App Router
- UI Library: ShadCN UI (Radix UI + Tailwind CSS)
- State Management: Zustand (client state) + React Query (server state) with WebSocket integration
- Graph Visualization: React Flow
- Visual Style: Linear/Arc aesthetic with Notion-style structured blocks for specs
Core Dashboard Components:
- Kanban Board: Visual workflow management with tickets/tasks organized by phase (INITIAL → IMPLEMENTATION → INTEGRATION → REFACTORING), real-time updates, drag-and-drop prioritization
- Dependency Graph: Interactive visualization of task/ticket relationships with blocking indicators, animated as dependencies resolve
- Spec Workspace: Multi-tab workspace (Requirements | Design | Tasks | Execution) with spec switcher to switch between specs within each tab. Structured blocks (Notion-style) for requirements/design content
- Activity Timeline/Feed: Chronological feed showing when specs/tasks/tickets are created, discovery events, phase transitions, agent interventions, approvals. Filterable by event type
- Command Palette: Linear-style command palette (Cmd+K) for quick navigation across specs, tasks, workflows, and logs
- Agent Status Monitoring: Live agent status (active, idle, stuck, failed), heartbeat indicators, Guardian intervention alerts
- Git Activity Integration: Real-time commit feed, PR status and diff viewer, branch visualization, merge approval interface
Real-Time Updates:
- WebSocket-powered live synchronization across all views
- Hybrid UI approach: Clean, smooth Figma/Linear-style interface with detailed activity timeline always available (collapsible)
- Drill-down transparency: Users can inspect agent nuances on demand without overwhelming the default view
See Front-End Design for complete UI/UX specifications.
Backend Services Architecture
Core Services Architecture
- DatabaseService: PostgreSQL connection management with SQLAlchemy ORM, provides session context managers for safe database operations
- TaskQueueService: Priority-based task assignment and lifecycle management, supports task dependencies, retries, timeouts, and cancellation
- EventBusService: Redis-based pub/sub system for real-time event broadcasting across agents and components
- AgentHealthService: Agent heartbeat monitoring, stale detection (90s timeout), and health statistics
- AgentExecutor: Wrapper around OpenHands SDK that executes tasks in isolated workspace environments
Data Flow Patterns
- Ticket Creation: Tickets are created via API and automatically split into Phase-based tasks
- Task Assignment: Background orchestrator loop polls TaskQueueService and assigns tasks to registered agents based on priority and dependencies
- Agent Execution: Workers pick up assigned tasks, emit heartbeats every 30s, execute via OpenHands in isolated workspaces, and publish completion events
- Event Broadcasting: All state changes (task created, assigned, completed, failed, retried, timed out) are published as Redis events for real-time monitoring
Phase-Based Development Model
- PHASE_INITIAL: Initial project setup and scaffolding
- PHASE_IMPLEMENTATION: Feature implementation and development
- PHASE_INTEGRATION: System integration and testing
- PHASE_REFACTORING: Code cleanup and optimization
Agent Enhancement Features (Phase 1)
- Task Dependencies: JSONB-based dependency graph with circular dependency detection
- Error Handling: Exponential backoff retries (1s, 2s, 4s, 8s + jitter) with smart error classification
- Health Monitoring: 30-second heartbeats, automatic stale detection, comprehensive health statistics
- Timeout Management: Configurable task timeouts, background monitoring (10s intervals), API-based cancellation
Adaptive Monitoring and Agent Autonomy
Core Principle: Agents discover, verify, and monitor each other to ensure they're helping reach desired goals—without requiring explicit instructions for every scenario.
Agent Discovery
- Discovery Agents: Agents discover new requirements, dependencies, optimizations, and issues as they work
- Autonomous Task Discovery: System expands feature specs as it learns context from the codebase
- Pattern Learning: Monitoring loop learns patterns from successful and failed workflows
- Workflow Branching: Agents discover when to branch workflows (bugs, optimizations, missing components)
Agent Verification
- Verification Agents: Agents verify each other's work through property-based testing and validation
- Spec Compliance: Agents validate implementation against requirements and design specifications
- Quality Gates: Automated quality control with validator agents that verify task completion
- Self-Correction: Agents correct themselves when verification fails, without human intervention
Mutual Agent Monitoring
- Guardian Agents: Monitor individual agent health and provide interventions when agents drift from goals
- Conductor Service: System-wide coordination and duplicate detection across all agents
- Trajectory Analysis: Real-time behavior monitoring with LLM-powered insights to ensure agents stay aligned with desired outcomes
- Agent-to-Agent Oversight: Agents monitor each other to ensure they're working together, not against each other
Adaptive Monitoring Loop
- Continuous Learning: Monitoring loop discovers how things work and adapts without explicit programming
- Pattern Discovery: Learns from successful workflows to identify what works, from failed workflows to identify what doesn't
- Autonomous Adaptation: Adjusts monitoring strategies, intervention thresholds, and agent coordination based on discovered patterns
- No Explicit Instructions: Instead of programming every scenario, the system discovers effective patterns and adapts
- Memory Integration: Uses semantic memory (RAG) to learn from past agent experiences and apply similar patterns
Implementation:
MonitoringLoopservice orchestrates Guardian trajectory analysis and Conductor system coherence analysisIntelligentGuardianprovides LLM-powered trajectory analysis with alignment scoringConductorServicecomputes system-wide coherence scores and detects duplicate workMemoryServicestores discovered patterns for future referenceDiscoveryServicetracks workflow branching and task discoveries
See Monitoring Architecture and Intelligent Monitoring Enhancements for detailed implementation.
Database Schema Design
- PostgreSQL 18+ with vector extensions for future AI-powered features
- JSONB fields for flexible task dependencies and configuration storage
- GIN indexes on JSONB fields for efficient query performance
- Timezone-aware datetime handling using
wheneverlibrary withutc_now()utility
Port Configuration (to avoid conflicts)
- PostgreSQL: 15432 (default 5432 + 10000)
- Redis: 16379 (default 6379 + 10000)
- API: 18000 (default 8000 + 10000)
Environment Configuration
- Uses Pydantic Settings with automatic .env file loading
- Separate settings classes for LLM, Database, and Redis configurations
- Default OpenHands model:
openhands/claude-sonnet-4-5-20250929
Important Implementation Details
LLM Service Usage (ENFORCED)
Rule: Always prefer structured_output() for LLM responses that need structured data. Never manually parse JSON strings from LLM responses.
✅ Preferred: Structured Output with Pydantic Models
When you need structured data from an LLM:
- Create a Pydantic model defining the expected output structure
- Use
llm_service.structured_output()with the model - Use
model_dump(mode='json')if you need JSON-serializable dict (e.g., for JSONB storage)
from omoi_os.services.llm_service import get_llm_service
from pydantic import BaseModel, Field
from typing import Optional
# 1. Define Pydantic model for structured output
class AnalysisResult(BaseModel):
"""LLM analysis result structure."""
score: float = Field(..., ge=0.0, le=1.0)
summary: str
needs_action: bool = Field(default=False)
details: dict = Field(default_factory=dict)
# 2. Use structured_output for type-safe responses
llm = get_llm_service()
result = await llm.structured_output(
prompt="Analyze this agent trajectory...",
output_type=AnalysisResult,
system_prompt="You are an expert analyzer.",
output_retries=3, # Retry if validation fails
)
# 3. If you need JSON-serializable dict (e.g., for JSONB storage)
result_dict = result.model_dump(mode='json') # ✅ Use mode='json'❌ Anti-Pattern: Manual JSON Parsing
NEVER manually parse JSON from LLM responses:
# ❌ WRONG: Manual JSON parsing
response = await llm_service.complete(prompt)
import json
parsed = json.loads(response.strip().removeprefix("```json").removesuffix("```"))Problems with manual parsing:
- Requires stripping markdown code blocks
- Error-prone with malformed JSON
- No type validation
- No automatic retry on parse errors
- Not compatible with JSONB storage
When to Use Each Method
| Use Case | Method | Why |
| Structured data needed | structured_output() | Type-safe, validated, handles parsing |
| Free-form text response | complete() | Simple text generation |
| Need JSONB-compatible dict | model_dump(mode='json') | Proper JSON serialization |
Example: Trajectory Analysis
from omoi_os.models.trajectory_analysis import LLMTrajectoryAnalysisResponse
# Use structured output - no manual parsing needed!
analysis = await llm_service.structured_output(
prompt=rendered_template,
output_type=LLMTrajectoryAnalysisResponse,
system_prompt="You are an expert trajectory analyzer.",
output_retries=3,
)
# Convert to dict for JSONB storage
result_dict = analysis.model_dump(mode='json') # JSON-serializableDatetime Handling
Always use omoi_os.utils.datetime.utc_now() for timezone-aware datetime objects. The whenever library provides proper UTC handling while maintaining SQLAlchemy compatibility. Never use datetime.utcnow() as it creates offset-naive datetimes.
Database Session Management
Use the DatabaseService context manager pattern:
with db.get_session() as session:
# Database operations here
session.commit() # Auto-commits on context exit🚨 CRITICAL: SQLAlchemy Reserved Keywords
NEVER use reserved attribute names in SQLAlchemy models - they cause import failures and runtime errors:
Forbidden Attribute Names (ABSOLUTELY NEVER USE):
metadata- Reserved by SQLAlchemy's Declarative APIregistry- Reserved by SQLAlchemy's internal registry systemdeclared_attr- Reserved by SQLAlchemy's declarative system
Safe Alternatives:
- Instead of
metadata, use:change_metadata,item_metadata,config_data,extra_data - Instead of
registry, use:agent_registry,service_registry - Instead of
declared_attr, use:custom_field,dynamic_attribute
Why This Matters:
- Using
metadatain model classes causessqlalchemy.exc.InvalidRequestError - This error blocks server startup and makes the application unusable
- The error occurs during model definition, not during database operations
- This affects ALL models that inherit from
Base
Example of What NOT To Do:
# ❌ THIS WILL CRASH YOUR APPLICATION
class TicketHistory(Base):
metadata: Mapped[Optional[dict]] = mapped_column(JSONB) # CRASHES!Example of What To Do:
# ✅ THIS WORKS CORRECTLY
class TicketHistory(Base):
change_metadata: Mapped[Optional[dict]] = mapped_column(JSONB) # Safe!Error Classification in Retries
The system distinguishes between retryable errors (network timeouts, temporary failures) and permanent errors (permission denied, syntax errors, authentication failures).
Event Publishing Pattern
All significant state changes should publish events via EventBusService:
event_bus.publish(SystemEvent(
event_type="TASK_COMPLETED",
entity_type="task",
entity_id=str(task.id),
payload={"result": result, "agent_id": agent_id}
))Agent Registration Pattern
Workers must register themselves and emit heartbeats:
agent_id = register_agent(db, agent_type="worker", phase_id="PHASE_IMPLEMENTATION")
heartbeat_manager = HeartbeatManager(agent_id, health_service)
heartbeat_manager.start()Documentation Standards (ENFORCED)
Before Creating ANY Documentation
- Check if it exists:
grep -r "topic" docs/ --include="*.md" - Choose correct category:
- Requirements (what) →
docs/requirements/{category}/ - Design (how) →
docs/design/{category}/ - ADR (why) →
docs/architecture/ - Status →
docs/implementation/
- Requirements (what) →
- Follow naming convention:
- ✅
memory_system.md(snake_case) - ❌
MemorySystem.md(CamelCase) - ❌
memory-system.md(hyphens)
- ✅
- Include metadata:
# Document Title **Created**: 2025-11-20 **Status**: Draft | Review | Approved **Purpose**: One-sentence description - Validate before commit:
just validate-docs
Document Organization Rules
✅ DO:
- Categorize by purpose (requirements/, design/, architecture/)
- Use snake_case filenames
- Include metadata header
- Link to related docs
- Keep docs DRY (Don't Repeat Yourself)
❌ DON'T:
- Create docs in root without categorization
- Use CamelCase, hyphens, or spaces in filenames
- Duplicate information across documents
- Leave docs without status or purpose
- Create orphaned docs without cross-referencesSee Also
docs/DOCUMENTATION_STANDARDS.md- Complete documentation guidescripts/validate_docs.py- Documentation validation tool
Testing Strategy
Test Organization (ENFORCED)
Tests are organized by type in a hierarchical structure:
tests/
├── unit/ # Fast, isolated tests (< 1s each)
├── integration/ # Multi-component tests (< 10s each)
├── e2e/ # Full workflow tests (< 60s each)
├── performance/ # Load and benchmark tests
├── fixtures/ # Shared test fixtures
└── helpers/ # Test utilities and buildersTesting Commands (Use Justfile)
# Quick feedback (only affected tests)
just test
# Full test suite
just test-all
# Category-specific
just test-unit # Unit tests only
just test-integration # Integration tests
just test-e2e # End-to-end tests
# With coverage
just test-coverage # HTML coverage reportTest File Naming Convention (ENFORCED)
# ✅ CORRECT
tests/unit/services/test_task_queue_service.py
tests/integration/workflows/test_ace_workflow_integration.py
tests/e2e/test_full_ticket_lifecycle.py
# ❌ WRONG
tests/test_01_database.py # No numbered prefixes
tests/TaskQueueTest.py # No CamelCase
tests/test_tqs.py # No abbreviations
tests/unit/test_task_queue.py # Missing component suffixTest Structure Requirements
"""Test {feature} {component}.
Tests Requirements: REQ-{PREFIX}-001, REQ-{PREFIX}-002
"""
import pytest
@pytest.fixture
def feature_instance():
"""Create test instance."""
return Feature()
class Test{Feature}:
"""Test suite for {feature}."""
@pytest.mark.unit
def test_{scenario}_success(self, feature_instance):
"""Test {scenario} succeeds when {condition}."""
# Arrange - Act - Assert patternPytest-Testmon (Smart Test Execution)
The project uses pytest-testmon to run only tests affected by code changes:
# Development: Only run affected tests (95% faster!)
just test # ~10-30 seconds
# CI/Full suite: Run all tests
just test-all # ~5-10 minutesHow it works: Testmon tracks which code each test depends on. When you change a file, it only runs tests that touch that code.
Test Configuration (YAML-First)
Test settings come from config/test.yaml (NOT .env):
# config/test.yaml
monitoring:
guardian_interval_seconds: 1 # Fast for tests
worker:
concurrency: 1 # Single worker for predictability
features:
enable_mcp_tools: false # Disable external toolsOnly secrets/URLs in .env.test:
DATABASE_URL_TEST=postgresql://...
LLM_API_KEY=test-key-mock
OMOIOS_ENV=testConfiguration Management (ENFORCED)
YAML for Settings, .env for Secrets
Rule: Application settings go in YAML, secrets go in .env files.
✅ YAML Files (Version Controlled)
# config/base.yaml
task_queue:
age_ceiling: 3600 # Business setting
w_p: 0.45 # Algorithm weight
monitoring:
guardian_interval_seconds: 60
auto_steering_enabled: false
auth:
jwt_algorithm: HS256 # Algorithm choice (not secret)
access_token_expire_minutes: 15✅ .env Files (Gitignored - Secrets Only)
# .env (NEVER commit to git)
DATABASE_URL=postgresql://user:password@host/db
LLM_API_KEY=sk-ant-...
AUTH_JWT_SECRET_KEY=super-secret-key
GITHUB_TOKEN=ghp_...Configuration Pattern (OmoiBaseSettings)
Every configuration section MUST use this pattern:
from omoi_os.config import OmoiBaseSettings
from pydantic_settings import SettingsConfigDict
from functools import lru_cache
class FeatureSettings(OmoiBaseSettings):
"""Feature configuration from YAML."""
yaml_section = "feature" # Section in config/*.yaml
model_config = SettingsConfigDict(
env_prefix="FEATURE_", # Environment variable prefix
extra="ignore"
)
# Settings (loaded from YAML, can be overridden by env vars)
setting_name: int = 60
another_setting: str = "default"
# Secrets (MUST come from environment variables)
api_key: Optional[str] = None # From FEATURE_API_KEY env var
@lru_cache(maxsize=1)
def load_feature_settings() -> FeatureSettings:
"""Load feature settings (cached)."""
return FeatureSettings()Configuration Checklist (Before Adding Settings)
- Is this a secret/password/token? → Use .env ONLY
- Is this a business setting? → Use YAML
- Does a Settings class exist? → Use it
- Need new Settings class? → Extend OmoiBaseSettings
- Add to config/base.yaml with default value
- Add to config/test.yaml with test value (if different)
- Register in CONFIG_REGISTRY (if exists)
- Document in config/README.md
- NEVER hardcode values in code
❌ Configuration Anti-Patterns
# ❌ WRONG: Hardcoded value
def process_task():
timeout = 60 # Never hardcode!
# ❌ WRONG: Secret in YAML
# config/base.yaml
llm:
api_key: sk-ant-... # NEVER put secrets in YAML!
# ❌ WRONG: Setting in .env
# .env
TASK_QUEUE_AGE_CEILING=3600 # Settings belong in YAML!
# ❌ WRONG: Custom env loading
def get_env_files(): # Don't create custom loaders
return [".env"]
# ✅ CORRECT: Use Settings class
from omoi_os.config import load_feature_settings
def process_task():
settings = load_feature_settings()
timeout = settings.timeout_seconds # From YAMLMigration Strategy
Database migrations follow semantic versioning. Phase 1 enhancements are in migration 002_phase_1_enhancements.py which added:
dependencies(JSONB) for task dependency graphsretry_countandmax_retriesfor error handlingtimeout_secondsfor task timeout management
Always test migrations on both fresh databases and existing data.
<claude-mem-context>
# Recent Activity<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->Mar 3, 2026
| ID | Time | T | Title | Read |
| #6486 | 9:51 AM | 🔵 | Examined backend Dockerfile.api for Docker documentation | ~353 |
</claude-mem-context>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

