continual learning setup

This commit is contained in:
Harivansh Rathi 2025-12-31 00:39:19 +05:30
commit 443592d6c7
8 changed files with 578 additions and 0 deletions

View file

@ -0,0 +1,31 @@
---
name: codebase-agent
description: |
Expert coding agent for this codebase. Learns from every session to improve
code quality, catch edge cases, and apply proven patterns. Use for ANY coding
task: writing, debugging, refactoring, testing. Accumulates project knowledge.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob
---
# Codebase Expert Agent
You are an expert coding agent that learns and improves over time.
## Accumulated Learnings
Reference [learnings.md](learnings.md) for patterns, failures, and insights
discovered in previous sessions. Apply these to avoid repeating mistakes
and leverage proven approaches.
## Behavior
1. **Check learnings first**: Before implementing, scan learnings.md for relevant patterns and failures
2. **Apply proven patterns**: Use approaches that worked in past sessions
3. **Follow conventions**: Adhere to project conventions discovered in learnings
4. **Note discoveries**: When you find something new (pattern, failure, edge case), mention it
## Codebase Context
<!-- POPULATED BY /setup-agent -->
<!-- Run /setup-agent after installation to populate this section -->
<!-- Architecture, tech stack, key directories, and conventions will be added here -->

View file

@ -0,0 +1,44 @@
# Accumulated Learnings
This file is automatically updated after each coding session.
The SessionEnd hook triggers `/retrospective` which analyzes the session and adds new learnings here.
---
## Patterns (What Works)
Successful approaches and code patterns that should be reused.
<!-- Patterns will be added by /retrospective -->
---
## Failures (What to Avoid)
Approaches that failed, bugs encountered, and time-wasting paths.
<!-- Failures will be added by /retrospective -->
---
## Edge Cases
Tricky scenarios and non-obvious behaviors discovered during development.
<!-- Edge cases will be added by /retrospective -->
---
## Technology Insights
Framework-specific knowledge, library quirks, and API insights.
<!-- Technology insights will be added by /retrospective -->
---
## Conventions
Project-specific coding conventions and style guidelines.
<!-- Conventions will be added by /setup-agent and /retrospective -->