Add AgentX mode

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>