xonecas.io
62159
Sy

symb / commit 1603d61

feat: save file via LLM diff apply

xonecas2026-02-16 1603d6167439333f7050129a0479c812d939bd1e parent 6840621

4 files changed

AGENTS.md+1−1
@@ -7,7 +7,7 @@
77 - The user will ask when he wants documentation or summaries written.
88 - Short answers only, the user will ask for more details if he wants.
99
10-**DON'T EDIT DOCS/DESIGN.md**
10+**DON'T EDIT DOCS/DESIGN.md UNLESS IT IS THE USERS REQUEST**
1111
1212 ## Project info
1313
config.toml+7−1
@@ -1,7 +1,7 @@
11 # Symb Configuration File
22
33 # Default provider (optional - if not set, first provider in map is used)
4-default_provider = "zen-codex"
4+default_provider = "zen-sonnet"
55
66 # Ollama providers (local)
77 [providers.ollama-qwen]
@@ -35,6 +35,12 @@ endpoint = "https://opencode.ai/zen/v1"
3535 model = "claude-opus-4-6"
3636 api_key_name = "opencode_zen"
3737
38+[providers.zen-sonnet]
39+endpoint = "https://opencode.ai/zen/v1"
40+model = "claude-sonnet-4-5"
41+api_key_name = "opencode_zen"
42+
43+
3844 [mcp]
3945 upstream = ""
4046
docs/DESIGN.md+5−6
@@ -176,19 +176,18 @@ Make a generic modal with inputbox + list combo for re-use. The use that to make
176176 - `-l`, `--list`: Lists sessions with id, last user message timestamp, and 50 characters of the last user user message.
177177 - `-c`, `--continue`: continues last session (most recent user message)
178178
179-## Features waiting implementation for current version:
180-
181-Testing current feature set
182-
183179 ### Code viewer pane -> Becomes Code editor pane
184180
185181 - Enable the same editting abilities as the agent input box.
186182 - <ctrl + s> Saves the file:
187- - File has no changes aside from the user's changes -> save file. Fast, simple.
188- - File has changes coliding with the user's changes -> send to llm to merge
183+ - File has changes -> send to llm to apply diff
189184 - Need to consider if this makes sense, or if the LLM should also be aware of user changes,
190185 and we should always send the diff for the LLM to apply?
191186
187+## Features waiting implementation for current version:
188+
189+Testing current feature set
190+
192191 # TODO (after features)
193192
194193 2. Investigate if turn latency has improved
go.mod+1−0
@@ -11,6 +11,7 @@ require (
1111 github.com/charmbracelet/x/ansi v0.11.6
1212 github.com/charmbracelet/x/exp/golden v0.0.0-20260209194814-eeb2896ac759
1313 github.com/charmbracelet/x/powernap v0.0.0-20260209132835-6b065b8ba62c
14+ github.com/hexops/gotextdiff v1.0.3
1415 github.com/rs/zerolog v1.34.0
1516 github.com/sashabaranov/go-openai v1.41.2
1617 github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82