banditdb

BanditDB is an in-memory decision database for AI agents — real-time learning from outcomes. Use it to auto-tune notification timing, model routing, or prompt selection.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "banditdb" with this command: npx skills add simeonlukov/banditdb

BanditDB Skill

BanditDB is a self-hosted decision database. It learns which choice works best for which context through contextual multi-armed bandits — no ML pipeline required.

Setup

Install BanditDB from GitHub releases or run the Docker image (see references/api.md for details). Default port: 8080. Verify by requesting GET /campaigns.

Core Workflow

Three-step loop — create once, then predict and reward repeatedly:

  1. Create a campaign — define a campaign ID, the arms (choices), and context feature dimension.
  2. Get a prediction — pass a context vector, receive the recommended arm and an interaction ID.
  3. Record a reward — report the outcome (0.0–1.0) for the interaction ID.

For full API details, request/response examples, and MCP tool registration, see references/api.md.

Designing Context Vectors

The context vector is the most important design decision. Each float encodes something about the current situation. Normalize values to roughly 0–1 range.

Examples:

  • Notification timing: [hour_of_day/24, day_of_week/7, messages_today/10, last_response_delay_mins/60]
  • Tool selection: [query_length/500, has_code_mention, has_url, specificity_score]
  • Prompt strategy: [task_complexity, domain_familiarity, output_length_needed, structured_output]

Use Cases for OpenClaw Agents

  • Smart notifications — learn when/how to reach the user (arms: morning/afternoon/evening, channel variants)
  • Tool routing — which tool to use for a query type (arms: web_search/memory/file_lookup/ask)
  • Model selection — which model for which task (arms: opus/sonnet/haiku)
  • Response style — learn user preferences (arms: brief/detailed/bullet_points)
  • Heartbeat frequency — when to check in vs stay quiet

Key Details

  • Algorithms: LinUCB (default, supports causal analysis) or Thompson Sampling
  • Cold start: meaningful lift typically after 300–1500 interactions depending on noise
  • Parquet export available for offline causal analysis (LinUCB only)
  • WAL ensures crash recovery — no data loss on restart
  • ~10K predictions/s on a single node

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

技能使用积分榜

技能使用积分榜 v1.2 — OpenClaw 技能使用追踪与积分管理系统。 触发场景: (1) 用户询问技能使用榜单、积分统计 (2) 用户要求查看技能调用记录、错误日志 (3) 用户要求查看某技能的使用详情 (4) 用户要求生成每日/历史积分报告 (5) 用户询问"今天情况如何"、"工作流复盘" 核心功能:...

Registry SourceRecently Updated
Automation

OpenClaw Continuity

Structured continuity and follow-up skill for OpenClaw agents. Use when an agent needs to decide whether natural user dialogue should stay as casual chat, be...

Registry SourceRecently Updated
Automation

Test Continuity

Structured continuity and follow-up skill for OpenClaw agents. Use when an agent needs to decide whether natural user dialogue should stay as casual chat, be...

Registry SourceRecently Updated
220Profile unavailable
Automation

Pilot Service Agents Data

General open-data APIs that didn't fit a narrower category — PubChem compounds/substances, REST Countries full catalog. Use this skill when: 1. Compound or s...

Registry SourceRecently Updated
240Profile unavailable