moul/assh ? reverse-engineered prompt

Reverse engineered prompt

Build me a smart SSH wrapper that feels like normal ssh, but lets me define hosts in a simple YAML file with aliases, regex matching, inheritance, templates, variable expansion from the environment, and gateway chains for jumping through bastions.

I want to be able to run commands like ssh hosta/hostb and have it figure out the right proxy command automatically, with a fallback to direct connection when possible. It should work transparently with ssh, scp, rsync, git, and anything else that uses ssh. Also add a way to inspect the config as JSON or Graphviz so I can visualize my hosts.

Please make it automatically regenerate the local ssh config when needed, support hooks around connect and disconnect, and handle smart defaults like creating ControlPath folders if they are missing. If you need to check the latest docs for any SSH or Go details, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab