feat(templates): Add DSA Mentor Agent template (#4927)#5195
Open
ishaan-chadha1 wants to merge 7 commits intoaden-hive:mainfrom
Open
feat(templates): Add DSA Mentor Agent template (#4927)#5195ishaan-chadha1 wants to merge 7 commits intoaden-hive:mainfrom
ishaan-chadha1 wants to merge 7 commits intoaden-hive:mainfrom
Conversation
- Add implementation checklist and plan documents - Create initial template structure with config.py - Set up branch for issue aden-hive#4927 This is the foundation for the DSA Mentor Agent template that will help developers learn algorithms through guided hints, code review, weakness identification, and personalized practice plans.
- Add complete agent structure with goal definition (4 success criteria, 2 constraints) - Implement intake node (event_loop, client-facing) for collecting problem statements - Add CLI entry point with TUI mode support - Agent structure validated and ready for expansion Current status: - Goal defined with educational constraints (no direct solutions) - Intake node collects problem statement, user code, questions, difficulty - Graph builds correctly with 1 node - Ready to add remaining nodes (analyze, hint, review, weaknesses, practice) Part of aden-hive#4927
- Add core/ and tools/src to Python path in agent.py and __main__.py - Fix framework and aden_tools imports for module execution - Improve TUI mode setup with better error handling - Agent execution verified: intake node works correctly - Textual package installed and TUI imports working The agent now properly: - Executes intake node with event_loop - Processes input and captures output - Ready for TUI mode (requires API key) - All imports resolve correctly Part of aden-hive#4927
- Add analyze-problem node: Classifies problems by topic, difficulty, concepts - Add provide-hint node: Progressive hints (4 levels) without revealing solutions - Add review-code node: Reviews code for correctness, complexity, optimization - Add identify-weaknesses node: Identifies weak DSA areas from code review - Add suggest-practice node: Creates personalized practice plans Graph structure: - 6 nodes total (intake, analyze, hint, review, weaknesses, practice) - 7 edges with conditional logic for code review path - Hint escalation support (multiple hint levels) - Conditional edges for code review (only if code provided) All nodes follow educational constraints: - Never provide complete solutions - Progressive hint system - Constructive code review - Actionable weakness identification - Personalized practice recommendations Part of aden-hive#4927
- Document workflow, nodes, edges, and features - Add usage examples and input/output schemas - Include customization ideas and testing instructions - Add DSA mentor to templates index Part of aden-hive#4927
- Remove unused imports (ToolRegistry, EventBus) from __main__.py - Apply ruff formatting to __main__.py - Add # noqa: E402 comments for intentional import placement after sys.path setup All linting checks now pass. Agent functionality verified. Part of aden-hive#4927
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
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.
Implements DSA Mentor Agent template as specified in issue #4927.
Features
Implementation Details
Testing
Closes #4927