feat(experts): add built-in expert skills with per-agent activation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-10 15:17:51 +08:00
parent 64d4e9c903
commit 5b613daded
73 changed files with 11199 additions and 30 deletions

View File

@@ -57,6 +57,27 @@ async fn main() {
chat_channel_manager: codeg_lib::app_state::default_chat_channel_manager(),
});
// Install bundled expert skills into the central store
// (`~/.codeg/skills/`). Runs in the background; failures are logged
// but non-fatal.
tokio::spawn(async move {
let report = codeg_lib::commands::experts::ensure_central_experts_installed().await;
if !report.errors.is_empty() {
eprintln!(
"[Experts] install finished with {} error(s): {:?}",
report.errors.len(),
report.errors
);
} else {
eprintln!(
"[Experts] install ok: installed={} updated={} pending_review={}",
report.installed_count,
report.updated_count,
report.pending_user_review.len()
);
}
});
// Start chat channel background tasks (event subscriber, command dispatcher, scheduler, auto-connect)
state
.chat_channel_manager