Skip to content

Instantly share code, notes, and snippets.

View davidpp's full-sized avatar

David Paquet Pitts davidpp

View GitHub Profile
@davidpp
davidpp / nx.fish
Created September 19, 2024 14:43
NX autocompletion of run command
function __fish_nx_commands
printf "%s\t%s\n" \
"create-nx-workspace" "Create a new Nx workspace" \
"init" "Initialize an Nx workspace" \
"generate" "Generate code for workspace" \
"run" "Run a target for a project" \
"daemon" "Run the Nx daemon" \
"graph" "Graph dependencies in workspace" \
"run-many" "Run target for multiple projects" \
"affected" "Run target for affected projects" \
@davidpp
davidpp / pg_dump
Last active September 24, 2024 14:55
pg_dump for easypanel
#!/bin/bash
# Function to find the container ID of a service's first running task
find_container_id() {
local service_name=$1
docker service ps --filter "desired-state=running" --format "{{.ID}}" $service_name | head -n 1 | xargs -I {} docker inspect --format "{{.NodeID}} {{.Status.ContainerStatus.ContainerID}}" {} | awk '{print $2}'
}
# Function to extract the database name from the service name
extract_db_name() {
@davidpp
davidpp / insights_agent.md
Created November 14, 2025 18:15 — forked from Dowwie/insights_agent.md
langsmith insights agent

LangSmith Insights Agent: Complete Reverse Engineering

Executive Summary

LangSmith's Insights Agent is an LLM-orchestrated data analysis system that automatically discovers usage patterns and failure modes in production agent traces. Unlike traditional clustering tools, it accepts natural language questions from users and dynamically adapts its entire analysis pipeline—from feature extraction to taxonomy generation—based on those questions.

Key Innovation: It's a conversational interface to trace analysis, where users describe what they want to learn, and the system translates that into a custom analytical workflow.

Core Capabilities:

  • Analyzes up to 1,000 sampled traces in up to 30 minutes (typically 15-20 minutes)