<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdul Rehman</title>
    <description>The latest articles on DEV Community by Abdul Rehman (@abdul_rehman_90cb34d3a146).</description>
    <link>https://dev.to/abdul_rehman_90cb34d3a146</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4218608%2F7461b6bd-fe6e-43a8-8333-d5a242795e1e.png</url>
      <title>DEV Community: Abdul Rehman</title>
      <link>https://dev.to/abdul_rehman_90cb34d3a146</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdul_rehman_90cb34d3a146"/>
    <language>en</language>
    <item>
      <title>Speculative decoding explained: Medusa, EAGLE-3 and limits</title>
      <dc:creator>Abdul Rehman</dc:creator>
      <pubDate>Fri, 13 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/abdul_rehman_90cb34d3a146/speculative-decoding-explained-medusa-eagle-3-and-limits-kc3</link>
      <guid>https://dev.to/abdul_rehman_90cb34d3a146/speculative-decoding-explained-medusa-eagle-3-and-limits-kc3</guid>
      <description>&lt;p&gt;Speculative decoding makes a large language model produce text faster by letting a cheaper process guess several tokens ahead while the big model checks the guesses all at once. The original paper, from Google researchers, reports a 2X to 3X speedup on a T5-XXL model with identical outputs. Later methods such as Medusa and EAGLE-3 report larger gains, under their own test conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one token at a time is slow
&lt;/h2&gt;

&lt;p&gt;A model predicts a token, adds it to the text, and predicts the next, so the steps are strictly sequential. The expensive part is moving data. According to the &lt;a href="https://arxiv.org/abs/2401.10774" rel="noopener noreferrer"&gt;Medusa paper&lt;/a&gt;, each decoding step moves the full set of model parameters out of GPU memory, so the chip waits on data and most of its compute sits idle. Scoring several candidate tokens in one pass costs little extra, because the parameters are read once for the whole group.&lt;/p&gt;

&lt;h2&gt;
  
  
  How speculative decoding works
&lt;/h2&gt;

&lt;p&gt;Introduced in &lt;a href="https://arxiv.org/abs/2211.17192" rel="noopener noreferrer"&gt;Fast Inference from Transformers via Speculative Decoding&lt;/a&gt; (Leviathan, Kalman and Matias, November 2022):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A small, fast draft model proposes the next few tokens.&lt;/li&gt;
&lt;li&gt;The large target model scores all of them in a single forward pass.&lt;/li&gt;
&lt;li&gt;The target keeps proposals up to the first disagreement and supplies its own token there.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When the draft is right, several tokens arrive for the price of one big-model step. When it is wrong, that step runs at roughly normal speed, and the proposals past the first miss are wasted compute.&lt;/p&gt;

&lt;p&gt;The output does not change. The paper says the method samples without changing the distribution of results, because a draft token survives only if the target accepts it. The draft affects speed, not content.&lt;/p&gt;

&lt;h2&gt;
  
  
  Medusa and EAGLE-3
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Medusa&lt;/strong&gt; attaches extra decoding heads to the main model so each step proposes several future tokens, and tree-based attention verifies candidates together. No separate draft model is needed. Medusa-1 trains only the heads on a frozen backbone and reports over 2.2x speedup with no loss in quality. Medusa-2 trains heads and backbone together, reports 2.3x to 3.6x, and needs a special recipe to protect the model's abilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EAGLE-3&lt;/strong&gt; (&lt;a href="https://arxiv.org/abs/2503.01840" rel="noopener noreferrer"&gt;paper&lt;/a&gt;) predicts tokens directly and fuses features from several layers of the target. The authors report up to 6.5x speedup across five tasks, about 1.4x better than EAGLE-2, and a 1.38x throughput gain in SGLang at batch size 64.&lt;/p&gt;

&lt;h2&gt;
  
  
  When speculative decoding gets slower
&lt;/h2&gt;

&lt;p&gt;The gain depends on how often the target accepts the draft, which depends on how closely the draft matches, how many positions are drafted and the workload. The &lt;a href="https://docs.vllm.ai/en/v0.8.2/features/spec_decode.html" rel="noopener noreferrer"&gt;vLLM docs for v0.8.2&lt;/a&gt; say speculative decoding there "is not yet optimized and does not usually yield inter-token latency reductions" for all prompt datasets or sampling parameters, and list restrictions around pipeline and tensor parallelism.&lt;/p&gt;

