Skip to content

Add nemo-cli-agent reference example#8

Draft
drazvan wants to merge 3 commits into
mainfrom
nemo-cli-agent-poc/rdinu
Draft

Add nemo-cli-agent reference example#8
drazvan wants to merge 3 commits into
mainfrom
nemo-cli-agent-poc/rdinu

Conversation

@drazvan
Copy link
Copy Markdown
Contributor

@drazvan drazvan commented May 21, 2026

Summary

  • Add a generic .agents/skills installer target with explicit --project-root support for folder-based agent harnesses.
  • Add the nemo-cli-agent DeepAgents/NAT reference example with portable AGENTS.md, DeepAgents-specific runtime instructions, and skill catalog wiring.
  • Add nemo ask as a shortcut for invoking the bundled example agent.

Test plan

  • Ran focused ruff check on edited nemo_cli_agent Python files during development.
  • Manually exercised nemo ask with multiple model backends against local NeMo services.
  • Verified the final branch contains only the three intended commits; local analysis/context notes are uncommitted.

drazvan added 3 commits May 21, 2026 17:38
Add a `generic` target to `nemo skills install` that writes the registered
NeMo skill corpus into `.agents/skills/`, making it usable by folder-based
agent harnesses outside the built-in Claude/Cursor targets.

Add `--project-root` so callers can pin the install location explicitly while
preserving the existing project-root discovery fallback for default CLI usage.
Add a folder-based reference agent that operates the NeMo Platform CLI through
natural language. The example keeps `AGENTS.md` portable for Cursor and other
harnesses, while `DEEP_AGENTS.md` carries the LangChain DeepAgents-specific
instructions for skill injection, `read_file`, and `nemo_cli` behavior.

Wire the graph through a NAT-compatible LangGraph wrapper and DeepAgents
`SkillsMiddleware` backed by `.agents/skills/`, so installed NeMo skills become
available to the model before it runs CLI workflows.

Move the DeepAgents stack behind a `cli-agent` extra and enable that extra in
the workspace plugin list so local development remains reproducible without
forcing the dependency set onto the base agents plugin.
Add a top-level `nemo ask "<question>"` command via the `nemo.cli` plugin hook.
The command dispatches to the bundled `nemo-cli-agent.yml` workflow through the
agents plugin local-invoke path.

Keep heavy agent imports lazy inside the command callback so normal `nemo`
entry-point discovery does not load the LangChain/DeepAgents stack unless the
shortcut is actually invoked.
@github-actions
Copy link
Copy Markdown
Contributor

Suite Lines Covered Line Rate Branch Rate
Unit Tests 18016/23935 75.3% 61.7%
Integration Tests 11438/22714 50.4% 25.6%

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