feat: add learning path replanner template#187
Conversation
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR adds a new "Learning Path Replanner" template under ChangesLearning Path Replanner template
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
:robot_face: AgentKit Structural ValidationNew Contributions Detected
Check Results
🎉 All checks passed! This contribution follows the AgentKit structure. |
There was a problem hiding this comment.
Pull request overview
This PR introduces a new “Learning Path Replanner” kit/template under kits/learning-path-replanner, intended to diagnose a student’s learning gaps and generate an adaptive, day-by-day recovery plan (including micro-lessons and a checkpoint quiz).
Changes:
- Adds a new Lamatic flow (
learning-path-replanner) with two LLM stages: diagnosis → plan generation. - Adds prompt assets, model configs, and a default constitution/agent documentation for the template.
- Adds template packaging metadata (
lamatic.config.ts), README, and kit-level.gitignore.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| kits/learning-path-replanner/README.md | Documents the template purpose, IO shape, and usage. |
| kits/learning-path-replanner/prompts/learning-path-replanner_llmnode-333_system_0.md | System prompt for the diagnosis node (structured diagnosis output). |
| kits/learning-path-replanner/prompts/learning-path-replanner_llmnode-333_user_1.md | User prompt template feeding trigger inputs into the diagnosis node. |
| kits/learning-path-replanner/prompts/learning-path-replanner_llmnode-593_system_0.md | System prompt for the recovery-plan node (structured plan output). |
| kits/learning-path-replanner/prompts/learning-path-replanner_llmnode-593_user_1.md | User prompt template feeding trigger inputs + diagnosis into the plan node. |
| kits/learning-path-replanner/model-configs/learning-path-replanner_llmnode-333_generative-model-name.ts | Model config for the diagnosis node. |
| kits/learning-path-replanner/model-configs/learning-path-replanner_llmnode-593_generative-model-name.ts | Model config for the recovery-plan node. |
| kits/learning-path-replanner/lamatic.config.ts | Template metadata (name/description/tags/links). |
| kits/learning-path-replanner/flows/learning-path-replanner.ts | Defines the flow graph, references, trigger schema, and response mapping. |
| kits/learning-path-replanner/constitutions/default.md | Adds a baseline constitution (identity/safety/data handling/tone). |
| kits/learning-path-replanner/agent.md | Human-readable agent/template documentation and guardrails. |
| kits/learning-path-replanner/.gitignore | Ignores Lamatic artifacts and local env files for this kit. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "model_name": "groq/llama-3.3-70b-versatile", | ||
| "credentialId": "32548a6b-7257-4e98-b7bc-af545a7de462", | ||
| "provider_name": "groq", | ||
| "credential_name": "groq" |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
kits/learning-path-replanner/README.md (1)
1-58: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winAdd a setup / getting-started section.
This README is a good overview, but it doesn't tell consumers how to install, import, or configure the kit. As per coding guidelines,
kits/*/README.mdmust be a human-readable setup guide.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@kits/learning-path-replanner/README.md` around lines 1 - 58, The README is missing the required setup/getting-started guidance for consumers of the Learning Path Replanner kit. Update this README to add a human-readable setup section that explains how to install or add the kit, how to import or invoke the main workflow, and any required configuration or input expectations; keep the existing overview but add a clear getting-started path using the kit’s core concepts like Learning Path Replanner, input schema, and output sections.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@kits/learning-path-replanner/prompts/learning-path-replanner_llmnode-593_user_1.md`:
- Around line 13-14: The diagnosis placeholder in this prompt is still wired to
the wrong upstream node, so the recovery-plan stage will not receive the actual
diagnosis text. Update the Learning Diagnosis input reference in this prompt to
use LLMNode_333.output.generatedResponse, matching the flow wiring used by the
replanner chain, and ensure the placeholder name stays consistent with the next
node’s expected diagnosis input.
---
Outside diff comments:
In `@kits/learning-path-replanner/README.md`:
- Around line 1-58: The README is missing the required setup/getting-started
guidance for consumers of the Learning Path Replanner kit. Update this README to
add a human-readable setup section that explains how to install or add the kit,
how to import or invoke the main workflow, and any required configuration or
input expectations; keep the existing overview but add a clear getting-started
path using the kit’s core concepts like Learning Path Replanner, input schema,
and output sections.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: 4cfe8b95-c88e-4425-ba86-ffdf57a34a2a
📒 Files selected for processing (12)
kits/learning-path-replanner/.gitignorekits/learning-path-replanner/README.mdkits/learning-path-replanner/agent.mdkits/learning-path-replanner/constitutions/default.mdkits/learning-path-replanner/flows/learning-path-replanner.tskits/learning-path-replanner/lamatic.config.tskits/learning-path-replanner/model-configs/learning-path-replanner_llmnode-333_generative-model-name.tskits/learning-path-replanner/model-configs/learning-path-replanner_llmnode-593_generative-model-name.tskits/learning-path-replanner/prompts/learning-path-replanner_llmnode-333_system_0.mdkits/learning-path-replanner/prompts/learning-path-replanner_llmnode-333_user_1.mdkits/learning-path-replanner/prompts/learning-path-replanner_llmnode-593_system_0.mdkits/learning-path-replanner/prompts/learning-path-replanner_llmnode-593_user_1.md
gitsofyash
left a comment
There was a problem hiding this comment.
I have resolved the issues flagged by the system
|
@coderabbitai review |
✅ Action performedReview finished.
|
PR Checklist
1. Select Contribution Type
2. General Requirements
learning-path-replannerREADME.md3. File Structure
lamatic.config.tspresent with valid metadataflows/learning-path-replanner.tsagent.mdpresentREADME.mdpresentconstitutions/default.mdpresent.envor.env.localcommitted4. Validation
feat:kits/learning-path-replannertemplate package for a “learning path replanner” education workflow.lamatic.config.tswith template metadata, tags, required step info, and deployment/GitHub links.flows/learning-path-replanner.ts, defining the full flow:triggerNodeAPI request input for student learning contextLLMNode_333to diagnose learning gapsLLMNode_593to generate an adaptive recovery planresponseNodeto returnlearningDiagnosisandadaptiveRecoveryPlanllama-3.3-70b-versatilemodel.agent.mddescribing the agent behavior, required inputs, output shape, and privacy guardrails.constitutions/default.mdwith safety, data handling, and tone rules.README.mddocumenting purpose, input/output schema, privacy note, and use cases..gitignoreentries for.lamatic/,node_modules/, and local env files.