diff options
Diffstat (limited to 'src/detect/agents')
| -rw-r--r-- | src/detect/agents/kilo.rs | 9 | ||||
| -rw-r--r-- | src/detect/agents/mod.rs | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/detect/agents/kilo.rs b/src/detect/agents/kilo.rs new file mode 100644 index 00000000..1ab3651a --- /dev/null +++ b/src/detect/agents/kilo.rs @@ -0,0 +1,9 @@ +use super::super::AgentState; + +pub(super) fn detect(content: &str) -> AgentState { + if content.to_lowercase().contains("esc interrupt") { + return AgentState::Working; + } + + super::opencode::detect(content) +} diff --git a/src/detect/agents/mod.rs b/src/detect/agents/mod.rs index 87b4043f..4597c122 100644 --- a/src/detect/agents/mod.rs +++ b/src/detect/agents/mod.rs @@ -9,6 +9,7 @@ pub(super) mod gemini; pub(super) mod github_copilot; pub(super) mod grok; pub(super) mod hermes; +pub(super) mod kilo; pub(super) mod kimi; pub(super) mod kiro; pub(super) mod opencode; @@ -34,6 +35,7 @@ pub(super) fn detect(agent: Agent, screen_content: &str) -> AgentDetection { Agent::Amp => amp::detect(screen_content), Agent::Grok => grok::detect(screen_content), Agent::Hermes => hermes::detect(screen_content), + Agent::Kilo => kilo::detect(screen_content), Agent::Qodercli => qodercli::detect(screen_content), }; |
