Skip to content

Instantly share code, notes, and snippets.

@donbr
donbr / wiz-vs-karpathy.py
Created February 27, 2026 00:50
amusing code that doesn't work
import os
import requests
import asyncio
import nest_asyncio
from typing import Annotated, Literal
from typing_extensions import TypedDict
from dotenv import load_dotenv
# LangChain & LangGraph Imports
from langchain_openai import ChatOpenAI
@donbr
donbr / open-biosciences.code-workspace.json
Last active February 25, 2026 19:08
open-biosciences-workspace
{
"folders": [
{
"name": "🏗️ architecture",
"path": "biosciences-architecture"
},
{
"name": "🤖 deepagents",
"path": "biosciences-deepagents"
},
@donbr
donbr / open-biosciences-platform-team.md
Created February 25, 2026 18:25
Open Biosciences platform team

Agent Team Definition

Nine specialized agents coordinate across the Open Biosciences platform. Each agent owns specific repos and has clear responsibilities.

Agent Roster

1. Program Director

Field Value
@donbr
donbr / adv-retrieval-with-langchain.py
Last active February 18, 2026 01:49
Advanced Retrieval with LangChain
# # Advanced Retrieval with LangChain
# Standard Library Imports
import getpass
import os
from operator import itemgetter
from uuid import uuid4
# Third-Party Imports
from dotenv import load_dotenv
@donbr
donbr / doxorubicin-cq-feb15.md
Created February 16, 2026 01:54
What known genes or pathways are implicated in minimizing Doxorubicin toxicity while preserving its anti-tumor efficacy?

❯ /lifesciences-graph-builder What known genes or pathways are implicated in minimizing Doxorubicin toxicity
while preserving its anti-tumor efficacy?

● I'll execute the Fuzzy-to-Fact protocol to answer this question about Doxorubicin toxicity mitigation. Let me start by loading the necessary MCP tools and beginning Phase 1 ANCHOR.

● Now let me load additional tools I'll need for the full protocol.

● Tools loaded. Starting the Fuzzy-to-Fact protocol now.

@donbr
donbr / langsmith-cloud-deepagents-deployments.md
Created February 6, 2026 00:51
Deep Agents Cloud Deployment Guide

Deep Agents Cloud Deployment Guide

This guide documents how to deploy Deep Agents to LangSmith cloud with a focus on workspace/file lifecycle - a critical topic for production deployments.

Overview

Deep Agents CAN be deployed to LangSmith cloud. From the official LangChain documentation:

"Deep agents applications can be deployed via LangSmith Deployment and monitored with LangSmith Observability."

@donbr
donbr / langgraph-memory-mechanisms.md
Created January 29, 2026 18:35
LangGraph memory mechanisms (mechanism × persistence)

LangGraph memory mechanisms (mechanism × persistence)

1. Execution / short-term memory (checkpointers)

Mechanism Purpose In-memory / local DB-persisted Notes
MemorySaver Persist graph state per step (thread continuity) ✅ Yes ❌ No Notebook/dev only; lost on process restart
PostgresSaver Durable execution state ❌ No ✅ Postgres Required for resumable workflows, HITL, failures
(others) (Future / custom savers) Checkpointer interface is pluggable
@donbr
donbr / ai-makerspace-video-deliverable-guide.md
Created January 20, 2026 22:43
AI Makerspace Video Deliverable Guide (2026 Edition)

AI Makerspace Video Deliverable Guide (2026 Edition)

The Objective: Your video is an exercise in Developer Advocacy. It serves to prove two things:

  1. Functionality: You actually built the application.
  2. Grokking: You deeply understand the concepts and can teach them to a teammate.

1. The Setup: Anchor with a Diagram

@donbr
donbr / multi-agent graph coordination architecture.md
Last active December 18, 2025 07:43
Multi-Agent Graph Coordination Architecture

Multi-Agent Graph Coordination Architecture

Problem Statement

Multiple AI agents (Claude Desktop, Claude Code, future agents) share write access to a Graphiti knowledge graph without coordinated protocols. This has resulted in:

  • Namespace pollution: 97 episodes in graphiti_meta_knowledge vs intended 8-10.
  • Duplicate episodes: Lack of idempotency checks.
  • Inconsistent content categorization: Different agents, different rules.
  • Loss of namespace semantic integrity.