taskbridge

command module
v1.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 1 Imported by: 0

README

TaskBridge

Local task execution control plane for humans and agents


Local Workflow

Installation

Homebrew cask (macOS / Linux):

brew tap yeisme/tap
brew install --cask taskbridge

Scoop (Windows):

scoop bucket add yeisme https://github.com/yeisme/scoop-bucket
scoop install taskbridge

GitHub Release archives: Download the archive for your platform from Releases, verify it with checksums.txt, unpack it, and place taskbridge on your PATH.

Direct Linux package assets: Download .deb, .rpm, or .apk files from Releases. These are direct release assets, not repository-backed APT, YUM, or APK channels.

Go install:

go install github.com/yeisme/taskbridge@latest

Build from source:

git clone https://github.com/yeisme/taskbridge.git
cd taskbridge
task build

Package installers install only the taskbridge binary and static release metadata. They do not create provider credentials, OAuth tokens, local task stores, or remote Todo writes.

Configuration
export TASKBRIDGE_HOME=~/.taskbridge
export TASKBRIDGE_STORAGE_PATH=~/.taskbridge/data
export TASKBRIDGE_PROVIDERS=microsoft,todoist

For first use, run diagnostics first, then try the demo:

taskbridge doctor
taskbridge quickstart
taskbridge demo today
Provider Authentication
taskbridge auth status
taskbridge auth login microsoft
taskbridge auth login google
taskbridge auth login feishu
taskbridge auth login ticktick
taskbridge auth login dida
taskbridge auth login todoist
taskbridge provider list
taskbridge provider enable todoist
taskbridge provider test todoist

For the detailed Provider connection guide, see docs/provider-setup-guide.md. OAuth credential files are saved under ~/.taskbridge/credentials/<provider>_credentials.json, and authentication tokens are saved in ~/.taskbridge/credentials/tokens.json.

Task Browsing and Management
taskbridge list
taskbridge list --all
taskbridge list --source microsoft --status todo
taskbridge list --query "today"
taskbridge list --format json
taskbridge lists
taskbridge lists --source microsoft
taskbridge task add "Organize OpenSpec output contract" --due 2026-06-10 --priority 3
taskbridge task show <task-id> --format json
taskbridge task edit <task-id> --due 2026-06-12
taskbridge task done <task-id>
taskbridge task undo <task-id>

list supports filtering by source, status, quadrant, priority, tag, list, and keyword; output formats include table, json, markdown, compact, and tsv. task targets the local store and does not write directly to remote Providers; remote synchronization must go through sync.

Sync
taskbridge sync pull microsoft
taskbridge sync push todoist
taskbridge sync bidirectional microsoft --target todoist
taskbridge sync status
taskbridge sync diff microsoft --target todoist --format json
taskbridge sync conflicts
taskbridge sync resolve <conflict-id>
taskbridge sync backup create
taskbridge sync backup restore <backup-id>
taskbridge sync audit <session-id> --format json
taskbridge sync watch microsoft --interval 10m

sync pull writes local storage; sync push writes remote Providers; bidirectional writes both ways. --dry-run does not write local storage or call remote write APIs. Remote overwrite, deletion, and conflict discard require explicit confirmation.

Daily control plane
taskbridge today
taskbridge today --json
taskbridge next
taskbridge next --limit 3
taskbridge next --source openspec
taskbridge inbox
taskbridge inbox --limit 10 --source todoist
taskbridge review
taskbridge review --json
taskbridge review --apply-file actions.json --dry-run
taskbridge review --apply-file actions.json --confirm

New users can explore without any provider authentication:

taskbridge demo today
taskbridge demo today --json

today is the daily task workbench: must-do today, at-risk tasks, and suggested next steps in one view. next recommends the most valuable task to advance now. inbox lists tasks without a home, due date, or triage status. review runs a health check and suggests actions; by default it only suggests, never writes.

Project Planning
taskbridge project create "Learn OpenClaw"
taskbridge project create "Ship TaskBridge control plane" --goal-text "Complete the four control-plane phases"
taskbridge project list
taskbridge project split <project-id> --max-tasks 10
taskbridge project split-markdown <project-id> --file plan.md
taskbridge project confirm <project-id>
taskbridge project sync <project-id>
taskbridge project review <project-id>
taskbridge project next <project-id>
taskbridge project adjust <project-id>
taskbridge project done <project-id>
taskbridge project archive <project-id>

project create creates a draft; split generates decomposition suggestions; confirm confirms and creates local tasks in storage; sync syncs to Providers. adjust is dry-run by default and requires confirmation before applying actions. archive does not delete historical data.

Governance and Smart Assistance
taskbridge governance overdue-health --format json
taskbridge governance resolve-overdue --dry-run
taskbridge governance resolve-overdue --confirm
taskbridge governance rebalance-longterm --format json
taskbridge governance detect-decomposition --limit 10 --format json
taskbridge governance decompose-task <task-id> --format json
taskbridge governance decompose-task <task-id> --write-tasks
taskbridge governance achievement

overdue-health analyzes overdue task health; resolve-overdue handles overdue tasks in bulk; rebalance-longterm redistributes long-term unscheduled tasks; detect-decomposition identifies complex task candidates; decompose-task splits a task into execution steps; achievement analyzes completion. Bulk completion, bulk rescheduling, deletion, and remote overwrite must have a dry-run/confirm/action-file gate.

