Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
:octocat:

Adam Kaminski thimslugga

:octocat:
View GitHub Profile
@renezander030
renezander030 / README.md
Last active May 2, 2026 15:32
Claude Code with local LLMs and ANTHROPIC_BASE_URL: Ollama, LM Studio, llama.cpp, vLLM

Claude Code with local LLMs and ANTHROPIC_BASE_URL: Ollama, LM Studio, llama.cpp, vLLM

Native Anthropic endpoints, tool-call compatibility, and context-window sizing for local Claude Code.

Last tested: April 2026. See Changelog at the bottom.

If this saves you setup time, follow @renezander030 — practical local AI / coding-agent infrastructure notes, weekly.

Full repo with scripts: github.com/renezander030/local-ai-coding-stack

@renezander030
renezander030 / README.md
Last active May 2, 2026 15:33
Production AI Automation Notes #1: Agent Approval Gates — JSON schema, human review, deterministic dispatch, audit logs

Production AI Automation Notes #1: Agent Approval Gates — JSON schema, human review, deterministic dispatch, audit logs

Production AI Automation Notes #1: Agent Approval Gates

Updated 2026-04-28 — JSON schemas, human review, deterministic dispatch, and audit logs for AI agents that touch real systems.

The most common shape of an "AI agent" demo is: model decides → model calls API → side effect happens. That works in a sandbox. It does not work the moment the agent is allowed to send an email to a customer, update a CRM record, or trigger an n8n workflow that hits production.

The pattern that does work is older than agents and is borrowed from financial systems: draft → validate → approve → dispatch → audit. Five steps, five contracts, no exceptions.

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.

@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active May 5, 2026 20:30
April 2026 TLDR setup for Ollama + Gemma 4 12B on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR Setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon)

Prerequisites

  • Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
  • At least 16GB unified memory for Gemma 4 (default 8B)
  • macOS with Homebrew installed
#!/usr/bin/env bash
set -euo pipefail
# patch-claude-code.sh — Rebalance Claude Code prompts to fix corner-cutting behavior
#
# What this does:
# Patches the npm-installed @anthropic-ai/claude-code cli.js to rebalance
# system prompt instructions that cause the model to cut corners, simplify
# excessively, and defer complicated work.
#
@potomak
potomak / claude-code-agent-playbook.md
Last active March 27, 2026 13:49
Claude Code Agent Playbook — how to bootstrap autonomous agents with Claude Code

Claude Code Agent Playbook

A distilled guide for bootstrapping autonomous agents on top of Claude Code.

TL;DR: An agent is a directory with a CLAUDE.md that gives Claude a role, a startup/shutdown ritual, and a map of files and skills. The rest is just files.


Table of Contents

@fuzzbuster
fuzzbuster / macos_bootstrap.sh
Last active April 13, 2026 15:47
bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
#!/usr/bin/env bash
#
# bootstrap.sh - macOS 輕量終端開發環境一鍵安裝腳本
# 包含:Ghostty + zellij + yazi + lazygit + fastfetch + Neovim/LazyVim + 現代工具 + oh-my-zsh
# 語言環境:Python(uv/pipx)、Go、Rust(rustup)、Java(Liberica 20 Full+JavaFX)、Node(pnpm+bun)、Ruby
#
# 用法:curl -fsSL https://gist.githubusercontent.com/fuzzbuster/a117689823ba87c27437a44129253dcb/raw/1b2e930ad152a7ceb9fbb7df581b304e2d1685a0/macos_bootstrap.sh | bash
# 或 bash bootstrap.sh
#
# 可重複執行,不會重複安裝或破壞既有配置
@spboyer
spboyer / gist-references-recipes.md
Created February 1, 2026 13:01
Agent Skills: References, Recipes & Token Loading Behavior - Best practices documentation

Agent Skills: References, Recipes & Token Loading Behavior

Overview

This document captures learnings about how Agent Skills handle references/, recipes/, and services/ folders, including token budget implications and best practices based on the AgentSkills.io specification and GitHub Copilot implementation behavior.

Progressive Disclosure Model

Agent Skills use a three-tier loading model to efficiently manage LLM context windows:

@enachb
enachb / claude-code-presentation.md
Last active March 27, 2026 14:34
Claude Code Extension Points - Team Presentation

Claude Code Extension Points

A Team Presentation (30-45 min)


Agenda

  1. Prerequisites & Setup (5 min)
  2. What is Claude Code? (5 min)
  3. Extension Points Overview (5 min)
@hx-natthawat
hx-natthawat / zsh-setup-guide.md
Last active March 19, 2026 16:55
Ultimate Zsh Dev Setup with Pastel Colors + AI - nvm (lazy), Git, Oh My Zsh, Nerd Fonts, bat, fzf, eza, difftastic, GitHub Copilot CLI | 100+ shortcuts

Ultimate Zsh Development Environment Setup

A complete guide to set up a modern, powerful terminal environment for developers on macOS.

🎯 What You'll Get

  • Dual Theme System - Cyberpunk (neon) & Pastel (soft) themes with instant switching
  • nvm - Node Version Manager with lazy-loading (50-60% faster startup)
  • Git - Fully configured with delta, difftastic, and 40+ aliases
  • Oh My Zsh - 8 powerful plugins