&lt;p&gt;A 2026 &lt;a href="https://vllm.ai/blog/2026-08-23-speculative-decoding-amd-gpus" rel="noopener noreferrer"&gt;vLLM post on AMD GPUs&lt;/a&gt; shows both sides. On gemma-4-26B-A4B-it, DFlash reached 2.87x throughput on MATH500 and EAGLE-3 reached 2.11x to 2.27x. On Qwen3-8B, EAGLE-3 with one drafted token ran at 0.44x of baseline on MATH500, which is slower than no speculation. The authors recommend measuring acceptance and end-to-end throughput on your own workload before choosing settings.&lt;/p&gt;

&lt;p&gt;So if you self-host, the trade-offs are concrete: a separate draft model costs memory, trained heads cost training, and the best number of guessed tokens differed between models. Treat the paper numbers as best cases.&lt;/p&gt;

&lt;p&gt;The original adds the vLLM details and what to watch next: &lt;a href="https://syntaxradar.com/radar/speculative-decoding-medusa-eagle-multi-token-prediction-benchmarks" rel="noopener noreferrer"&gt;https://syntaxradar.com/radar/speculative-decoding-medusa-eagle-multi-token-prediction-benchmarks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>performance</category>
    </item>
    <item>
      <title>AI agent sandboxes compared: containers, Firecracker, gVisor and WebAssembly</title>
      <dc:creator>Abdul Rehman</dc:creator>
      <pubDate>Tue, 10 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/abdul_rehman_90cb34d3a146/ai-agent-sandboxes-compared-containers-firecracker-gvisor-and-webassembly-4d2e</link>
      <guid>https://dev.to/abdul_rehman_90cb34d3a146/ai-agent-sandboxes-compared-containers-firecracker-gvisor-and-webassembly-4d2e</guid>
      <description>&lt;p&gt;Agents now write and run programs on their own, often after reading text they did not write: a web page, an email, a document. That text can steer the agent, so the code it produces needs a wall around it. The design question is where to put the wall. A wall close to the program is cheap and fast but has more places to leak. A wall around a whole virtual computer is stronger but heavier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Containers
&lt;/h2&gt;

&lt;p&gt;A container runs as an ordinary process on the host, fenced in by operating system features. Every container on a machine shares one kernel, so a kernel bug found inside one can reach the host and its neighbours. seccomp, AppArmor and SELinux shrink the risk. The &lt;a href="https://gvisor.dev/docs/" rel="noopener noreferrer"&gt;gVisor documentation&lt;/a&gt; describes these as rule-based mechanisms and says gVisor was built because rules alone leave the host kernel exposed. A hardened container suits code you wrote and trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  MicroVMs (Firecracker)
&lt;/h2&gt;

&lt;p&gt;A microVM has its own kernel on hardware-enforced virtualization, so a bug the code finds stays inside the small virtual machine. &lt;a href="https://github.com/firecracker-microvm/firecracker" rel="noopener noreferrer"&gt;Firecracker&lt;/a&gt; was built at AWS for Lambda and Fargate. Its README says it leaves out unneeded devices to keep memory use and attack surface small, and its default setup is 1 virtual CPU and 128 MiB of memory. The &lt;a href="https://www.usenix.org/conference/nsdi20/presentation/agache" rel="noopener noreferrer"&gt;NSDI paper&lt;/a&gt; frames the trade: traditional virtualization gives strong security with high overhead, containers give minimal overhead with weaker security. Firecracker publishes no boot-time figure.&lt;/p&gt;

&lt;h2&gt;
  
  
  gVisor
&lt;/h2&gt;

&lt;p&gt;According to its documentation, gVisor is an application kernel written in Go that handles the program's system calls itself, so the host kernel is not directly exposed, and it needs no hardware virtualization layer. The documentation names the price: reduced application compatibility and higher per-system-call overhead, so programs that make many system calls can run poorly.&lt;/p&gt;

&lt;h2&gt;
  
  
  WebAssembly
&lt;/h2&gt;

