Terminal-based AI coding agent with interactive TUI for autonomous code generation.
Features: - Interactive TUI with React/Ink - Autonomous agent with tool calls (bash, read, write, edit, glob, grep) - Permission system with pattern-based rules - Session management with auto-compaction - Dual providers: GitHub Copilot and Ollama - MCP server integration - Todo panel and theme system - Streaming responses - GitHub-compatible project context
This commit is contained in:
32
src/services/learning-service.ts
Normal file
32
src/services/learning-service.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Learning Service - Detects and manages project learnings
|
||||
*
|
||||
* Identifies patterns in conversations that should be remembered:
|
||||
* - User preferences (language, file types, coding style)
|
||||
* - Project conventions (architecture, patterns)
|
||||
* - Workflow decisions
|
||||
* - Common patterns to follow
|
||||
*/
|
||||
|
||||
export { detectLearnings } from "@services/learning/detect";
|
||||
export { analyzeMessage } from "@services/learning/analyze";
|
||||
export { analyzeAssistantResponse } from "@services/learning/assistant";
|
||||
export { categorizePattern } from "@services/learning/categorize";
|
||||
export { deduplicateCandidates } from "@services/learning/deduplicate";
|
||||
export {
|
||||
extractLearningContent,
|
||||
extractLearningFromAcknowledgment,
|
||||
} from "@services/learning/extract";
|
||||
export { formatLearningForPrompt } from "@services/learning/format";
|
||||
export {
|
||||
saveLearning,
|
||||
getLearnings,
|
||||
learningExists,
|
||||
} from "@services/learning/persistence";
|
||||
export type {
|
||||
LearningCandidate,
|
||||
LearningCategory,
|
||||
StoredLearning,
|
||||
MessageSource,
|
||||
LearningPatternMatch,
|
||||
} from "@/types/learning";
|
||||
Reference in New Issue
Block a user