Skip to content

Instantly share code, notes, and snippets.

@kieranklaassen
kieranklaassen / token_analysis.py
Created April 6, 2026 20:24
Claude Code token usage analyzer - breaks down usage by project, session, and subagent
#!/usr/bin/env python3
"""
Claude Code token usage analyzer.
Analyzes ~/.claude/projects/ JSONL files for token usage patterns.
"""
import json
import os
import sys
from pathlib import Path

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

# Repo Audit — Planned Scope + Readiness
Use this when there is a credible plan: PRD, spec, beads, contracts, backlog, design docs, or another trustworthy artifact that defines intended scope.
## Objective
Perform a ground-truth audit that answers **two separate questions**:
1. **What functionality exists and is proven end to end?**
2. **Compared with the explicit plan, what is missing, partial, conflicted, dead, or risky?**
@SHJordan
SHJordan / AIOWSLARCHSETUP.ps1
Last active February 2, 2026 13:20
AIO SCRIPT TO SETUP WSL+OMZ+LAZYVIM+ZSH+MISE+OPENCODE+OH+MY+OPENCODE
#!/usr/bin/env pwsh
#Requires -Version 5.1
#Requires -RunAsAdministrator
<#
.SYNOPSIS
AIO WSL Arch Linux Setup Script - Revised & Hardened Version
.DESCRIPTION
Configura automaticamente uma distro Arch Linux no WSL com ambiente de desenvolvimento completo.
@hermogenes
hermogenes / incident-communication.md
Last active April 2, 2026 14:48
Incident Communication Guide

Incident Communication Guide

For Small Teams

Purpose

This guide defines when to declare an incident, who is responsible for communication, and how to communicate externally during an incident.

It also defines how to act technically during an incident, emphasizing mitigation over fixes to reduce risk and downtime.

@CypherpunkSamurai
CypherpunkSamurai / spec.md
Last active March 21, 2026 05:36
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@burkeholland
burkeholland / 4.1.chatmode.md
Last active April 24, 2026 14:29
4.1 Beast Mode v2
description 4.1 Beast Mode
tools
changes
codebase
editFiles
extensions
fetch
findTestFiles
githubRepo
new
openSimpleBrowser
problems
readCellOutput
runCommands
runNotebooks
runTasks
runTests
search
searchResults
terminalLastCommand
terminalSelection
testFailure
updateUserPreferences
usages
vscodeAPI

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

@kamilogorek
kamilogorek / _screenshot.md
Last active April 14, 2026 18:02
Clutter-free VS Code Setup
image
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active April 26, 2026 03:30
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9