prompt-provider-commands-examples.mdโข3.57 kB
# Prompt Provider Commands: Example Usage
Below are example usages for all prompt-related commands in Cipher CLI. Each example includes a sample command and a dropdown with the expected output/result.
---
## 1. List Active and Available Providers
**Command:**
```bash
/prompt-providers list
```
<details>
<summary>Show Output</summary>
```
๐ System Prompt Providers (Enhanced Mode)
๐ข Active Providers:
๐ข user-instruction (static)
๐ข built-in-memory-search (static)
...
๐ก Available (Enabled, Not Yet Loaded):
๐ก summary (dynamic)
๐ก project-guidelines (file-based)
๐ก Use /prompt-providers add-dynamic or add-file to activate more providers.
```
</details>
---
## 2. Show All Providers (Enabled and Disabled)
**Command:**
```bash
/prompt-providers show-all
```
<details>
<summary>Show Output</summary>
```
๐ All Providers (Enabled and Disabled)
๐ข Active:
๐ข user-instruction (static)
...
๐ก Available (Enabled, Not Yet Loaded):
๐ก summary (dynamic)
๐ด Disabled:
๐ด project-guidelines (file-based)
๐ก Use /prompt-providers enable/disable to manage provider status.
```
</details>
---
## 3. Add a Dynamic Provider
**Command:**
```bash
/prompt-providers add-dynamic summary --history 10
```
<details>
<summary>Show Output</summary>
```
โ
Dynamic provider 'summary' added/updated.
๐ Generated summary for 'summary':
Summary: The conversation covers project setup, coding standards, and collaboration rules.
```
</details>
---
## 4. Add a File-Based Provider
**Command:**
```bash
/prompt-providers add-file project-guidelines --summarize true
```
<details>
<summary>Show Output</summary>
```
๐ก LLM summary generated and cached for file-based provider.
โ
File-based provider 'project-guidelines' added/updated.
```
</details>
---
## 5. Remove a Provider
**Command:**
```bash
/prompt-providers remove summary
```
<details>
<summary>Show Output</summary>
```
โ
Provider 'summary' removed.
```
</details>
---
## 6. Update a Providerโs Config
**Command:**
```bash
/prompt-providers update project-guidelines --summarize false
```
<details>
<summary>Show Output</summary>
```
โ
Provider 'project-guidelines' updated.
```
</details>
---
## 7. Enable a Provider
**Command:**
```bash
/prompt-providers enable project-guidelines
```
<details>
<summary>Show Output</summary>
```
โ
Provider 'project-guidelines' enabled.
```
</details>
---
## 8. Disable a Provider
**Command:**
```bash
/prompt-providers disable project-guidelines
```
<details>
<summary>Show Output</summary>
```
โ
Provider 'project-guidelines' disabled.
```
</details>
---
## 9. Show Current System Prompt
**Command:**
```bash
/prompt
```
<details>
<summary>Show Output</summary>
```
๐ Current System Prompt:
โญโ System Prompt โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ You are an AI programming assistant ... โ
โ ... โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
๐ก Prompt length: 1200 characters
๐ก Line count: 30 lines
```
</details>
---
## 10. Show Prompt Statistics
**Command:**
```bash
/prompt-stats
```
<details>
<summary>Show Output</summary>
```
๐ System Prompt Performance Statistics
๐ **Enhanced Generation Performance**
- Providers used: 7
- Total prompt length: 1200 characters
- Generation time: 120 ms
- Success: โ
```
</details>