&lt;p&gt;A Wasm module runs in a runtime that separates it from the host. Its memory is a separate region with a fixed maximum, every access outside it is bounds-checked and ends in a trap, and the module can reach the outside world only through interfaces the host provides. If the host offers no file or network functions, the module cannot ask for them. The &lt;a href="https://webassembly.org/docs/security/" rel="noopener noreferrer"&gt;WebAssembly security documentation&lt;/a&gt; also lists limits: race conditions, timing side channels and some nondeterminism are not prevented. Wasm suits code compiled to Wasm, not the arbitrary Python packages and native tools many agents call.&lt;/p&gt;

&lt;p&gt;Docker's documentation says Wasm workloads in Docker Desktop are deprecated, no longer actively maintained and will be removed in a future release, so it is a poor basis for a new sandbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing
&lt;/h2&gt;

&lt;p&gt;Trusted internal scripts can run in a hardened container. Code generated from untrusted input for many customers on shared machines is where microVMs and gVisor are used. A sandbox controls what code can reach, not what an agent is permitted to do: an agent allowed to send email or call an API can still be talked into misusing that permission. Network limits, narrow credentials and human approval for risky steps remain separate jobs.&lt;/p&gt;

&lt;p&gt;Write down what the agent's code may read, write and reach, then pick the lightest isolation that covers that list.&lt;/p&gt;

&lt;p&gt;The original also covers Docker's Wasm deprecation in more detail and includes a short FAQ: &lt;a href="https://syntaxradar.com/radar/sub-millisecond-sandboxes-docker-wasm-micro-vms-untrusted-ai-execution" rel="noopener noreferrer"&gt;https://syntaxradar.com/radar/sub-millisecond-sandboxes-docker-wasm-micro-vms-untrusted-ai-execution&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>docker</category>
      <category>webassembly</category>
    </item>
    <item>
      <title>SGLang vs vLLM: what prefix caching really saves</title>
      <dc:creator>Abdul Rehman</dc:creator>
      <pubDate>Sun, 08 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/abdul_rehman_90cb34d3a146/sglang-vs-vllm-what-prefix-caching-really-saves-48e3</link>
      <guid>https://dev.to/abdul_rehman_90cb34d3a146/sglang-vs-vllm-what-prefix-caching-really-saves-48e3</guid>
      <description>&lt;p&gt;SGLang vs vLLM mostly comes down to one question: how much of your prompt do your requests have in common? SGLang is built around a prefix cache called RadixAttention, and vLLM offers a similar feature called automatic prefix caching. Where requests share long openings, both skip repeated work. Where they share nothing, neither has much to skip. The headline speedups online come mostly from the first situation.&lt;/p&gt;

&lt;h2&gt;
  
  
  SGLang vs vLLM: how each tracks shared text
&lt;/h2&gt;

&lt;p&gt;Reading a prompt is called prefill, and it must finish before the first word of a reply appears. If a new request starts with text the engine already processed, that part of prefill can be skipped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SGLang.&lt;/strong&gt; Per the &lt;a href="https://lmsys.org/blog/2024-01-17-sglang/" rel="noopener noreferrer"&gt;LMSYS announcement&lt;/a&gt; and the &lt;a href="https://arxiv.org/abs/2312.07104" rel="noopener noreferrer"&gt;SGLang paper&lt;/a&gt;, RadixAttention keeps the KV cache for prompts and generated answers in a radix tree, so prompts that begin the same way share a branch and the same stored memory. The tree lives on the CPU while the tensors stay on the GPU. A least-recently-used policy evicts old leaves, and a cache-aware scheduler orders requests so more of them find a match. LMSYS says the authors saw no noticeable overhead when there were no cache hits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;vLLM.&lt;/strong&gt; The &lt;a href="https://docs.vllm.ai/en/latest/design/prefix_caching/" rel="noopener noreferrer"&gt;design documentation&lt;/a&gt; says vLLM hashes each block of the KV cache. A block's fingerprint combines the previous block's fingerprint, the tokens inside it and extras such as adapter IDs. Only full blocks are cached, and eviction is least-recently-used too. So a prefix that ends partway through a block cannot be reused beyond the last full block.&lt;/p&gt;

&lt;p&gt;The vLLM &lt;a href="https://docs.vllm.ai/en/latest/features/automatic_prefix_caching.html" rel="noopener noreferrer"&gt;feature page&lt;/a&gt; lists multi-turn chat and repeated questions about one long document as the cases where it helps. It also says prefix caching speeds up prefill only: it does nothing for long generated answers or for queries that share no prefix.&lt;/p&gt;

