-
Notifications
You must be signed in to change notification settings - Fork 12
WIP: proposal for self-learning from translation edits #430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ChrisPriebe
wants to merge
9
commits into
genesis-ai-dev:main
Choose a base branch
from
authenticwalk:claude/codex-self-learning-loop-01SfKRshCdcc4h6RZZYmtkWm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
WIP: proposal for self-learning from translation edits #430
ChrisPriebe
wants to merge
9
commits into
genesis-ai-dev:main
from
authenticwalk:claude/codex-self-learning-loop-01SfKRshCdcc4h6RZZYmtkWm
+5,961
−3
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add root CLAUDE.md with reference to AGENTS.md - Add AGENTS.md with comprehensive project guidelines including: - Build/test/lint commands - Architecture overview and key files - VS Code extension patterns - Coding standards and common mistakes to avoid - Review standards from PR history - Add subdirectory CLAUDE.md files for major directories: - src/providers/ - Provider patterns - src/projectManager/ - Migrations and sync - src/tsServer/ - Language server - src/utils/ - Utility modules - webviews/codex-webviews/ - React UI patterns - Add Claude skills in .claude/skills/: - add-ui-component - Adding UI elements - improve-llm-copilot - LLM/AI modifications - add-vscode-command - Command registration - Remove CLAUDE.md and AGENTS.md from .gitignore
- Add Self-Learning Protocol section to CLAUDE.md:
- On errors/struggles: update relevant CLAUDE.md
- On user corrections: fix docs to prevent recurrence
- On skill usage: review and update SKILL.md
- Update AGENTS.md session-end requirements:
- Self-learning triggers (file struggles, lookups, errors)
- Guidelines (concise, generic, target specific docs)
- Add file organization rule: plans/summaries to /plan/{slug}
- Add Post-Session Review section to all skills
Comprehensive analysis of AgentDB's core systems and proposal for adapting them to Codex's Bible translation use case. Key components: - Episode recording for translation attempts - Pattern extraction from user edits - Enhanced example ranking based on historical effectiveness - Prompt enhancement with learned patterns - 6 validation/testing approaches Addresses unique challenges of ultra-low-resource languages where standard embeddings don't work.
…uiRn9H4kzXxjSjof' into claude/codex-self-learning-loop-01SfKRshCdcc4h6RZZYmtkWm
…nalysis - Move self-learning-loop-architecture.md to plan/self-learning-loop-architecture/ - Add detailed AgentDB reuse analysis with code evidence - Compare current token-overlap system with proposed self-learning approach - Identify reusable architecture patterns, code, and dependencies - Analyze RuVector Rust layer (34 crates) - recommend NOT using due to complexity - Provide concrete implementation recommendations with SQL schemas
…improvements Key findings: - Current system uses token overlap (fast, language-agnostic, but no semantics) - Target language can't be embedded (unknown), but SOURCE CAN - Available assets: Strong's numbers, Macula morphology, multiple source versions Proposed improvements (in order of implementation): 1. Source text embeddings (semantic similarity via known languages) 2. Strong's number integration (concept-level matching) 3. Historical effectiveness tracking (learning from user edits) 4. Hybrid ranking formula combining all signals Includes detailed analysis of current implementation, strengths/weaknesses, data flow diagrams, and risk mitigation strategies.
Deep code analysis of ruvector Rust monorepo (34 crates, 125,014 lines) and agentic-flow TypeScript packages to identify reusable components. Key findings: - SONA crate has MicroLoRA for instant per-verse adaptation - ReasoningBank provides K-means++ pattern discovery from trajectories - EWC (Elastic Weight Consolidation) prevents catastrophic forgetting - MMR provides diversity in few-shot example selection - Conformal prediction gives uncertainty quantification Novel features explained with code snippets and direct application to Codex translation memory: - MicroLoRA: rank 1-2 adaptation in <100μs - ReasoningBank: cluster translation attempts to discover patterns - EWC: don't forget Genesis patterns when learning Psalms Implementation recommendations with priority ordering (P0-P3).
Proposes a counting-based system instead of ML: - 3 tables: prediction_outcomes, example_effectiveness, word_mappings - 3 functions: recordOutcome, rankExamples, getLearnedPatterns - No neural networks, embeddings, or WASM dependencies - ~3 hours implementation vs weeks for complex approach Key insight: For Bible translation with consistent domain and human-in-the-loop review, simple counting captures learning better than neural approaches.
Complete design for self-learning translation assistance:
1. state-of-the-art-architecture.md
- 6-component system: Semantic Index, Episode Memory, Pattern Engine,
Adaptive Ranker, Prompt Composer, Feedback Loop
- Source-anchored embeddings (Strong's + multilingual)
- EWC consolidation on ranking weights
- K-means++ clustering for pattern discovery
- MMR for example diversity
- 4-phase implementation roadmap
2. phase1-implementation-spec.md
- Detailed 10-day implementation plan
- Exact file locations and code changes
- Database schema (SQLite)
- Episode recording, effectiveness tracking, pattern extraction
- Integration points with existing codebase
3. HANDOFF-SUMMARY.md
- Complete project context and goals
- All approaches considered with rationale
- Links to all documentation
- Success metrics and next steps
Recommended approach: Hybrid design taking best ideas from RuVector/AgentDB
but adapted for Bible translation domain and TypeScript implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.