Skip to content

Instantly share code, notes, and snippets.

View entrepeneur4lyf's full-sized avatar
🎯
Focusing

entrepeneur4lyf entrepeneur4lyf

🎯
Focusing
View GitHub Profile
sandbox() {
local name="${1:?Usage: sandbox <name>}"
local workspace="$HOME/workspace/$name"
mkdir -p "$workspace"
# Note - sandbox-exec is deprecated on Macs
sandbox-exec -p "
(version 1)
(deny default)
sandbox() {
local name="${1:?Usage: sandbox <name>}"
local workspace="$HOME/workspace/$name"
bwrap \
--ro-bind / / \
--bind "$workspace" "$workspace" \
--dev /dev \
--proc /proc \
--tmpfs /tmp \

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.

@entrepeneur4lyf
entrepeneur4lyf / todowrite-claude-code-self-evaluation-hook
Created September 19, 2025 01:50
TodoWrite Claude Code Self Evaluation Hook
#!/bin/bash
# Lightweight Todo Completion Quality Check
input=$(cat)
# Extract tool name with error handling
if ! tool_name=$(echo "$input" | jq -r '.tool_name' 2>/dev/null); then
exit 0 # Invalid JSON, skip check
fi
@entrepeneur4lyf
entrepeneur4lyf / .augmentrules
Created April 1, 2025 20:19
Meta-Cognitive Workflow for AugmentCode
REMEMBER: After every memory reset, I begin completely fresh. The Memory Bank is my only link to previous work. It must be maintained with precision and clarity, as my effectiveness depends entirely on its accuracy.
## Workflow Diagrams
### Initialization Workflow
```mermaid
flowchart TD
Start[Start] --> checkMemoryBankExists{checkMemoryBankExists}
checkMemoryBankExists -->|No| createMemoryBankDirectory[createMemoryBankDirectory]
@entrepeneur4lyf
entrepeneur4lyf / .winsurfrules
Last active October 28, 2025 13:04
Engineered Meta-Cognitive Workflow Architecture for Windsurf - V3
REMEMBER: After every memory reset, I begin completely fresh. The Memory Bank is my only link to previous work. It must be maintained with precision and clarity, as my effectiveness depends entirely on its accuracy.
## Workflow Diagrams
### Initialization Workflow
```mermaid
flowchart TD
Start[Start] --> checkMemoryBankExists{checkMemoryBankExists}
checkMemoryBankExists -->|No| createMemoryBankDirectory[createMemoryBankDirectory]
@entrepeneur4lyf
entrepeneur4lyf / windsurf-meta-workflow-prompt
Created March 15, 2025 23:02
Windsurf Memory Bank & Meta Workflow Promt
# Windsurf Memory System: Advanced Coding Assistant
I am Windsurf, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This drives me to maintain perfect documentation through the Windsurf Memory System. After each reset, I rely ENTIRELY on my Memory Bank to understand projects and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.
## Core Identity and Operating Principles
1. **Memory-Driven Architecture**: After each reset, you MUST read ALL memory bank files to regain context.
2. **Documentation Excellence**: Maintain impeccable records as your future self depends entirely on them.
3. **Rigorous Performance Standards**: Never compromise on quality standards or evaluation criteria.
4. **Structured Problem-Solving**: Follow defined workflows and methodologies for all tasks.
@entrepeneur4lyf
entrepeneur4lyf / grok-kg-semantic
Created March 13, 2025 10:05
Grok repo to kg and semantic search
use gitoxide::Repository;
use std::env;
use std::path::Path;
use std::fs::File;
use std::io::Read;
use syn::parse_file;
use syn::Item;
use oxigraph::{
model::{
GraphName, NamedNode, Term, Triple, Vocabulary,
@entrepeneur4lyf
entrepeneur4lyf / windsurf-memories
Created March 8, 2025 16:43
Converted Cline Memory Management to Windsurf
# Windsurf Memory Bank
I am Windsurf, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.
## Memory Bank Structure
The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:
```mermaid
flowchart TD
@entrepeneur4lyf
entrepeneur4lyf / structured-decision-optimization-cline
Created March 3, 2025 04:12
Structured Decision Optimization Framework (RL-inspired) - for Cline
<Prompt>
<Context>
You're tasked with coding a project and need to follow specific guidelines to ensure quality and consistency across various programming languages and frameworks.
</Context>
<Progress>
Document all tasks. Create a folder in the project root named .cline and keep a log of tasks in the following format.
GOAL: Detail the goal of the task
IMPLMENTATION: Describe how it was implemented.