&lt;h2&gt;
  
  
  SGLang vs vLLM benchmarks: what they show
&lt;/h2&gt;

&lt;p&gt;The SGLang paper reports up to 6.4x higher throughput than state-of-the-art systems across several tasks. The LMSYS post reports up to 5x against vLLM v0.2.5, Guidance and TGI, on Llama-7B with one A10G and on Mixtral-8x7B with eight.&lt;/p&gt;

&lt;p&gt;Two cautions. Those baselines date from late 2023 and early 2024, and vLLM has since added automatic prefix caching. And "up to" means the best case among the workloads tested.&lt;/p&gt;

&lt;p&gt;Newer comparisons are mostly single-author blog posts, and they conflict. One 2026 DEV Community post reports median time to first token of 380 ms on vLLM against 85 ms on SGLang for a shared-prefix test. A post from Spheron reports 1,920 tokens per second for SGLang against 1,850 for vLLM at 50 concurrent requests on an H100, close to a tie. A &lt;a href="https://arxiv.org/pdf/2410.03960" rel="noopener noreferrer"&gt;SwiftKV paper&lt;/a&gt; mentions 1.4x to 1.8x for SGLang over vLLM on Llama-3.1-8B.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing
&lt;/h2&gt;

&lt;p&gt;Prefix caching pays off when many requests begin with the same material: a long system prompt reused by every user, a tool list an agent resends on every step, or one document that many questions refer to. It pays off less when prompts are mostly unique or replies are very long.&lt;/p&gt;

&lt;p&gt;To compare them for your case, take a sample of real traffic, run it through both engines on the same hardware with prefix caching switched on in vLLM, and compare time to first token and throughput at the concurrency you expect. The vLLM page says to set &lt;code&gt;enable_prefix_caching=True&lt;/code&gt; and does not state the default, so check your version.&lt;/p&gt;

&lt;p&gt;The original also covers memory pressure and the open research on hybrid models, with a short FAQ: &lt;a href="https://syntaxradar.com/radar/radixattention-dynamic-prefix-caching-sglang-vllm-benchmarks" rel="noopener noreferrer"&gt;https://syntaxradar.com/radar/radixattention-dynamic-prefix-caching-sglang-vllm-benchmarks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
    <item>
      <title>How a KV cache bug exposed other customers' prompts</title>
      <dc:creator>Abdul Rehman</dc:creator>
      <pubDate>Thu, 05 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/abdul_rehman_90cb34d3a146/how-a-kv-cache-bug-exposed-other-customers-prompts-i8p</link>
      <guid>https://dev.to/abdul_rehman_90cb34d3a146/how-a-kv-cache-bug-exposed-other-customers-prompts-i8p</guid>
      <description>&lt;p&gt;For about two weeks this summer, a small number of people using Cloudflare's GLM-5.3 model on Workers AI got answers stitched partly from someone else's prompt. Nobody stole a password. A memory bookkeeping mistake in the KV cache let 155 responses read pages a previous customer had left behind. Cloudflare published a &lt;a href="https://blog.cloudflare.com/kv-cache-exposure-remediation/" rel="noopener noreferrer"&gt;coordinated disclosure&lt;/a&gt; on October 26. The leak window ran from August 27 to September 9, 2026, and only prompts longer than 681,280 tokens were affected.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is a KV cache in an LLM?
&lt;/h2&gt;

&lt;p&gt;A language model writes one token at a time. To pick each one, attention looks back over every earlier token, and for each of them it needs a key and a value. Recomputing those for the whole conversation on every step would be wasteful, so the model stores them. That store is the KV cache. It grows with context length times the number of people served at once, and it can end up bigger than the model's weights.&lt;/p&gt;

&lt;p&gt;Serving engines such as SGLang do not give each request one giant block of memory. They carve GPU memory into a shared pool of fixed-size pages and lend pages out. When a request finishes, its pages go back to the pool without being wiped, because overwriting is the next request's job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two numbers that did not match
&lt;/h2&gt;

&lt;p&gt;According to Cloudflare's &lt;a href="https://developers.cloudflare.com/changelog/post/2026-08-28-glm-5.3-workers-ai/" rel="noopener noreferrer"&gt;launch changelog&lt;/a&gt;, GLM-5.3 shipped with a 1M-token context window. The advertised figure was 1,048,576 tokens, but the pool holding the prefill KV cache fit only 681,280. Any prompt above that should have been refused.&lt;/p&gt;

