---
name: hekate-agent-workflow
description: Hekate multi-agent workflow patterns and conventions
---

# Hekate Agent Workflow

## Epic Flow

```text
create epic: Build authentication system
```

This stores the epic and tasks in SQLite, then makes pending work available for Redis-backed claiming and dispatch.

## Session Flow

1. `SessionStart` loads task context from SQLite.
2. `PreToolUse` resolves the provider and refreshes the Redis heartbeat.
3. `PostToolUse` can claim more pending work and detect completion after commits.

## Monitoring

```bash
./scripts/hekate-dashboard.py
./scripts/hekate-analyze.py
```

## Recovery

```bash
redis-cli keys "task:*:claim"
redis-cli keys "agent:*:heartbeat"
```
