1. Check if `diffity` is installed using `which diffity`. If not, install it using `npm install -g diffity`.
2. Execute `diffity <ref>` (or just `diffity` if no ref is provided) in the background using the Bash tool.
3. Wait for 2 seconds to allow the server to start.
4. Retrieve the port number by running `diffity list --json`.
5. Extract the URL from the JSON output.
6. Display the URL to the user, informing them that Diffity is running.