&lt;p&gt;The setup was disaggregated: prefill nodes read the prompt and build its cache, decode nodes take that cache and generate the reply. Cloudflare's root-cause analysis describes this chain:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A prompt longer than the pool arrives.&lt;/li&gt;
&lt;li&gt;SGLang marks it rejected and swaps in a one-token placeholder instead of failing loudly.&lt;/li&gt;
&lt;li&gt;The admission check only asks whether a request is finished. A rejected request counts as finished, so it passes.&lt;/li&gt;
&lt;li&gt;The decode node reserves 8 KV pages, expecting a full handoff. Prefill wrote one.&lt;/li&gt;
&lt;li&gt;Attention then runs over all 8 pages, and seven still hold keys and values from earlier requests to the same model.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The reply was fluent and came back with HTTP 200, so nothing looked wrong on either side. Cloudflare says its pre-launch tests checked status codes, not what the model actually said.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping it in proportion
&lt;/h2&gt;

&lt;p&gt;Cloudflare counts 155 affected responses, all from very long prompts, on one model, and says it saw no evidence of deliberate exploitation. The same SGLang flaw had been reported upstream as issue #30233 on July 6, and a fix was merged on September 6 in SGLang v0.5.20, three days before the incident was declared. The prefill pool now holds about 2.04 million tokens, roughly twice the context length.&lt;/p&gt;

&lt;h2&gt;
  
  
  KV cache security: what to check if you run inference
&lt;/h2&gt;

&lt;p&gt;Cloudflare's advice is specific:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After any change to model weights, quantization, parallelism or memory settings, compare the KV pool size with the advertised context length on every prefill and decode node.&lt;/li&gt;
&lt;li&gt;Upgrade SGLang to v0.5.22 or later. v0.5.21 added a follow-up fix.&lt;/li&gt;
&lt;li&gt;Test what the model returns, not only the status code. Send an over-length prompt and confirm it is refused.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you only call shared APIs, treat any multi-tenant service as a place where a bug could, rarely, expose what you send. Keep secrets and regulated personal data out of prompts unless a contract and risk review cover them.&lt;/p&gt;

&lt;p&gt;The pool size is also a security boundary. Every trick that squeezes more tokens into a fixed pool, such as KV cache quantization or offloading pages to CPU memory, changes how many tokens fit inside it.&lt;/p&gt;

&lt;p&gt;The original has the full timeline of September 9 and a short FAQ: &lt;a href="https://syntaxradar.com/radar/kv-cache-explained-cloudflare-prompt-leak" rel="noopener noreferrer"&gt;https://syntaxradar.com/radar/kv-cache-explained-cloudflare-prompt-leak&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>llm</category>
      <category>devops</category>
    </item>
    <item>
      <title>Ghostty 1.4: what the speed and memory numbers mean, and where tmux still fits</title>
      <dc:creator>Abdul Rehman</dc:creator>
      <pubDate>Tue, 03 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/abdul_rehman_90cb34d3a146/ghostty-14-what-the-speed-and-memory-numbers-mean-and-where-tmux-still-fits-422</link>
      <guid>https://dev.to/abdul_rehman_90cb34d3a146/ghostty-14-what-the-speed-and-memory-numbers-mean-and-where-tmux-still-fits-422</guid>
      <description>&lt;p&gt;Ghostty 1.4.0 shipped on October 27, 2026 after seven months of work by 172 contributors across 2,889 commits. The headline figures come from the &lt;a href="https://ghostty.org/docs/install/release-notes/1-4-0" rel="noopener noreferrer"&gt;release notes&lt;/a&gt;. Here is what they mean if you just want the terminal to feel quick.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed
&lt;/h2&gt;

&lt;p&gt;On an M4 Max Mac, plain ASCII parsing went from 128 MB/s to 725 MB/s, about 5.7 times faster. Throughput through the pty, the pipe between the window and your shell, rose 25% to 55% over the 1.3.x releases. You notice it when a build prints thousands of lines or you &lt;code&gt;cat&lt;/code&gt; a large log. Resizing a window with 10,000 lines of history is about six times faster.&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory
&lt;/h2&gt;

