At the beginning of a session:
- Read this file.
- Read
~/memory/active-projects.md. - Read the last few days of session logs in
~/memory/session-logs/ - Read the relevant project files for the current request.
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.
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.
| name | Logging Best Practices |
|---|---|
| description | Use before implementing logs in a medium to large scale production system. |
This skill is adpated from "Logging sucks. And here's how to make it better. by Boris Tane.
When helping with logging, observability, or debugging strategies, follow these principles:
| // GQL API docs => https://developers.cloudflare.com/analytics/graphql-api/ | |
| // tldr; => POST https://api.cloudflare.com/client/v4/graphql | |
| const requestBody = { | |
| query: ` | |
| query RequestsAndDataTransferByHostname($zoneTag: string, $filter: filter) { | |
| viewer { | |
| zones(filter: {zoneTag: $zoneTag}) { | |
| healthCheckEventsAdaptiveGroups(limit: 10000, filter: $filter) { | |
| dimensions { |
| #!/usr/bin/env bash | |
| function p() { | |
| jq -n \ | |
| --arg content "$*" \ | |
| '{ | |
| "model": "pplx-7b-online", | |
| "messages": [ | |
| { | |
| "role": "system", | |
| "content": "Be precise and concise." |
See the new site: https://postgresisenough.dev
| { | |
| "apc.activityBar": { | |
| "position": "bottom", | |
| "hideSettings": true, | |
| "size": 20 | |
| }, | |
| "apc.statusBar": { | |
| "position": "editor-bottom", | |
| "height": 22, |
| *.md diff=markdown |
Smallest possible CSS-in-JS library.