Implement agentX set command

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