|
| 1 | +--- |
| 2 | +title: "DMP ’25 Week 12 Update by Harshit Verma" |
| 3 | +excerpt: "Progress on implementing debug history saving in the Journal and polishing code for final review." |
| 4 | +category: "DEVELOPER NEWS" |
| 5 | +date: "2025-08-30" |
| 6 | +slug: "2025-08-30-dmp-25-therealharshit-week12" |
| 7 | +author: "@/constants/MarkdownFiles/authors/harshit-verma.md" |
| 8 | +tags: "dmp25,sugarlabs,week12,therealharshit" |
| 9 | +image: "assets/Images/c4gt_DMP.webp" |
| 10 | +--- |
| 11 | + |
| 12 | +<!-- markdownlint-disable --> |
| 13 | + |
| 14 | +# Week 12 Progress Report by Harshit Verma |
| 15 | + |
| 16 | +**Project:** [LLM-powered Debugger for Pippy](https://github.com/sugarlabs/Pippy/issues/95) |
| 17 | +**Mentors:** [Walter Bender](https://github.com/walterbender), [Ibiam Chihurumnaya](https://github.com/chimosky), [Kshitij Shah](https://github.com/kshitijdshah99) |
| 18 | +**Assisting Mentors:** [Devin Ulibarri](https://github.com/pikurasa) |
| 19 | +**Reporting Period:** 2025-08-18 - 2025-08-24 |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## Goals for This Week |
| 24 | + |
| 25 | +- **Goal 1:** Work on implementing saving debug history into the Sugar Journal. |
| 26 | +- **Goal 2:** Polish existing codebase in preparation for final review. |
| 27 | +- **Goal 3:** Improve the Markdown parser for more readable debug responses in the terminal. |
| 28 | +- **Goal 4:** Conduct end-to-end testing of the `/debug` endpoint. |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## This Week’s Achievements |
| 33 | + |
| 34 | +1. **Worked on saving the debugger response in the sugar journal** |
| 35 | + - Explored how activities interact with the Journal using the `write_file()` and `read_file()` methods. |
| 36 | + - Extended the default workflow (which only saves source tab data) to also capture **debugging terminal outputs**. |
| 37 | + - Designed a JSON-based structure to record **code, errors, and LLM responses** for each session. |
| 38 | + |
| 39 | +2. **Refactoring of codebase** |
| 40 | + - Began cleaning up previously committed code based on mentor feedback. |
| 41 | + - Improved function naming, modularized some logic, and reduced redundancy. |
| 42 | + - Focused on ensuring **seamless integration between Sugar-AI and Pippy**, reducing chances of UI freeze or broken API calls. |
| 43 | + |
| 44 | +3. **Markdown Parser Improvements** |
| 45 | + - Iterated on the custom Markdown parser to better format LLM responses. |
| 46 | + - Ensured that **bold keywords, bullet lists, and code snippets** appear cleanly in the GTK terminal. |
| 47 | + - Began testing rendering consistency with multiple LLM outputs. |
| 48 | + |
| 49 | +4. **End-to-End Workflow Testing** |
| 50 | + - Tested the complete flow: Pippy code → API call to Sugar-AI → Debugging response → Display in terminal. |
| 51 | + - Verified data integrity across each step, ensuring nothing is lost or malformed in transmission. |
| 52 | + |
| 53 | +--- |
| 54 | + |
| 55 | +## Challenges & How I Overcame Them |
| 56 | + |
| 57 | +- **Challenge:** Understanding how the Sugar Journal stores and restores activity state. |
| 58 | + **Solution:** Based on discussion with my mentors I went through the Sugar toolkit documentation, experimented with other activities and learn about the `write_file()` and `read_file()` methods . |
| 59 | + |
| 60 | +- **Challenge:** Formatting inconsistencies in Markdown parsing. |
| 61 | + **Solution:** Added step-by-step rendering checks and created a fallback for unrecognized Markdown syntax. |
| 62 | + |
| 63 | +--- |
| 64 | + |
| 65 | +## Key Learnings |
| 66 | + |
| 67 | +- Learned about the importance of journaling. |
| 68 | +- Improved skills in **code refactoring**, focusing on maintainability and integration. |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +## Next Week’s Roadmap |
| 73 | + |
| 74 | +- Raise the final PR for Pippy. |
| 75 | +- Complete the **project final report** and submit for evaluation. |
| 76 | +- Write User docs and technical docs. |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +## Resources & References |
| 81 | + |
| 82 | +**Repository** |
| 83 | +- [Pippy](https://github.com/therealharshit/Pippy/tree/DMP2025/Pippy-Debugger) |
| 84 | +- [sugar-ai](https://github.com/sugarlabs/sugar-ai) |
| 85 | +- [pippy-debugger-server](https://github.com/therealharshit/pippy-debugger-server) |
| 86 | + |
| 87 | +--- |
| 88 | + |
| 89 | +## Acknowledgments |
| 90 | + |
| 91 | +Thank you to my mentors, the Sugar Labs community, and fellow contributors for your continued guidance and support! |
| 92 | + |
| 93 | +--- |
0 commit comments