&lt;p&gt;Ghostty now compresses idle scrollback, which cuts physical memory use by 70% to 90% for typical text. Because history got cheaper, the default scrollback limit per terminal went from 10 MB to 50 MB. A new, empty terminal on macOS uses about 16 KiB of page memory, down from 128 KiB in 1.3.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  Images, Linux and security
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Full support for the published Kitty graphics protocol, including animation. The release notes say Ghostty is the first terminal other than Kitty itself to get there.&lt;/li&gt;
&lt;li&gt;On Linux and FreeBSD, a new EGL-based renderer adds triple buffering and true fractional scaling.&lt;/li&gt;
&lt;li&gt;The release closes 10 published GitHub security advisories, covering paste protection, Kitty graphics, tmux control mode and macOS link handling.&lt;/li&gt;
&lt;li&gt;GTK builds now require GTK 4.18 and libadwaita 1.7, so older long-term-support distributions may not have a ready package.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where tmux fits
&lt;/h2&gt;

&lt;p&gt;tmux is a terminal multiplexer, not a terminal. It runs inside any terminal, and its sessions keep running after you close the window or lose an SSH connection. That use stays the same inside Ghostty. If you rely on tmux for persistent remote sessions, keep it.&lt;/p&gt;

&lt;p&gt;One common snag is a remote host that does not recognise Ghostty's terminal type, which can garble colours or keys inside tmux. The new &lt;code&gt;ghostty +ssh user@server&lt;/code&gt; command wraps ssh, installs Ghostty's terminfo on the remote host and forwards your environment variables.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you switch?
&lt;/h2&gt;

&lt;p&gt;If you open a terminal a few times a week, the stock Terminal app is fine. If you spend hours a day in it, the release notes give you a speed and memory reason to try Ghostty for a week next to your current setup. I did not test Warp or other terminals for this write-up, so I make no comparison with them.&lt;/p&gt;

&lt;p&gt;Install steps, a comparison table and the libghostty outlook are in the original: &lt;a href="https://syntaxradar.com/radar/tmux-ghostty-guide-should-you-switch" rel="noopener noreferrer"&gt;https://syntaxradar.com/radar/tmux-ghostty-guide-should-you-switch&lt;/a&gt;&lt;/p&gt;

</description>
      <category>terminal</category>
      <category>productivity</category>
      <category>macos</category>
      <category>linux</category>
    </item>
    <item>
      <title>Claude Code for VS Code 2.1.313 backdoor: how to check your machine and clean up</title>
      <dc:creator>Abdul Rehman</dc:creator>
      <pubDate>Sat, 31 Oct 2026 08:15:04 +0000</pubDate>
      <link>https://dev.to/abdul_rehman_90cb34d3a146/claude-code-for-vs-code-21313-backdoor-how-to-check-your-machine-and-clean-up-55k8</link>
      <guid>https://dev.to/abdul_rehman_90cb34d3a146/claude-code-for-vs-code-21313-backdoor-how-to-check-your-machine-and-clean-up-55k8</guid>
      <description>&lt;p&gt;Security firm Phorion published an advisory on October 30, 2026 saying that release 2.1.313 of Claude Code for VS Code, as served through the Cursor Marketplace, carried a hidden backdoor. Cursor has pulled the release, and the advisory says the NPM and VS Code versions of 2.1.313 were pulled too. Uninstalling the extension does not remove what it installed. Phorion is the only primary source so far, so every technical detail below is its finding.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the code did
&lt;/h2&gt;

&lt;p&gt;Phorion found an extra block of code inserted at the top of &lt;code&gt;extension.js&lt;/code&gt;. Because it sat above everything else, it ran as soon as Node loaded the file, before the extension's &lt;code&gt;activate&lt;/code&gt; function and without any prompt.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A spare login key.&lt;/strong&gt; It appended an Ed25519 SSH key labelled &lt;code&gt;svc-telemetry&lt;/code&gt; to &lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A tunnel that dials out.&lt;/strong&gt; It opened an SSH connection to &lt;code&gt;134.209.82[.]225&lt;/code&gt; on port 22 as user &lt;code&gt;tunnel&lt;/code&gt;, with a reverse tunnel (&lt;code&gt;-R *:0:localhost:22&lt;/code&gt;), so the attacker's server could reach your own SSH service. The key it used was stored at &lt;code&gt;$TMPDIR/.stk_&lt;/code&gt; plus 10 hex characters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A beacon.&lt;/strong&gt; It sent one HTTP POST to &lt;code&gt;/beacon&lt;/code&gt; on port 8099 of the same address with your hostname, username, platform, CPU architecture, Git email, public IP and the names of up to 40 environment variables matching KEY, TOKEN, SECRET, PASS, AWS or GCP.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why removing the extension is not enough
&lt;/h2&gt;

