skip icon indicating copy to clipboard operation
skip copied to clipboard

LLM-friendlier syntax for `SKIP INSERT`

Open dfabulich opened this issue 7 months ago • 0 comments

When I attempted to have an LLM agent write some multi-line code with SKIP INSERT, it simply refused to believe that it should write the code like this:

// SKIP INSERT: 
// var count by remember {
//     mutableStateOf(100)
// }

It would repeatedly try to convert the code to this:

// SKIP INSERT: 
var count by remember {
    mutableStateOf(100)
}

That is, the LLM assumed that the code was commented out.

I think it would be better to offer another syntax for embedding multi-line Kotlin in Swift. Perhaps something like:

// SKIP INSERT:
let _ = #```
var count by remember {
    mutableStateOf(100)
}
```#

dfabulich avatar May 23 '25 15:05 dfabulich