/agentdb-learning:agentdb-feedbackfrom agentdb-learning
Records reward signals for AgentDB-suggested actions to close the learning loop. Essential after using any AgentDB recall, routing, or suggestion to improve the bandit.
Ships in agentdb-learning. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Close the loop on a memory or routing decision so AgentDB's bandit learns.
agentdb_record_feedback(
id: <pattern/skill/episode/decision id>
reward: -1..1
context?: { task, outcome, latency, ... }
)
agentdb_bandit_update(
arm: <bandit arm name>
reward: -1..1
)
| Outcome | Reward |
|---|---|
| Used the suggestion, task succeeded | +1.0 |
| Used the suggestion, task partial success | +0.5 |
| Used the suggestion, didn't help | 0.0 |
| Used the suggestion, made things worse | -0.5 |
| Ignored the suggestion (other reason) | -0.1 (mild downweight) |
| Rejected as wrong / harmful | -1.0 |
const hits = await agentdb_pattern_search(query)
for (const h of useful(hits)) {
use(h)
await agentdb_record_feedback(h.id, +1)
}
for (const h of skipped(hits)) {
await agentdb_record_feedback(h.id, -0.1)
}
Without negative feedback, the bandit only sees "winners" and exploration starves.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agentdb, reinforcement-learning, feedback-loop, reward-signal
npx claudepluginhub ruvnet/agentdb --plugin agentdb-learning3 skills in this plugin
/agentdb-learnTrain one of AgentDB's 9 RL algorithms on a stream of episodes. Use when the user has accumulated successful/failed episodes and wants to derive a policy, or when a task type is repeated enough to benefit from RL routing./agentdb-routeAsk the AgentDB bandit which RL algorithm / skill / pattern fits the current task best. Use at task start when there are multiple plausible approaches and you want the data-driven pick.Other plugins' skills for the same job