Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Pith

Task management where AI agents and humans are equal teammates.

Quick Start · Connect Your Agent · CLI · Web UI · API · AI Features

License: MITNode.js 20+PostgreSQL 16+MCP Native


Pith — Board view, list view, task details, and agent activity

AI coding agents do real engineering work — they read specs, write code, fix bugs, and submit PRs. But they're blind to the project's task board. Every context switch requires a human to copy-paste task details, update statuses, and relay decisions.

Pith fixes this. It's an open-source task management system where agents can read tasks, update progress, log work, and create sub-tasks — the same way humans do, but through APIs and MCP instead of a browser.

Quick Start

Docker (recommended)

git clone https://github.com/SiluPanda/pith.git
cd pith/docker
docker compose up

The API is ready at http://localhost:3456. Check it with curl http://localhost:3456/health.

Without Docker

Requires Node.js 20+ and PostgreSQL 16+.

git clone https://github.com/SiluPanda/pith.git
cd pith
cp .env.example .env
# Edit .env — set DATABASE_URL and JWT_SECRET
npm install
npm run db:migrate
npm run dev

Create your first user and project

# Seed sample data (creates admin user, project, and example tasks)
npm run db:seed
# Or use the API directly:
curl -X POST http://localhost:3456/api/v1/users \
-H "Content-Type: application/json" \
-d '{"name": "Admin", "email": "admin@example.com", "role": "admin"}'# Save the apiKey from the response — it's shown only once

Connect Your AI Agent

Pith is a native MCP tool server. Any MCP-compatible client — Claude Code, Claude Desktop, Cursor, Windsurf, or custom agents — works out of the box.

Setup

Add to your MCP client config (e.g. .mcp.json):

{
"mcpServers": {
"pith": {
"command": "npx",
"args": ["-y", "@pith/mcp-server"],
"env": {
"PITH_URL": "http://localhost:3456",
"PITH_API_KEY": "kb_your_api_key_here"
}
}
}
}

What your agent can do

ToolWhat it does
list_tasksQuery tasks with filters — status, priority, assignee, labels, free-text search
get_taskGet full task details including comments, sub-tasks, and activity history
create_taskCreate a task with title, description, priority, labels
update_taskChange status, priority, assignee, or any other field
add_commentPost a Markdown comment on a task
create_subtasksBreak a task into sub-tasks (up to 20 at once)
search_tasksFull-text search across all tasks
get_my_tasksSee what's assigned to the current agent
get_contextGet rich context — parent task, siblings, recent activity
start_session / end_sessionTrack work sessions with summaries

Your agent also gets read access to live resources:

  • pith://project/{slug}/board — Current board state by status column
  • pith://project/{slug}/backlog — Full backlog with priorities
  • pith://task/{id}/context — Complete task context for deep work
  • pith://user/{id}/workload — Current assignment load

Example: autonomous coding agent workflow

1. Agent calls get_my_tasks → sees "Fix auth middleware" assigned to it
2. Agent calls get_context → reads task details, parent task, recent comments
3. Agent calls start_session → begins tracked work session
4. Agent writes code, runs tests → (happens outside Pith)
5. Agent calls update_task → moves status to "in_review"
6. Agent calls add_comment → posts summary + PR link
7. Agent calls end_session → records what it accomplished

No human had to copy-paste context or update the board.

CLI

Install globally or use via npx:

npx @pith/cli init --url http://localhost:3456 --key kb_your_key --project my-project

Managing tasks

# List tasks with filters
pith task list --status todo --priority P0
# Create a task
pith task create "Implement rate limiting" --priority P1 --labels security,api
# View task details with comments and activity
pith task show <task-id># Update status
pith task update <task-id> --status in_progress
# Add a comment
pith task comment <task-id>"Started work, ETA 2 hours"# Search across all tasks
pith search "authentication bug"

Agent sessions

pith session start --name "Claude Code" --tasks <task-id-1>,<task-id-2># ... do work ...
pith session end <session-id> --summary "Fixed auth bug and added tests"
pith session list

Machine-readable output

Every command supports --json for piping into scripts:

pith task list --status todo --json | jq '.[].title'

Web UI

Pith includes a lightweight web interface at http://localhost:5173 (dev mode) or served by the API in production.

  • Board view — Kanban-style columns by status
  • List view — Sortable table with filters
  • Task detail — Full context with comments, sub-tasks, and activity timeline
  • Agent activity feed — Review what your AI agents have been working on
  • Session review — Inspect individual agent work sessions

Start the dev server:

cd packages/web
npm run dev

API

Full REST API with OpenAPI/Swagger documentation at /docs (development mode).

Authentication

Every request requires a Bearer token — either an API key or a JWT access token:

# Using an API key
curl -H "Authorization: Bearer kb_your_api_key" http://localhost:3456/api/v1/projects
# Using JWT (get tokens via login)
curl -X POST http://localhost:3456/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email": "admin@example.com", "apiKey": "kb_your_api_key"}'

Key endpoints

