feat(sec-core): route prompt scan to daemon and add prompt model preload#786
Merged
Conversation
ced89f5 to
0299152
Compare
0299152 to
1bf6281
Compare
edonyzpc
reviewed
Jun 9, 2026
edonyzpc
reviewed
Jun 9, 2026
edonyzpc
reviewed
Jun 9, 2026
edonyzpc
reviewed
Jun 9, 2026
edonyzpc
reviewed
Jun 9, 2026
edonyzpc
reviewed
Jun 9, 2026
edonyzpc
requested changes
Jun 9, 2026
edonyzpc
reviewed
Jun 10, 2026
edonyzpc
reviewed
Jun 10, 2026
edonyzpc
reviewed
Jun 10, 2026
edonyzpc
requested changes
Jun 10, 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.
Description
本 PR 将
scan-prompt从每次 CLI 进程内直接加载/执行模型,迁移为通过agent-secdaemon 接口执行。daemon 启动时会触发 prompt scan 模型预加载,CLI 只负责透传请求并输出
扫描结果。
主要改动:
scan-prompt方法scan-prompt改为调用 daemon client2 分钟4.35s311.81ms;p95367.32ms94.48ms;p95131.31msRelated Issue
closes #
Type of Change
Scope
cosh(copilot-shell)sec-core(agent-sec-core)skill(os-skills)sight(agentsight)tokenless(tokenless)ckpt(ws-ckpt)memory(agent-memory)anolisa(anolisa-cli)Checklist
cosh: Lint passes, type check passes, and tests passsec-core(Rust):cargo clippy -- -D warningsandcargo fmt --checkpasssec-core(Python): Ruff format and pytest passskill: Skill directory structure is valid and shell scripts pass syntax checksight:cargo clippy -- -D warningsandcargo fmt --checkpasstokenless:cargo clippy -- -D warningsandcargo fmt --checkpassmemory(Linux only):cargo clippy --all-targets -- -D warnings,cargo fmt --check, andcargo testpassanolisa:cargo clippy --all-targets --locked -- -D warnings,cargo fmt --all --check, andcargo test --lockedpasspackage-lock.json/Cargo.lock)Testing
Additional Notes