| commit | 0d95d3a268ffad82b7c645200804fb43ed088a81 | [log] [tgz] |
|---|---|---|
| author | Sean McCullough <banksean@gmail.com> | Wed Apr 30 16:22:28 2025 +0000 |
| committer | Sean McCullough <banksean@gmail.com> | Wed Apr 30 16:22:35 2025 +0000 |
| tree | ac9a63b6648a2555382769bcd9ce157170291224 | |
| parent | 9c0fc89eea578d71389edb4fd7d92eb73816f528 [diff] |
Improve SSH config file safety in dockerimg/ssh_theater.go - Add SafeWriteFile method to the FileSystem interface that: - Writes data to a temporary file first - Syncs to disk to ensure data is written - Creates a backup of the original file (if it exists) - Safely renames the temporary file to the target - Update all file modification operations to use SafeWriteFile: - addContainerToSSHConfig - removeContainerFromSSHConfig - addContainerToKnownHosts - removeContainerFromKnownHosts - CheckForIncludeWithFS This change reduces the risk of corruption if the process is interrupted while modifying configuration files. Co-Authored-By: sketch <hello@sketch.dev>
Sketch is an agentic coding tool focused on the Go programming language. Sketch runs in your terminal, has a web UI, understands your code, and helps you get work done. To keep your environment pristine, sketch starts a docker container and outputs its work onto a branch in your host git repository.
To get started:
go install sketch.dev/cmd/sketch@latest sketch
Currently sketch runs on macOS and linux. It uses docker/colima for containers.
macOS: brew install colima linux: apt install docker.io (or equivalent for your distro)
The sketch.dev service is used to provide access to an LLM service and give you a way to access the web UI from anywhere.
We have a discord server to discuss sketch.
Join if you want! https://discord.gg/YNUSuVm4
See CONTRIBUTING.md
Sketch is open source. It is right here in this repository! Have a look around and mod away.
If you want to run sketch entirely without the sketch.dev service, you can set the flag -skaband-addr="" and then provide an ANTHROPIC_API_KEY environment variable. (More LLM services coming soon!)