Skip to content

Commit d023470

Browse files
DMP '25 Week06 and Midterm progress report by Harshit Verma (#309)
* DMP '25 Week06 Update by Harshit Verma * Add midterm progress report
1 parent 0c007a2 commit d023470

File tree

1 file changed

+128
-0
lines changed

1 file changed

+128
-0
lines changed
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
---
2+
title: "DMP ’25 Week 06 Update by Harshit Verma"
3+
excerpt: "I added a new step to help students understand their code’s intent before debugging begins. I also worked on improving the terminal’s formatting and finalized Mistral 7B as the debugging model to be integrated with Sugar AI"
4+
category: "DEVELOPER NEWS"
5+
date: "2025-07-14"
6+
slug: "2025-07-14-dmp-25-therealharshit-week06"
7+
author: "@/constants/MarkdownFiles/authors/harshit-verma.md"
8+
tags: "dmp25,sugarlabs,week06,midterm,therealharshit"
9+
image: "assets/Images/c4gt_DMP.png"
10+
---
11+
12+
<!-- markdownlint-disable -->
13+
14+
# Week 06 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-07-07 - 2025-07-13
20+
21+
---
22+
23+
## Goals for This Week
24+
25+
- **Goal 1:** Work on contextualization before debugging.
26+
- **Goal 2:** Add CSS-style formatting to the debugging terminal.
27+
- **Goal 3:** Finalize model decision for debugging.
28+
29+
---
30+
31+
## This Week’s Achievements
32+
33+
1. **Implemented Code Context Display for Learners**
34+
- As discussed in the debugging meeting, added a step that shows the context or purpose of the code to the student, helping them understand what the code is trying to do before showing debug suggestions.
35+
- This helps children first grasp what the code is meant to do, which builds confidence and improves the effectiveness of the debugging tips that follow.
36+
- Introduced a new step in the debugging flow: before showing any suggestions, the interface displays a brief summary of the code’s intent or functionality.
37+
38+
2. **Worked on Debug Terminal Formatting**
39+
- Tried to apply CSS-like styles to make debug output more structured and visually appealing.
40+
- GTK limitations posed challenges, continued work on enhancing the Markdown parser instead.
41+
42+
3. **Finalize model decision for debugging**
43+
- Decided to use **Mistral 7B**, which will be integrated with Sugar AI for better compatibility and performance.
44+
- Based on performance tests and Sugar AI's deployment pipeline, It offers a good balance of output quality and resource efficiency for server-side use.
45+
46+
---
47+
48+
## Challenges & How I Overcame Them
49+
50+
- **Challenge:** Styling Virtual Terminal Emulator (VTE) output with CSS.
51+
**Solution:** Learned that we can't apply CSS to the VTE terminal output as they are not GTK widget, so I decided to work on further improving the markdown parser.
52+
53+
---
54+
55+
## Key Learnings
56+
57+
- Learned how code contextualization can help beginner coders by giving them an idea of what the code should do, and it also improves their ability to understand and fix problems.
58+
- Developed a design-focused mindset for user-centric debugging tools.
59+
60+
---
61+
62+
## Next Week’s Roadmap
63+
64+
- Start working on replacing pippy-debugger-server with sugar-ai.
65+
- Start working on saving debug history to Sugar Journal.
66+
- Work on preparing a presentation as part of DMP midterm evaluation.
67+
68+
---
69+
70+
# Midterm Progress Report (6 Week Summary)
71+
72+
## Project Objective
73+
74+
The goal of this project is to enhance the Pippy learning environment by integrating an LLM-powered debugger. The debugger uses LLMs to provide readable, friendly suggestions for fixing broken code, helping young learners understand and improve their programs.
75+
76+
---
77+
78+
## Technical Implementation
79+
80+
- Set up a **FastAPI backend** (`/debug`) to handle Python code input.
81+
82+
- Integrated **Hugging Face model** for generating debugging tips.
83+
84+
- Created **Run & Debug** buttons in Pippy’s GTK interface.
85+
86+
- Connected **Pippy** with the backend server via API.
87+
88+
- Implemented a **Debug terminal** in the UI to display suggestions.
89+
90+
- Developed a **basic Markdown parser** for formatted output in VTE.
91+
92+
- Added a **Contextualization step** to show students what the code intends to do before debugging begins.
93+
94+
---
95+
96+
## Research & Design
97+
98+
- Explored multiple **UI layouts** for debug output.
99+
100+
- Tested different **LLM prompts** for clarity and simplicity.
101+
102+
- Held discussions on **Debugging best practices for children**.
103+
104+
- Evaluated models and selected **Mistral 7B** for deployment via Sugar AI.
105+
106+
---
107+
108+
## Project Demo
109+
110+
Please watch the project demo to see the progress I've made so far.
111+
[Watch here](https://drive.google.com/file/d/1-FHfsd0YiOZ2Fb7V7HeSswcga89jEvos/view?usp=drive_link)
112+
113+
---
114+
115+
## Resources & References
116+
117+
**Repository**
118+
- [Pippy](https://github.com/therealharshit/Pippy/tree/DMP2025/Pippy-Debugger)
119+
- [sugar-ai](https://github.com/sugarlabs/sugar-ai)
120+
- [pippy-debugger-server](https://github.com/therealharshit/pippy-debugger-server)
121+
122+
---
123+
124+
## Acknowledgments
125+
126+
Thank you to my mentors, the Sugar Labs community, and fellow contributors for your continued guidance and support!
127+
128+
---

0 commit comments

Comments
 (0)