Edits your route files
It reads route and redirect files, proposes a change and shows the diff before you accept it.
Segment Route is an autonomous AI agent for Windows 10/11 that edits route files and every url redirect on servers you own. It runs your own commands itself, shows the real result in each chat card and waits for your OK when a step changes something. No account is needed to run it, and version 2.9.26 is the current release.
It reads route and redirect files, proposes a change and shows the diff before you accept it.
Your config test, reload and request commands run in Shell, and the card shows the real exit code.
Ask first pauses before actions that change something, and Plan only writes a plan and runs nothing.
People ask why they should use a reverse proxy server publicly: one controlled entry point replaces open backends. Segment Route reads that entry point's files, edits them with a diff, runs your tests and reports the result in a card that you can expand to see the full output.
about1 matchredirects.confloadedredirects.conf+1 -1your config testexit 0your request command301 foundA page that moved for good but still answers with a temporary code keeps telling search engines and visitors that the old address is current. list_dir and grep find the rule file that mentions the old path, and read_file shows the line that sends code 302. edit_file changes that code to 301 and shows the diff. In Ask first mode the agent pauses here. Nothing reloads yet. Shell then runs your config test command, reloads, and sends a request to the old address, and the card shows the status code and the Location header. Compare them with the values you wrote down before the change, and accept the diff only when both match. Put the code you expect into your plan before you start, so that the comparison is a check against a written value and not against memory.
An infinite redirect loop behind a reverse proxy usually means that two layers each force https, so the browser never reaches the page. grep searches for the word redirect in the proxy file and in the settings file of the application, and read_file opens both. Two rules. edit_file removes the duplicate from one of them and shows a diff. Shell runs your config test command, and a request command follows the redirects you ask it to follow, so the exit code and the number of hops appear in the card. Review the diff, keep a backup of the old file, and start with Plan only if the server is live. After the fix, request the address once more and count the hops: one is right, two or more means another rule still redirects.
Two addresses that serve the same site split your visitors, so pick one and send the other to it with a single url redirect. Write the rule for your own domain, such as www.example.com to example.com, into a plan file first. read_file opens the current rules, edit_file adds the permanent redirect with a diff, and Shell runs your config test command and a request command against both names. Chains slow visitors down and can loop. The second request must therefore show one hop only. Review the diff in Ask first mode, and confirm that the rule sends visitors to the same content they asked for. A redirect that leads somewhere unrelated is a mistake, and it is not what the rule is for.
A reverse proxy on a remote VPS that you administer can be reached through the SSH environment, where Shell commands run on the server while the file tools work in the chat's working folder. Choose that environment, run your config test command and your reload command through Shell, and read the real exit code in each card. Auto-run would act at once. Ask first is the better choice for a live server, because every change waits for your OK. Afterwards request the public address and compare the status code with the one you noted before. Keep a backup of the old configuration on the server and a way to roll back. Use this only on servers that you own or administer.
Segment Route is not a hosted service and not a plugin for a web server. It is meant only for your own files, your PC and servers you are authorised to use, and you keep the work within them: the agent does not enforce scope, and Shell, web and SSH are not folder-bound. It cannot guarantee that code, scans or analysis are correct, so every diff and every status code is yours to read before you rely on it.