# Task Orchestrator

> Persistent, hierarchical task and goal management for agents using MCP and LokiDB.

Task Orchestrator is a free AI agent skill on Agensi by Hrishikesh Chappadi, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Hrishikesh Chappadi](https://www.agensi.io/creators/hrishikesh-chappadi)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-19
- Security: scan passed (2026-10-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/task-orchestrator
- Tags: ai-agents, mcp, task-management, typescript, persistence

## About this skill

Maintaining complex state across multiple AI sessions is difficult when relying only on context windows. This skill implements a hierarchical task management system via an MCP server, providing persistent, structured storage for goals and subtasks.

### What it does
- **Goal management** creates durable top-level objectives associated with specific repositories.
- **Hierarchical tasking** uses dot-notation IDs like `1.2.1` to organize work into deeply nested trees.
- **Transactional updates** ensure task batches are added or modified atomically to prevent state corruption.
- **Dependency enforcement** prevents marking parent tasks as complete while subtasks remain open.
- **Persistent storage** utilizes LokiDB to ensure your task lists survive agent restarts or session timeouts.

### How it works
1. **Initialize a goal** using the `create_goal` tool to establish a new project scope.
2. **Build the task tree** by passing nested subtask arrays to `add_tasks` in a single call.
3. **Query progress** with `get_tasks` to retrieve first-level or recursive task lists.
4. **Update status** via `complete_task_status`, optionally closing entire branches at once.

### Frameworks & tools
This skill requires Node.js 18+ and pnpm. It is built as an MCP server using the Model Context Protocol and stores data locally using LokiDB.

### Why this beats prompting it yourself
Standard prompts lose task context as conversations grow long, leading to forgotten requirements or duplicate work. This skill moves the "todo list" out of the volatile context window and into a structured database with enforced parent/child logic.

### Use cases
- Manage multi-step refactoring projects across several days of work.
- Orchestrate sub-agents by assigning specific dot-notation task IDs.
- Maintain a durable project roadmap that persists through agent crashes.

### Known limitations
Does not support goal deletion or inter-goal dependencies. A dedicated progress visualization UI and complex cross-task orchestration are currently not implemented.

## Requires

- Node.js
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Task Orchestrator skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent the 'context drift' often seen in long AI coding sessions?

This skill moves project state out of the volatile context window and into a persistent LokiDB database, preventing the AI from 'forgetting' goals or repeating work during long-running projects.

### Which AI agents or platforms can I use with the Task Orchestrator?

The skill is built on the Model Context Protocol (MCP), making it compatible with any AI agent or IDE (like Claude Desktop or Cursor) that supports the MCP standard.

### Can I create multiple sub-tasks at once, or do I have to add them one by one?

Yes, the 'add_tasks' tool supports nested arrays, allowing you to create complex, multi-level task trees with dot-notation IDs (e.g., 1.1.2) in a single transactional call.

### What happens if an agent tries to close a major goal while subtasks are still open?

The skill enforces dependency logic, meaning the agent cannot mark a parent task as 'Complete' until all of its associated subtasks have been finished or closed.

### What are the technical requirements to get this running locally?

You will need Node.js 18+ and pnpm installed; once configured as an MCP server, the skill handles all database initialization and state management automatically.

### Is it possible to create dependencies between two different top-level goals?

The skill currently focuses on single-goal trees; while you can manage multiple independent goals, it does not currently support linking tasks across different top-level goals.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
