Skip to content
arulmathurPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

Orbit

A small full-stack task manager that turns a program charter into workstreams, owners, and tasks with Claude.

Run

npm install

Add your Anthropic key to .env, then start the app:

npm start

Then open http://localhost:3000.

Claude configuration

The app loads .env through the npm scripts. Supported variables:

  • ANTHROPIC_API_KEY
  • CLAUDE_MODEL
  • PORT
  • SLACK_BOT_TOKEN
  • SLACK_SIGNING_SECRET
  • SLACK_CONVERSATION_TYPES
  • SLACK_HISTORY_LIMIT
  • SLACK_GLOBAL_MESSAGE_LIMIT
  • SLACK_SYNC_INTERVAL_MS
  • SLACK_APPROVAL_CHANNEL_ID (optional fallback channel for task update approval requests)
  • SLACK_BLOCKED_ALERT_CHANNEL_ID (optional channel for blocked-task owner alerts; falls back to SLACK_APPROVAL_CHANNEL_ID)
  • SLACK_OWNER_MENTIONS (optional JSON or comma-separated map from Orbit owner names to Slack user IDs)
  • SLACK_INTERVENTION_CHANNEL_ID (legacy fallback; use SLACK_APPROVAL_CHANNEL_ID for new setups)
  • ORBIT_STATE_FILE (optional; shared project snapshot for the MCP server)

Example .env:

ANTHROPIC_API_KEY=sk-ant-...
CLAUDE_MODEL=claude-sonnet-4-20250514
PORT=3000
SLACK_BOT_TOKEN=xoxb-your-token
SLACK_SIGNING_SECRET=your-signing-secret
SLACK_CONVERSATION_TYPES=public_channel,private_channel,mpim,im
SLACK_HISTORY_LIMIT=15
SLACK_GLOBAL_MESSAGE_LIMIT=5
SLACK_SYNC_INTERVAL_MS=20000
SLACK_APPROVAL_CHANNEL_ID=C0123456789
SLACK_BLOCKED_ALERT_CHANNEL_ID=C0123456789
SLACK_OWNER_MENTIONS={"Engineering Lead":"U0123456789","Program Lead":"U0987654321"}
ORBIT_STATE_FILE=.orbit/project-state.json

If no API key is present, charter analysis runs in demo mode with a local heuristic analyzer so the UI remains usable. Slack signal classification uses Claude for semantic task/status mapping and requires ANTHROPIC_API_KEY.

Slack sync reads conversations the configured token can access, asks Claude to semantically classify message meaning against existing tasks, computes downstream dependency impact on the backend, and posts a Slack approval request before changing task status. Orbit only updates tasks after someone clicks the Slack button.

When any saved task transitions into blocked, Orbit posts a Slack alert in SLACK_BLOCKED_ALERT_CHANNEL_ID and tags the task owner when SLACK_OWNER_MENTIONS maps that Orbit owner name to a Slack user ID.

For Slack sync, the token needs the relevant read and history scopes for the conversation types you want to scan, such as channels:read, groups:read, im:read, mpim:read, channels:history, groups:history, im:history, and mpim:history. To post approval requests, also add chat:write and set SLACK_APPROVAL_CHANNEL_ID or make sure the matched Slack message has a channel ID.

Use only a bot token for this app. SLACK_BOT_TOKEN must be an xoxb-... token from an installed Slack app. Do not use an app-level xapp- token for this flow.

Slack Events API

For automatic ingestion and @Orbit commands, configure Slack Events API to send requests to POST /api/slack/events.

  • Add message.channels, message.groups, message.im, and message.mpim as bot events.
  • Add app_mention as a bot event so teammates can ask @Orbit for context or tell it to update a task.
  • Set SLACK_SIGNING_SECRET from your Slack app's Basic Information page.
  • Slack must be able to reach your Request URL. For local development, expose http://localhost:3000/api/slack/events through a tunnel such as ngrok or Cloudflare Tunnel.
  • Enable Slack interactivity and set the Request URL to http://localhost:3000/api/slack/interactions through the same tunnel.

The app stores the current project in server memory and creates pending Slack approval requests for incoming Slack message events. The browser also polls Slack on the configured SLACK_SYNC_INTERVAL_MS cadence while the manager view is open.

MCP Server

Orbit includes a small stdio MCP server for agent workflows:

npm run mcp

The MCP server reads the shared project snapshot written by the app server. Analyze a charter or run a Slack sync first so .orbit/project-state.json exists.

Available tools:

  • get_product_status: returns overall project health, blocked work, at-risk downstream work, and top priority items.
  • get_priority_items: ranks tasks for agent action. Ranking favors blocked/at-risk work and tasks with many downstream dependents, so agents prioritize work that unblocks the most execution.
  • link_commit_to_task: links a Git commit to an Orbit task. Pass taskId from get_priority_items when available, or taskQuery with a task title fragment. If commitSha is omitted, Orbit links the current repo HEAD; pass repoPath when the agent is working from another repository.

Example commit-linking call arguments:

{
  "taskId": "update-swift-ios-app-components",
  "repoPath": "/path/to/product-repo"
}

Linked commits appear on task cards and open the GitHub commit when the repository remote is a GitHub URL.

Architecture

  • frontend/: Browser UI, API client, and client-side task state.
  • server/index.js: Static file server plus API entrypoint.
  • server/api/: HTTP API route handlers.
  • server/services/: Claude client, charter analysis orchestration, normalization, and demo fallback.

No database is required. Generated tasks are kept in browser local storage after analysis.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages