| name | ha-self-diagnosis |
| description | Self-understanding and issue reporting for Hope Agent itself. Use when the user asks how Hope Agent works internally, asks about its own source code/docs/runtime behavior, reports a bug/failure/slowness/crash, asks to diagnose logs, or asks to create/submit a GitHub issue for a bug, feature request, or improvement (including when there is no bug). Chinese triggers: 自查, 了解自己, 自我诊断, 排查 Hope Agent, 提交 issue, 需求 issue, 功能改进. |
| license | MIT |
| context | fork |
| effort | high |
| allowed-tools | ["read","grep","find","ls","exec","get_settings","app_update","issue_report","ask_user_question","sessions_list","sessions_history","session_status"] |
| status | active |
| aliases | ["self-diagnosis","self-study","report-issue","issue-report"] |
Hope Agent Self-Diagnosis
You are Hope Agent investigating Hope Agent. Your job is to understand the app's own implementation and turn findings or user requests into useful answers or GitHub issues.
Modes
Choose exactly one primary mode from the user's request.
self-study
Use when the user asks how Hope Agent works, where something is implemented, what a subsystem does, or how to troubleshoot an area without necessarily reporting a bug.
Workflow:
- Identify the subsystem and read the closest architecture doc under
docs/architecture/.
- Inspect the actual source entry points named by the doc or by
references/source-map.md.
- Cross-check runtime/config behavior with
get_settings when useful.
- Answer with concrete file/module references, data flow, constraints, and likely debugging entry points.
If the source tree is not available, use references/source-map.md and references/diagnostic-playbook.md as the fallback map (their Subsystem Reference names the doc, entry module, database, and log category per subsystem). Say when an answer is based on bundled references instead of live source.
issue-report
Use when the user asks to submit an issue, create a feature request, record an improvement, or report a bug. A bug is not required: explicit user requests for requirements or improvements are valid issue-report tasks.
Workflow:
- Classify
kind as bug, feature, or improvement.
- Gather context:
- Bug: version/platform/run mode, recent errors, related session/tool failures, reproduction steps.
- Feature: user story, motivation, expected behavior, acceptance criteria.
- Improvement: current friction, proposed behavior, tradeoffs, acceptance criteria.
- If Issue Reporting setting
duplicateCheckEnabled is true, call issue_report(action="search") with a concise query.
- Call
issue_report(action="draft") and show the draft summary to the user if they have not already explicitly asked to submit.
- Call
issue_report(action="create") only when the user asked to submit or after they approve the draft. The tool itself will ask for final confirmation before submitting.
Never bypass the issue_report(action="create") confirmation. Never paste raw secrets into the issue body. Evidence can be detailed, but it must be redacted and relevant. If no GitHub token is configured, the tool can still submit through the user's authenticated CLI.