Me brain think how more productive context

This is not a blog post. Just a random note of something I want to build in my free time.

Core Problem

I capture information everywhere: articles I read, code I write, conversations I have, tasks I track. But when I need that context later, I either can't find it or have to manually piece it together. LLMs could help, but they don't know about my preferences, past work, or the connections between my scattered data. I want a system where I throw everything in once, and the right context automatically surfaces when any tool or agent needs it, without me having to explain myself repeatedly.

Storage Layer

Personal State

Documents & Artifacts

Usage Layer

Context-Aware Prompting

Intelligent Retrieval

Proactive Assistance

Dual-Mode Retrieval

Design Principles

Multi-Context Awareness

Zero Client Complexity

Hierarchical Embedding Architecture

Workflow Learning

Example Usage Flows

Fast Path: Productivity Dashboard (Repeated Query)

First time:

  1. User: "Show my productivity dashboard"
  2. Agent navigates tree: identifies core/screen_time, core/schedule, indices/git_commits
  3. Executes SQL queries + GitHub API calls, combines results
  4. System stores workflow as executable script

Subsequent times:

  1. User: "Show my productivity dashboard"
  2. Pattern match to stored workflow
  3. Execute script directly: ~50ms response
  4. No agent invoked

Of course, it's dumb to ask an LLM every time. It makes 0 sense to me the people who like interacting with AI. Would be a web dashboard instead that polls the workflow (via ID rather than natural language) & shows it visually with pretty graphs and stuff. This means the format returned has to be structured and standardized.

Smart Path: Code Context Discovery (New Query)

  1. User: "Write a web scraper similar to my past projects"
  2. Agent gets context tree, navigates to code_repos branch
  3. Vector search on repo keywords: finds projects tagged "web scraping"
  4. Fetches repo metadata: sees Python + requests/beautifulsoup pattern
  5. Cross-references preferences: confirms Python is preferred language
  6. Optionally fetches file summaries for implementation details
  7. Generates system prompt with: language preference + framework patterns + example repo structure

Smart Path: Historical Search (Ambiguous Intent)

  1. User: "What did I do with that API refactor Tuesday?"
  2. Agent unsure if looking for: commit message, document about refactor, or schedule entry
  3. Navigates multiple branches in parallel:
    • documents/commits: searches "API refactor" in commit messages for all repos
    • core/schedule: checks Tuesday's calendar for related events
    • communication/messages: searches Discord/Slack for discussions
  4. Finds commit: "refactor: migrate auth API to v2" on Tuesday 3PM
  5. Retrieves commit details + links to affected files in repo
  6. Returns: commit message, changed files, related calendar entry

The return here would be natural language, since this is a natural language query. Would still have structured output for sources and data used.

Fast Path Evolution: Parametric Template

After 3-4 queries like "articles on RAG", "articles on agents", "articles on embeddings":

  1. System identifies pattern: searching articles by topic
  2. Compiles template workflow:
def articles_on_topic(topic: str):
    embedding = embed(topic)
    results = vector_search("reading_context", embedding, top_k=10)
    return results
  1. Future queries: "articles on X" → instant execution with topic parameter
  2. No tree navigation needed

Smart Path: Cross-Domain Query

  1. User: "Compare my Python vs Rust project activity this month"
  2. Agent identifies need for multiple context pools
  3. Navigates to code_repos → filters by language
  4. Navigates to indices/git_commits → filters by date range
  5. Executes:
    • Count commits per language
    • Analyze LOC changes
    • Check screen time in relevant IDEs from core/screen_time
  6. Synthesizes comparison report
  7. Stores workflow: "compare_language_activity(lang1, lang2, timeframe)"

I've just bought konteksto.dev... The number of domains in my project graveyard grows...