feat: Dynamic Project Registry + GitHub App Migration - #3
Merged
Conversation
Add a SQLite-backed registry that auto-discovers GitHub repositories via `gh repo list`, syncs periodically in the background, and optionally auto-clones new repos. Per-repo config overrides (model, enabled) are preserved across syncs. New modules: - registry/store.rs — RegistryStore CRUD (upsert, list, overrides, link) - registry/sync.rs — discovery via gh CLI, reconciliation, auto-clone - api/registry.rs — 5 REST endpoints for repos, overrides, sync, status Config: [defaults.registry] section with github_owners, clone_base_dir, sync_interval_secs, auto_clone, exclude_patterns. Wired into RuntimeConfig (hot-reloadable), AgentDeps, ApiState, and main agent init loop with background sync task. 9 new tests, all 633 tests pass. Refs: #1 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Send a summary message via MessagingManager when registry sync discovers new repos or archives removed ones. Configurable via `notification_target` in [defaults.registry] (e.g. "telegram:1285309093"). Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
The sync loop was spawned before messaging_manager was set on AgentDeps, so notifications were never sent. Now spawns after init, reading the sync status from ApiState. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1. Fix cortex profile 404: default routing model was "anthropic/claude-sonnet-4" (doesn't exist), now uses "anthropic/claude-sonnet-4-20250514". 2. Fix worker outcome reporting: when a webhook-triggered worker completes and Lira relays the result via send_message_to_another_channel (e.g. to Telegram), the retrigger system didn't recognize it as a successful relay because only the reply tool set the replied_flag. Now SendMessageTool also sets the flag on successful delivery. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Owner
Author
|
fix the failing checks |
Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
The agent now uses the registry as its dynamic project list: 1. System prompt injection: enabled registry repos are appended to the project context so the agent knows about all discovered repos (name, path, language, model override, default branch). 2. Webhook event filtering: events from repos not in the registry or with enabled=false are dropped before reaching the agent. This replaces the need for a hardcoded project table in ROLE.md. Combined with the GitHub App (all repos) and registry sync (auto-discover), this completes the zero-config flow: new repo → auto-discovered → webhooks delivered → agent reacts. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This was referenced Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements #1 — Dynamic Project Registry + GitHub App Migration.
Phase 1: Dynamic Project Registry
gh repo listper configured GitHub owner, reconciles against a SQLiteregistry_repostableworker_modelandenabledflags preserved across syncsMessagingManagerwhennotification_targetis set/api/registry/RegistryConfigfromRuntimeConfig(ArcSwap) each sync iterationBugfixes
anthropic/claude-sonnet-4toanthropic/claude-sonnet-4-20250514SendMessageToolnow setsreplied_flagon successful delivery, so retrigger relays viasend_message_to_another_channel(e.g. webhook → Telegram) are recognized as successfulPhase 2: GitHub App Migration (infrastructure, no code changes)
marcmanteireposConfig example
Test plan
🤖 Generated with Claude Code
via Happy