The present invention relates to an agricultural machine for harvesting foragecomprising a framework (1) bearing at least one device (2) for gathering cropslying down on the ground and at least one device (4) for shifting the gathered crops.It is notable in that it comprises a crop guide device (7) situated at least partiallyabove and a short distance away from the gathering device (2) and which is supportedby arms (9) which extend rearwards over the shifting device (4) and the rear endsof which are articulated with respect to the framework (1) by means of substantiallyhorizontal axes (11) which, during work, lie above the rear part of the shiftingdevice (4) and about which they can pivot through a certain angle.