Analysis
taskbridge analyze quadrant
taskbridge analyze priority
taskbridge analyze priority --json
taskbridge analyze time
taskbridge analyze trend
taskbridge analyze report --json

analyze provides quadrant, priority, time distribution, trend, and combined report analysis. Default human output uses the shared stats panel; --json outputs an envelope, while legacy --format json remains compatible with parseable payloads. These are read-only commands: they do not change tasks or sync Providers.

Agent Integration
taskbridge agent capabilities
taskbridge agent today
taskbridge agent plan "Learn OpenClaw" --dry-run
taskbridge agent execute --action-file actions.json --dry-run
taskbridge agent execute --action-file actions.json --confirm
taskbridge agent schemas

agent is the Agent-safe execution entry point. stdout is always taskbridge.agent-result.v1 JSON. Agents do not directly read or write ~/.taskbridge data files and do not hold Provider tokens. Dangerous actions return requires_confirmation=true without writing when --confirm is missing.

Regular commands should prefer the --json envelope or --agent key=value output, such as taskbridge version --json, taskbridge provider list --agent, and taskbridge config show --json; Agent scripts should not parse human output.

Background Service
taskbridge serve
taskbridge serve --token-refresh
taskbridge serve --sync --sync-interval 15m

serve starts a long-running background service for automatic token refresh and scheduled sync. Logs go to stderr or the logging system; stdout follows the JSON/events contract.

Interactive Terminal
taskbridge tui

Starts an interactive terminal interface for browsing and operating on tasks. The TUI is not a scriptable machine-output entry point; Agents and CI should not depend on TUI output.

Supported Platforms

Platform Status Auth Method Notes
Microsoft Todo ✅ Done OAuth 2.0 Full support
Google Tasks ✅ Done OAuth 2.0 Basic support
Feishu Tasks ✅ Done OAuth 2.0 Full support
TickTick ✅ Done OpenAPI Token Native quadrants
Dida ✅ Done OpenAPI Token China version
Todoist ✅ Done API Token Full support
OmniFocus 📋 Planned macOS only
Apple Reminders 📋 Planned macOS/iOS

Project Structure

taskbridge/
├── cmd/                    # CLI command entry points
├── internal/
│   ├── auth/               # Tokens and authentication
│   ├── model/              # Core data models
│   ├── project/            # Project and planning storage
│   ├── projectplanner/     # Goal decomposition and plan suggestions
│   ├── provider/           # Todo app adapters
│   │   ├── microsoft/      # Microsoft Todo
│   │   ├── google/         # Google Tasks
│   │   ├── feishu/         # Feishu Tasks
│   │   ├── ticktick/       # TickTick / Dida
│   │   └── todoist/        # Todoist
│   ├── storage/            # Storage layer
│   └── sync/               # Sync engine
├── pkg/
│   ├── config/             # Configuration management
│   ├── logger/             # Logging
│   ├── paths/              # Path conventions
│   └── ui/                 # CLI/TUI UI components
├── docs/                   # Design and usage docs
│   └── commands/           # Command manual
└── openspec/               # OpenSpec change management

Tech Stack

  • Language: Go 1.25+
  • CLI: Cobra
  • Configuration: Viper
  • Storage: File storage / MongoDB (optional)

Local Validation and Development Tools

task deps
task fmt-check
task lint
task test
task build
task check

When setting up a development machine for the first time, install helper tools:

task tools:install

Release configuration and local snapshot builds:

task release:check
task snapshot
task release:local

Optional hot reload (requires Air):

task dev:watch

When task is not installed, use equivalent commands:

go test ./...
mkdir -p dist && go build -trimpath -ldflags="-s -w" -o dist/taskbridge

Documentation Entry Points

Documentation

Overview

Package main TaskBridge 入口点

Directories

Path Synopsis
Package cmd provides CLI commands
Package cmd provides CLI commands
internal
actionaudit
Package actionaudit records action file execution receipts.
Package actionaudit records action file execution receipts.
analyze
Package analyze contains task analysis computation logic for quadrant, priority, time, trend, and comprehensive report analysis.
Package analyze contains task analysis computation logic for quadrant, priority, time, trend, and comprehensive report analysis.
auth
Package auth 提供 Token 管理功能
Package auth 提供 Token 管理功能
loader
Package loader provides a shared provider-loading contract reused by serve and sync.
Package loader provides a shared provider-loading contract reused by serve and sync.
model
Package model 数据模型定义
Package model 数据模型定义
provider
Package provider 定义了 Todo 软件适配器的接口
Package provider 定义了 Todo 软件适配器的接口
provider/feishu
Package feishu provides Feishu (Lark) Task provider implementation
Package feishu provides Feishu (Lark) Task provider implementation
provider/google
Package google provides Google Tasks API client implementation
Package google provides Google Tasks API client implementation
provider/microsoft
Package microsoft provides Microsoft To Do provider implementation
Package microsoft provides Microsoft To Do provider implementation
storage
Package storage 提供存储功能
Package storage 提供存储功能
storage/filestore
Package filestore 提供基于文件的存储实现
Package filestore 提供基于文件的存储实现
sync
Package sync 提供任务同步功能
Package sync 提供任务同步功能
pkg
config
Package config 提供配置管理功能
Package config 提供配置管理功能
logger
Package logger 提供日志功能
Package logger 提供日志功能
paths
Package paths 提供路径相关的工具函数
Package paths 提供路径相关的工具函数
ui
Package ui provides styled CLI output components using lipgloss
Package ui provides styled CLI output components using lipgloss

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL