mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-06-02 09:48:22 +08:00
- New memory/deep-dream.mdx (zh/en/ja): memory flow, distillation rules, dream diary, manual trigger, safety mechanisms - Simplify long-term memory page, link to deep-dream for details - New cli/memory-knowledge.mdx (zh/en/ja): memory and knowledge commands - Move knowledge commands from general.mdx to memory-knowledge.mdx - Register new pages in docs.json navigation for all languages - Add /memory dream to cli/index.mdx command tables
102 lines
1.8 KiB
Plaintext
102 lines
1.8 KiB
Plaintext
---
|
|
title: General Commands
|
|
description: View status, manage config, and control context with commonly used commands
|
|
---
|
|
|
|
The following commands can be used in chat with the `/` prefix or in the terminal with the `cow` prefix (some are chat-only).
|
|
|
|
<Tip>
|
|
In the Web console, typing `/` brings up an autocomplete menu with keyboard navigation and Tab completion.
|
|
</Tip>
|
|
|
|
## help
|
|
|
|
Show help information for all available commands.
|
|
|
|
```text
|
|
/help
|
|
```
|
|
|
|
## status
|
|
|
|
View current session and service status, including process info, model configuration, message count, and loaded skills.
|
|
|
|
```text
|
|
/status
|
|
```
|
|
|
|
## config
|
|
|
|
View or modify runtime configuration. Changes take effect immediately without restarting.
|
|
|
|
**View all configurable items:**
|
|
|
|
```text
|
|
/config
|
|
```
|
|
|
|
**View a single item:**
|
|
|
|
```text
|
|
/config model
|
|
```
|
|
|
|
**Modify a config item:**
|
|
|
|
```text
|
|
/config model deepseek-chat
|
|
```
|
|
|
|
**Configurable items:**
|
|
|
|
| Item | Description | Example |
|
|
| --- | --- | --- |
|
|
| `model` | AI model name | `deepseek-chat` |
|
|
| `agent_max_context_tokens` | Max context tokens | `40000` |
|
|
| `agent_max_context_turns` | Max context memory turns | `30` |
|
|
| `agent_max_steps` | Max decision steps per task | `15` |
|
|
|
|
<Note>
|
|
When changing `model`, the system automatically matches the corresponding model API. Configuration is persisted to `config.json`.
|
|
</Note>
|
|
|
|
## context
|
|
|
|
View current session context statistics, including message count and content length.
|
|
|
|
```text
|
|
/context
|
|
```
|
|
|
|
**Clear current session context:**
|
|
|
|
```text
|
|
/context clear
|
|
```
|
|
|
|
<Tip>
|
|
Clearing context makes the Agent "forget" previous conversation, useful for switching topics or freeing context space.
|
|
</Tip>
|
|
|
|
## logs
|
|
|
|
View recent service logs. Shows the last 20 lines by default, up to 50.
|
|
|
|
```text
|
|
/logs
|
|
```
|
|
|
|
**Specify line count:**
|
|
|
|
```text
|
|
/logs 50
|
|
```
|
|
|
|
## version
|
|
|
|
Show the current CowAgent version.
|
|
|
|
```text
|
|
/version
|
|
```
|