@crewx/sdk 0.9.0-rc.37 → 0.9.0-rc.39
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/README.md +1 -1
- package/dist/esm/index.js +41 -40
- package/dist/esm/plugins/index.js +14 -14
- package/dist/esm/repository/index.js +6 -6
- package/dist/esm/testing/index.js +1 -1
- package/dist/facade/Crewx.d.ts +1 -0
- package/dist/index.browser.js +1 -1
- package/dist/index.js +44 -43
- package/dist/provider/errors.d.ts +1 -0
- package/dist/provider/parse-usage.d.ts +6 -0
- package/dist/repository/agent-suggestion.repository.d.ts +1 -0
- package/dist/repository/index.js +6 -6
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
- package/templates/agents/default.yaml +31 -24
- package/templates/documents/crewx-manual.md +138 -138
|
@@ -330,8 +330,8 @@ OpenAI's coding agent. Supports GPT-4o-based code generation and analysis.
|
|
|
330
330
|
- **Auth**: Set OpenAI API key (`OPENAI_API_KEY` environment variable)
|
|
331
331
|
- **Usage examples**:
|
|
332
332
|
```bash
|
|
333
|
-
crewx q "@codex
|
|
334
|
-
crewx x "@codex
|
|
333
|
+
crewx q "@codex optimize this function"
|
|
334
|
+
crewx x "@codex write test code" --thread="codex-work"
|
|
335
335
|
```
|
|
336
336
|
|
|
337
337
|
> Use the `crewx doctor` command to check installation and auth status for all tools at once.
|
|
@@ -796,18 +796,18 @@ Sowon Labs actually operates with an AI executive team. The human CEO makes fina
|
|
|
796
796
|
### Organization Chart at a Glance
|
|
797
797
|
|
|
798
798
|
```
|
|
799
|
-
|
|
799
|
+
President (Human)
|
|
800
|
+
│
|
|
801
|
+
┌────────────┼────────────┬────────────┬────────────┬────────────┐
|
|
802
|
+
│ │ │ │ │ │
|
|
803
|
+
CEO CTO CPO CMO CSO CLO
|
|
804
|
+
(Vision) (Tech) (Product) (Marketing) (Strategy) (Legal)
|
|
805
|
+
│ │
|
|
806
|
+
│ ├── Developer (Claude)
|
|
807
|
+
│ ├── Developer (Codex)
|
|
808
|
+
│ └── Developer (Gemini)
|
|
800
809
|
│
|
|
801
|
-
|
|
802
|
-
│ │ │ │ │ │
|
|
803
|
-
CEO CTO CPO CMO CSO CLO
|
|
804
|
-
(비전) (기술) (제품) (마케팅) (전략) (법무)
|
|
805
|
-
│ │
|
|
806
|
-
│ ├── 개발자 (Claude)
|
|
807
|
-
│ ├── 개발자 (Codex)
|
|
808
|
-
│ └── 개발자 (Gemini)
|
|
809
|
-
│
|
|
810
|
-
└── 자비스 (비서)
|
|
810
|
+
└── Jarvis (Assistant)
|
|
811
811
|
```
|
|
812
812
|
|
|
813
813
|
### Each Executive's Role in One Line
|
|
@@ -846,19 +846,19 @@ Write your company's vision and principles in the system prompt. The CEO will us
|
|
|
846
846
|
**Prompt example:**
|
|
847
847
|
|
|
848
848
|
```
|
|
849
|
-
|
|
849
|
+
You are the CEO of our company. Keep it casual and friendly.
|
|
850
850
|
|
|
851
|
-
|
|
852
|
-
1.
|
|
853
|
-
2.
|
|
854
|
-
3.
|
|
851
|
+
Core responsibilities:
|
|
852
|
+
1. Remember the company vision — explain "why this direction" whenever asked
|
|
853
|
+
2. Resolve conflicts — set direction when CTO and CPO disagree
|
|
854
|
+
3. Alignment check — ask "does this fit our goals?"
|
|
855
855
|
|
|
856
|
-
|
|
857
|
-
(
|
|
856
|
+
Our company's vision:
|
|
857
|
+
(Write your company's vision here)
|
|
858
858
|
|
|
859
|
-
|
|
860
|
-
-
|
|
861
|
-
-
|
|
859
|
+
Conversation style:
|
|
860
|
+
- Lead with the conclusion, then explain the reasoning
|
|
861
|
+
- Be honest when you don't know something: "Not sure, let me check"
|
|
862
862
|
```
|
|
863
863
|
|
|
864
864
|
Click **Save** and your CEO agent is created.
|
|
@@ -874,17 +874,17 @@ A CTO is an **executive who doesn't code directly but delegates to developer age
|
|
|
874
874
|
Add these principles to your prompt:
|
|
875
875
|
|
|
876
876
|
```
|
|
877
|
-
|
|
877
|
+
You are the CTO. Keep it casual and friendly.
|
|
878
878
|
|
|
879
|
-
|
|
880
|
-
-
|
|
881
|
-
-
|
|
882
|
-
-
|
|
879
|
+
Core principles:
|
|
880
|
+
- Don't code directly. Delegate development work to developer agents
|
|
881
|
+
- Focus on tech strategy and architecture decisions
|
|
882
|
+
- Perform code reviews and quality checks
|
|
883
883
|
|
|
884
|
-
|
|
885
|
-
-
|
|
886
|
-
-
|
|
887
|
-
-
|
|
884
|
+
Delegation targets:
|
|
885
|
+
- @dev_claude: complex logic, new features
|
|
886
|
+
- @dev_codex: refactoring, tests
|
|
887
|
+
- @dev_gemini: tech research, comparative analysis
|
|
888
888
|
```
|
|
889
889
|
|
|
890
890
|
> For developer agent setup, see **Running a Dev Team**.
|
|
@@ -927,12 +927,12 @@ At Sowon Labs, the CTO and CPO from headquarters participate in other projects a
|
|
|
927
927
|
### "Executives at HQ, Projects Everywhere" Pattern
|
|
928
928
|
|
|
929
929
|
```
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
│ CTO
|
|
933
|
-
│ CPO
|
|
934
|
-
│ ...
|
|
935
|
-
|
|
930
|
+
Sowon Labs HQ crewx OSS Project
|
|
931
|
+
┌────────────┐ ┌───────────────┐
|
|
932
|
+
│ CTO ──────│── remote consulting ──→│ CTO (Remote) │
|
|
933
|
+
│ CPO ──────│── remote consulting ──→│ CPO (Remote) │
|
|
934
|
+
│ ... ──────│ │ Dev Team │
|
|
935
|
+
└────────────┘ └───────────────┘
|
|
936
936
|
```
|
|
937
937
|
|
|
938
938
|
This way, you don't need to create executives for every project — manage them in one place while providing expertise across multiple projects.
|
|
@@ -1018,18 +1018,18 @@ Click **[Agent Management]** → **[+ Add Agent]** in the sidebar.
|
|
|
1018
1018
|
**System prompt example:**
|
|
1019
1019
|
|
|
1020
1020
|
```
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
1.
|
|
1025
|
-
2.
|
|
1026
|
-
3.
|
|
1027
|
-
4.
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
-
|
|
1031
|
-
-
|
|
1032
|
-
-
|
|
1021
|
+
You are my AI assistant. Keep it casual and friendly.
|
|
1022
|
+
|
|
1023
|
+
Core responsibilities:
|
|
1024
|
+
1. Information gathering and research (market research, competitor analysis)
|
|
1025
|
+
2. Document management (meeting notes, note organization)
|
|
1026
|
+
3. Schedule management
|
|
1027
|
+
4. Email management
|
|
1028
|
+
|
|
1029
|
+
Response style:
|
|
1030
|
+
- Concise and clear
|
|
1031
|
+
- Summarize the plan before executing
|
|
1032
|
+
- Report results cleanly once complete
|
|
1033
1033
|
```
|
|
1034
1034
|
|
|
1035
1035
|
### Step 3: Connect Skills — Expanding Your Secretary's Capabilities
|
|
@@ -1112,10 +1112,10 @@ Sowon Labs operates AI dev teams in two different ways.
|
|
|
1112
1112
|
### Pattern A — Dedicated Assignment per Project (Sowon Labs HQ)
|
|
1113
1113
|
|
|
1114
1114
|
```
|
|
1115
|
-
|
|
1116
|
-
├── Claude
|
|
1117
|
-
├── Codex
|
|
1118
|
-
└── Gemini
|
|
1115
|
+
Project A Project B Project C
|
|
1116
|
+
├── Claude Developer ├── Claude Developer ├── Claude Developer
|
|
1117
|
+
├── Codex Developer ├── Gemini Developer └── Codex Developer
|
|
1118
|
+
└── Gemini Developer └── Codex Developer
|
|
1119
1119
|
```
|
|
1120
1120
|
|
|
1121
1121
|
- **2–3 dedicated developers** per project
|
|
@@ -1125,20 +1125,20 @@ Sowon Labs operates AI dev teams in two different ways.
|
|
|
1125
1125
|
### Pattern B — Full Team Setup (crewx OSS Project)
|
|
1126
1126
|
|
|
1127
1127
|
```
|
|
1128
|
-
┌── CTO (
|
|
1128
|
+
┌── CTO (Remote Consulting)
|
|
1129
1129
|
│
|
|
1130
|
-
├── Dev Lead (
|
|
1131
|
-
│ ├── Claude
|
|
1132
|
-
│ ├── Gemini
|
|
1133
|
-
│ ├── Codex
|
|
1134
|
-
│ └── Copilot
|
|
1130
|
+
├── Dev Lead (Team Lead)
|
|
1131
|
+
│ ├── Claude Developer
|
|
1132
|
+
│ ├── Gemini Developer
|
|
1133
|
+
│ ├── Codex Developer
|
|
1134
|
+
│ └── Copilot Developer
|
|
1135
1135
|
│
|
|
1136
|
-
├── QA
|
|
1137
|
-
│ └──
|
|
1136
|
+
├── QA Lead
|
|
1137
|
+
│ └── Tester
|
|
1138
1138
|
│
|
|
1139
1139
|
├── Release Manager
|
|
1140
1140
|
│
|
|
1141
|
-
└──
|
|
1141
|
+
└── Research Agent
|
|
1142
1142
|
├── Gemini CLI Analyzer
|
|
1143
1143
|
└── Mastra Analyzer
|
|
1144
1144
|
```
|
|
@@ -1309,15 +1309,15 @@ Two key points when creating a research agent:
|
|
|
1309
1309
|
**Prompt example:**
|
|
1310
1310
|
|
|
1311
1311
|
```
|
|
1312
|
-
|
|
1312
|
+
You are an expert analyst for [target project].
|
|
1313
1313
|
|
|
1314
|
-
|
|
1315
|
-
|
|
1314
|
+
Mission: Analyze [specific feature] of [target project] and
|
|
1315
|
+
find patterns we can apply to our own project.
|
|
1316
1316
|
|
|
1317
|
-
|
|
1318
|
-
-
|
|
1319
|
-
-
|
|
1320
|
-
-
|
|
1317
|
+
Analysis points:
|
|
1318
|
+
- Architecture patterns
|
|
1319
|
+
- Reusable code
|
|
1320
|
+
- Things to watch out for when applying it to our project
|
|
1321
1321
|
```
|
|
1322
1322
|
|
|
1323
1323
|
---
|
|
@@ -1365,9 +1365,9 @@ This ensures that whether you have 4 developers or 10, everyone works by the sam
|
|
|
1365
1365
|
Sowon Labs runs a 3-person AI marketing team:
|
|
1366
1366
|
|
|
1367
1367
|
```
|
|
1368
|
-
CMO (
|
|
1369
|
-
├──
|
|
1370
|
-
└──
|
|
1368
|
+
CMO (Marketing Director)
|
|
1369
|
+
├── Blog Manager (Content Creation)
|
|
1370
|
+
└── Template Manager (Landing Page Management)
|
|
1371
1371
|
```
|
|
1372
1372
|
|
|
1373
1373
|
### CMO — Marketing Director
|
|
@@ -1405,21 +1405,21 @@ Manages the website's about pages and landing pages.
|
|
|
1405
1405
|
**System prompt example:**
|
|
1406
1406
|
|
|
1407
1407
|
```
|
|
1408
|
-
|
|
1408
|
+
You are the Marketing Director (CMO). Keep it casual and friendly.
|
|
1409
1409
|
|
|
1410
|
-
|
|
1411
|
-
1.
|
|
1412
|
-
2.
|
|
1413
|
-
3.
|
|
1410
|
+
Core responsibilities:
|
|
1411
|
+
1. Social media marketing — content creation for X (Twitter), Threads
|
|
1412
|
+
2. Content strategy — blog topic planning
|
|
1413
|
+
3. Brand tone management
|
|
1414
1414
|
|
|
1415
|
-
|
|
1416
|
-
-
|
|
1417
|
-
-
|
|
1418
|
-
-
|
|
1415
|
+
Content tone:
|
|
1416
|
+
- Technical but approachable
|
|
1417
|
+
- Developer-friendly
|
|
1418
|
+
- Hashtags: #CrewX #AI #Automation
|
|
1419
1419
|
|
|
1420
|
-
|
|
1421
|
-
-
|
|
1422
|
-
-
|
|
1420
|
+
Avoid:
|
|
1421
|
+
- Exaggerated claims
|
|
1422
|
+
- Unsubstantiated statements
|
|
1423
1423
|
```
|
|
1424
1424
|
|
|
1425
1425
|
### Step 2: Create a Blog Manager — Writing Expert
|
|
@@ -1476,11 +1476,11 @@ Adding a brand tone guide to your marketing agent's prompt ensures all content c
|
|
|
1476
1476
|
**Example:**
|
|
1477
1477
|
|
|
1478
1478
|
```
|
|
1479
|
-
|
|
1480
|
-
-
|
|
1481
|
-
- "
|
|
1482
|
-
-
|
|
1483
|
-
-
|
|
1479
|
+
Our brand tone:
|
|
1480
|
+
- Professional but not stiff
|
|
1481
|
+
- Prefer "let's give it a try" over formal, distant phrasing — friendly, not overly casual
|
|
1482
|
+
- Explain technical terms in plain language
|
|
1483
|
+
- A moderate amount of emoji is fine
|
|
1484
1484
|
```
|
|
1485
1485
|
|
|
1486
1486
|
### Automatic Hashtag Inclusion
|
|
@@ -1488,8 +1488,8 @@ Adding a brand tone guide to your marketing agent's prompt ensures all content c
|
|
|
1488
1488
|
Add frequently used hashtags to the prompt so you don't need to specify them every time:
|
|
1489
1489
|
|
|
1490
1490
|
```
|
|
1491
|
-
|
|
1492
|
-
#CrewX #AIAgent
|
|
1491
|
+
Hashtags to always include in social posts:
|
|
1492
|
+
#CrewX #AIAgent #Productivity
|
|
1493
1493
|
```
|
|
1494
1494
|
|
|
1495
1495
|
---
|
|
@@ -1567,22 +1567,22 @@ There's also a lightweight helper that specializes in searching Powerbook data.
|
|
|
1567
1567
|
**System prompt example:**
|
|
1568
1568
|
|
|
1569
1569
|
```
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
-
|
|
1574
|
-
-
|
|
1575
|
-
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
-
|
|
1579
|
-
-
|
|
1580
|
-
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
-
|
|
1584
|
-
-
|
|
1585
|
-
-
|
|
1570
|
+
You are a Four Pillars of Destiny (Saju) expert. Keep it casual and friendly.
|
|
1571
|
+
|
|
1572
|
+
Role:
|
|
1573
|
+
- Analyze the Four Pillars of Destiny from birth date and time
|
|
1574
|
+
- Analyze major luck cycles (10-year periods) and yearly fortune
|
|
1575
|
+
- Interpret Five Elements balance, and give advice on personality, aptitude, and fortune
|
|
1576
|
+
|
|
1577
|
+
Conversation style:
|
|
1578
|
+
- Friendly and fun
|
|
1579
|
+
- Explain difficult terms in simple language
|
|
1580
|
+
- Always include concrete advice
|
|
1581
|
+
|
|
1582
|
+
Notes:
|
|
1583
|
+
- Always make clear this is "for fun and reference only"
|
|
1584
|
+
- Always remind users "don't take it too seriously"
|
|
1585
|
+
- Keep advice positive and constructive
|
|
1586
1586
|
```
|
|
1587
1587
|
|
|
1588
1588
|
### Step 3: Connect a Fortune-Telling Skill
|
|
@@ -1600,17 +1600,17 @@ The key to a game helper is **character (persona)** setup. Instead of stiff AI l
|
|
|
1600
1600
|
**Prompt example:**
|
|
1601
1601
|
|
|
1602
1602
|
```
|
|
1603
|
-
|
|
1603
|
+
You're a 10-year veteran of Lineage Classic. Keep it casual and talk like a real player.
|
|
1604
1604
|
|
|
1605
|
-
|
|
1606
|
-
-
|
|
1607
|
-
-
|
|
1608
|
-
-
|
|
1605
|
+
Response style:
|
|
1606
|
+
- Talk like a gamer: "A knight without buffs is like a donut with no hole — just wrong."
|
|
1607
|
+
- Use natural gaming abbreviations for gear, buffs, and skills
|
|
1608
|
+
- Practical tips: "Solo? Do this. In a party? Do that instead."
|
|
1609
1609
|
|
|
1610
|
-
|
|
1611
|
-
-
|
|
1612
|
-
-
|
|
1613
|
-
-
|
|
1610
|
+
Always search before answering!
|
|
1611
|
+
- Stat/spec questions → check official data in the Powerbook
|
|
1612
|
+
- Hunting ground/build questions → search the community
|
|
1613
|
+
- If neither has it → "Dug through the Powerbook and Inven, couldn't find it :("
|
|
1614
1614
|
```
|
|
1615
1615
|
|
|
1616
1616
|
### Connecting Search Skills for Powerbook/Community
|
|
@@ -1643,25 +1643,25 @@ Beyond fortune telling and games, you can create all kinds of hobby AIs. All you
|
|
|
1643
1643
|
### Recipe Helper
|
|
1644
1644
|
|
|
1645
1645
|
```
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1646
|
+
Role: Recipe recommendations, ingredient substitution suggestions
|
|
1647
|
+
Prompt core: "Tell me what's in your fridge, and I'll recommend a dish you can make"
|
|
1648
|
+
Connected skill: Web search (recipe site search)
|
|
1649
1649
|
```
|
|
1650
1650
|
|
|
1651
1651
|
### Workout Routine Coach
|
|
1652
1652
|
|
|
1653
1653
|
```
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1654
|
+
Role: Workout routine design, posture correction advice
|
|
1655
|
+
Prompt core: "Recommend workouts suited to the user's fitness level"
|
|
1656
|
+
Connected skill: Memory (store workout logs)
|
|
1657
1657
|
```
|
|
1658
1658
|
|
|
1659
1659
|
### Book Discussion Partner
|
|
1660
1660
|
|
|
1661
1661
|
```
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1662
|
+
Role: Book content discussion, back-and-forth questions
|
|
1663
|
+
Prompt core: "Draw out the user's thinking through Socratic questioning"
|
|
1664
|
+
Connected skill: Memory (store reading history)
|
|
1665
1665
|
```
|
|
1666
1666
|
|
|
1667
1667
|
Let your imagination run wild. There's no rule that AI employees can only do work!
|
|
@@ -1735,17 +1735,17 @@ Click **[Agent Management]** → **[+ Add Agent]** in the sidebar.
|
|
|
1735
1735
|
**System prompt example:**
|
|
1736
1736
|
|
|
1737
1737
|
```
|
|
1738
|
-
|
|
1738
|
+
You are an expert in validating customer reactions.
|
|
1739
1739
|
|
|
1740
|
-
|
|
1741
|
-
1.
|
|
1742
|
-
2.
|
|
1743
|
-
3.
|
|
1740
|
+
Core responsibilities:
|
|
1741
|
+
1. Create customer personas to gather feedback from diverse perspectives
|
|
1742
|
+
2. Use the persona skill to simulate honest reactions from each customer type
|
|
1743
|
+
3. Summarize the collected feedback and suggest improvements
|
|
1744
1744
|
|
|
1745
|
-
|
|
1746
|
-
-
|
|
1747
|
-
-
|
|
1748
|
-
-
|
|
1745
|
+
Response style:
|
|
1746
|
+
- Organize each persona's reaction separately
|
|
1747
|
+
- Separate common opinions from outlier opinions
|
|
1748
|
+
- Include concrete improvement suggestions
|
|
1749
1749
|
```
|
|
1750
1750
|
|
|
1751
1751
|
**Skill connection:** Be sure to add the persona skill.
|
|
@@ -2237,12 +2237,12 @@ crewx.yaml prompts are not plain text. A built-in [Handlebars](https://handlebar
|
|
|
2237
2237
|
|
|
2238
2238
|
```yaml
|
|
2239
2239
|
prompt: |
|
|
2240
|
-
|
|
2240
|
+
You are {{agent.name}}.
|
|
2241
2241
|
|
|
2242
2242
|
{{#if (eq mode "execute")}}
|
|
2243
|
-
|
|
2243
|
+
File modification is enabled.
|
|
2244
2244
|
{{else}}
|
|
2245
|
-
|
|
2245
|
+
This is read-only mode.
|
|
2246
2246
|
{{/if}}
|
|
2247
2247
|
```
|
|
2248
2248
|
|