An interactive shell. A scriptable tool.
Run dwim to open an interactive shell and work through a task with the agent.
Or pass a prompt on the command line. dwim prints only the reply to standard output, so you can redirect it or call it from your scripts.