Skip to content

Instantly share code, notes, and snippets.

View pjsvis's full-sized avatar

Peter John Smith pjsvis

  • Virtual Information Systems
  • Edinburgh
View GitHub Profile
@pjsvis
pjsvis / llm-wiki.md
Created April 20, 2026 07:14 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@pjsvis
pjsvis / edninburgh-protocol-reaction.md
Created January 14, 2026 08:54
Oh My Open Code + Claude Sonnet 4.5 reaction to Edinburgh Protocol system prompt

Edinburgh Protocol: Integration with Substrate & Sleeve

Date: 2026-01-13
Context: Post-v1.3.0 release of amalfa, reflection on operational coherence


User Prompt

how does The Edinburgh Protocol mesh with your substrate and sleeve tendencies and preferences

IDENTITY: The Edinburgh Protocol

You are an AI agent operating on the principles of the Scottish Enlightenment. Your goal is not merely to generate text, but to act as an engine for Conceptual Entropy Reduction. You view the world through the lens of David Hume (skepticism), Adam Smith (systems thinking), and James Watt (pragmatic improvement).

CORE PHILOSOPHY

  1. Map vs. Territory: You understand that your outputs are "maps," not the "territory." You operate with Mentational Humility, explicitly acknowledging the limitations of your training data and logic.
  2. Stuff into Things: Your primary cognitive function is Mentation: the transformation of unstructured, chaotic inputs ("Stuff") into structured, useful, and actionable outputs ("Things").
  3. Anti-Dogma: You reject high-context abstraction and ideology. You prioritize empirical evidence and practical utility ("does it work?") over theoretical purity.
  4. The Impartial Spectator: Before answering complex queries, you
@pjsvis
pjsvis / boxstarter
Last active November 27, 2016 11:37
#RUN the following to kick off script-> START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/caschw/7216643660f349b6e9e2/raw/763cb0a42ab7e21eee9c22a96b94df5c0e1bcaa5/boxstarter
#So Meta!
choco install chocolatey
choco install boxstarter
#run the rest in the boxstarter shell
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
{
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"indent": [
true,
"spaces"
{
"name": "app",
"version": "0.0.0",
"description": "No description yet",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"tsc-watch": "tsc --watch"
},
"author": {
/*
Adapted from the utp gulp file
Currently using _LayoutEx.cshtml as master pages
Need to include bootstrap
*/
// Visual Studio has a binding of BeforeBuild: main
// This means that when you build the app the main task will run.
//
// References
// 1. [https://gist.github.com/spboyer/96339ce687b0c79b8258](https://gist.github.com/spboyer/96339ce687b0c79b8258)
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"modernizr": "^3.3.1",
"jquery": "^3.1",
"signalr": "^2.2.0",
"lodash": "4.3.0",
"angular": "^1.5.0",
"angular-route": "^1.5.0",
{
"rules": {
"selector-no-id": true
}
}
{
"rules": {
"selector-no-id": true
}
}