[TIMOB-15480] Fleshed out the first draft of the detection code and cli interface