perf(agent-manager): enrich only candidate PIDs and cache start times - #277
Merged
Merged
Conversation
This was referenced Sep 29, 2026
codeaholicguy
force-pushed
the
perf/266-enrich-candidate-pids
branch
2 times, most recently
from
September 29, 2026 12:18
37cb983 to
011f219
Compare
codeaholicguy
added this pull request to stack #294
September 29, 2026 12:29
codeaholicguy
force-pushed
the
perf/266-enrich-candidate-pids
branch
from
September 29, 2026 12:29
6c3a4a6 to
bb33096
Compare
…#266) listAgents now passes an isCandidate predicate (some adapter whose processNames match and whose canHandle accepts) to the shared snapshot. lsof and ps lstart run only for those PIDs; other name-matched processes are still returned unenriched so Kiro can keep walking parent chains. Start times are cached per PID, evicted when the PID leaves the base ps listing and ignored when its ppid/command change (PID reuse).
…dapter snapshots (#281) (#287) Every adapter's fallback captureProcessSnapshot call now passes isCandidate: canHandle, so lsof and ps lstart no longer run for unrelated processes (every Node.js process for the node-based Gemini, Pi and Kiro adapters). Non-candidates are still returned un-enriched, which keeps Kiro's kiro-cli-chat parent-chain walk working.
codeaholicguy
force-pushed
the
perf/266-enrich-candidate-pids
branch
from
September 29, 2026 12:54
bb33096 to
5a7fb9d
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
Closes #266
Validation
Risks