Skip to content

Commit a8f5097

Browse files
committed
feat(ai-markmap-agent): simplify writer prompt, fix resume, debug output and template errors
Writer prompt simplification: - Remove URL format instructions from writer_behavior.md - Compress problem data to ID list only (reduces tokens) - Add _convert_plain_leetcode_to_links() to post_processing.py - Fix template placeholders ({id}, {title}, {slug}) causing KeyError Resume functionality fixes: - Fix load_expert_responses_from_run to scan correct file categories - Add parse_suggestions_from_response() and parse_adoption_list_from_response() - Fix run_expert_review/run_full_discussion resume to load data into state Debug output fixes: - Add save_expert_review() for Phase 1 outputs (01_ prefix) - Add save_discussion() for Phase 2 outputs (02_ prefix) - Update graph.py to use new debug save methods
1 parent 7deda70 commit a8f5097

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/ai-markmap-agent/prompts/writer/writer_behavior.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ For context, here are the full descriptions and rationales:
4545
### Link Format Rules
4646

4747
**For problems in the list above:**
48-
- Write ONLY: `LeetCode {id} - {title}` (NO URL needed)
48+
- Write ONLY: `LeetCode NUMBER - TITLE` (NO URL needed)
4949
- Links will be generated automatically in post-processing
5050
- If baseline has URLs for these problems, REMOVE them
5151
- Example: `LeetCode 11 - Container With Most Water`
5252

5353
**For problems NOT in the list:**
54-
- Include the LeetCode link: `[LeetCode {id} - {title}](https://leetcode.com/problems/{slug}/description/)`
54+
- Include the LeetCode link: `[LeetCode NUMBER - TITLE](https://leetcode.com/problems/SLUG/description/)`
5555
- Example: `[LeetCode 999 - Some Problem](https://leetcode.com/problems/some-problem/description/)`
5656

5757
**Important:**
@@ -95,8 +95,8 @@ For context, here are the full descriptions and rationales:
9595

9696
### Problem References
9797
- Use full "LeetCode" not "LC"
98-
- For problems in our list: `LeetCode {id} - {title}` (no URL)
99-
- For other problems: `[LeetCode {id} - {title}](leetcode_url)`
98+
- For problems in our list: `LeetCode NUMBER - TITLE` (no URL)
99+
- For other problems: `[LeetCode NUMBER - TITLE](leetcode_url)`
100100
- Do NOT add GitHub solution links
101101

102102
### Markmap Features

0 commit comments

Comments
 (0)