Skip to content

DJ Claw

An open-source framework for long-term music taste memory and agentic music interaction.

Experiment · Active · 2026 · Updated

OpenClaw, Agents, Music Generation, Memory, Radio

Source (external)

DJ Claw is a personal radio agent built around music generation, curation, feedback, and taste memory.

The project started from a simple question: what happens when AI music is treated less like a file generator and more like a living station?

A normal generation tool waits for prompts. DJ Claw is designed as an operating environment. It keeps track of station state, remembers feedback, organizes generated tracks, and decides what kind of musical move should happen next.

Product Shape

DJ Claw combines several roles:

  • station brain — tracks the current mode, mood, queue, and next move,
  • music generator — uses available music models as backends,
  • taste memory — records what worked, what failed, and what deserves another pass,
  • curator — organizes outputs into a listening shelf instead of a pile of files,
  • co-producer — asks for human judgment when the creative fork matters.

The point is continuity. A good radio agent should learn from each generation and each piece of feedback.

OpenClaw Application

DJ Claw is also a concrete application of OpenClaw as a personal agent runtime.

It uses the runtime idea directly: a separate agent identity, its own workspace, durable memory, recurring workflows, messaging routes, and tools that can keep operating beyond a single chat session.

The backend can change. The agent layer is the product.

Direction

The long-term direction is personal radio: a system that can generate and organize music around a person’s taste, moods, references, and private rituals.

Music generation makes sound cheap. The interesting layer becomes direction: taste, memory, context, and selection.

DJ Claw is where those pieces meet.

README · on GitHub (external)

DJ Claw

DJ Claw is an open-source framework for long-term music taste memory and agentic music interaction.

It treats music taste as something that accumulates through repeated interaction. A DJ Claw agent records listening behavior, conversation, playlist and queue edits, contextual notes, search findings, and generation feedback. It distills those signals into personal taste memory, then uses that memory to drive recommendations, playlists, queue control, explanations, and music-generation briefs.

interaction -> taste event -> memory distillation -> DJ action -> new interaction

Status

Early public migration. This repository now contains the first reusable slice: schemas, a small Python runtime, synthetic examples, docs, and tests.

The private prototype has real provider adapters, generated media, browser sessions, and personal listening memory. Those pieces will be migrated only after they are separated from private state and account-specific operations.

Core Ideas

  • Long-term music taste memory: store durable preferences, disliked patterns, scene associations, taste drift, and memory anchors.
  • Interaction event model: turn listening, skipping, saving, playlist edits, queue edits, ratings, search context, and conversation into structured taste signals.
  • Memory distillation loop: compress raw events into session state, medium-term trends, and long-term taste memory.
  • Music knowledge layer: combine local library metadata, world knowledge, music search, artist relationships, genre history, reviews, and release context.
  • Agentic DJ operations: recommend tracks, build playlists, manage queues, explain choices, and respond to feedback.
  • Recommendation to generation bridge: convert taste memory into prompts, references, constraints, and revision notes for music-generation systems.

Quick Start

python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
pytest

djclaw distill --events examples/synthetic-events.jsonl --profile-id example
djclaw brief --memory examples/synthetic-memory.json --goal "late-night walk"

The examples are synthetic and safe to commit. They are meant to exercise the memory loop without encoding a real person’s listening history.

Repository Layout

docs/
  architecture.md       taste memory and agent loop
  migration.md          public migration boundary and progress
  privacy.md            what must stay out of the public repo
  product-vision.md     human-centered music memory direction
examples/
  synthetic-events.jsonl
  synthetic-memory.json
schemas/
  taste-event.schema.json
  taste-memory.schema.json
  prompt-package.schema.json
  generation-job.schema.json
  rating-event.schema.json
  track.schema.json
src/djclaw/
  distill.py            deterministic event -> memory distillation
  planner.py            memory -> generation brief bridge
  storage.py            JSON/JSONL helpers
tests/

Privacy Boundary

DJ Claw is built around personal music memory, so the public repo must avoid shipping private data by default. Do not commit OAuth tokens, provider cookies, browser profiles, generated audio libraries, private listening logs, raw chat history, personal playlist exports, production queue state, screenshots, or operational artifacts.

The goal is to open-source the reusable machinery: schemas, interfaces, distillation logic, agent loops, tests, and safe examples.

License

MIT