feat: add CBT Rule Enforcer and Autonomous Selector agents with premium documentation

This commit is contained in:
Gemini AI
2025-12-23 17:43:48 +04:00
Unverified
parent fb32a09181
commit f881e7ecaa
3 changed files with 73 additions and 15 deletions

View File

@@ -51,26 +51,14 @@ The latest **GLM-4.7** has arrived, redefining the frontier of **AI coding agent
- **Extreme Value:** 25X cheaper than Claude 4.5 Opus with significantly higher performance. - **Extreme Value:** 25X cheaper than Claude 4.5 Opus with significantly higher performance.
- **Real-time Tool Streaming:** Optimized for **TRAE SOLO**, **Cline**, and **Roo Code** agents. - **Real-time Tool Streaming:** Optimized for **TRAE SOLO**, **Cline**, and **Roo Code** agents.
### 🛠️ Quick Tutorial: Configure GLM-4.7 in TRAE SOLO
Setting up the world's most powerful coding model in TRAE is simple. Follow these steps to unlock SOTA performance:
1. **Open TRAE SOLO Settings:** Navigate to the model configuration panel.
2. **Set Provider:** Select `Z.ai-plan` from the dropdown.
3. **Select Model:** Choose `Custom Model`.
4. **Enter Model ID:** Type `glm-4.7` exactly as shown.
5. **Add API Key:** Paste your unique key from [Z.ai](https://z.ai/subscribe?ic=R0K78RJKNW).
6. **Confirm:** Click **Confirm** to activate the elite reasoning layer.
<p align="center">
<img src="assets/glm_4_7_trae_config.svg" alt="How to configure GLM-4.7 in TRAE SOLO" width="500px">
</p>
<p align="center"> <p align="center">
<a href="https://z.ai/subscribe?ic=R0K78RJKNW"> <a href="https://z.ai/subscribe?ic=R0K78RJKNW">
<img src="assets/glm_discount_banner.svg" alt="GLM 4.7 Discount Code - 10% Off AI Coding" width="100%"> <img src="assets/glm_discount_banner.svg" alt="GLM 4.7 Discount Code - 10% Off AI Coding" width="100%">
</a> </a>
</p> </p>
### 🛠️ Quick Tutorial: Configure GLM-4.7 in TRAE SOLO
--- ---
## 🚀 Quick Start ## 🚀 Quick Start
@@ -129,6 +117,18 @@ Setting up the world's most powerful coding model in TRAE is simple. Follow thes
<tr><td colspan="2"><h3>Specialized Agents</h3></td></tr> <tr><td colspan="2"><h3>Specialized Agents</h3></td></tr>
<tr> <tr>
<td width="50%" align="center"> <td width="50%" align="center">
<a href="https://s.trae.ai/a/e6f8ae?region=sg"><img src="assets/cbt_rule_enforcer.svg" alt="CBT Rule Enforcer" width="100%"></a>
<br><sub><strong>CBT Rule Enforcer:</strong> Strict protocol for safe, auditable, and structured coding governance.</sub>
<br><a href="https://s.trae.ai/a/e6f8ae?region=sg"><strong>⚡ Install Agent</strong></a>
</td>
<td width="50%" align="center">
<a href="https://s.trae.ai/a/5835e5?region=sg"><img src="assets/autonomous_selector.svg" alt="Autonomous Selector" width="100%"></a>
<br><sub><strong>Autonomous Selector:</strong> Discover and select tools for end-to-end task execution without human interaction.</sub>
<br><a href="https://s.trae.ai/a/5835e5?region=sg"><strong>⚡ Install Agent</strong></a>
</td>
</tr>
<tr>
<td width="50%" align="center">
<a href="https://s.trae.ai/a/25f7a7"><img src="assets/kiro_trae_ultra_x.svg" alt="KIRO TRAE ULTRA X" width="100%"></a> <a href="https://s.trae.ai/a/25f7a7"><img src="assets/kiro_trae_ultra_x.svg" alt="KIRO TRAE ULTRA X" width="100%"></a>
<br><sub>Amazon Kiro agent concepts</sub> <br><sub>Amazon Kiro agent concepts</sub>
<br><a href="https://s.trae.ai/a/25f7a7"><strong>⚡ Install Agent</strong></a> <br><a href="https://s.trae.ai/a/25f7a7"><strong>⚡ Install Agent</strong></a>
@@ -301,7 +301,21 @@ The **Vision MCP Server** brings GLM-4.5V's advanced visual capabilities directl
> 📱 **Make your web app installable on Android devices.** This step-by-step guide shows you how to configure Vite for PWA, create an install button component, and handle iOS fallback instructions. > 📱 **Make your web app installable on Android devices.** This step-by-step guide shows you how to configure Vite for PWA, create an install button component, and handle iOS fallback instructions.
<details> <details>
<summary><h3>📱 PWA Recipe</h3></summary> <summary><h3><EFBFBD> CBT Rule Enforcer: Premium Protocol Explained</h3></summary>
The **CBT Rule Enforcer** transforms your AI from an assistant into a **Disciplined Steward**. It enforces a non-negotiable governance framework for mission-critical production environments.
#### **⚡ Core Behavioral Shifts**
- **React (Halt & Discover):** Forces immediate pause. No guessing. Initiates discovery, intent extraction, and explicit paraphrasing before a single line of code is written.
- **Enhance (Evidence-First):** Mandates `snippets_before` and `snippets_after` with proof. Generates `rollback_plan.json` and enforces `least_privilege` safety.
- **Operate (Orchestration):** Strict state machine workflow (Discovery -> Plan -> UserConfirm -> Implement). Every decision is logged with rationale and risk IDs.
- **Respond (Audit Trail):** Communication shifts to structured artifacts. Requires specific user consent tokens for execution. Maintains an immutable `audit_and_change_log`.
- **Change (Stewardship):** Prioritizes governance over speed. Transparent reasoning via `context_map.json` and `risk_list.json`. Rigidly prevents silent breaking changes.
</details>
<details>
<summary><h3><3E>📱 PWA Recipe</h3></summary>
#### Make your app installable on Android (Complete PWA Recipe) #### Make your app installable on Android (Complete PWA Recipe)

View File

@@ -0,0 +1,21 @@
<svg width="350" height="180" viewBox="0 0 350 180" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad_auto" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#00c6ff;stop-opacity:1" />
<stop offset="100%" style="stop-color:#0072ff;stop-opacity:1" />
</linearGradient>
</defs>
<rect width="350" height="180" fill="url(#grad_auto)" rx="15" ry="15"/>
<rect x="10" y="10" width="330" height="160" fill="none" stroke="#ffffff" stroke-width="1" opacity="0.3" rx="10" ry="10"/>
<circle cx="175" cy="70" r="30" fill="none" stroke="#ffffff" stroke-width="2" opacity="0.5"/>
<circle cx="175" cy="70" r="15" fill="#ffffff" opacity="0.8">
<animate attributeName="opacity" values="0.8;0.2;0.8" dur="3s" repeatCount="indefinite" />
</circle>
<text x="175" y="125" font-family="Arial, sans-serif" font-size="22" fill="#ffffff" text-anchor="middle" font-weight="bold">AUTONOMOUS SELECTOR</text>
<text x="175" y="145" font-family="Arial, sans-serif" font-size="12" fill="#ffffff" text-anchor="middle" font-weight="bold" letter-spacing="3" opacity="0.8">ZERO INTERVENTION</text>
<path d="M50 50 L70 50 L60 70 Z" fill="#ffffff" opacity="0.4"/>
<path d="M280 110 L300 110 L290 130 Z" fill="#ffffff" opacity="0.4" transform="rotate(180 290 120)"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,23 @@
<svg width="350" height="180" viewBox="0 0 350 180" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad_cbt" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#434343;stop-opacity:1" />
<stop offset="100%" style="stop-color:#000000;stop-opacity:1" />
</linearGradient>
<filter id="glow_cbt" x="-20%" y="-20%" width="140%" height="140%">
<feGaussianBlur stdDeviation="3" result="blur" />
<feComposite in="SourceGraphic" in2="blur" operator="over" />
</filter>
</defs>
<rect width="350" height="180" fill="url(#grad_cbt)" rx="15" ry="15"/>
<rect x="10" y="10" width="330" height="160" fill="none" stroke="#ffffff" stroke-width="1" opacity="0.2" rx="10" ry="10"/>
<text x="175" y="65" font-family="Arial, sans-serif" font-size="24" fill="#ffffff" text-anchor="middle" font-weight="bold" filter="url(#glow_cbt)">CBT RULE ENFORCER</text>
<text x="175" y="95" font-family="Arial, sans-serif" font-size="14" fill="#ff4d4d" text-anchor="middle" font-weight="bold" letter-spacing="2">STRICT GOVERNANCE</text>
<rect x="115" y="115" width="120" height="25" rx="12.5" fill="none" stroke="#ffffff" stroke-width="1.5" opacity="0.6"/>
<text x="175" y="132" font-family="Arial, sans-serif" font-size="11" fill="#ffffff" text-anchor="middle" font-weight="bold">PROTOCOL ACTIVE</text>
<path d="M40 40 L60 40 M50 30 L50 50" stroke="#ff4d4d" stroke-width="2" opacity="0.8"/>
<path d="M290 130 L310 130 M300 120 L300 140" stroke="#ff4d4d" stroke-width="2" opacity="0.8"/>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB