Skip to content

[FEATURE] Auto-sync Projects GitHub connector via webhook #180

Description

@spxrogers

Problem Statement

Problem

The GitHub connector for claude.ai Projects requires manual "Sync now" clicks to pull the latest repo state into project knowledge. This means:

  • Every new chat that depends on recent code starts with stale data unless the user remembers to sync
  • Multi-device workflows (commit from laptop, chat on mobile) break because mobile has no obvious sync affordance
  • There's no way to programmatically trigger a sync from a CI pipeline, Claude Code session, or other tool

The mental model of "connect your repo and it just works" falls apart at the first git push.

Proposed Solution

Subscribe the Claude GitHub App to the push webhook event for connected repos, and trigger an incremental sync of the currently selected files/folders when a push lands on the configured branch.

The building blocks already exist:

  • The Claude GitHub App already has repo read access (that's how manual Sync works today)
  • GitHub already sends push webhooks to installed apps — no additional user config required
  • The file selection config (paths, branch) is already stored per project

Minimum viable version: per-project toggle — "auto-sync on push to <branch>." Default off to avoid surprising quota behavior for users on large repos.

Alternatives Considered

  • Status quo (manual Sync now): fine for stable reference material, broken for active projects
  • Polling: wasteful and laggier than webhooks; GitHub rate limits would bite
  • CLI claude project sync command: covered by [FEATURE] Sync files between Claude Code and Claude web project knowledge claude-code#25983, solves an adjacent problem but requires the user to invoke it — same manual-step problem in a different shell
  • Third-party GitHub Action hitting an undocumented sync endpoint: fragile, no one wants to maintain this

Impact

Closes the loop on the most-cited workflow gap in Projects + GitHub threads (see #98, anthropics/claude-code#25983, anthropics/claude-code#29885). Turns Projects from "snapshot of my repo as of whenever I last remembered" into "live view of my repo." Removes the context switch between IDE / Claude Code and the Project UI just to hit a button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions