Sliding down stairs when trying to go up

I have a problem when I try to go up taller stairways the agent slides back down.

You can see in the video below:

Hi

It looks like you have a non-kinematic rigidbody attached. This will make the character behave as a physics object, and the physics engine will make it slide down. For most characters, a CharacterController is preferable to a collider+rigidbody.