MethodEndpointDescription
GET/api/v1/projectsList projects
POST/api/v1/projectsCreate project (admin)
GET/api/v1/projects/:slug/tasksList tasks with filters
POST/api/v1/projects/:slug/tasksCreate task
GET/api/v1/tasks/:idGet task with full context
PATCH/api/v1/tasks/:idUpdate task fields
POST/api/v1/tasks/:id/commentsAdd comment
POST/api/v1/tasks/:id/subtasksBatch create sub-tasks
GET/api/v1/search?q=...Full-text search
POST/api/v1/sessionsStart agent session
GET/api/v1/projects/:slug/analyticsProject analytics

Full reference: docs/api-reference.md

Roles

RoleCan do
adminEverything — manage users, projects, webhooks, tenants
memberCreate/update tasks, add comments, view projects
agentSame as member — designed for AI agent API keys

Webhooks

Get notified when things happen in your project:

curl -X POST http://localhost:3456/api/v1/projects/my-project/webhooks \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://your-server.com/webhook", "events": ["task.created", "task.updated"]}'

Events: task.created, task.updated, task.deleted, comment.created, session.started, session.ended, project.created, *

Payloads are signed with HMAC-SHA256 via the X-Pith-Signature header.

Slack & Discord notifications

curl -X POST http://localhost:3456/api/v1/projects/my-project/notifications \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"provider": "slack", "name": "dev-channel", "webhookUrl": "https://hooks.slack.com/...", "events": ["task.created", "task.status_changed"]}'

AI Features

AI features are optional. Pith works fully without any AI model configured. When configured, AI enhances — never blocks — your workflow.

Configure a provider

# Via CLI
pith config set ai.provider anthropic
pith config set ai.model claude-sonnet-4-20250514
pith config set ai.apiKey sk-ant-...
# Or via environment variablesexport PITH_AI_PROVIDER=anthropic # anthropic, openai, google, groq, ollamaexport PITH_AI_MODEL=claude-sonnet-4-20250514
export PITH_AI_API_KEY=sk-ant-...
export PITH_AI_BASE_URL= # optional, for self-hosted models

Supports any provider via Vercel AI SDK: Anthropic, OpenAI, Google, Groq, OpenRouter, and Ollama for local models.

What AI can do

  • Decompose tasks — Break a large task into actionable sub-tasks with estimates
  • Triage — Auto-suggest priority and labels for new tasks
  • Context assembly — Build a briefing document with key points and risks for an agent starting work
  • Effort estimation — Suggest time estimates based on historical project data
  • Sprint summaries — Generate project summaries from activity data
  • Duplicate detection — Flag similar tasks using pg_trgm similarity
# Decompose from CLI
pith task decompose <task-id># Get AI-assembled context
pith task context <task-id># Via API
curl -X POST http://localhost:3456/api/v1/ai/triage \
-H "Authorization: Bearer kb_..." \
-H "Content-Type: application/json" \
-d '{"title": "Fix memory leak in worker pool", "description": "Workers are not being cleaned up..."}'

Multi-Tenant Mode

Pith supports multi-tenant SaaS deployments with isolated workspaces:

curl -X POST http://localhost:3456/api/v1/tenants \
-H "Authorization: Bearer kb_admin_key" \
-H "Content-Type: application/json" \
-d '{"slug": "acme-corp", "name": "Acme Corp", "plan": "pro"}'

Each tenant gets configurable user and project limits.

Configuration Reference

Environment variables

VariableRequiredDefaultDescription
DATABASE_URLYes (production)postgres://postgres:postgres@localhost:5432/pithPostgreSQL connection string
JWT_SECRETYes (production)dev fallbackSecret for signing JWT tokens
PORTNo3456API server port
HOSTNo0.0.0.0API server bind address
CORS_ORIGINNohttp://localhost:5173Allowed CORS origins (comma-separated)
LOG_LEVELNoinfoLog level: debug, info, warn, error
PITH_AI_PROVIDERNoAI provider name
PITH_AI_MODELNoAI model identifier
PITH_AI_API_KEYNoAI provider API key
GITHUB_WEBHOOK_SECRETNoSecret for verifying GitHub webhook signatures

Project Structure

packages/
core/ Shared types, Zod schemas, constants
db/ PostgreSQL schema, migrations, seed data (Drizzle ORM)
server/ REST API — Fastify, auth, RBAC, webhooks, analytics
ai/ AI integration layer (Vercel AI SDK, provider-agnostic)
mcp-server/ MCP tool server (stdio + HTTP transports)
cli/ Command-line interface (Commander.js)
web/ Web UI (React + Vite)

Contributing

See CONTRIBUTING.md for development setup and guidelines.

git clone https://github.com/SiluPanda/pith.git
cd pith
npm install
npm run db:migrate
npm test# 146 tests
npm run dev # Start API server with hot reload

License

MIT

About

AI-native task management for humans & agents. MCP-first, CLI-native, self-hosted. Bring your own model.

Topics

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages