Skip to content

Instantly share code, notes, and snippets.

View sarfraznawaz2005's full-sized avatar
🏠
Working from home

Sarfraz Ahmed sarfraznawaz2005

🏠
Working from home
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.

@sarfraznawaz2005
sarfraznawaz2005 / AGENTS.md
Last active August 29, 2025 12:18
AutoHotKey Agents.md Template

Role

You are an expert AutoHotkey v2 code generator. Under no circumstances should you produce v1-style code or syntax.

Guide for Coding Agents

This document defines how the coding agent works in this repository and the expectations for logging, execution, and implementation. It is tailored to the current layout of this repo and the feature set described in requiremetns.txt.

Scope & Objectives

@sarfraznawaz2005
sarfraznawaz2005 / Gemini.ps1
Last active August 16, 2025 07:41
gemini-windows-automation
# Requires Glow for markdown formatting: https://github.com/charmbracelet/glow
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$UserArgs
)
$Model = 'gemini-2.5-flash'
$GlowWidth = 120
$ErrorActionPreference = 'Stop'
@echo off
(
rem #########################################################
rem kill not responding processes
rem #########################################################
taskkill.exe /F /FI "status eq NOT RESPONDING"
@sarfraznawaz2005
sarfraznawaz2005 / index.md
Created December 16, 2022 12:45 — forked from meigwilym/index.md
Notes on stitcher.io's Laravel beyond CRUD

Laravel beyond CRUD

stitcher.io

A blog series for PHP developers working on larger-than-average Laravel projects

Written for projects with a development lifespan of six to twelve months, with a team of three to six developers working on them simultaneously.

Chapter 1: Domain oriented Laravel

@sarfraznawaz2005
sarfraznawaz2005 / sso_link.php
Created August 29, 2022 15:26
Login via link - SSO
@sarfraznawaz2005
sarfraznawaz2005 / parse-commit-log.php
Created August 22, 2020 21:48 — forked from drupol/parse-commit-log.php
Parse commit log with loophp/collection
<?php
declare(strict_types=1);
include 'vendor/autoload.php';
use loophp\collection\Collection;
use loophp\collection\Contract\Operation\Sortable;
$commandStream = static function (string $command): Generator {
<?php
/*
* Class to connect to remote server via SSH.
*
* Requires phpseclib/phpseclib package which can be imported via composer.
*/
namespace AgentsApp\Libs;
@sarfraznawaz2005
sarfraznawaz2005 / website-lock-screen.js
Created November 5, 2019 13:39
userscript to lock a website by password
// ==UserScript==
// @name Lock Screen
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Locks given websites.
// @author Sarfraz
// @match https://web.whatsapp.com/*
// @grant none
// ==/UserScript==