Skip to main content

Overview

The Task System gives the agent accountability. Tasks flow through a lifecycle (pending -> in_progress -> completed/failed/blocked), the agent manages them via tools, and the dashboard shows real-time progress. Projects group related tasks under a parent. The agent decomposes work into projects when it detects multi-step intent.

Architecture

Data Layer

Tasks live in ~/.argentos/data/dashboard.db (SQLite), shared by the agent runtime and dashboard API.
A project is a task with metadata.type = "project". Child tasks reference it via parent_task_id. No schema migration needed.

Agent Tool

The tasks tool exposes these actions:

Dashboard

  • Tasks tab — Active tasks, pending tasks, recently completed
  • Projects tab — Project cards with progress bars, click to expand child tasks
  • Schedule tab — Cron jobs and scheduled tasks

Markers

The agent emits markers in its response stream for instant UI updates:
  • [TASK_DONE:title] — Dashboard immediately marks matching task as done
  • [TTS:text] — Dashboard speaks the text via ElevenLabs
These provide instant feedback before the next 5-second poll cycle.

Task Lifecycle

Project Flow

1

User describes multi-step work

2

Agent creates project via tasks tool with action: project_create

3

Dashboard shows project card with 0/N progress

4

Agent works through child tasks, calling start and complete

5

Dashboard updates progress bar in real-time

6

When all children complete, project shows as done

Example

User: “Set up monitoring for the production servers” Agent creates:

API Routes

Key Files