Skip to content

Instantly share code, notes, and snippets.

View w601sxs's full-sized avatar
🏃‍♂️

Shreyas Subramanian w601sxs

🏃‍♂️
View GitHub Profile
@w601sxs
w601sxs / README.md
Created November 30, 2026 00:04
Change the task clock, the model ranking flips: FrontierHarness Eval v1.1 analysis. @ShreyasSub

Change the clock, the model ranking flips (FrontierHarness Eval v1.1)

Same 22 harnesses, same 5 open models. Rank the models by pass rate on tasks with a 15-minute limit and GLM-5.3 is last while Kimi-K3 is first. On the 17 tasks with limits of up to 8 hours, GLM-5.3 is first and Kimi-K3 last.

Data: all 27,280 public runs from FrontierHarness Eval v1.1 (Runta x Baseten), https://frontierharness.org/api/live (data version 1xhh2cu): 5 models x 22 harness configs x 62 tasks x 4 attempts. Task time limits for the 45 Terminal-Bench 2.1 tasks come from the public task configs (https://github.com/laude-institute/terminal-bench-2). Runs on a CPU in seconds.

Pass rate (rank of 5), task-weighted, pooled over 22 harnesses

Time limit Tasks Kimi-K3 GLM-5.3 DeepSeek V4.1 Flash GLM-5.3 Flash Muse Spark Open
@w601sxs
w601sxs / README.md
Created November 29, 2026 19:10
Rerun noise floor for agent harness benchmarks (cost, calls, pass rate vs task count). @ShreyasSub

Rerun noise in agent harness benchmarks

Same agent config, same tasks, run twice. How much do total cost, tool calls and pass rate move with no code change?

Data: public trial files from the Harness Leaderboard bucket, https://huggingface.co/buckets/joelniklaus/harness-leaderboard (223 finished run files; Terminal-Bench 2.1, Deep-SWE, FeatureBench). No API calls, runs on a CPU in about 30 s after download.

Method

  • Config = model x harness x benchmark x reasoning effort.
  • Cost and calls: passing trials only (reward >= 1), tasks with 3+ passing trials. 123 configs have 16+ such tasks (27,320 solved trials, 6,602 task groups).
  • Score: all started trials, tasks with 2+ trials, 149 configs.
@w601sxs
w601sxs / README.md
Created November 28, 2026 11:43
Kimi K3.1 on Terminal-Bench 4.1: flagged vs unflagged task split (paired bootstrap, 22,110 Harbor Hub trials)

Where does Kimi K3.1 Pro's Terminal-Bench 4.1 score come from?

A neutral per-task audit of public Harbor Hub trials. This is personal analysis of public data only. It measures where a score comes from. It does not show how any model was trained.

Reproduce (CPU only, about 5 minutes, no API keys)

uv venv .venv && uv pip install --python .venv/bin/python numpy scipy pillow
python3 fetch_harbor.py # leaderboard + all per-trial results -> data/
@w601sxs
w601sxs / claudememcompaction.md
Last active April 1, 2026 19:57
Claude Code Memory compaction walkthrough

Claude Code Memory compaction — detailed walkthrough (based on rust/crates/runtime/src/compact.rs)

This gist explains, step by step, how the compaction logic in rust/crates/runtime/src/compact.rs works. It covers:

  • When compaction is triggered
  • How tokens are estimated
  • How messages are summarized and merged
  • How the compacted session is constructed
  • Edge cases and tests that illustrate behavior

@w601sxs
w601sxs / wtfmcp.md
Last active April 15, 2025 16:15
WTF MCP

Not heard enough about MCP yet?

Unlike traditional APIs that require rigid pre-defined integrations, MCP acts as a universal translator between large language models and enterprise systems (and other loosely defined "tools"), maintaining context across interactions and enabling real-time discovery of resources. You knew this part already. Let's answer some common questions that have come up (including whats in the title). Later in this post, we'll dissect an actual MCP implementation for Amazon Bedrock Knowledge Bases to understand how this protocol bridges the gap between human-like queries and machine-readable data.

The Question Everyone Asks: "But someone still needs to build the APIs, right?"

Let's address this confusion directly: Yes, developers still create interfaces to data and tools - but MCP fundamentally changes how, when, and by whom these interfaces are used.

The key difference is that MCP creates a standardized way for these interfaces to be connected at runtime by users rather

@w601sxs
w601sxs / Deepseek v3 MHA.md
Last active December 31, 2024 20:13
Deepseek v3 MHA
  • Key and Value Compression: The input for the $t$-th token at an attention layer is denoted as $\mathbf{h}_t \in \mathbb{R}^d$, where $d$ is the embedding dimension.

  • A compressed latent vector for keys and values, $\mathbf{c}_t^{KV} \in \mathbb{R}^{d_c}$, is computed using a down-projection matrix$W^{DKV} \in \mathbb{R}^{d_c \times d}$ : $\mathbf{c}_t^{KV} = W^{DKV} \mathbf{h}_t$

  • Here, $d_c (\ll d_h n_h)$ is the KV compression dimension, much smaller than the total dimension of keys and values.

  • Keys ($\mathbf{k}_t^C$) and values ($\mathbf{v}_t^C$) are reconstructed from $\mathbf{c}_t^{KV}$ using up-projection matrices $W^{UK}, W^{UV} \in \mathbb{R}^{d_h n_h \times d_c}$.

  • So $[\mathbf{k}{t,1}^C; \dots; \mathbf{k}{t,n_h}^C] = W^{UK} \mathbf{c}t^{KV}$, and $[\mathbf{v}{t,1}^C; \dots; \mathbf{v}_{t,n_h}^C] = W^{UV} \mathbf{c}_t^{KV}$

  • Rotary Positional Embedding (RoPE): A decoupled key vector carrying positional information ($\mathbf{k}_t^R$) is generated using a separate projectio

@w601sxs
w601sxs / gist:f16d5d9b83429b419bc840cff82ab867
Created December 16, 2019 16:22
Dask distributed dockerfile
FROM continuumio/miniconda3:4.3.14
# Dumb init
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64
RUN chmod +x /usr/local/bin/dumb-init
RUN conda update conda && conda install "conda=4.4.7"
RUN conda install --yes \
python-blosc \
cytoolz \
@w601sxs
w601sxs / README.md
Created March 24, 2017 13:47 — forked from debashisbarman/README.md
A Twitter bot that can retweet in response to the tweets matching particluar keyword (https://goo.gl/4whEIt)

#Creating a Twitter bot with Node.js Learn how you can create your own Twitter bot using Node.js and the new Twitter API. The bot will auto retweet in response to tweets with some particular hashtags. (https://goo.gl/4whEIt)

##Tools we need Here are the tools we’ll be using to create the bot — 

  • Node.js installed in your machine
  • A registered Twitter account

Create a Twitter application