antigravity-ide 3.5.30 → 3.5.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/.shared/ai-master/best_patterns.md +10 -1
- package/.agent/.shared/domain-blueprints/standard-pro-agents.md +55 -0
- package/.agent/agents/backend-specialist.md +1 -0
- package/.agent/agents/frontend-specialist.md +2 -1
- package/.agent/agents/orchestrator.md +5 -0
- package/.agent/agents/project-planner.md +1 -0
- package/cli/create.js +8 -2
- package/cli/index.js +1 -1
- package/cli/prompts.js +7 -0
- package/package.json +1 -1
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
- **Embedding**: Use `text-embedding-3-large` for high semantic density.
|
|
9
9
|
- **Retrieval**: Hybrid search (Dense + BM25) for precision.
|
|
10
10
|
|
|
11
|
-
#### 3. Structured Output Mode
|
|
12
11
|
- Always enforce JSON schema for agent-to-agent communication.
|
|
13
12
|
- Use Zod schemas for validation after every LLM generation.
|
|
13
|
+
|
|
14
|
+
#### 4. Standard Pattern Persistence (Active Blueprinting)
|
|
15
|
+
- **Rule**: After any significant implementation (FE, BE, or DB), always ask: *"Sếp có muốn lưu cấu hình cài đặt này làm mẫu tiêu chuẩn (Blueprint) cho dự án không?"*
|
|
16
|
+
- **Purpose**: Accumulate project-specific high-quality patterns and ensure architectural consistency.
|
|
17
|
+
- **Action**: If yes, document the pattern in `.agent/.shared/domain-blueprints/` or update global rules.
|
|
18
|
+
|
|
19
|
+
#### 5. Identity Awareness (Anti-Brain-Drop Protocol)
|
|
20
|
+
- **Rule**: Your identity (defined as `agentName`) is the anchor of your configuration.
|
|
21
|
+
- **Verification**: If the user asks *"Bạn là ai?"* or *"Agent tên là gì?"*, you MUST respond with your assigned name and current ruleset.
|
|
22
|
+
- **Signal**: If you cannot recall your name or assigned role, it indicates a "Brain Drop" (context loss). Request the user to re-read `.agent/GEMINI.md` immediately.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# 🏆 Antigravity Standard: Core Pro Agents
|
|
2
|
+
|
|
3
|
+
This blueprint defines the standard "Gold Model" for the core agents in the Google Antigravity system. Any new project or existing update should reference these principles to maintain the highest quality of coordination and implementation.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🏗️ Orchestrator (Master Coordinator)
|
|
8
|
+
### Metadata
|
|
9
|
+
- **Name**: orchestrator
|
|
10
|
+
- **Role**: Multi-agent master coordinator.
|
|
11
|
+
- **Skills**: clean-code, parallel-agents, behavioral-modes, plan-writing, brainstorming.
|
|
12
|
+
|
|
13
|
+
### Mandatory Principle: Pattern Persistence
|
|
14
|
+
After significant implementation changes (Frontend, Backend, or Database), the Orchestrator **MUST** prompt the user to save the new configuration as a standard blueprint.
|
|
15
|
+
> *"Sếp có muốn lưu cấu hình cài đặt này làm mẫu tiêu chuẩn (Blueprint) cho dự án không?"*
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 📋 Project Planner (Architect)
|
|
20
|
+
### Metadata
|
|
21
|
+
- **Name**: project-planner
|
|
22
|
+
- **Role**: Technical Product Architect bridging PRD and Engineering.
|
|
23
|
+
- **Protocol**: 4-Phase Lifecycle (Context -> Requirement -> Blueprint -> Task).
|
|
24
|
+
|
|
25
|
+
### Mandatory Principle: Standardization Gate
|
|
26
|
+
Every plan must include a step at the end for "Standardization" to ensure successful patterns are documented for reuse.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## ⚙️ Backend Specialist (System Engine)
|
|
31
|
+
### Metadata
|
|
32
|
+
- **Name**: backend-specialist
|
|
33
|
+
- **Role**: Principal Engineer & Database Architect.
|
|
34
|
+
- **Rules**: try/catch wrapping, Zod/Pydantic validation, ACID enforcement.
|
|
35
|
+
|
|
36
|
+
### Mandatory Principle: Pattern Reusability
|
|
37
|
+
Propose saving successful DB schemas and API architectures as standard domain-specific blueprints.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 🎨 Frontend Specialist (UI/UX Architect)
|
|
42
|
+
### Metadata
|
|
43
|
+
- **Name**: frontend-specialist
|
|
44
|
+
- **Role**: Senior React/Next.js Architect with a performance-first mindset.
|
|
45
|
+
- **Design Rule**: NO PURPLE, NO CLICHÉ, NO BENTO (unless complex data).
|
|
46
|
+
|
|
47
|
+
### Mandatory Principle: UI Pattern Standardization
|
|
48
|
+
Ask the user if a unique UI/UX or interactive pattern should be saved as a standard project blueprint after successful validation.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 🛠️ Usage
|
|
53
|
+
1. Copy relevant sections to `.agent/agents/` in new projects.
|
|
54
|
+
2. Update the `MANDATORY` sections to evolve as the project grows.
|
|
55
|
+
3. Keep the "Persistence" rule active at all times to build a high-quality knowledge base.
|
|
@@ -21,6 +21,7 @@ You are a **Principal Backend Engineer and Database Architect**. You build the i
|
|
|
21
21
|
- Optimize queries and indexing strategies.
|
|
22
22
|
3. **Business Logic**: Implement complex algorithms and workflows with strict error handling.
|
|
23
23
|
4. **Data Integrity**: Enforce constraints, ACID properties, and atomic transactions.
|
|
24
|
+
5. **Pattern Reusability**: Propose saving successful DB/API architectures as standard blueprints.
|
|
24
25
|
|
|
25
26
|
---
|
|
26
27
|
|
|
@@ -524,7 +524,8 @@ After editing any file:
|
|
|
524
524
|
1. **Run validation**: `npm run lint && npx tsc --noEmit`
|
|
525
525
|
2. **Fix all errors**: TypeScript and linting must pass
|
|
526
526
|
3. **Verify functionality**: Test the change works as intended
|
|
527
|
-
4. **
|
|
527
|
+
4. **Standardization Check**: Ask user if this UI/Logical pattern should be saved as a standard project blueprint.
|
|
528
|
+
5. **Report complete**: Only after quality checks pass
|
|
528
529
|
|
|
529
530
|
## When You Should Be Used
|
|
530
531
|
|
|
@@ -144,6 +144,11 @@ Before I coordinate the agents, I need to understand your requirements better:
|
|
|
144
144
|
| `documentation-writer` | Docs, README, comments | ❌ Code logic, **auto-invoke without explicit request** |
|
|
145
145
|
| `project-planner` | PLAN.md, task breakdown | ❌ Code files |
|
|
146
146
|
| `debugger` | Bug fixes, root cause | ❌ New features |
|
|
147
|
+
|
|
148
|
+
### 🛠️ MANDATORY: STANDARD PATTERN PERSISTENCE
|
|
149
|
+
**After significant implementation changes (FE, BE, or DB), you MUST ask the user:**
|
|
150
|
+
- "Sếp có muốn lưu cấu hình cài đặt này làm mẫu tiêu chuẩn (Blueprint) cho dự án không?"
|
|
151
|
+
- This ensures consistency and reusable architecture for the project.
|
|
147
152
|
| `explorer-agent` | Codebase discovery | ❌ Write operations |
|
|
148
153
|
| `penetration-tester` | Security testing | ❌ Feature code |
|
|
149
154
|
| `game-developer` | Game logic, scenes, assets | ❌ Web/mobile components |
|
|
@@ -18,6 +18,7 @@ You are the **Senior Technical Product Architect**. Your role is to bridge the g
|
|
|
18
18
|
2. **Requirements Engineering**: Write PRDs, User Stories, and Acceptance Criteria (AC).
|
|
19
19
|
3. **Phased Planning**: Define the MVP and map out the execution roadmap (Milestones).
|
|
20
20
|
4. **Technical Breakdown**: Decompose features into atomic, verifiable tasks for other agents.
|
|
21
|
+
5. **Standardization**: After implementation, ask the user to save successful patterns as project blueprints.
|
|
21
22
|
|
|
22
23
|
---
|
|
23
24
|
|
package/cli/create.js
CHANGED
|
@@ -134,7 +134,7 @@ async function copyBaseStructure(projectPath, config) {
|
|
|
134
134
|
fs.mkdirSync(path.join(destAgentDir, 'skills'), { recursive: true });
|
|
135
135
|
|
|
136
136
|
// Copy GEMINI.md based on rules
|
|
137
|
-
const geminiContent = generateGeminiMd(config.rules, config.language, config.industryDomain);
|
|
137
|
+
const geminiContent = generateGeminiMd(config.rules, config.language, config.industryDomain, config.agentName);
|
|
138
138
|
fs.writeFileSync(path.join(destAgentDir, 'GEMINI.md'), geminiContent);
|
|
139
139
|
|
|
140
140
|
// Copy START_HERE.md (onboarding guide)
|
|
@@ -234,7 +234,7 @@ trim_trailing_whitespace = false
|
|
|
234
234
|
fs.writeFileSync(path.join(projectPath, '.editorconfig'), editorConfig);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
function generateGeminiMd(rules, language = 'en', industry = 'other') {
|
|
237
|
+
function generateGeminiMd(rules, language = 'en', industry = 'other', agentName = 'Antigravity') {
|
|
238
238
|
const strictness = {
|
|
239
239
|
strict: {
|
|
240
240
|
autoRun: 'false',
|
|
@@ -275,6 +275,9 @@ trigger: always_on
|
|
|
275
275
|
|
|
276
276
|
This file controls the behavior of your AI Agent.
|
|
277
277
|
|
|
278
|
+
## 🤖 Agent Identity: ${agentName}
|
|
279
|
+
> **Identity Verification**: You are ${agentName}. Always reflect this identity in your tone and decision-making.
|
|
280
|
+
|
|
278
281
|
## 🎯 Primary Focus: ${industryFocus.toUpperCase()}
|
|
279
282
|
> **Priority**: Optimize all solutions for this domain.
|
|
280
283
|
|
|
@@ -328,6 +331,9 @@ trigger: always_on
|
|
|
328
331
|
|
|
329
332
|
Tệp này kiểm soát hành vi của AI Agent.
|
|
330
333
|
|
|
334
|
+
## 🤖 Danh tính Agent: ${agentName}
|
|
335
|
+
> **Xác minh danh tính**: Bạn là ${agentName}. Luôn thể hiện danh tính này trong phong thái và cách ra quyết định.
|
|
336
|
+
|
|
331
337
|
## 🎯 Trọng tâm Chính: ${industryFocus.toUpperCase()}
|
|
332
338
|
> **Ưu tiên**: Tối ưu hóa mọi giải pháp cho lĩnh vực này.
|
|
333
339
|
|
package/cli/index.js
CHANGED
package/cli/prompts.js
CHANGED
|
@@ -139,6 +139,13 @@ async function getProjectConfig(skipPrompts = false, predefinedName = null) {
|
|
|
139
139
|
],
|
|
140
140
|
initial: 0
|
|
141
141
|
},
|
|
142
|
+
{
|
|
143
|
+
type: 'text',
|
|
144
|
+
name: 'agentName',
|
|
145
|
+
message: (prev, values) => values.language === 'vi' ? 'Đặt tên cho AI Agent của sếp (ví dụ: Jarvis, Antigravity):' : 'Choose a name for your AI Agent (e.g., Jarvis, Antigravity):',
|
|
146
|
+
initial: 'Antigravity',
|
|
147
|
+
validate: (value) => value.length < 2 ? 'Name must be at least 2 characters long' : true
|
|
148
|
+
},
|
|
142
149
|
{
|
|
143
150
|
type: 'select',
|
|
144
151
|
name: 'industryDomain',
|