This command lists the directory stack.
Since a cd command affects the entire Soar process, each agent cannot have their own "agent current directory". This is a limitation imposed by most operating systems on processes. As a workaround, each agent is given a directory stack that contains all the directories the agent has visited (using the pushd and cd commands). If an agent wishes to return to its last "agent current directory", then the agent would execute the command cd [topd]. This may be necessary if an agent has relinquished control to another agent since the other agent could have performed a cd command.
The command pushd places a new "agent current directory" on top of the directory stack and cds to it. The command popd removes the directory at the top of the directory stack and cds to the previous directory which now appears at the top of the stack.