-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Thanks for the context @35C4n0r. It sounds like we could potentially improve detection by looking at the process tree (or output matching given that they are unique enough).
Originally posted by @mafredri in #54 (comment)
Problem
Our agent detection logic right now has two phases:
- User optionally explicitly specifies agent type
agentapi
attempts to detect agent type from CLI command and overrides based on the first argument.
This may not work in some cases, e.g. the command to invoke the agent is a script run_agent.sh
that executes an arbitrary agent command.
Proposed Solution
We can improve this logic by "sniffing" the initial output of the agent. Each type of agent outputs a splash screen on startup which can be sniffed for certain magic strings to determine the agent type.
35C4n0r, mafredri, matifali and bpmct
Metadata
Metadata
Assignees
Labels
No labels