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 other chat-based LLM tools. To start a fresh Exponent chat, run the following command from the root of your project:
By default, this command 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 similar to the following:
Keep this terminal session running for the duration of your chat session. This allows Exponent to carry out any commands or file changes you approve.
When you’re finished with your chat or want to pause and resume later, simply press Ctrl+C
in the terminal.
To reconnect to this chat later, run exponent run
with the --chat-id
flag:
You can find this same command by opening the chat in your browser and clicking the “Connect” button:
Referencing Files
To add the contents of a file to your next message, type @
followed by the file path in the message editor. Select your file from the autocomplete menu:
Sharing Chats
Share a read-only link to your chat by clicking the share button in the top right of the chat window:
Response Termination
To cut off Exponent’s response early and adjust your message, click the Stop
button in the bottom right of the message editor:
Autorun Mode
Some tasks require several iterations of commands or file changes for Exponent to complete. Instead of manually approving each command, you can enable autorun mode to let Exponent process multiple commands automatically.
With autorun mode enabled, Exponent will continue running commands until it completes the task or reaches the maximum depth limit you’ve set:
Here’s a demonstration of autorun mode in action:
To stop Exponent before it completes all iterations, use the Stop
button to terminate the current response.
Direct Actions
To run a single terminal command and add it as context to your chat, prefix your message with /run
followed by your desired terminal command:
Preloading Prompts
Start a new Exponent chat with a preloaded first message by adding the --prompt
flag to the exponent run
command: