Skip to main content
Generates an @Agent class with LLM configuration and optional tool references.

Usage

nx g @frontmcp/nx:agent researcher --project crm
nx g @frontmcp/nx:agent researcher --project crm --model claude-sonnet-4-5-20250514 --tools web_search,summarize

Options

OptionTypeDefaultDescription
namestringRequired. The name of the agent
projectstringRequired. The project to add the agent to
modelstringgpt-4The LLM model name
toolsstringComma-separated tool names to reference
directorystringSubdirectory within src/agents/

Generated Code

import { Agent, AgentContext } from '@frontmcp/sdk';

@Agent({
  name: 'researcher',
  description: 'TODO: describe what this agent does',
  llm: {
    model: 'claude-sonnet-4-5-20250514',
  },
  tools: ['web_search', 'summarize'],
  systemInstructions: 'TODO: define system instructions for this agent',
})
export default class ResearcherAgent extends AgentContext {
  async execute(input: unknown): Promise<unknown> {
    // TODO: implement agent logic
    return {};
  }
}