Initialize

Initialize

timsonner abc4c45 629 B Updated

File contents

OpenCode Initialization

Now that you’ve configured a provider, you can navigate to a project that you want to work on.

Terminal window

cd /path/to/project

And run OpenCode.

Terminal window

opencode

Next, initialize OpenCode for the project by running the following command.

/init

This will get OpenCode to analyze your project and create an AGENTS.md file in the project root.

Tip

You should commit your project’s AGENTS.md file to Git.

This helps OpenCode understand the project structure and the coding patterns used.

timsonner/agent-skills/tree/main/opencode/initialize commit abc4c45a3f

Frequently asked questions

npx skillmds@latest add timsonner/initialize