| 1 | --- |
| 2 | title: "How to Edit an Agent" |
| 3 | description: "New versions of an agent can be created and published using the sidebar." |
| 4 | --- |
| 5 | |
| 6 |  |
| 7 | |
| 8 | First, select an agent from the dropdown at the top. |
| 9 | |
| 10 | While editing an agent, you can explore the hub and click "Add Block" from a block page to add it to your agent. |
| 11 | |
| 12 | For blocks that require secret values like API keys, you will see a small notification on the block's tile in the sidebar that will indicate if action is needed. |
| 13 | |
| 14 | To delete a block, click the trash icon. |
| 15 | |
| 16 | If a block you want to use does not exist yet, you can [create a new block](/hub/blocks/create-a-block). |
| 17 | |
| 18 | When you are done editing, click "Publish" to publish a new version of the agent. |
| 19 | |
| 20 | Click "Open VS Code" or "Open JetBrains" to open your IDE for using the agent. |