Green’s Dictionary of Slang

hep n.1

[hep adj. (1)]

1. understanding.

[US]Jackson & Hellyer Vocab. Criminal Sl. 43: hep [...] Sapiency; understanding; ‘next’; ‘on.’.

2. (US) someone who is aware of the situation, esp. within non-establishment circles.

[US]Howsley Argot: Dict. of Und. Sl.
[US]‘William Lee’ Junkie (1966) 155: Hep or Hip . . . Someone who knows the score. Someone who understands ‘jive talk.’ Someone who is ‘with it.’ The expression is not subject to definition because, if you don’t ‘dig’ what it means, no one can ever tell you.