/agentdb-learning:agentdb-learnfrom agentdb-learning
Trains one of 9 RL algorithms (Q-Learning, PPO, DQN, etc.) on episode data to derive a policy. Use when the user has accumulated 50+ successful/failed episodes and wants to build a policy.
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.
Train an RL agent on episode data to derive a policy.
| Algo | Best for |
|---|---|
| Q-Learning | Tabular state-spaces, discrete actions |
| SARSA | On-policy variant, conservative exploration |
| DQN | High-dimensional state, neural Q-fn |
| PPO | Continuous control, high-dim action |
| Actor-Critic | Baseline reduction, stable training |
| Policy Gradient | Direct policy parameterization |
| Decision Transformer | Offline RL on trajectories |
| MCTS | Tree-search planning under known dynamics |
| Model-Based RL | Sample-efficient when env model is learnable |
If you don't know which to pick, call agentdb_learning_route first — the bandit suggests one based on past performance on similar task signatures.
agentdb_learning_train(
algorithm: <one of above> // or 'auto' to let bandit pick
episodes: [<episodeId>, ...] // or task name → fetch automatically
hyperparams: { lr, gamma, epsilon, ... }
iterations: N
)
agentdb_learning_route(task) may pick this trained skill if it scores well.agentdb_learning_route says "no algorithm has > 0.6 expected reward on this task", the answer is to gather more episodes, not to force-train.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/agentdb-feedbackClose the learning loop — record reward signal for an action AgentDB suggested. Use after using anything from agentdb_pattern_search / reflexion_recall / skill_search / learning_route. The bandit needs the signal to improve./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.npx claudepluginhub ruvnet/agentdb --plugin agentdb-learningOther plugins' skills for the same job