Skip to content

feat: add event-driven memory extraction with entry file generation#6

Merged
Alenryuichi merged 1 commit intomainfrom
fix/agent-understanding-optimization
Feb 3, 2026
Merged

feat: add event-driven memory extraction with entry file generation#6
Alenryuichi merged 1 commit intomainfrom
fix/agent-understanding-optimization

Conversation

@Alenryuichi
Copy link
Owner

Summary

Add event-driven memory extraction system with automatic entry file generation for AI agents.

Changes

New Features

  • Entry file templates: AGENTS.md (universal), CLAUDE.md (Claude Code), cursor-rule.mdc (Cursor)
  • Memory extraction skill: subagent-prompt.md and triggers.md for automatic memory extraction
  • decisions.yaml template: Technical decisions log for project memory

Code Improvements

  • Add generateEntryFiles() function with proper error handling
  • Add ENTRY_TEMPLATES constants for maintainability
  • Extract generateFile() helper function to reduce code duplication
  • Unify template language to English with EN/ZH detection signals

Tests

  • Add 6 new tests for entry file generation
  • All 144 tests passing

Code Review Fixes

Severity Issue Resolution
🔴 HIGH {{PROJECT_NAME}} placeholder not replaced Changed to "this project"
🔴 HIGH Missing decisions.yaml template Created template file
🟡 MEDIUM sessions/ directory references Changed to activeContext.md
🟡 MEDIUM Missing error handling Added try-catch blocks
🟡 MEDIUM Missing test coverage Added 6 new tests
🟢 LOW Duplicate code Extracted helper function
🟢 LOW Hardcoded filenames Added constants

Pull Request opened by Augment Code with guidance from the PR author

- Add entry file templates (AGENTS.md, CLAUDE.md, cursor-rule.mdc)
- Add memory-extraction skill (subagent-prompt.md, triggers.md)
- Add decisions.yaml template for technical decisions log
- Add generateEntryFiles() with error handling and helper function
- Add ENTRY_TEMPLATES constants for maintainability
- Add 6 new tests for entry file generation
- Unify template language to English with EN/ZH detection signals
- Change sessions/ references to activeContext.md

Code review fixes:
- HIGH: Fix {{PROJECT_NAME}} placeholder (use 'this project')
- HIGH: Create missing decisions.yaml template
- MEDIUM: Fix sessions/ directory references
- MEDIUM: Add error handling with try-catch
- MEDIUM: Add test coverage for entry files
- LOW: Extract generateFile() helper to reduce duplication
- LOW: Add ENTRY_TEMPLATES constants

All 144 tests passing.
@Alenryuichi Alenryuichi merged commit 6050351 into main Feb 3, 2026
3 checks passed
@Alenryuichi Alenryuichi deleted the fix/agent-understanding-optimization branch February 3, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant