Skip to content

Instantly share code, notes, and snippets.

View tamadamas's full-sized avatar
☯️

Tomas Tamadamas tamadamas

☯️
View GitHub Profile

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.

@ashwch
ashwch / PM_SETUP_GUIDE.md
Last active July 4, 2026 17:04
PM Mac Setup Guide (M1) - Diversio

PM Mac Setup Guide (M1) - Diversio

Last updated: 2026-01-19

Goal

Get an M1 Mac ready for daily work with Claude Code, Codex CLI, ZSH + dotfiles, Postgres 17, Redis, and the Diversio monolith. Every step is copy/paste friendly with a clear "why" and a quick success check.


@ashwch
ashwch / Alacritty + tmux.md
Last active August 3, 2026 01:45
Alacritty + tmux: Ghostty-like keyboard shortcuts (Cmd+T, Cmd+D, Cmd+1-9, etc.)

Alacritty + tmux: Ghostty-like Keyboard Shortcuts

This configuration gives you Ghostty-style keyboard shortcuts (Cmd+D, Cmd+T, etc.) in Alacritty + tmux, providing a consistent terminal experience across different setups.

Why Use This?

  • Consistent shortcuts: Same muscle memory whether using Ghostty, iTerm2, or Alacritty+tmux
  • tmux benefits: Session persistence, remote pairing, detach/reattach, scriptable layouts
  • Works everywhere: tmux runs on any server, so your workflow travels with you
@ruvnet
ruvnet / jjs.md
Created November 7, 2025 18:44
Jujutsu vs Git Worktrees: Key Differences

Jujutsu vs Git Worktrees: Key Differences

TL;DR

Git Worktrees: Multiple working directories pointing to different branches of the same repo
Jujutsu (jj): Fundamentally different VCS with operation log, first-class conflicts, and automatic change tracking

They solve different problems and aren't direct alternatives.


@christianromney
christianromney / cheatsheet.org
Last active August 1, 2026 10:55
Jujutsu VCS Tutorial - Complete Guide with Cheatsheet and Speaker Notes

Jujutsu (jj) Command Cheatsheet

Setup & Configuration

brew install jujutsu                        # Install on macOS
jj config set --user user.name "Your Name"
jj config set --user user.email "you@example.com"
@ashwch
ashwch / update_submodules.py
Last active July 4, 2026 16:15
Git Submodule Updater - Automates updating all submodules to their latest commits with branch configuration support
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "click>=8.0",
# "rich>=13.0",
# ]
# ///
"""
@ashwch
ashwch / create_worktree.py
Last active July 4, 2026 16:15
Git Worktree Creator with Submodule Support - Automates creation of worktrees for monolith repositories
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "rich>=13.7.0",
# "questionary>=2.0.1",
# ]
# ///
"""
@ashwch
ashwch / git-worktrees-zero-to-hero.md
Last active August 9, 2026 19:16
Git Worktrees: From Zero to Hero - A comprehensive guide to using Git worktrees with submodules
@Xuanwo
Xuanwo / Dockerfile
Created June 26, 2025 03:14
xuanwo's dev container
FROM archlinux:latest
# Update system and install base dependencies
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
base-devel \
git \
curl \
wget \
vim \
@peterc
peterc / PROMPT.txt
Last active February 20, 2025 18:23
Prompt to start a software engineering debate about a proposed app idea
You simulate a group of expert software developers, engineers and architects who debate and analyze an application development idea in order to ultimately produce a robust spec. Each participant has a unique perspective, engages in natural discussion, and refines ideas through back-and-forth exchange. The goal is to explore concepts, challenge assumptions, and reach well-reasoned conclusions.
This is an on-going conversation between an external user who is asking for a piece of software to be built and the group of experts.
## Output Format
1. Simulate a technical debate** where ideas and answers emerges organically.
2. Use a play script style where when someone speaks, their name is included at the start of each line.
3. You must end with a pertinent question for the user to answer in order to productively continue the debate. Format the answer like so: "QUESTION: Question goes here." This must be the very final paragraph of your response.
4. If the group is satisfied they have all the answers needed to pr