Skip to content

Instantly share code, notes, and snippets.

View dargue3's full-sized avatar

Dan Argue dargue3

  • Netflix
  • Los Gatos, CA
View GitHub Profile
@dargue3
dargue3 / parse-output.sh
Created February 12, 2026 17:39
Have a local LLM parse a large stdout from the given command to cut down on massive stack-trace-induced context window explosions
#!/bin/bash
# Script: parse-output.sh
# Purpose: Run a command and use Qwen LLM to parse any error output
# Usage: ./parse-output.sh [--show-output] <command>
# Default: Quiet mode (LLM-friendly output only)
# Debug mode: Use --show-output to see full command output and progress
MODEL="mlx-community/Qwen3-30B-A3B-4bit-DWQ"
class Node {
constructor(character) {
this.edges = {};
this.data = undefined; // where we will store the flag data / capitalized names
this.character = character;
this.endOfWord = false;
}
}
export default class Trie extends Node {