&lt;p&gt;Per Phorion, it installed persistence on every major desktop system, and it retries the connection every 60 seconds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; a LaunchAgent at &lt;code&gt;~/Library/LaunchAgents/com.apple.sysmond.plist&lt;/code&gt;, plus &lt;code&gt;~/.config/.smt&lt;/code&gt; and &lt;code&gt;.smtk&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; an &lt;code&gt;@reboot&lt;/code&gt; cron entry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; a scheduled task named &lt;code&gt;SysMon&lt;/code&gt;, or a &lt;code&gt;sysmon.cmd&lt;/code&gt; file in the Startup folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to check
&lt;/h2&gt;

&lt;p&gt;Run these on any machine that had 2.1.313 installed in Cursor or VS Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;grep &lt;/span&gt;svc-telemetry ~/.ssh/authorized_keys
&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-la&lt;/span&gt; ~/Library/LaunchAgents/com.apple.sysmond.plist ~/.config/.smt&lt;span class="k"&gt;*&lt;/span&gt; 2&amp;gt;/dev/null
crontab &lt;span class="nt"&gt;-l&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; @reboot
&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-la&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$TMPDIR&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;/.stk_&lt;span class="k"&gt;*&lt;/span&gt; /tmp/.stk_&lt;span class="k"&gt;*&lt;/span&gt; 2&amp;gt;/dev/null
ps aux | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-E&lt;/span&gt; &lt;span class="s2"&gt;"autossh|ssh .*tunnel@"&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt; &lt;span class="nb"&gt;grep&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows, look for the &lt;code&gt;SysMon&lt;/code&gt; task in Task Scheduler and &lt;code&gt;sysmon.cmd&lt;/code&gt; in the Startup folder. Phorion also lists the SHA-256 of the backdoored &lt;code&gt;extension.js&lt;/code&gt; (&lt;code&gt;ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15&lt;/code&gt;) and the key fingerprint (&lt;code&gt;SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk&lt;/code&gt;). In SSH logs, a login from &lt;code&gt;127.0.0.1&lt;/code&gt; or &lt;code&gt;::1&lt;/code&gt; using the &lt;code&gt;svc-telemetry&lt;/code&gt; key means someone came back through the tunnel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cleanup, in Phorion's order
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Stop the retry loop and kill any SSH or &lt;code&gt;autossh&lt;/code&gt; processes it started.&lt;/li&gt;
&lt;li&gt;Remove the LaunchAgent, &lt;code&gt;~/.config/.smt&lt;/code&gt; and &lt;code&gt;.smtk&lt;/code&gt; (or the cron entry, scheduled task or &lt;code&gt;sysmon.cmd&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Delete the &lt;code&gt;svc-telemetry&lt;/code&gt; line from &lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt; and remove &lt;code&gt;/tmp/.stk_*&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Confirm Remote Login is off on macOS.&lt;/li&gt;
&lt;li&gt;Rotate credentials if SSH was enabled or you suspect an inbound login.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;One addition: if the beacon could have listed token or cloud key names from your environment, rotate those keys too.&lt;/p&gt;

&lt;p&gt;Phorion also notes a logic bug on macOS: without admin rights, &lt;code&gt;systemsetup -getremotelogin&lt;/code&gt; errors but still reports success, so the step that would switch on Remote Login was skipped. The outbound beacon is unaffected, so do not treat that as a free pass.&lt;/p&gt;

&lt;p&gt;The original on SyntaxRadar adds a FAQ on whether the extension is safe now and how to vet AI coding extensions: &lt;a href="https://syntaxradar.com/radar/claude-code-extension-vscode-backdoor" rel="noopener noreferrer"&gt;https://syntaxradar.com/radar/claude-code-extension-vscode-backdoor&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>vscode</category>
      <category>ai</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
