feat: add standalone agent health check script#158
Open
huangrichao2020 wants to merge 1 commit intolsdefine:mainfrom
Open
feat: add standalone agent health check script#158huangrichao2020 wants to merge 1 commit intolsdefine:mainfrom
huangrichao2020 wants to merge 1 commit intolsdefine:mainfrom
Conversation
Contributor
Author
|
We received your feedback on the previous PR and reworked this follow-up accordingly. The scope is now intentionally limited to a standalone audit helper plus tests/docs, without touching core runtime integration, runtime memory files, or unrelated installer changes.\n\nThe intended usage is also external-first: users can run the script manually, or in day-to-day conversation ask the agent to run the standalone audit command and summarize the result. In other words, the audit stays outside GenericAgent's core runtime path rather than becoming a built-in tool. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We received your feedback on the previous PR, and it was reasonable. I reworked the change accordingly and kept this follow-up much smaller and more focused.
This PR only includes a standalone audit helper, without modifying core runtime behavior.
Scope in this PR:
scripts/agent_health_check.pyExplicitly not included:
ga.pyassets/tools_schema.jsonmemory/Why a standalone third-party style matters
My intention here is to keep
agchkusable as an external package or helper, rather than making it part of GenericAgent's core runtime.That means users can adopt it in low-risk ways:
agchkseparately and run it from the terminalInstead of binding it into the agent loop, tools schema, or memory files, the idea is to keep it as an optional auditor.
How users would use it
Direct usage from the terminal:
Typical day-to-day requests a user might give in chat:
So the intended pattern is:
Validation
Validation run:
python3 -m py_compile scripts/agent_health_check.pyuv run --with pytest python -m pytest tests/test_agent_health_check.py -qpython3 scripts/agent_health_check.py --target-dir /Users/tingchim2pro/Desktop/GenericAgent --mode tools --jsonNote: I also checked a broader local test run and hit pre-existing MiniMax test failures unrelated to this script, so I kept the verification focused on the new standalone helper.