> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentstack.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Generating Agents

> CLI command to add an agent to your project

To generate a new agent for your project, run:

```bash theme={null}
agentstack generate agent <agent_name>
```

This command will modify two files, your agent file (`crew.py` / `graph.py`) and `agents.yaml`.

## your agent file

This is the file that declares each of your agents and tasks. It's the core of your AgentStack project and how AgentStack configures your framework.

* Crew projects have `crew.py`
* LangGraph projects have `graph.py`

## agents.yaml

This is your prompt file. Any prompt engineering is abstracted to here for non-technical ease.

Each agent has three prompt params:

* Role
* Goal
* Backstory

And one configuration param:

* LLM - This value tells AgentStack which model to use for this specific agent. It must be in `<provider>/<model>` format

  Ex: `openai/gpt-4o`
