Skip to content

Instantly share code, notes, and snippets.

View osolmaz's full-sized avatar
🫖

Onur Solmaz osolmaz

🫖
View GitHub Profile
@osolmaz
osolmaz / Run Bonsai 2 27B on your own computer.md
Last active October 1, 2026 09:44
Run Bonsai 2 27B on your own computer: temporary install steps for Windows and Mac

Run Bonsai 2 27B on your own computer

Bonsai 2 27B is a free AI model by Prism ML. It is small enough to run on a gaming laptop or a Mac, with no data sent to the internet.

Bonsai is so new that the official llama.cpp, the engine behind the Llama app, cannot run it yet. Until that support arrives, Bonsai needs Prism ML's own version of llama.cpp. You have two ways to get it.

@osolmaz
osolmaz / README.md
Last active August 8, 2026 14:54
LFM2.5 tool calling is broken in streaming mode on both vLLM and llama.cpp (root cause, self-contained repros, workaround)

LFM2.5 tool calling is broken in streaming mode on both vLLM and llama.cpp

Tested 2026-08-08 with LiquidAI/LFM2.5-2.6B.

Both engines translate the model's tool call into JSON incrementally, while the model is still generating. That translation goes wrong whenever the arguments contain characters needing escapes. The two engines fail on complementary inputs, and in opposite ways.

| argument payload | vLLM v0.26.0 (--tool-call-parser lfm2) | llama.cpp b10156 (--jinja) |

@osolmaz
osolmaz / codex-compaction-public-draft.md
Last active September 26, 2026 08:12
How OpenAI Codex CLI context compaction actually works: remote compaction v2, the encrypted compaction item, measurements over 1087 real compactions, and what the blob's encryption does and doesn't protect

How Codex CLI does compaction

Findings from reading the Codex source (<codex checkout>, commit fa1d4c40d0e, 2026-07-28) and from capturing a real compaction against a live 174k-token conversation on 2026-08-02. Raw captures are not published: they contain private conversation content. Everything below is reproducible with the recipe at the end.

TL;DR

Codex compaction is not a client-side "summarize the transcript" prompt. The current default implementation ("remote compaction v2") works like this:

  1. The client sends the normal Responses API request (same model, same instructions, same tools, full history) with one extra input item appended at the end: {"type": "compaction_trigger"}.
  2. The server/model returns exactly one output item: {"type": "compaction", "id": "cmp_...", "encrypted_content": "gAAAAAB..."}. The content is an encrypted blob (Fernet token format) that the client cannot read.
@osolmaz
osolmaz / skillflag.md
Last active January 4, 2026 22:39
Skillflag defines a simple convention for listing/exporting agent skills that are bundled with command line interfaces

Skillflag Specification

Version: 0.1 (draft) Status: Informational + Normative (uses MUST / SHOULD / MAY)

1. Abstract

Skillflag is a CLI convention for exposing “agent skills” (skill directories, not just single markdown files) from a CLI tool via standardized flags, so that:

  • the producing CLI does not contain agent- or editor-specific installation logic, and
@osolmaz
osolmaz / keybindings-copy-github-permalink.json
Last active May 7, 2026 08:22
Set Cmd+Shift+C to copy GitHub Permalink in VS Code and Cursor (Arc-like behavior)
@osolmaz
osolmaz / poetry_export_requirements.sh
Created September 26, 2022 15:38
Export dependencies with Poetry, only package versions without hashes and platform details, in one line
poetry export --without-hashes --format=requirements.txt | grep -E '^[^# ]' | cut -d ';' -f1 > requirements.txt
@osolmaz
osolmaz / zoom_set_normal_volume.sh
Created March 24, 2020 14:50
Bash script to adjust Zoom meeting microphone and speaker volume to normal levels
#!/bin/sh
LANGUAGE="en_US"
app_name="ZOOM VoiceEngine"
current_sink_num=''
sink_num_check=''
app_name_check=''
@osolmaz
osolmaz / get_tezos_bakers.sh
Created February 23, 2020 12:35
Curl command to get the list of Tezos bakers
curl 'https://tezos-mainnet-conseil-1.kubernetes.papers.tech/v2/data/tezos/mainnet/delegates' -H 'Connection: keep-alive' -H 'Accept: application/json, text/plain, */*' -H 'Origin: https://tezblock.io' -H 'apikey: airgap123' -H 'Content-Type: application/json' -H 'Referer: https://tezos-mainnet-conseil-1.kubernetes.papers.tech/' --data-binary '{"fields":[],"predicates":[{"field":"staking_balance","operation":"gt","set":["8000000000"],"inverse":false}],"orderBy":[{"field":"staking_balance","direction":"desc"}],"limit":1000}' --compressed
@osolmaz
osolmaz / change_mate_font_dpi.sh
Created February 23, 2020 12:32
Change MATE font rendering DPI setting in the terminal
gsettings set org.mate.font-rendering dpi <the_value_you_want>
@osolmaz
osolmaz / compress_gopro.sh
Created June 17, 2019 14:25
Compress MP4's from GoPro w/ Metadata
for i in *.MP4; do ffmpeg -i $i -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k -movflags +faststart -vf scale=-2:720,format=yuv420p -map_metadata 0 out/$i; done