docs: describe agent creation without the removed CLI command (#57419)

Co-authored-by: Aniruddha Adak <aniruddhaadak80@users.noreply.github.com>
Co-authored-by: Tarquinen <78942835+Tarquinen@users.noreply.github.com>
This commit is contained in:
ANIRUDDHA ADAK
2026-10-21 23:15:40 +05:30
committed by GitHub
Unverified
parent 8a360e103e
commit d10692ecb0
36 changed files with 36 additions and 804 deletions
+2 -12
View File
@@ -720,19 +720,9 @@ Run `opencode models` to see a list of the available models.
## Create agents
You can create new agents using the following command:
Create a new agent by adding a markdown file to `.opencode/agents/` for the project or `~/.config/opencode/agents/` globally. The file name becomes the agent name, and the frontmatter configures its description, mode, model, and permissions. See [Markdown](#markdown) above for the file format.
```bash
opencode agent create
```
This interactive command will:
1. Ask where to save the agent; global or project-specific.
2. Description of what the agent should do.
3. Generate an appropriate system prompt and identifier.
4. Let you select which permissions the agent should be allowed (anything you don't select is denied).
5. Finally, create a markdown file with the agent configuration.
Run `opencode debug agents` to list the agents that OpenCode has loaded.
---
+2 -12
View File
@@ -671,19 +671,9 @@ Only analyze code and suggest changes.
## إنشاء وكلاء
يمكنك إنشاء وكلاء جدد باستخدام الأمر التالي:
أنشئ وكيلا جديدا بإضافة ملف Markdown إلى `.opencode/agents/` للمشروع أو إلى `~/.config/opencode/agents/` على المستوى العام. يصبح اسم الملف اسم الوكيل، وتضبط الواجهة الأمامية (frontmatter) وصفه ووضعه ونموذجه وصلاحياته. راجع [Markdown](#markdown) أعلاه لمعرفة تنسيق الملف.
```bash
opencode agent create
```
سيقوم هذا الأمر التفاعلي بما يلي:
1. سيسألك أين تريد حفظ الوكيل: عام (global) أو خاص بالمشروع.
2. سيطلب وصفا لما ينبغي أن يفعله الوكيل.
3. سيولّد موجّها نظاميا ومعرّفا مناسبا.
4. سيتيح لك اختيار الأدوات التي يمكن للوكيل الوصول إليها.
5. أخيرا، سينشئ ملف Markdown يحتوي تهيئة الوكيل.
شغّل `opencode debug agents` لعرض الوكلاء الذين حمّلهم OpenCode.
---
-32
View File
@@ -48,16 +48,6 @@ opencode [project]
---
### agent
إدارة وكلاء OpenCode.
```bash
opencode agent [command]
```
---
### attach
إرفاق terminal بخادم الواجهة الخلفية لـ OpenCode قيد التشغيل بالفعل، والذي تم تشغيله عبر الأمرين `serve` أو `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
إنشاء وكيل جديد بإعدادات مخصصة.
```bash
opencode agent create
```
سيرشدك هذا الأمر خلال إنشاء وكيل جديد مع موجه نظام مخصص وإعدادات الأدوات.
---
#### list
عرض جميع الوكلاء المتاحين.
```bash
opencode agent list
```
---
### auth
أمر لإدارة بيانات الاعتماد وتسجيل الدخول لمزودي الخدمة.
+2 -12
View File
@@ -671,19 +671,9 @@ Pokrenite `opencode models` da vidite listu dostupnih modela.
## Kreiranje agenata
Možete kreirati nove agente koristeći sljedeću naredbu:
Novog agenta kreirate dodavanjem markdown datoteke u `.opencode/agents/` za projekat ili u `~/.config/opencode/agents/` globalno. Naziv datoteke postaje naziv agenta, a frontmatter konfiguriše njegov opis, način rada, model i dozvole. Format datoteke pogledajte u odjeljku [Markdown](#markdown) iznad.
```bash
opencode agent create
```
Ova interaktivna komanda će:
1. Pitajte gdje da sačuvate agenta; globalno ili specifično za projekat.
2. Opis onoga što agent treba da uradi.
3. Generirajte odgovarajući sistemski prompt i identifikator.
4. Omogućite vam da odaberete kojim alatima agent može pristupiti.
5. Konačno, kreirajte markdown datoteku s konfiguracijom agenta.
Pokrenite `opencode debug agents` da biste vidjeli listu agenata koje je OpenCode učitao.
---
-32
View File
@@ -48,16 +48,6 @@ OpenCode CLI takođe ima sljedeće naredbe.
---
### agent
Upravljajte OpenCode agentima.
```bash
opencode agent [command]
```
---
### attach
Priključite terminal na već pokrenut OpenCode backend server pokrenut putem `serve` ili `web` naredbi.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Kreirajte novog agenta s prilagođenom konfiguracijom.
```bash
opencode agent create
```
Ova naredba će vas voditi kroz kreiranje novog agenta sa prilagođenim sistemskim promptom i konfiguracijom alata.
---
#### list
Navedite sve dostupne agente.
```bash
opencode agent list
```
---
### auth
Naredba za upravljanje vjerodajnicama i prijavom za provajdere.
-44
View File
@@ -52,50 +52,6 @@ The OpenCode CLI also has the following commands.
---
### agent
Manage agents for OpenCode.
```bash
opencode agent [command]
```
---
#### create
Create a new agent with custom configuration.
```bash
opencode agent create
```
This command will guide you through creating a new agent with a custom system prompt and permission configuration. Anything you don't allow is denied in the generated agent's frontmatter.
#### Flags
| Flag | Short | Description |
| ------------------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <nobr><code>{"--path"}</code></nobr> | | Directory to write the agent file to (defaults to global or `.opencode/agent` based on the prompt) |
| <nobr><code>{"--description"}</code></nobr> | | What the agent should do |
| <nobr><code>{"--mode"}</code></nobr> | | Agent mode: `all`, `primary`, or `subagent` |
| <nobr><code>{"--permissions"}</code></nobr> | | Comma-separated list of permissions to allow (default: all). Available: `shell`, `read`, `edit`, `glob`, `grep`, `webfetch`, `task`, `websearch`, `lsp`, `skill`. Anything omitted is denied. Alias: `--tools` |
| <nobr><code>{"--model"}</code></nobr> | `-m` | Model to use, in `provider/model` format |
Passing all of `--path`, `--description`, `--mode`, and `--permissions` runs the command non-interactively.
---
#### list
List all available agents.
```bash
opencode agent list
```
---
### attach
Attach a terminal to an already running OpenCode backend server started via `serve` or `web` commands.
+2 -12
View File
@@ -672,19 +672,9 @@ Kør `opencode models` for at se en liste over de tilgængelige modeller.
## Oprettelse af agent
Du kan oprette nye agenter ved hjælp af følgende kommando:
Opret en ny agent ved at tilføje en markdown-fil til `.opencode/agents/` for projektet eller `~/.config/opencode/agents/` globalt. Filnavnet bliver agentens navn, og frontmatter konfigurerer dens beskrivelse, tilstand, model og tilladelser. Se [Markdown](#markdown) ovenfor for filformatet.
```bash
opencode agent create
```
Denne interaktive kommando vil:
1. Spørg, hvor agenten skal gemmes; globalt eller projektspecifikt.
2. Beskrivelse af, hvad agenten skal gøre.
3. Generer en passende systemprompt og identifikator.
4. Lad dig vælge, hvilke værktøjer agenter har adgang til.
5. Til sidst skal du oprette en markdown-fil med agentkonfigurationen.
Kør `opencode debug agents` for at se de agenter, som OpenCode har indlæst.
---
-32
View File
@@ -48,16 +48,6 @@ OpenCode CLI har også følgende kommandoer.
---
### agent
Administrer agenter i OpenCode.
```bash
opencode agent [command]
```
---
### attach
Tilslut en terminal til en allerede kørende OpenCode backend-server startet via `serve` eller `web` kommandoer.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Opret en ny agent med brugerdefineret konfiguration.
```bash
opencode agent create
```
Denne kommando vil guide dig gennem oprettelse af en ny agent med en brugerdefineret systemprompt og værktøjskonfiguration.
---
#### list
Liste over alle tilgængelige agenter.
```bash
opencode agent list
```
---
### auth
Kommando til at administrere legitimationsoplysninger og login for udbydere.
+2 -12
View File
@@ -658,19 +658,9 @@ Führen Sie `opencode models` aus, um eine Liste der verfügbaren Modelle anzubi
## Agenten erstellen
Mit dem folgenden Befehl können Sie neue Agenten erstellen:
Erstellen Sie einen neuen Agenten, indem Sie eine Markdown-Datei in `.opencode/agents/` für das Projekt oder global in `~/.config/opencode/agents/` anlegen. Der Dateiname wird zum Namen des Agenten, und das Frontmatter konfiguriert Beschreibung, Modus, Modell und Berechtigungen. Das Dateiformat ist oben unter [Markdown](#markdown) beschrieben.
```bash
opencode agent create
```
Dieser interaktive Befehl führt zu Folgendem:
1. Fragen Sie, wo der Agent gespeichert werden soll. global oder projektspezifisch.
2. Beschreibung dessen, was der Agent tun soll.
3. Generieren Sie eine entsprechende Systemaufforderung und -kennung.
4. Hier können Sie auswählen, auf welche Tools der Agent zugreifen kann.
5. Erstellen Sie abschließend eine Markdown-Datei mit der Agentenkonfiguration.
Führen Sie `opencode debug agents` aus, um die von OpenCode geladenen Agenten aufzulisten.
---
-32
View File
@@ -48,16 +48,6 @@ Der OpenCode CLI verfügt außerdem über die folgenden Befehle.
---
### agent
Agenten für OpenCode verwalten.
```bash
opencode agent [command]
```
---
### attach
Schließen Sie ein Terminal an einen bereits laufenden OpenCode-Backend-Server an, der über die Befehle `serve` oder `web` gestartet wurde.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Erstellen Sie einen neuen Agenten mit benutzerdefinierter Konfiguration.
```bash
opencode agent create
```
Dieser Befehl führt Sie durch die Erstellung eines neuen Agenten mit einer benutzerdefinierten Systemeingabeaufforderung und Toolkonfiguration.
---
#### list
Listen Sie alle verfügbaren Agenten auf.
```bash
opencode agent list
```
---
### auth
Befehl zum Verwalten von Anmeldeinformationen und Anmelden für Anbieter.
+2 -12
View File
@@ -672,19 +672,9 @@ Ejecute `opencode models` para ver una lista de los modelos disponibles.
## Crear agentes
Puede crear nuevos agentes usando el siguiente comando:
Para crear un agente nuevo, agregue un archivo markdown en `.opencode/agents/` para el proyecto o en `~/.config/opencode/agents/` de forma global. El nombre del archivo se convierte en el nombre del agente, y el frontmatter configura su descripción, modo, modelo y permisos. Consulte [Markdown](#markdown) más arriba para ver el formato del archivo.
```bash
opencode agent create
```
Este comando interactivo:
1. Preguntar dónde guardar al agente; global o específico del proyecto.
2. Descripción de lo que debe hacer el agente.
3. Genere un indicador y un identificador del sistema adecuados.
4. Le permite seleccionar a qué herramientas puede acceder el agente.
5. Finalmente, cree un archivo Markdown con la configuración del agente.
Ejecute `opencode debug agents` para listar los agentes que OpenCode ha cargado.
---
-32
View File
@@ -48,16 +48,6 @@ La CLI de OpenCode también tiene los siguientes comandos.
---
### agent
Administrar agentes para OpenCode.
```bash
opencode agent [command]
```
---
### attach
Conecte una terminal a un servidor backend OpenCode que ya se esté ejecutando y iniciado mediante los comandos `serve` o `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Cree un nuevo agente con configuración personalizada.
```bash
opencode agent create
```
Este comando lo guiará en la creación de un nuevo agente con un mensaje del sistema personalizado y una configuración de herramientas.
---
#### list
Enumere todos los agentes disponibles.
```bash
opencode agent list
```
---
### auth
Comando para administrar credenciales e iniciar sesión para proveedores.
+2 -12
View File
@@ -672,19 +672,9 @@ Exécutez `opencode models` pour voir une liste des modèles disponibles.
## Création d'agents
Vous pouvez créer de nouveaux agents à l'aide de la commande suivante :
Créez un nouvel agent en ajoutant un fichier markdown dans `.opencode/agents/` pour le projet ou dans `~/.config/opencode/agents/` globalement. Le nom du fichier devient le nom de l'agent, et le frontmatter configure sa description, son mode, son modèle et ses permissions. Consultez [Markdown](#markdown) ci-dessus pour le format du fichier.
```bash
opencode agent create
```
Cette commande interactive va :
1. Demander où enregistrer l'agent ; global ou spécifique à un projet.
2. Demander une description de ce que l'agent doit faire.
3. Générer un prompt système et un identifiant appropriés.
4. Vous permettre de sélectionner les outils auxquels l'agent peut accéder.
5. Enfin, créer un fichier markdown avec la configuration de l'agent.
Exécutez `opencode debug agents` pour lister les agents chargés par OpenCode.
---
-32
View File
@@ -48,16 +48,6 @@ La CLI OpenCode dispose également des commandes suivantes.
---
### agent
Gérer les agents pour OpenCode.
```bash
opencode agent [command]
```
---
### attach
Attachez un terminal à un serveur backend OpenCode déjà en cours d'exécution démarré via les commandes `serve` ou `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Créez un nouvel agent avec une configuration personnalisée.
```bash
opencode agent create
```
Cette commande vous guidera dans la création d'un nouvel agent avec un prompt système personnalisé et une configuration d'outils.
---
#### list
Liste tous les agents disponibles.
```bash
opencode agent list
```
---
### auth
Commande pour gérer les informations d’identification et la connexion des fournisseurs.
+2 -12
View File
@@ -670,19 +670,9 @@ Esegui `opencode models` per vedere la lista dei modelli disponibili.
## Creazione agenti
Puoi creare nuovi agenti usando il comando seguente:
Crea un nuovo agente aggiungendo un file markdown in `.opencode/agents/` per il progetto o in `~/.config/opencode/agents/` a livello globale. Il nome del file diventa il nome dell'agente e il frontmatter ne configura descrizione, modalità, modello e permessi. Vedi [Markdown](#markdown) sopra per il formato del file.
```bash
opencode agent create
```
Questo comando interattivo:
1. Chiede dove salvare l'agente: globale o specifico del progetto.
2. Chiede una descrizione di cosa dovrebbe fare l'agente.
3. Genera un system prompt appropriato e un identificatore.
4. Ti fa selezionare a quali strumenti l'agente può accedere.
5. Infine, crea un file markdown con la configurazione dell'agente.
Esegui `opencode debug agents` per elencare gli agenti caricati da OpenCode.
---
-32
View File
@@ -48,16 +48,6 @@ La CLI di OpenCode include anche i seguenti comandi.
---
### agent
Gestisci gli agenti per OpenCode.
```bash
opencode agent [command]
```
---
### attach
Collega un terminale a un backend server di OpenCode già in esecuzione avviato tramite i comandi `serve` o `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Crea un nuovo agente con configurazione personalizzata.
```bash
opencode agent create
```
Questo comando ti guida nella creazione di un nuovo agente con un system prompt personalizzato e configurazione degli strumenti.
---
#### list
Elenca tutti gli agenti disponibili.
```bash
opencode agent list
```
---
### auth
Comando per gestire le credenziali e il login dei provider.
+2 -12
View File
@@ -668,19 +668,9 @@ Only analyze code and suggest changes.
## エージェントの作成
次のコマンドを使用して、新しいエージェントを作成できます。
新しいエージェントを作成するには、プロジェクト用は `.opencode/agents/`、グローバル用は `~/.config/opencode/agents/` に Markdown ファイルを追加します。ファイル名がエージェント名になり、フロントマターで説明、モード、モデル、権限を設定します。ファイル形式については、上記の [Markdown](#markdown) を参照してください。
```bash
opencode agent create
```
この対話型コマンドは次のことを行います。
1. エージェントを保存する場所を尋ねます。グローバルまたはプロジェクト固有。
2. エージェントが行うべきことの説明。
3. 適切なシステムプロンプトと識別子を生成します。
4. エージェントがアクセスできるツールを選択できます。
5. 最後に、エージェント設定を含む Markdown ファイルを作成します。
`opencode debug agents` を実行すると、OpenCode が読み込んだエージェントを一覧表示できます。
---
-32
View File
@@ -48,16 +48,6 @@ OpenCode CLI には次のコマンドもあります。
---
### agent
OpenCode のエージェントを管理します。
```bash
opencode agent [command]
```
---
### attach
`serve` または `web` コマンドを使用して起動された、すでに実行中の OpenCode バックエンドサーバーにターミナルを接続します。
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
カスタム構成で新しいエージェントを作成します。
```bash
opencode agent create
```
このコマンドは、カスタムシステムプロンプトとツール構成を使用して新しいエージェントを作成する手順を示します。
---
#### list
利用可能なエージェントをすべてリストします。
```bash
opencode agent list
```
---
### auth
プロバイダーの資格情報とログインを管理するコマンド。
+2 -12
View File
@@ -671,19 +671,9 @@ agent config에 지정한 나머지 옵션은 모델 옵션으로 provider에 **
## 에이전트 생성
아래 명령으로 새 agent를 만들 수 있습니다.
새 agent를 만들려면 프로젝트용은 `.opencode/agents/`, 전역용은 `~/.config/opencode/agents/`에 Markdown 파일을 추가하세요. 파일 이름이 agent 이름이 되고, frontmatter에서 설명, 모드, 모델, 권한을 설정합니다. 파일 형식은 위의 [Markdown](#markdown)을 참고하세요.
```bash
opencode agent create
```
이 인터랙티브 명령은 다음을 수행합니다.
1. agent 저장 위치를 묻습니다(전역/프로젝트).
2. agent가 수행할 작업의 설명을 받습니다.
3. 적절한 시스템 prompt와 식별자를 생성합니다.
4. agent가 접근할 tool을 선택하게 합니다.
5. 마지막으로 agent config가 담긴 Markdown 파일을 생성합니다.
`opencode debug agents`를 실행하면 OpenCode가 로드한 agent 목록을 볼 수 있습니다.
---
-32
View File
@@ -48,16 +48,6 @@ opencode CLI는 아래 명령들도 제공합니다.
---
### agent
opencode용 에이전트를 관리합니다.
```bash
opencode agent [command]
```
---
### attach
`serve` 또는 `web` 명령으로 이미 실행 중인 opencode 백엔드 서버에 터미널을 연결합니다.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
커스텀 설정으로 새 에이전트를 만듭니다.
```bash
opencode agent create
```
이 명령은 커스텀 시스템 프롬프트와 도구 설정을 사용해 새 에이전트를 만드는 과정을 안내합니다.
---
#### list
사용 가능한 모든 에이전트를 표시합니다.
```bash
opencode agent list
```
---
### auth
provider 인증 정보와 로그인을 관리합니다.
+2 -12
View File
@@ -671,19 +671,9 @@ Kjør `opencode models` for å se en liste over tilgjengelige modeller.
## Opprette agenter
Du kan opprette nye agenter ved å bruke følgende kommando:
Opprett en ny agent ved å legge til en markdown-fil i `.opencode/agents/` for prosjektet eller i `~/.config/opencode/agents/` globalt. Filnavnet blir agentens navn, og frontmatter konfigurerer beskrivelse, modus, modell og tillatelser. Se [Markdown](#markdown) ovenfor for filformatet.
```bash
opencode agent create
```
Denne interaktive kommandoen vil:
1. Spør hvor du skal lagre agenten; global eller prosjektspesifikk.
2. Beskrivelse av hva agenten skal gjøre.
3. Generer en passende systemmelding og identifikator.
4. La deg velge hvilke verktøy agenten har tilgang til.
5. Lag til slutt en nedmerkingsfil med agentkonfigurasjonen.
Kjør `opencode debug agents` for å liste agentene som OpenCode har lastet inn.
---
-32
View File
@@ -48,16 +48,6 @@ OpenCode CLI har også følgende kommandoer.
---
### agent
Administrer agenter for OpenCode.
```bash
opencode agent [command]
```
---
### attach
Koble en terminal til en allerede kjørende OpenCode-backend-server startet via `serve` eller `web` kommandoer.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Opprett en ny agent med tilpasset konfigurasjon.
```bash
opencode agent create
```
Denne kommandoen vil veilede deg gjennom å lage en ny agent med en tilpasset systemmelding og verktøykonfigurasjon.
---
#### list
List opp alle tilgjengelige agenter.
```bash
opencode agent list
```
---
### auth
Kommando for administrasjon av påloggingsinformasjon og innlogging for leverandører.
+2 -12
View File
@@ -671,19 +671,9 @@ Uruchom `opencode models`, aby zobaczyć dostępne modele.
## Tworzenie agentów
Możesz stworzyć nowych agentów interaktywnie za pomocą polecenia:
Aby utworzyć nowego agenta, dodaj plik markdown do `.opencode/agents/` w projekcie lub do `~/.config/opencode/agents/` globalnie. Nazwa pliku staje się nazwą agenta, a frontmatter konfiguruje jego opis, tryb, model i uprawnienia. Format pliku opisano powyżej w sekcji [Markdown](#markdown).
```bash
opencode agent create
```
Poprowadzi Cię to przez proces:
1. Pytanie o miejsce zapisu agenta (globalnie lub dla projektu).
2. Opis tego, co agent powinien robić.
3. Wygenerowanie odpowiedniego promptu systemowego i identyfikatora.
4. Wybór narzędzi, do których agent powinien mieć dostęp.
5. Zapisanie pliku markdown z konfiguracją agenta.
Uruchom `opencode debug agents`, aby wyświetlić listę agentów załadowanych przez OpenCode.
---
-32
View File
@@ -48,16 +48,6 @@ Interfejs CLI OpenCode zawiera także dodatkowe polecenia.
---
### agent
Zarządzaj agentami OpenCode.
```bash
opencode agent [command]
```
---
### attach
Dołącz terminal do już działającego serwera backendu OpenCode uruchomionego za pomocą `serve` lub `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Utwórz nowego agenta z niestandardową konfiguracją.
```bash
opencode agent create
```
To polecenie poprowadzi Cię przez proces tworzenia nowego agenta z niestandardowym promptem systemowym i konfiguracją narzędzi.
---
#### list
Wyświetl listę wszystkich agentów.
```bash
opencode agent list
```
---
### auth
Zarządzaj danymi uwierzytelniającymi i logowaniem dla dostawców.
+2 -12
View File
@@ -672,19 +672,9 @@ Execute `opencode models` para ver uma lista dos modelos disponíveis.
## Criando agentes
Você pode criar novos agentes usando o seguinte comando:
Crie um novo agente adicionando um arquivo markdown em `.opencode/agents/` para o projeto ou em `~/.config/opencode/agents/` globalmente. O nome do arquivo se torna o nome do agente, e o frontmatter configura sua descrição, modo, modelo e permissões. Consulte [Markdown](#markdown) acima para ver o formato do arquivo.
```bash
opencode agent create
```
Este comando interativo irá:
1. Perguntar onde salvar o agente; global ou específico do projeto.
2. Descrição do que o agente deve fazer.
3. Gerar um prompt de sistema apropriado e identificador.
4. Permitir que você selecione quais ferramentas o agente pode acessar.
5. Finalmente, criar um arquivo markdown com a configuração do agente.
Execute `opencode debug agents` para listar os agentes que o OpenCode carregou.
---
@@ -48,16 +48,6 @@ A CLI do opencode também possui os seguintes comandos.
---
### agent
Gerencie agentes para o opencode.
```bash
opencode agent [command]
```
---
### attach
Anexe um terminal a um servidor backend do opencode já em execução, iniciado via comandos `serve` ou `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Crie um novo agente com configuração personalizada.
```bash
opencode agent create
```
Este comando irá guiá-lo na criação de um novo agente com um prompt de sistema personalizado e configuração de ferramentas.
---
#### list
Liste todos os agentes disponíveis.
```bash
opencode agent list
```
---
### auth
Comando para gerenciar credenciais e login para provedores.
+2 -12
View File
@@ -671,19 +671,9 @@ Only analyze code and suggest changes.
## Создание агентов
Вы можете создать новых агентов, используя следующую команду:
Чтобы создать нового агента, добавьте файл Markdown в `.opencode/agents/` для проекта или в `~/.config/opencode/agents/` глобально. Имя файла становится именем агента, а frontmatter задает его описание, режим, модель и разрешения. Формат файла описан выше в разделе [Markdown](#markdown).
```bash
opencode agent create
```
Эта интерактивная команда:
1. Спрашивает, где сохранить агента: глобально или в проекте.
2. Запрашивает описание того, что должен делать агент.
3. Создает соответствующий системный промпт и идентификатор.
4. Позволяет выбрать, к каким инструментам агент будет иметь доступ.
5. Наконец, создает файл Markdown с конфигурацией агента.
Выполните `opencode debug agents`, чтобы вывести список агентов, загруженных OpenCode.
---
-32
View File
@@ -48,16 +48,6 @@ CLI opencode также имеет следующие команды.
---
### agent
Управляйте агентами для opencode.
```bash
opencode agent [command]
```
---
### attach
Подключите терминал к уже работающему внутреннему серверу opencode, запущенному с помощью команд `serve` или `web`.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Создайте нового агента с пользовательской конфигурацией.
```bash
opencode agent create
```
Эта команда поможет вам создать новый агент с настраиваемой системной подсказкой и настройкой инструмента.
---
#### list
Перечислите всех доступных агентов.
```bash
opencode agent list
```
---
### auth
Команда для управления учетными данными и входом в систему для провайдеров.
+2 -12
View File
@@ -663,19 +663,9 @@ Only analyze code and suggest changes.
## การสร้างเอเจนต์
สร้างเอเจนต์ใหม่ด้วยคำสั่ง:
สร้างเอเจนต์ใหม่โดยเพิ่มไฟล์ Markdown ไว้ใน `.opencode/agents/` สำหรับโปรเจ็กต์ หรือ `~/.config/opencode/agents/` สำหรับระดับผู้ใช้ (Global) ชื่อไฟล์จะกลายเป็นชื่อเอเจนต์ และ frontmatter ใช้กำหนดคำอธิบาย โหมด โมเดล และสิทธิ์ของเอเจนต์ ดูรูปแบบไฟล์ได้ที่ [Markdown](#markdown) ด้านบน
```bash
opencode agent create
```
คำสั่งแบบโต้ตอบจะถาม:
1. สถานที่บันทึก (Global หรือ Project)
2. คำอธิบายหน้าที่ของเอเจนต์
3. สร้างพรอมต์และเลือกไอคอนที่เหมาะสม
4. เลือกเครื่องมือที่เอเจนต์สามารถใช้ได้
5. สร้างไฟล์ Markdown ของเอเจนต์
รัน `opencode debug agents` เพื่อแสดงรายการเอเจนต์ที่ OpenCode โหลดไว้
---
-32
View File
@@ -48,16 +48,6 @@ OpenCode CLI ยังมีคำสั่งย่อยอีกมากม
---
### agent
จัดการเอเจนต์สำหรับ OpenCode
```bash
opencode agent [command]
```
---
### attach
เชื่อมต่อกับเซิร์ฟเวอร์แบ็กเอนด์ OpenCode ที่กำลังทำงานอยู่ ซึ่งเริ่มต้นผ่านคำสั่ง `serve` หรือ `web`
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
สร้างเอเจนต์ใหม่
```bash
opencode agent create
```
คำสั่งนี้จะแนะนำคุณตลอดกระบวนการสร้างเอเจนต์ใหม่ พร้อมพรอมต์ระบบและความสามารถของเครื่องมือ
---
#### list
แสดงรายชื่อเอเจนต์ที่พร้อมใช้งานทั้งหมด
```bash
opencode agent list
```
---
### auth
จัดการการตรวจสอบสิทธิ์และข้อมูลรับรอง
+2 -12
View File
@@ -671,19 +671,9 @@ Mevcut modellerin listesini görmek için `opencode models` komutunu çalıştı
## Agent Oluşturma
Aşağıdaki komutu kullanarak yeni agent'lar oluşturabilirsiniz:
Yeni bir agent oluşturmak için proje düzeyinde `.opencode/agents/` dizinine veya global olarak `~/.config/opencode/agents/` dizinine bir Markdown dosyası ekleyin. Dosya adı agent'ın adı olur; frontmatter ise açıklamasını, modunu, modelini ve izinlerini yapılandırır. Dosya biçimi için yukarıdaki [Markdown](#markdown) bölümüne bakın.
```bash
opencode agent create
```
Bu etkileşimli komut şunları sağlayacaktır:
1. Agent'ı nereye kaydedeceğinizi sorar; küresel veya projeye özel.
2. Agent'ın ne yapması gerektiğinin açıklamasını ister.
3. Uygun bir sistem prompt'u ve tanımlayıcı oluşturur.
4. Agent'ın hangi araçlara erişebileceğini seçmenize izin verir.
5. Son olarak agent yapılandırmasıyla bir Markdown dosyası oluşturur.
OpenCode'un yüklediği agent'ları listelemek için `opencode debug agents` komutunu çalıştırın.
---
-32
View File
@@ -48,16 +48,6 @@ opencode CLI ayrıca aşağıdaki komutlara da sahiptir.
---
### agent
opencode için agent'ları yönetin.
```bash
opencode agent [command]
```
---
### attach
`serve` veya `web` komutlarıyla başlatılan, halihazırda çalışan bir opencode arka uç sunucusuna bir terminal ekleyin.
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
Özel yapılandırmaya sahip yeni bir agent oluşturun.
```bash
opencode agent create
```
Bu komut, özel sistem istemi ve araç yapılandırmasıyla yeni bir agent oluşturma konusunda size yol gösterecektir.
---
#### list
Mevcut tüm agent'ları listeleyin.
```bash
opencode agent list
```
---
### auth
Sağlayıcılar için kimlik bilgilerini ve oturum açmayı yönetme komutu.
+2 -12
View File
@@ -671,19 +671,9 @@ Only analyze code and suggest changes.
## 创建代理
您可以使用以下命令创建新代理:
要创建新代理,请将 Markdown 文件添加到项目的 `.opencode/agents/` 或全局的 `~/.config/opencode/agents/` 中。文件名即为代理名称,frontmatter 用于配置其描述、模式、模型和权限。文件格式请参阅上文的 [Markdown](#markdown)。
```bash
opencode agent create
```
此交互式命令将:
1. 询问代理的保存位置——全局或项目级。
2. 描述代理应该做什么。
3. 生成合适的系统提示词和标识符。
4. 让您选择代理可以访问哪些工具。
5. 最后,创建一个包含代理配置的 Markdown 文件。
运行 `opencode debug agents` 可列出 OpenCode 已加载的代理。
---
@@ -48,16 +48,6 @@ OpenCode CLI 还提供以下命令。
---
### agent
管理 OpenCode 的代理。
```bash
opencode agent [command]
```
---
### attach
将终端连接到已通过 `serve` 或 `web` 命令启动的 OpenCode 后端服务器。
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
使用自定义配置创建新的代理。
```bash
opencode agent create
```
此命令将引导您使用自定义系统提示词和工具配置来创建新的代理。
---
#### list
列出所有可用的代理。
```bash
opencode agent list
```
---
### auth
管理提供商的凭据和登录信息的命令。
+2 -12
View File
@@ -671,19 +671,9 @@ Only analyze code and suggest changes.
## 建立代理
您可以使用以下命令建立新代理:
要建立新代理,請將 Markdown 檔案新增到專案的 `.opencode/agents/` 或全域的 `~/.config/opencode/agents/` 中。檔案名稱即為代理名稱,frontmatter 用於設定其描述、模式、模型和權限。檔案格式請參閱上文的 [Markdown](#markdown)。
```bash
opencode agent create
```
此互動式命令將:
1. 詢問代理的儲存位置——全域或專案級。
2. 描述代理應該做什麼。
3. 產生合適的系統提示詞和識別碼。
4. 讓您選擇代理可以存取哪些工具。
5. 最後,建立一個包含代理設定的 Markdown 檔案。
執行 `opencode debug agents` 可列出 OpenCode 已載入的代理。
---
@@ -48,16 +48,6 @@ OpenCode CLI 還提供以下指令。
---
### agent
管理 OpenCode 的代理。
```bash
opencode agent [command]
```
---
### attach
將終端機連接到已透過 `serve` 或 `web` 指令啟動的 OpenCode 後端伺服器。
@@ -89,28 +79,6 @@ opencode attach http://10.20.30.40:4096
---
#### create
使用自訂設定建立新的代理。
```bash
opencode agent create
```
此指令將引導您使用自訂系統提示詞和工具設定來建立新的代理。
---
#### list
列出所有可用的代理。
```bash
opencode agent list
```
---
### auth
管理供應商的憑證和登入資訊的指令。