Exponent Web
Any project, any machine, one command.
Overview
Exponent Web enables you to use Exponent in a familiar web interface while connected to your local codebase.
Starting a Chat
Working with Exponent will feel familiar if you’ve used any other chat-based LLM tools. To start a fresh Exponent chat, run the following command from the root of your project:
By default, this will create a new chat session and redirect you to the chat in your browser.
Now you’re ready to start chatting with Exponent!
Back in the terminal, you should see the exponent run
command still running with output like the following:
We’ll want to keep this running for the duration of your chat session so that Exponent can carry out any commands or file changes you approve.
Once you’re finished with your chat or want to pause and pick it up later, simply press Ctrl+C
in the terminal.
To reconnect to this chat later, run exponent run
again with the --chat-id
flag:
This is the same command you’ll find if you open the chat in your browser and click the “Connect” button:
Referencing Files
If you want to add the contents of a file to your next message, type @
followed by the path to the file in the message editor and select your file from the autocomplete menu:
Sharing Chats
You can share a read-only link to your chat by clicking the share button in the top right of the chat:
Response Termination
If you want to cut off Exponent’s response early to adjust your message, click the Stop
button in the bottom right of the message editor:
Autorun Mode
Sometimes a task can take several iterations of commands or file changes for Exponent to complete. If you don’t want to manually approve each command Exponent proposes, you can enable autorun mode to let Exponent keep churning through commands for a few iterations.
With autorun mode enabled, Exponent will keep running commands until it deems the task complete or hits the maximum depth limit you set:
Here’s a quick demo of autorun mode in action:
If you want to stop Exponent early, you can use the aforementioned Stop
button to terminate the current response.
Direct Actions
If you want to run a single terminal command directly to add it as context to your chat, send your next message with /run
followed by whatever terminal command you want to run:
Preloading prompts
If you want to start a new exponent chat from your terminal with a preloaded first message, you can do so by adding the --prompt
flag to the exponent run
command: