perf(skills): skip router-side bun install in fargate mode - #15
Merged
Conversation
dcvz
force-pushed
the
feat/skip-router-skill-deps
branch
2 times, most recently
from
June 6, 2026 10:35
3f8c500 to
6ec47a3
Compare
discover_skills (router-side) ran ensure_skill_deps for every skill on every prompt-build — ~80s of bun install blocking each turn — even though in cloud mode the router never executes skills (the worker does, installing deps on call). Gate the install on the deployment running turns on this host's skills dir (local/subprocess/docker); skip for fargate (remote worker, own skills copy). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dcvz
force-pushed
the
feat/skip-router-skill-deps
branch
from
June 6, 2026 10:42
6ec47a3 to
69ea791
Compare
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
In the distributed (fargate) deployment, the router was running
bun installfor every skill on every prompt-build — ~80s of blocking work per turn — even though it never executes skills. Skill execution (and on-demand dep install) happens on the worker, which hydrates its own skills copy.discover_skills(router-side only —onboarding/channels, nevercica worker) calledensure_skill_depsunconditionally. This gates it on whether turns execute against this host's skills dir:New
config::prep_skill_deps_locally(provider)helper, unit-tested.Test Plan
cargo test --bin cica— 85 pass (incl.skill_deps_prepped_locally_except_fargate)cargo clippy --bin cica— 0 warningsInstalling dependencies for skill: …storm is gone on the router, and a config-using skill still runs on a worker.Deploy note
Router-side change — needs a new cica release + the router updated to it (worker image unaffected; workers don't call
discover_skills).🤖 Generated with Claude Code