mindroot.coreplugins.check_list package¶
Submodules¶
mindroot.coreplugins.check_list.mod module¶
checklist helper for an LLM‑agent system ————————————————————————————————————————————————————————————————————————————— Purpose ——- • Parse a Markdown “## Checklist” section where each subtask is
written as a task‑list line:
- [ ] label of subtask
arbitrary markdown body… (until next task or heading)
Store parsed tasks + cursor in context.data[‘checklist’].
- Runtime helpers:
load_checklist(md, ctx) → parse markdown + reset state complete_subtask(subtask_id, context) → mark subtask done, advance cursor goto_subtask(subtask_id, context) → move to a specific subtask clear_subtask(subtask_id, context) → mark a subtask as incomplete get_checklist_status(context) → show the full checklist status
complete_subtask and other commands live at module level so the agent can call them as tools. No third‑party deps—only Python’s re module.
- async mindroot.coreplugins.check_list.mod.clear_subtask(subtask_id=None, context=None)[source]¶
Mark a subtask as incomplete (not done).
Parameters: - subtask_id: Optional. The subtask to clear, specified by:
The exact subtask label text
Omit to clear the current subtask
Example: { “clear_subtask”: {} } # Clear current subtask { “clear_subtask”: { “subtask_id”: “Review documents” } } # Clear by label
- async mindroot.coreplugins.check_list.mod.complete_subtask(subtask_id=None, context=None)[source]¶
Mark a subtask complete and return a Markdown status message.
Parameters: - subtask_id: Optional. The subtask to complete, specified by:
The exact subtask label text
Omit to complete the current subtask
Example: { “complete_subtask”: {} } # Complete current subtask { “complete_subtask”: { “subtask_id”: “Review documents” } } # Complete by label
- mindroot.coreplugins.check_list.mod.extract_checklist_section(md: str)[source]¶
Extract the checklist section from larger text.
Looks for a heading like ‘# Checklist’, ‘## Checklist’, etc., and extracts all content from that heading until the next heading of the same or lower level, or the end of the text.
Returns the extracted section, or the original text if no checklist section is found.
- async mindroot.coreplugins.check_list.mod.get_checklist_status(context=None)[source]¶
Show the full status of the checklist.
Example: { “get_checklist_status”: {} }
- async mindroot.coreplugins.check_list.mod.goto_subtask(subtask_id, context=None)[source]¶
Move to a specific subtask without changing its completion status.
Parameters: - subtask_id: Required. The subtask to navigate to, specified by:
The exact subtask label text
Example: { “goto_subtask”: { “subtask_id”: “Data analysis” } } # Go to by label
- mindroot.coreplugins.check_list.mod.load_checklist(md: str, ctx)[source]¶
Parse markdown and reset cursor to first unchecked subtask.
- async mindroot.coreplugins.check_list.mod.load_checklist_from_instructions(md: str, context=None)[source]¶
Extract checklist section from instructions and load it.
Looks for a section starting with ‘# Checklist’ or similar heading.
Example: { “load_checklist_from_instructions”: { “md”: “Full instructions with embedded checklist” } }