compacting context hermes