Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7a735b0
Add AI Teammate repositioning design document
claude Mar 15, 2026
2357c5b
Enrich design doc with OpenClaw research and proactive behaviors
claude Mar 15, 2026
ab1d12e
Implement AI Teammate training system and Deep Research mode
claude Mar 15, 2026
5b46016
Polish AI Teammate training UX: auto-lowercase names, update detectio…
claude Mar 15, 2026
f3127d8
Enhance training UX: attribution, correction detection, priority sorting
claude Mar 15, 2026
edc6224
Fix experience gaps from user journey simulations
claude Mar 15, 2026
bb76fc7
Add self-improvement loop: applied tracking, insights, staleness dete…
claude Mar 15, 2026
024ead8
fix: add dedicated training feature flag and remove unused insight type
anandgupta42 Mar 15, 2026
a64e891
fix: reset training session tracking, add error logging, fix list tru…
anandgupta42 Mar 15, 2026
8927752
fix: use `.altimate-code/memory` as primary storage path with `.openc…
anandgupta42 Mar 15, 2026
c807063
feat: add Trainer agent mode with pattern discovery and training vali…
anandgupta42 Mar 15, 2026
8ed0012
docs: add comprehensive training guide with scenarios and limitations
anandgupta42 Mar 15, 2026
8da3c9b
fix: increase training budget to 16K chars and rewrite docs as harnes…
anandgupta42 Mar 15, 2026
4066ad8
feat: merge training into memory with context-aware relevance scoring
anandgupta42 Mar 15, 2026
9542add
refactor: cut training_scan and training_validate, simplify docs
anandgupta42 Mar 15, 2026
db2eb89
fix: remove dead accepted/rejected fields, add training tips, expand …
anandgupta42 Mar 15, 2026
d899f93
docs: update site-wide docs for training and new agent modes
anandgupta42 Mar 15, 2026
7f68fb7
fix: address Sentry review findings — 7 bugs fixed
anandgupta42 Mar 15, 2026
b8741d8
fix: CI failure + new Sentry finding — orphaned headers and agent test
anandgupta42 Mar 15, 2026
52c40f5
fix: address multi-model code review findings
anandgupta42 Mar 15, 2026
4087cce
fix: address new Sentry findings — regex m flag and off-by-one budget…
anandgupta42 Mar 15, 2026
2123cf4
fix: address 6-model consensus review — 4 remaining bugs
anandgupta42 Mar 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/meta/commit.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
docs: update site-wide docs for training and new agent modes

- Homepage: update from "Four agents" to "Seven agents" — add Researcher,
Trainer, Executive cards with descriptions
- Getting Started: update training link to match new pitch
"Corrections That Stick"
- Tools index: add Training row (3 tools + 3 skills) with link
- All references now consistent with simplified training system

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
54 changes: 54 additions & 0 deletions .opencode/skills/teach/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: teach
description: Teach your AI teammate a pattern by showing it an example file from your codebase
---

# Teach

## Purpose
Learn a reusable pattern from an example file. The user shows you a well-written artifact (model, query, config), and you extract the patterns worth following.

## Workflow

1. **Identify the file**: The user provides a file reference (e.g., `@models/staging/stg_orders.sql`). Read the file.

2. **Analyze patterns**: Extract the structural patterns, NOT the specific content. Focus on:
- File structure and organization (sections, ordering)
- Naming conventions (prefixes, suffixes, casing)
- SQL patterns (CTE vs subquery, join style, column ordering)
- dbt conventions (materialization, tests, config blocks)
- Common boilerplate (headers, comments, imports)
- Data type choices
- Error handling patterns

3. **Present findings**: Show the user what you learned in a structured list. Be specific:
- Good: "Column order: keys first, then dimensions, then measures, then timestamps"
- Bad: "Good column ordering"

4. **Ask for confirmation**: Let the user confirm, modify, or reject your findings before saving.

5. **Save via training_save**: Use the `training_save` tool with:
- `kind`: "pattern"
- `name`: A descriptive slug (e.g., "staging-model", "incremental-config")
- `content`: The extracted patterns as a concise, actionable checklist
- `scope`: "project" (default — shared with team via git)
- `source`: The file path you learned from
- `citations`: Reference to the source file

## Important Guidelines

- Extract PATTERNS, not content. "Use `{{ source() }}` macro" is a pattern. "Query the orders table" is content.
- Keep it concise — max 10 bullet points per pattern. If more are needed, split into multiple patterns.
- Use the file's actual conventions, don't impose your own preferences.
- If the file doesn't have clear patterns worth learning, say so honestly.
- Do NOT make any LLM calls beyond the normal conversation flow — pattern extraction happens in your analysis, not via separate API calls.

## Usage Examples

```
/teach @models/staging/stg_orders.sql
/teach staging-model @models/staging/stg_customers.sql
/teach @dbt_project.yml
```

If the user provides a name (first argument before the @file), use that as the pattern name. Otherwise, infer a name from the file type and purpose.
51 changes: 51 additions & 0 deletions .opencode/skills/train/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: train
description: Train your AI teammate on team standards from a document or style guide
---

# Train

## Purpose
Learn team standards and conventions from a document (style guide, review checklist, coding standards, etc.). Extracts actionable rules and saves them as training.

## Workflow

1. **Get the document**: The user provides either:
- A file reference: `@docs/sql-style-guide.md`
- A URL: The full URL to fetch (use webfetch tool)
- Inline text: Pasted directly in the chat

2. **Read and analyze**: Parse the document and extract:
- Specific, enforceable rules (naming, formatting, prohibited patterns)
- Review criteria and checklists
- Glossary terms and definitions
- Architectural standards

3. **Categorize**: Group findings by training kind:
- `rule` — Specific do/don't rules (e.g., "Never use SELECT *")
- `standard` — Broader conventions (e.g., "SQL style guide compliance")
- `glossary` — Term definitions (e.g., "ARR = Annual Recurring Revenue")

4. **Present summary**: Show the user what you extracted:
- Number of rules, standards, and glossary terms found
- Preview of each item
- Ask for confirmation before saving

5. **Save via training_save**: Save each item using the `training_save` tool. For documents with many rules, consolidate related rules into logical groups (e.g., "sql-naming-rules" with 5 rules, rather than 5 separate entries).

## Important Guidelines

- Only extract ACTIONABLE items. Skip vague guidance like "write clean code."
- Consolidate related rules into single training entries to avoid clutter.
- Preserve the original wording when it's specific and clear.
- If the document is too large, focus on the most impactful rules.
- Always use `scope: project` unless the user specifies global.
- Do NOT make any extra LLM calls — analysis happens in the normal conversation flow.

## Usage Examples

```
/train @docs/sql-style-guide.md
/train https://wiki.company.com/data-team/review-checklist
/train (then paste content inline)
```
45 changes: 45 additions & 0 deletions .opencode/skills/training-status/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: training-status
description: Show what your AI teammate has learned — patterns, rules, glossary, and standards
---

# Training Status

## Purpose
Display a comprehensive overview of everything your AI teammate has been trained on.

## Workflow

1. **Fetch all training**: Use the `training_list` tool with no filters to get all training entries.

2. **Present the dashboard**: Format the output as a clean status report:

```
Training Status

Patterns: X (staging-model, incremental-config, ...)
Rules: X (no-float, no-select-star, ...)
Glossary: X (arr, mrr, churn-date, ...)
Standards: X (sql-style-guide, review-checklist, ...)

Recent Training:
- 2 days ago: Learned rule "no-float" (from user correction)
- 5 days ago: Learned pattern "staging-model" (from stg_orders.sql)
- 1 week ago: Loaded standard "sql-style-guide" (from docs/sql-style.md)

Most Applied:
- "staging-model" pattern — applied 12 times
- "no-float" rule — applied 8 times
```

3. **Offer actions**: After showing status, suggest:
- `/teach` to learn new patterns
- `/train` to load standards from documents
- `training_remove` to remove outdated entries
- `training_list` with filters for detailed views

## Usage

```
/training-status
```
Loading
Loading