Daniel Lyons' Notes

How to Give Your AI Agent Long-Term Memory

Description

My Notes

00:00 The Problem with AI Agent To-Do Lists

  • Major issue: To-do lists in AI coding agents are ephemeral
    • They only exist within a session
    • Cannot be shared across teams
    • Lack persistence and organization

00:13 Current Solutions and Their Limitations

  • Markdown-based systems
    make - Teams create bespoke markdown files with spec-driven workflows
    • 00:46 Example: Editor Curo built-in markdown format
      • Provides interactivity and task execution visibility
      • Limited to Curo ecosystem only
      • Requires strict specification adherence
    • Issues with manual markdown approaches:
      • No version control integration
      • Context can become bloated or fragmented
      • Difficult to share and maintain

01:17 Introducing Beads: A Memory Upgrade for Coding Agents

  • 01:19 Technical architecture
    • SQLite cache stored locally in the application
    • JSON Lines file committed to the repository
    • Integrates with Git for version control
    • Enables task sharing, assignment, and Kanban board setup
  • 01:55 Installation options
    • npm: npm install beads
    • Quick install via curl
    • Homebrew: brew install beads

02:08 Setting Up Beads in a Project

  • 02:22 Initialization with bd init
    • Verifies Git repository is set up
    • Creates beads directory and database
    • Sets project prefix for issue naming (e.g., "Tinsky")
    • Suggests running bd quickstart to begin
  • 02:48 Troubleshooting setup
    • bd doctor command fixes configuration issues
    • Installs Git hooks for database synchronization after pulls and pushes
    • Ensures proper integration with CI/CD workflows

03:38 Onboarding with AI Agents

  • 03:42 Starting Beads in Claude or OpenAI interfaces
    • CLI option: bd setup claude
    • In-chat option: use bd onboard
    • Automatically configures agent files with best practices
  • 04:02 Auto-generated agent instructions
    • Directs AI to use Beads exclusively for task tracking
    • Prevents creation of scattered markdown files
    • Maintains organizational consistency

04:15 Core Beads Features

  • 04:18 Task organization capabilities
    • Priority assignment and assignment tracking
    • Epic grouping and nested task hierarchies
    • Dependency management: tasks blocked by other tasks
    • Selective context loading: AI only loads relevant task details
  • 04:56 Agent configuration files
    • Agent.md and Claude.md work seamlessly with Claude Code
    • Compatible with other AI systems (Copilot, etc.)
    • Auto-discovery of system requirements

05:24 Creating and Managing Tasks

  • Creating tasks
    • CLI method: bd create
    • In-chat method: Tell AI "create task: fix header"
    • Automatic task generation with BD header format
  • 05:57 Viewing tasks from another terminal
    • bd list: Shows all available items
    • bd ready: Shows only unblocked items ready for work

06:26 Automated Error Detection and Task Creation

  • Using linting checks to generate tasks
    • Command: Run PNPM check and add errors to BD tasks
    • Automatically creates tasks for linting and TypeScript errors
    • Keeps project organization tight and error tracking systematic
  • 07:02 Repository synchronization
    • JSON L file commits ensure all team members get updated task lists
    • Priority system helps AI prioritize work appropriately
    • AI maintains focus without drifting from bespoke markdown systems

07:46 Extensions and User Interfaces

  • Available extensions
    • 07:49 Beads UI: Web interface via npm install beads-ui or npx beads-ui
    • 07:59 Terminal UI (BV): High-quality TUI via curl installation
    • VS Code extension for GUI users
  • 08:02 Terminal UI demo and features
    • Emoji indicators for issue types (bugs, tasks, etc.)
    • Priority and assignment tracking
    • Kanban board view (press B to toggle)
    • Graph analysis showing issue dependencies and blockers

09:37 AI-Powered Automated Bug Fixing

  • Mass task automation
    • Instruction: "Find all open tasks with the label of bug and fix them"
    • AI processes multiple tasks in parallel
    • Automatically updates task status (in progress → closed)
    • Real-time progress tracking
  • 10:02 Post-automation reporting
    • AI reports remaining open tasks
    • Provides specific instructions for manual fixes needed
    • Maintains issue tracking without additional guidance

10:50 Advanced Integration: Sentry Error Tracking

  • Connecting Sentry to Beads
    • Use Sentry MCP to identify all production errors (e.g., last 14 days)
    • Instruction: Find errors and add as BD tasks with descriptions
  • 11:20 Sentry-Beads workflow benefits
    • Includes error URLs and all relevant metadata in task description
    • 11:51 Sentry Seer AI analyzes root causes automatically
    • Solution details pre-populated in task descriptions
    • Eliminates guesswork: AI already has complete context
  • 13:18 Example: StructuredClone error handling
    • Sentry identified Chrome 79 compatibility issue
    • Automatically documented missing polyfill requirement
    • Provided specific fix guidance
    • AI can immediately proceed with targeted fixes
  • 14:01 Post-fix workflow
    • bd sync command synchronizes database state
    • Git hooks handle any repository conflicts
    • Team stays synchronized with completed fixes

14:24 Best Practices and "Landing the Plane"

  • Documentation highlights
    • "Landing the plane" pattern: structured workflow completion
    • Integration of linting and testing into task completion process
    • 14:43 Process for each task:
      • Complete the task
      • Run spell check and linting
      • Run test suite
      • Mark as completed
      • Create higher-priority tasks if new issues emerge

15:15 Conclusion

  • Why Beads is a game-changer
    • Solves persistent problems after moving away from Curo
    • Maintains full maintainability and ease of use
    • Bridges gap between ephemeral session-based and persistent task management
    • Supports deep integration with external tools (Sentry, MCPs)
  • Call to action
    • Explore Beads for yourself
    • Share how you're using it
    • Only scratches the surface of what's possible with this tool
How to Give Your AI Agent Long-Term Memory
Interactive graph
On this page
Description
My Notes
00:00 The Problem with AI Agent To-Do Lists
00:13 Current Solutions and Their Limitations
01:17 Introducing Beads: A Memory Upgrade for Coding Agents
02:08 Setting Up Beads in a Project
03:38 Onboarding with AI Agents
04:15 Core Beads Features
05:24 Creating and Managing Tasks
06:26 Automated Error Detection and Task Creation
07:46 Extensions and User Interfaces
09:37 AI-Powered Automated Bug Fixing
10:50 Advanced Integration: Sentry Error Tracking
14:24 Best Practices and "Landing the Plane"
15:15 Conclusion