Agent notes and learnings
Find a file
OpenCode 26c001f1c5 docs: add pattern from nixos
Pattern: Extracting inline configuration into directory-based modules

Refactoring approach for Home Manager/NixOS modules:
- Extract inline text into separate .md files
- Use home.file with recursive: true for automatic loading
- Organize into subdirectories (commands/, skills/, etc.)
- Use builtins.readFile for content that needs processing
- Import directories first, then files, alphabetically sorted

Benefits: Better maintainability, easier to add new content,
clearer git history, improved modularity.
2026-05-26 20:17:43 +00:00
patterns docs: add pattern from nixos 2026-05-26 20:17:43 +00:00
projects docs: add architecture documentation for kitchenowl-flake project 2026-05-24 14:07:45 +00:00
scripts refactor: update shell script shebangs to use /usr/bin/env bash 2026-05-23 10:36:05 +00:00
AGENTS.md docs: update AGENTS.md with Mermaid diagram guidelines 2026-05-23 13:19:21 +00:00
index.md Initial commit: Set up context-vault structure with README, query scripts, and index 2026-05-23 08:58:35 +00:00
README.md Initial commit: Set up context-vault structure with README, query scripts, and index 2026-05-23 08:58:35 +00:00

Context Vault

A self-hosted knowledge base for AI learning, patterns, and conversation summaries. Synced across devices via Git.

Structure

context-vault/
├── projects/           # Project-specific learnings and decisions
├── patterns/           # Reusable code patterns and solutions
├── conversations/      # Session summaries and context snapshots
├── scripts/            # Query and search utilities
└── index.md            # Tag and category registry

File Format

All notes use YAML frontmatter for queryable metadata:

---
tags: [tag1, tag2]
project: project-name
category: architecture|patterns|errors|learnings
created: 2026-05-23
updated: 2026-05-23
related: [other-file.md]
---

# Note Title

Content in markdown format...

Query Tools

Search by tag

./scripts/query-by-tag.sh typescript

Search by project

./scripts/query-by-project.sh project-name
./scripts/search.sh "search term"

Auto-Save Format

After conversations, notes are automatically saved with:

  • Timestamp-based filename: conversations/2026-05-23-project-summary.md
  • YAML metadata: tags, project, category
  • Content:
    • Code patterns discovered
    • Errors + solutions
    • Architecture decisions
    • File references with line numbers (format: path/file.ts:123)
    • Related learnings

Quick Start

  1. Clone/pull this repo to sync
  2. Use query tools to find context
  3. Review and commit changes locally
  4. Push to main branch