Skip to content

Instantly share code, notes, and snippets.

View bdougie's full-sized avatar

Brian Douglas bdougie

View GitHub Profile
@bdougie
bdougie / SKILL.md
Created March 13, 2026 12:08
Claude Code skill for querying local tapes agent session data
name description
tapes
Use when the user says "check the tapes", "search tapes", "tapes search", or wants to look up past agent sessions. Starts tapes services if needed and queries the local SQLite store at ~/.tapes/.

Tapes

Query local tapes session data. The tapes SQLite database lives at ~/.tapes/ and contains recorded LLM agent sessions across all projects.

Trigger phrases

@bdougie
bdougie / gist:41e60120359c48557446e85f5ccc0d08
Created March 10, 2026 03:33
How observational memory and Tapes work together in the Pokemon agent
# Observational Memory + Tapes in the Pokemon Agent
## The Problem
Long agent runs hit context compaction. When Claude's context window fills up, older messages get summarized and the cache prefix breaks. The agent loses continuity: it forgets what it tried, what failed, and what worked. Each new session starts from scratch.
## How Tapes Solves Storage
[Tapes](https://tapes.dev) proxies all LLM API calls and records every conversation turn in a content-addressable SQLite database at `.tapes/tapes.sqlite`. Each node in the database has:

Code Review: PR #141 — fix: adjust content parsing

Resolves: #137 — Content parsing issue with OpenCode / Ollama

Overview

This PR fixes a json.Unmarshal failure when Ollama's content field is an array of content blocks ([{"type": "text", "text": "..."}]) instead of a plain string. The approach:

  1. Changes ollamaMessage.Content to json:"-" and adds ContentRaw any tagged as json:"content" to capture either format
  2. Adds convertRawContent() to normalize both forms into a string

PR #131 Review: feat: publish root-keyed DAG events to Kafka

Overall

Solid design. Clean Publisher interface, good best-effort semantics (publish failures never block storage), and thorough test layers (unit, integration, E2E). Two items worth addressing before merge.

Issues

Severity Issue Location
@bdougie
bdougie / unblocking-draft-prs.md
Created March 1, 2026 14:52
Unblocking draft PRs in papercomputeco/tapes

Unblocking Draft PRs in papercomputeco/tapes

A walkthrough of every open draft PR, what's blocking it, and the steps to get each one merged.


PR #86 — feat: memory Driver interface and "local" implementor

Branch: memory | Author: @jpmcb | Merge state: CONFLICTING

What's blocking it

@bdougie
bdougie / rfc-agent-orchestration.md
Created March 1, 2026 07:12
RFC: Agent-to-Agent Orchestration via mb CLI — Security Analysis & Implementation Plan

RFC: Agent-to-Agent Orchestration via mb CLI

Status: Draft Author: @bdougie Date: 2026-02-28 Project: masterblaster / StereOS


1. Summary

@bdougie
bdougie / init.lua
Created February 28, 2026 15:30
Neovim init.lua - migrated from vimrc with space leader and netrw file explorer
-- Leader key: spacebar (set before any mappings)
vim.g.mapleader = " "
vim.g.maplocalleader = " "
-------------------------------------------------
-- Options
-------------------------------------------------
vim.opt.wrap = true
vim.opt.textwidth = 80
vim.opt.autoindent = true
@bdougie
bdougie / rfc-storage-providers.md
Last active February 15, 2026 20:02
RFC: Storage Providers for Team Sharing (tapes.dev SaaS)

RFC: Storage Providers for Team Sharing

Status: Draft
Author: @bdougie
Date: 2026-02-15

Summary

Add pluggable storage providers to Tapes, enabling session sync to cloud backends for team sharing. The SaaS option (tapes.dev) serves as an on-ramp to Paper Compute's broader agent infrastructure platform.

@bdougie
bdougie / rfc-skill-generation.md
Last active February 15, 2026 19:04
RFC: Skill Generation from Session Data

RFC: Skill Generation from Session Data

Status: Draft
Author: @bdougie
Date: 2026-02-15

Summary

Automatically generate reusable "skills" from Tapes session data—extracting patterns, successful prompts, and workflows that can be packaged as agent capabilities, prompt templates, or MCP tools.

@bdougie
bdougie / rfc-team-sharing-v2.md
Created February 15, 2026 18:46
RFC: Tapes Team Session Sharing

RFC: Tapes Team Session Sharing

Status: Draft
Author: @bdougie
Date: 2026-02-15

Summary

Add team-based session sharing to Tapes, enabling collaborative observability across engineering teams. This includes search capabilities to discover sessions worth sharing, bulk export by day/project, and a dedicated shared sessions view in the deck.