Skip to content

Feat/refine_capabilities#903

Open
alcholiclg wants to merge 7 commits intomodelscope:mainfrom
alcholiclg:feat/capabilities
Open

Feat/refine_capabilities#903
alcholiclg wants to merge 7 commits intomodelscope:mainfrom
alcholiclg:feat/capabilities

Conversation

@alcholiclg
Copy link
Copy Markdown
Collaborator

  1. integrate all projects into ms_agent capabilities and ms-agent-skills
  2. support for openclaw/hermess
  3. fix bugs in env loading

Change Summary

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Run pre-commit install and pre-commit run --all-files before git commit, and passed lint check.
  • Documentation reflects the changes where applicable

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds integration support for Hermes Agent, nanobot, and OpenClaw, including configuration files, installation scripts, and integration tests. It also introduces new capabilities for code generation, document research, financial research, and video generation. My feedback highlights that several integration tests and documentation examples use invalid, future-dated arXiv URLs that will cause failures. Additionally, I suggested improving the robustness of the installation scripts by replacing error suppression with explicit directory checks.


r = await call_tool(session, 'submit_doc_research_task', {
'query': 'Summarize the key contributions of this paper',
'urls': 'https://arxiv.org/abs/2504.17432',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This test uses a URL for an arXiv paper from the future (April 2025), which does not exist. This will cause the test to fail. Please replace it with a URL of a real, existing paper to ensure the test is valid.


r = await call_tool(session, 'submit_doc_research_task', {
'query': 'Summarize the key contributions of this paper',
'urls': 'https://arxiv.org/abs/2504.17432',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This test uses a URL for an arXiv paper from the future (April 2025), which does not exist. This will cause the test to fail. Please replace it with a URL of a real, existing paper to ensure the test is valid.


r = await call_tool(session, 'submit_doc_research_task', {
'query': 'Summarize the key contributions of this paper',
'urls': 'https://arxiv.org/abs/2504.17432',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This test uses a URL for an arXiv paper from the future (April 2025), which does not exist. This will cause the test to fail. Please replace it with a URL of a real, existing paper to ensure the test is valid.

Comment on lines +26 to +27
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The use of 2>/dev/null || true is not robust. It suppresses all errors from cp, not just 'file not found', and prevents the script from failing even if there are permission issues. A safer approach is to explicitly check if the source directories exist before copying.

Suggested change
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
if [ -d "$SKILL_SRC/references" ]; then
cp -r "$SKILL_SRC/references" "$SKILL_DST/"
fi
if [ -d "$SKILL_SRC/scripts" ]; then
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/"
fi

Comment on lines +26 to +27
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The use of 2>/dev/null || true is not robust. It suppresses all errors from cp, not just 'file not found', and prevents the script from failing even if there are permission issues. A safer approach is to explicitly check if the source directories exist before copying.

Suggested change
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
if [ -d "$SKILL_SRC/references" ]; then
cp -r "$SKILL_SRC/references" "$SKILL_DST/"
fi
if [ -d "$SKILL_SRC/scripts" ]; then
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/"
fi

Comment on lines +26 to +27
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The use of 2>/dev/null || true is not robust. It suppresses all errors from cp, not just 'file not found', and prevents the script from failing even if there are permission issues. A safer approach is to explicitly check if the source directories exist before copying.

Suggested change
cp -r "$SKILL_SRC/references" "$SKILL_DST/" 2>/dev/null || true
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/" 2>/dev/null || true
if [ -d "$SKILL_SRC/references" ]; then
cp -r "$SKILL_SRC/references" "$SKILL_DST/"
fi
if [ -d "$SKILL_SRC/scripts" ]; then
cp -r "$SKILL_SRC/scripts" "$SKILL_DST/"
fi

| Deep Research (async) | 20-60 min | Research "the current state of AI agent frameworks in 2026" — submit as a background task and tell me when it's done. |
| Code Generation (async) | 10-30 min | Generate a todo app with React frontend, Express backend, and SQLite. |
| Financial Research (async) | 20-60 min | Analyze CATL (300750.SZ) over the past four quarters. |
| Document Research (async) | 1-20 min | Analyze this paper: [https://arxiv.org/pdf/2504.17432](https://arxiv.org/pdf/2504.17432) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example test prompt for Document Research uses a URL for an arXiv paper from the future (April 2025). This link is invalid and will cause the example to fail. Please replace it with a URL of a real, existing paper.

Comment on lines +88 to +101
**Single document analysis:**
```
submit_doc_research_task(
query="Deeply analyze and summarize the following document",
urls="https://arxiv.org/pdf/2504.17432"
)
```

**Multi-document comparison:**
```
submit_doc_research_task(
query="Compare Qwen3 and Qwen2.5, what optimizations are there?",
urls="https://arxiv.org/abs/2505.09388\nhttps://arxiv.org/abs/2412.15115"
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example URLs in this documentation point to arXiv papers from the future (e.g., 2025, 2024). These links are invalid and will cause the examples to fail. Please replace them with URLs of real, existing papers to ensure the documentation is accurate and helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant