allow implicit agent using directly a flag in cli

Fixes #1296