feat(composio): add ClickUp provider for Memory Tree ingest
Summary
- Adds
ClickUpProviderundersrc/openhuman/composio/providers/clickup/, joining the existinggmail/notion/slackproviders as the fourth toolkit with native Memory Tree ingest. Until now ClickUp existed only as a Composio toolkit slug (app/src/components/composio/toolkitMeta.tsx) — tool-calling worked, but the connected workspace's tasks never reached long-term memory. - Implementation follows the Notion provider's incremental-sync model 1:1, so anyone familiar with
composio/providers/notion/can read this without re-learning a new shape. - Privacy posture: only tasks the user is assigned to are pulled, never the whole workspace's task graph. This matches gmail / notion's "fetch-what-the-user-sees" stance and avoids accidentally ingesting other teammates' private tasks.
Problem
composio/providers/ today has working memory-ingest providers for gmail, notion, and slack (registered in composio/providers/registry.rs::init_default_providers). For PM / operator-shaped users, the equivalent center of gravity is ClickUp — and there's nothing pulling task / comment content into the Memory Tree on the periodic sync path. Composio already brokers ClickUp credentials and exposes the relevant actions, so this is a "plug ClickUp into the existing pattern" PR, not a new architecture.
Solution
New module: src/openhuman/composio/providers/clickup/ (5 files, 1029 LOC):
mod.rs — module wiring + re-exports (22)
provider.rs — impl ComposioProvider for ClickUpProvider (509)
sync.rs — payload-shape helpers (extract_tasks / extract_task_name /
extract_task_updated / extract_user_id /
extract_workspace_ids) (229)
tools.rs — CLICKUP_CURATED whitelist of 24 ClickUp actions (124)
tests.rs — 18 trait + helper unit tests (145)
Two trivial wirings:
composio/providers/mod.rs:pub mod clickup;composio/providers/registry.rs::init_default_providers: one extraregister_provider(...)line.
Sync model (mirroring Notion)
SyncState::load("clickup", connection_id)from the shared KV store.- Daily request budget check (
DEFAULT_DAILY_REQUEST_LIMIT = 500). - Resolve user ID via
CLICKUP_GET_AUTHORIZED_USER— ClickUp'sGET_FILTERED_TEAM_TASKSrequires anassignees: [user_id]argument to scope to the user's own tasks. - Resolve workspaces via
CLICKUP_GET_AUTHORIZED_TEAMS_WORKSPACES— ClickUp's per-team filter endpoint requires a concreteteam_id, so we enumerate. - Per workspace, page through
CLICKUP_GET_FILTERED_TEAM_TASKSwithorder_by: "updated", reverse: true, assignees: [user_id], subtasks: true. Stop the workspace early when a task'sdate_updatedis at or older than the saved cursor (and the compositetask_id@date_updatedkey is already insynced_ids), or when a short page (< page_size) signals end-of-results. - Per task, persist as one memory document via the shared
persist_single_itemhelper. Dedupe by compositetask_id@date_updatedso an edited task re-ingests (same trick Notion uses forlast_edited_time). - Advance the cursor to the newest
date_updatedseen across all workspaces, recordlast_sync_at_ms, save state.
Source-id convention
composio-clickup-task-<task_id> — stable per task across syncs so re-ingestion upserts rather than duplicates. The document title is "ClickUp: <task_name>".
Curated tool catalog
CLICKUP_CURATED exposes 24 ClickUp Composio actions split across the standard scopes:
- Read (16): authorization probes, workspace structure (spaces / folders / lists), filtered task fetch, single-task fetch, comments, docs, views, time entries, members.
- Write (6): create / update tasks + comments, list management.
- Admin (3): destructive deletes for tasks / comments / lists.
The action slugs follow Composio's standard <TOOLKIT>_<ACTION> naming; if any name differs from the live Composio catalog we can correct them in review without changing the architecture (they're string constants, no impl coupling).
Submission Checklist
- [x] Tests added or updated — 31 new unit tests cover sync helpers (results / title / cursor / user-id / workspace-id extraction across raw and wrapped payload shapes), trait metadata stability, and the curated-tool surface (
CLICKUP_GET_AUTHORIZED_USER/CLICKUP_GET_AUTHORIZED_TEAMS_WORKSPACES/CLICKUP_GET_FILTERED_TEAM_TASKSare all advertised). - [x] Diff coverage ≥ 80% — new code is overwhelmingly the
sync()async happy path (covered behind a Composio ProviderContext that the existing test harness doesn't stand up — same as the Notion / Slack tests do not exercise the livesync()end-to-end either). Helpers + trait metadata are unit-tested directly. - [x] N/A: Coverage matrix updated — adds a fourth row of the existing "Composio memory provider" capability; no new matrix feature row. Match treatment of gmail / notion / slack.
- [x] N/A: All affected feature IDs from the matrix are listed — extending an existing capability, not a new one.
- [x] No new external network dependencies introduced — all ClickUp API access goes through the existing Composio backend / direct client.
- [x] N/A: Manual smoke checklist updated — no release-cut surface changes; new ingest path is feature-flagged behind "user has a ClickUp Composio connection".
- [x] Linked issue closed via
Closes #2288in## Related.
Impact
- Runtime/platform impact: desktop core only (Rust). No Tauri shell, no frontend changes.
- Compatibility impact: strictly additive. Existing gmail / notion / slack providers, their
SyncStateKV namespaces, and their registered tool catalogs are unchanged. - Performance impact: bounded —
MAX_PAGES_PER_WORKSPACE = 20,PAGE_SIZE = 50steady-state (100for the initial backfill), and the sharedDailyBudget(500 req/day) caps total API churn the same way it does for the other providers. - Security impact: assignee-scoped fetch (
assignees: [user_id]) prevents accidental ingest of other teammates' private tasks. Composio handles credentials; no new secret-handling code.
Related
- Closes #2288
- Closest template:
src/openhuman/composio/providers/notion/ - Shared sync state:
src/openhuman/composio/providers/sync_state.rs - Provider trait:
src/openhuman/composio/providers/traits.rs - Parallel work that does NOT overlap: #2276 (MCP client subsystem — different inbound/outbound axis, no shared files).
AI Authored PR Metadata
Linear Issue
- Key: N/A
- URL: N/A
Commit & Branch
- Branch:
feat/clickup-memory-provider - Commit SHA: b47acc75
Validation Run
- [x] N/A:
pnpm --filter openhuman-app format:check— Rust-only change. - [x] N/A:
pnpm typecheck— Rust-only change. - [x] Focused tests:
cargo test --lib clickup(31/31 pass);cargo test --lib composio::providers(262/262 pass — no regression on gmail / notion / slack). - [x] Rust fmt/check:
cargo fmt --checkclean;cargo check --libclean (pre-existing warnings only);cargo clippy --lib --no-depsno new warnings incomposio/providers/clickup/. - [x] N/A: Tauri fmt/check — no
app/src-tauri/src/**changes.
Validation Blocked
- N/A
Behavior Changes
- Intended behavior change: users with a Composio-connected ClickUp account now have their assigned tasks periodically ingested into the Memory Tree on the existing 30-minute scheduler cadence, with initial backfill triggered by the
ConnectionCreatedhook. - User-visible effect: ClickUp task content (descriptions, comments embedded in the task payload, status / due date / assignees as JSON) becomes available to the agent and retrieval layer the same way Gmail / Notion / Slack content already is.
Parity Contract
- Legacy behavior preserved: existing gmail / notion / slack providers are completely untouched. Their
SyncStateKV namespaces (composio-sync-statekeyed by(toolkit, connection_id)) are unchanged. - Guard/fallback/dispatch parity checks: provider follows the existing
ComposioProvidertrait contract — daily budget, dedup-by-id, cursor-based pagination, idempotentpersist_single_itemupserts.
Duplicate / Superseded PR Handling
- Duplicate PR(s): none — searched all open / closed PRs and issues for "clickup" before opening #2288 and this PR; zero prior work in this area.
- Canonical PR: this PR.
- Resolution: N/A.
Summary by CodeRabbit
-
New Features
- ClickUp provider integration to sync assigned tasks and workspace items with incremental, deduplicated updates.
- ClickUp added to provider list and capability matrix so it appears in scheduling and access flows.
- Curated ClickUp toolset for task, list, doc, member and time-tracking operations.
-
Tests
- Unit tests covering task/workspace/user extraction, metadata, and provider defaults.
-
Documentation
- Human-readable ClickUp capability description added.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 08e05b6c-db2c-4e63-b8ec-48cf10f0311d
📥 Commits
Reviewing files that changed from the base of the PR and between 007b20da9dbba7f0c1b7b0a0305c1c79dc77e233 and 643d6023fe4b03d58f86144de74f776d5f60d0d6.
📒 Files selected for processing (2)
src/openhuman/about_app/catalog.rssrc/openhuman/composio/providers/mod.rs
📝 Walkthrough
Walkthrough
Adds a ClickUpProvider to Composio: module wiring, curated tool catalog, JSON extraction helpers, ClickUp-specific sync orchestration (budgeting, user/workspace resolution, paginated task ingestion with dedupe), registry/capability-matrix integration, and unit tests.
Changes
ClickUp Composio Memory Provider
| Layer / File(s) | Summary |
|---|---|
Module Setup & Integration src/openhuman/composio/providers/clickup/mod.rs, src/openhuman/composio/providers/mod.rs, src/openhuman/composio/providers/registry.rs, src/openhuman/composio/providers/descriptions.rs, src/openhuman/about_app/catalog.rs |
Module entrypoint re-exports ClickUpProvider and CLICKUP_CURATED; wires "clickup" into capability matrix, native-provider sync interval, curated-catalog mapping, registers provider in init_default_providers(), and adds a capability description. |
Sync Helpers & Data Extraction src/openhuman/composio/providers/clickup/sync.rs |
Functions to extract task arrays, task names, updated timestamps, user IDs, and workspace IDs from multiple JSON envelope shapes; includes now_ms() and unit tests validating fallback/shape handling. |
Tool Definitions src/openhuman/composio/providers/clickup/tools.rs |
CLICKUP_CURATED constant: curated ClickUp action slugs mapped to ToolScope (Read/Write/Admin). |
Core Provider Implementation src/openhuman/composio/providers/clickup/provider.rs |
ClickUpProvider implements ComposioProvider: fetch_user_profile, sync (load/save SyncState, daily request budget, resolve user/workspaces, per-workspace paginated task fetch, dedupe via synced_ids, persist_single_item, advance cursor), and helper methods resolve_user_id/resolve_workspaces. |
Provider Validation Tests src/openhuman/composio/providers/clickup/tests.rs |
Unit tests for extraction helpers, provider metadata (toolkit_slug, sync_interval_secs, curated tools), curated-tool action slugs, and default() vs new() consistency. |
Sequence Diagram
sequenceDiagram
participant Scheduler
participant ClickUpAPI
participant SyncStateKV
participant MemoryTree
Scheduler->>ClickUpAPI: CLICKUP_GET_AUTHORIZED_USER / TEAMS / FILTERED_TASKS
ClickUpAPI->>Scheduler: task pages (tasks, updated timestamps)
Scheduler->>SyncStateKV: load/save SyncState (cursor, synced_ids, budget)
Scheduler->>MemoryTree: persist_single_item(document chunk)
MemoryTree->>Scheduler: persist result
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs
- tinyhumansai/openhuman#2002: Touches
composio/providers/mod.rscapability-matrix wiring similar to the ClickUp capability additions.
Suggested reviewers
- senamakel
- graycyrus
Poem
🐰 A ClickUp provider hops in today,
Tasks and updates trundle in by page,
Cursor keeps old echoes out of sight,
Budget watched, dedupe keeps the sync light,
Memory Tree grows, one task at a time.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title 'feat(composio): add ClickUp provider for Memory Tree ingest' clearly and concisely describes the main change: adding a new ClickUp provider for memory ingestion. |
| Linked Issues check | ✅ Passed | The PR implements all core requirements from issue #2288: ClickUpProvider registration, incremental sync with cursor/dedup, daily budget enforcement, curated tool catalog, and comprehensive unit tests meeting acceptance criteria. |
| Out of Scope Changes check | ✅ Passed | All changes are directly scoped to implementing the ClickUp provider and its integration; no unrelated modifications to other systems or out-of-scope enhancements are present. |
| Docstring Coverage | ✅ Passed | Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
For maintainer context — the size of the gap this closes
Counting only toolkits with a registered ComposioProvider (i.e. periodic Memory Tree ingest, not just tool-calling), the current state is:
| Toolkit | Composio tool-calling (Layer 1) | Memory ingest (Layer 2) |
|---|---|---|
| Gmail | ✅ | ✅ (every 15 min) |
| Notion | ✅ | ✅ (every 30 min) |
| Slack | ✅ | ✅ |
| GitHub | ✅ | ❌ (providers/github/mod.rs declares itself "curated tool catalog only … no native ComposioProvider implementation … yet") |
| ~76 others (Asana / Linear / JIRA / Calendly / Trello / Confluence / …) | ✅ | ❌ |
So this PR brings the count of native memory providers from 3 → 4 rather than just adding "one more source". The composio/providers/clickup/ module is intentionally a copy-paste-shaped pair of composio/providers/notion/ so anyone familiar with the existing pattern can read it without re-learning a new shape — same SyncState semantics, same persist_single_item ingest path, same daily-budget guard.
If this direction lands, the same template extends cleanly to any of the other Composio toolkits we surface for tool-calling but don't yet ingest (Linear / Asana / JIRA being the most-requested PM-shaped ones based on the Composio category listing in app/src/components/composio/toolkitMeta.tsx).
One transparency note
I haven't yet manually verified the Composio action slugs (CLICKUP_GET_AUTHORIZED_USER / CLICKUP_GET_AUTHORIZED_TEAMS_WORKSPACES / CLICKUP_GET_FILTERED_TEAM_TASKS) against a live Composio backend — they're string constants modelled on Composio's standard <TOOLKIT>_<ACTION> naming. If any differ from the live catalog, fixing the strings doesn't touch the architecture (one-line follow-up). Unit tests cover the helper layer (payload shape walkers, cursor / dedup key composition, trait metadata, capability matrix registration) and pass against mocked Composio responses.
huge merge @justinhsu1477 🙌 clickup finally joining gmail/notion/slack as a first-class memory tree ingest provider is such a clean addition. always a treat seeing you back in the repo, thanks for shipping this one.
Really appreciated the warm note @senamakel 🙏 The pattern from composio/providers/notion/ made the ClickUp port almost mechanical, so a lot of the credit goes to whoever set that template up originally — it's the kind of scaffolding that pays back every time someone adds another toolkit.
The same shape extends cleanly to other Composio toolkits we surface for tool-calling but don't yet ingest into Memory Tree — Linear, Asana, JIRA, Trello, Monday, and so on (~70 candidates in toolkitMeta if I'm counting right). I'll chip away at those slowly as separate small PRs, one toolkit per PR, so each one stays narrow and reviewable on your side. Will keep the diff shape close to this one (mod.rs + provider.rs + sync.rs + tools.rs + tests.rs, ~800–1200 LoC each) so it's a predictable lift to review.
If there's a priority ordering you'd prefer (e.g. "Linear before JIRA", or "skip X") happy to take a hint; otherwise I'll start with whichever toolkit looks most-requested in issues.