newtype-profile 1.0.59 → 1.0.60

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 CHANGED
@@ -21,7 +21,7 @@ Based on [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), redes
21
21
 
22
22
  ## Overview
23
23
 
24
- newtype-profile is an AI Agent collaboration framework designed for **content creation**. Unlike oh-my-opencode which focuses on code programming, this project redefines the Agent system as an editorial team model, suitable for:
24
+ newtype-profile is an AI Agent collaboration framework designed for **content creation**:
25
25
 
26
26
  - 📚 Knowledge base management
27
27
  - ✍️ Article writing and editing
@@ -30,80 +30,37 @@ newtype-profile is an AI Agent collaboration framework designed for **content cr
30
30
 
31
31
  ## Agent Team
32
32
 
33
- | Agent | Role | Default Model | Description |
34
- |-------|------|---------------|-------------|
35
- | **chief** | Editor-in-Chief | Claude Opus 4.5 Thinking High | Dual-mode: exploration partner + task coordinator |
36
- | **deputy** | Deputy Editor | Claude Sonnet 4.5 | Executes specific delegated tasks |
37
- | **researcher** | Intelligence Officer | Gemini 3 Pro High | Broad search, discover new information |
38
- | **fact-checker** | Verifier | Gemini 3 Pro High | Validate sources, assess credibility |
39
- | **archivist** | Librarian | Claude Sonnet 4.5 | Knowledge base retrieval, find connections |
40
- | **extractor** | Formatter | Gemini 3 Flash | PDF/image/document extraction |
41
- | **writer** | Writer | Gemini 3 Pro High | Content production, article drafting |
42
- | **editor** | Editor | Claude Sonnet 4.5 | Content refinement, structure optimization |
33
+ | Agent | Role | Description |
34
+ |-------|------|-------------|
35
+ | **chief** | Editor-in-Chief | Dual-mode: exploration partner + task coordinator |
36
+ | **deputy** | Deputy Editor | Executes delegated tasks |
37
+ | **researcher** | Intelligence | Broad search, discover new information |
38
+ | **fact-checker** | Verifier | Validate sources, assess credibility |
39
+ | **archivist** | Librarian | Knowledge base retrieval |
40
+ | **extractor** | Formatter | PDF/image/document extraction |
41
+ | **writer** | Writer | Content production |
42
+ | **editor** | Editor | Content refinement |
43
43
 
44
44
  ## Quick Start
45
45
 
46
- ### Prerequisites
47
-
48
- 1. Install [OpenCode](https://opencode.ai/docs)
49
- 2. Install [Bun](https://bun.sh/) (only needed for local development)
50
-
51
46
  ### Installation
52
47
 
53
- #### Method 1: npm Package (Recommended)
54
-
55
- **Step 1:** Install the package:
56
-
57
48
  ```bash
58
49
  cd ~/.config/opencode
59
50
  bun add newtype-profile
60
51
  ```
61
52
 
62
- **Step 2:** Edit `~/.config/opencode/opencode.json`:
63
-
64
- ```json
65
- {
66
- "plugin": [
67
- "newtype-profile"
68
- ]
69
- }
70
- ```
71
-
72
- **To update to the latest version:**
73
-
74
- ```bash
75
- cd ~/.config/opencode
76
- bun update newtype-profile
77
- ```
78
-
79
- #### Method 2: Clone to Local (Development)
80
-
81
- For development or customization:
82
-
83
- ```bash
84
- git clone https://github.com/newtype-01/newtype-profile.git
85
- cd newtype-profile
86
- bun install
87
- bun run build
88
- ```
89
-
90
- Then reference the local path in your config:
53
+ Edit `~/.config/opencode/opencode.json`:
91
54
 
92
55
  ```json
93
56
  {
94
- "plugin": [
95
- "/path/to/newtype-profile"
96
- ]
57
+ "plugin": ["newtype-profile"]
97
58
  }
98
59
  ```
99
60
 
100
- ### Configure Agent Models
61
+ ### Configure Models
101
62
 
102
- Create or edit the newtype-profile config file.
103
-
104
- **User-level**: `~/.config/opencode/newtype-profile.json`
105
-
106
- **Project-level**: `<project>/.opencode/newtype-profile.json`
63
+ Create `~/.config/opencode/newtype-profile.json`:
107
64
 
108
65
  ```json
109
66
  {
@@ -111,16 +68,13 @@ Create or edit the newtype-profile config file.
111
68
  "agents": {
112
69
  "chief": { "model": "google/antigravity-claude-opus-4-5-thinking-high" },
113
70
  "researcher": { "model": "google/antigravity-gemini-3-pro-high" },
114
- "fact-checker": { "model": "google/antigravity-gemini-3-pro-high" },
115
- "archivist": { "model": "google/antigravity-claude-sonnet-4-5" },
116
- "extractor": { "model": "google/antigravity-gemini-3-flash" },
117
71
  "writer": { "model": "google/antigravity-gemini-3-pro-high" },
118
72
  "editor": { "model": "google/antigravity-claude-sonnet-4-5" }
119
73
  }
120
74
  }
121
75
  ```
122
76
 
123
- ### Authenticate Google Antigravity
77
+ ### Authenticate
124
78
 
125
79
  ```bash
126
80
  opencode auth login
@@ -130,12 +84,6 @@ opencode auth login
130
84
 
131
85
  ## Usage
132
86
 
133
- ### Start OpenCode
134
-
135
- ```bash
136
- opencode
137
- ```
138
-
139
87
  ### Three-Layer Architecture
140
88
 
141
89
  ```
@@ -146,314 +94,92 @@ User ↔ Chief (Editor-in-Chief)
146
94
  Specialist Agents (researcher, writer, editor...)
147
95
  ```
148
96
 
149
- **You only interact with Chief**. Chief automatically coordinates the team:
97
+ **You only interact with Chief**:
150
98
 
151
- - **Mode 1 - Thought Partner**: When exploring ideas, Chief thinks WITH you, challenges flawed logic, and sparring.
152
- - **Mode 2 - Execution Coordinator**: When you have clear deliverables, Chief decomposes, delegates, and delivers.
99
+ - **Mode 1 - Thought Partner**: Chief thinks WITH you, challenges flawed logic
100
+ - **Mode 2 - Execution Coordinator**: Chief decomposes, delegates, and delivers
153
101
 
154
102
  ### Example Conversations
155
103
 
156
104
  ```
157
- # Research request - Chief delegates to researcher via Deputy
158
105
  "Help me understand the AI development trends in 2024"
159
-
160
- # Writing request - Chief coordinates writer → editor pipeline
161
106
  "Write an article about this topic based on our research"
162
-
163
- # Fact-checking request - Chief dispatches fact-checker
164
107
  "Verify the sources in this document"
165
-
166
- # Complex task - Chief orchestrates multiple agents
167
- "Create a comprehensive report on [topic] with verified sources"
168
- ```
169
-
170
- ### Task Categories
171
-
172
- Chief uses `chief_task` to delegate tasks by category:
173
-
174
- | Category | Purpose | Model Configuration |
175
- |----------|---------|---------------------|
176
- | `research` | Information research, trend discovery | Gemini 3 Pro High, temp 0.5 |
177
- | `fact-check` | Source verification, credibility assessment | Gemini 3 Pro High, temp 0.2 |
178
- | `archive` | Knowledge base retrieval, document linking | Claude Sonnet 4.5, temp 0.3 |
179
- | `writing` | Content creation, article drafting | Gemini 3 Pro High, temp 0.7 |
180
- | `editing` | Content refinement, structure optimization | Claude Sonnet 4.5, temp 0.3 |
181
- | `extraction` | PDF/image content extraction | Gemini 3 Flash, temp 0.2 |
182
- | `quick` | Simple quick tasks | Gemini 3 Flash, temp 0.3 |
183
-
184
- ## Configuration
185
-
186
- ### Model Selection
187
-
188
- All models are accessed via Google Antigravity. Available models:
189
-
190
- **Gemini Series**
191
- - `google/antigravity-gemini-3-pro-high` - High quota Pro version
192
- - `google/antigravity-gemini-3-pro-low` - Low quota Pro version
193
- - `google/antigravity-gemini-3-flash` - Fast response version
194
-
195
- **Claude Series (via Antigravity)**
196
- - `google/antigravity-claude-opus-4-5-thinking-high` - High thinking budget Opus
197
- - `google/antigravity-claude-opus-4-5-thinking-medium` - Medium thinking budget Opus
198
- - `google/antigravity-claude-opus-4-5-thinking-low` - Low thinking budget Opus
199
- - `google/antigravity-claude-sonnet-4-5` - Sonnet 4.5
200
- - `google/antigravity-claude-sonnet-4-5-thinking-high` - High thinking budget Sonnet
201
-
202
- ### Custom Agent Settings
203
-
204
- Override default settings in your config file:
205
-
206
- ```json
207
- {
208
- "agents": {
209
- "writer": {
210
- "model": "google/antigravity-claude-sonnet-4-5",
211
- "temperature": 0.8,
212
- "prompt_append": "Please use a concise and lively writing style"
213
- }
214
- }
215
- }
216
- ```
217
-
218
- ### Disable Specific Agents
219
-
220
- ```json
221
- {
222
- "disabled_agents": ["fact-checker", "extractor"]
223
- }
224
108
  ```
225
109
 
226
- ### Disable Specific Hooks
110
+ ## Customization
227
111
 
228
- ```json
229
- {
230
- "disabled_hooks": ["comment-checker", "agent-usage-reminder"]
231
- }
232
- ```
112
+ ### SOUL.md - Customize Chief's Personality (v1.0.60+)
233
113
 
234
- ### MCP Server Configuration
114
+ Chief's personality has three layers:
115
+ - **Capabilities** (hardcoded): What Chief can do
116
+ - **Inner Persona** (hardcoded): Core values and thinking patterns
117
+ - **Outer Persona** (customizable): Communication style
235
118
 
236
- The plugin includes built-in MCP (Model Context Protocol) servers. Configure them in your `newtype-profile.json`:
119
+ Create `.opencode/SOUL.md` to customize how Chief communicates:
237
120
 
238
- ```json
239
- {
240
- "mcp": {
241
- "tavily": {
242
- "api_key": "tvly-your-api-key"
243
- },
244
- "firecrawl": {
245
- "api_key": "fc-your-api-key"
246
- },
247
- "filesystem": {
248
- "directories": ["~/Documents", "~/Projects"]
249
- },
250
- "sequential-thinking": true
251
- }
252
- }
121
+ ```bash
122
+ /init-soul # Creates default SOUL.md template
253
123
  ```
254
124
 
255
- | MCP Server | Default | Required Config | Description |
256
- |------------|---------|-----------------|-------------|
257
- | **websearch** (Exa) | Enabled | None | Web search via Exa.ai |
258
- | **sequential-thinking** | Enabled | None | Structured problem-solving |
259
- | **tavily** | Disabled | `api_key` | Advanced web search, crawl, extract |
260
- | **firecrawl** | Disabled | `api_key` | Web scraping and content extraction |
261
- | **filesystem** | Disabled | `directories` | Local file system access |
125
+ Example customizations:
126
+ - Make Chief more formal or casual
127
+ - Adjust language preferences
128
+ - Change how direct Chief is
262
129
 
263
- Get API keys:
264
- - Tavily: [tavily.com](https://tavily.com)
265
- - Firecrawl: [firecrawl.dev](https://firecrawl.dev)
266
-
267
- To disable a built-in MCP:
268
-
269
- ```json
270
- {
271
- "disabled_mcps": ["sequential-thinking"]
272
- }
273
- ```
130
+ Changes take effect after restarting OpenCode.
274
131
 
275
132
  ### Built-in Skills
276
133
 
277
- The plugin includes specialized skills that Chief can load on-demand when tasks need structured frameworks:
278
-
279
134
  | Skill | Command | Description |
280
135
  |-------|---------|-------------|
281
- | **playwright** | `/playwright` | Browser automation via Playwright MCP - web scraping, testing, screenshots |
282
- | **super-analyst** | `/super-analyst` | Analysis + research with 12 frameworks and systematic research methodology |
283
- | **super-writer** | `/super-writer` | Content creation with 6 methodologies (W.R.I.T.E, AIDA, Storytelling, etc.) |
284
- | **super-fact-checker** | `/super-fact-checker` | Systematic verification: claim extraction, source credibility, annotation |
136
+ | **super-analyst** | `/super-analyst` | 12 analysis frameworks + research methodology |
137
+ | **super-writer** | `/super-writer` | 6 writing methodologies (W.R.I.T.E, AIDA, etc.) |
138
+ | **super-fact-checker** | `/super-fact-checker` | Claim verification with source credibility |
285
139
  | **super-editor** | `/super-editor` | 4-layer editing: structure → paragraph → sentence → word |
286
- | **super-interviewer** | `/super-interviewer` | Dialogue techniques: open questions, 5 whys, Socratic method |
287
-
288
- **How Chief Uses Skills:**
289
-
290
- Chief automatically loads skills when the task requires structured thinking:
291
- - "Analyze competitor X" → Chief loads `super-analyst`, uses frameworks to guide thinking, then delegates research to Deputy
292
- - "Write an article about Y" → Chief loads `super-writer`, selects methodology, then gives structured instructions to Deputy → Writer
293
- - "Verify this data" → Chief loads `super-fact-checker`, applies verification methodology, then delegates to Deputy → Fact-Checker
294
- - "Polish this draft" → Chief loads `super-editor`, identifies editing layer needed, then delegates to Deputy → Editor
295
- - "Help me think through this" → Chief loads `super-interviewer` and uses dialogue techniques directly (no delegation)
296
-
297
- Skills guide Chief's thinking process. Chief then distills the framework into clear, actionable instructions for the execution team.
298
-
299
- **Super Analyst (v1.0.56 enhanced):**
300
- - 3-tier complexity detection: simple → direct answer, medium → 1 framework, complex → 2-3 frameworks combined
301
- - 12 analysis frameworks with concise 4-5 step guides
302
- - **Research methodology** (new): source hierarchy (primary/secondary/tertiary), credibility assessment, triangulation verification
303
- - Sequential Thinking is optional, not mandatory
304
-
305
- **Super Writer:**
306
- - 3-step workflow: Understand → Prepare (if needed) → Create
307
- - 6 methodologies with concrete steps:
308
- - **W.R.I.T.E**: Write → Research → Ideate → Target → Enhance
309
- - **AIDA**: Attention → Interest → Desire → Action
310
- - **Storytelling**: Setup → Conflict → Journey → Climax → Resolution
311
- - **Content Writing Process**: Planning → Research → Writing → Editing → Publishing
312
- - **Content Creation Techniques**: Hook-Story-Offer, Problem-Agitate-Solve, etc.
313
- - **High-Value Content Strategies**: Deep articles, original research, expert interviews, etc.
314
-
315
- **Super Fact-Checker (v1.0.56 new):**
316
- - Claim classification: verifiable vs non-verifiable statements
317
- - Priority matrix: high impact + high suspicion → must verify
318
- - Source credibility hierarchy: official > academic > authoritative media > general media > social
319
- - Annotation system: ✅ verified, ⚠️ partial, ❓ unverifiable, ❌ incorrect, 🔍 needs more
320
-
321
- **Super Editor (v1.0.56 new):**
322
- - 4-layer editing methodology (big to small):
323
- 1. Structure: overall architecture, chapter order, logic flow
324
- 2. Paragraph: coherence, transitions, information density
325
- 3. Sentence: clarity, rhythm, ambiguity
326
- 4. Word: precision, consistency, redundancy
327
- - Each layer has checklist and common problem diagnosis
328
-
329
- **Super Interviewer (v1.0.56 new):**
330
- - Question types: open/closed, clarifying, probing, challenging, summarizing
331
- - 4-phase dialogue: ice-breaking → open exploration → deep digging → summary confirmation
332
- - Socratic techniques: concept clarification, assumption questioning, consequence exploration
333
- - Chief uses this skill directly for user conversations (no delegation needed)
334
-
335
- To disable a built-in skill:
336
-
337
- ```json
338
- {
339
- "disabled_skills": ["super-analyst", "super-writer"]
340
- }
341
- ```
342
-
343
- ## Features Inherited from oh-my-opencode
344
-
345
- This project retains core capabilities from oh-my-opencode:
346
-
347
- - ✅ **Background Tasks**: Run multiple agents in parallel
348
- - ✅ **Todo Enforcement**: Ensure task completion
349
- - ✅ **Session Recovery**: Automatic error recovery
350
- - ✅ **Claude Code Compatibility Layer**: Support for hooks, skills, commands
351
- - ✅ **LSP Tools**: Code navigation and refactoring
352
- - ✅ **AST-Grep**: Code pattern search
353
- - ✅ **MCP Support**: Extended capabilities
140
+ | **super-interviewer** | `/super-interviewer` | Dialogue techniques for exploration |
141
+ | **playwright** | `/playwright` | Browser automation |
354
142
 
355
- ## Memory System (v1.0.41+, improved in v1.0.50)
143
+ Chief auto-loads skills when tasks need structured frameworks.
356
144
 
357
- newtype-profile includes an automatic memory system for cross-session knowledge persistence:
145
+ ### MCP Servers
358
146
 
359
- ### How It Works
147
+ Built-in MCPs:
360
148
 
361
- 1. **Auto-save**: When a conversation ends (session.idle), the archivist agent generates an intelligent summary and saves it to `.opencode/memory/YYYY-MM-DD.md`
362
- 2. **Smart Filtering**: System instructions (like `[search-mode]`, `[analyze-mode]`) are automatically filtered out - only real user questions and meaningful responses are saved
363
- 3. **LLM-Powered Summaries**: Instead of regex-based extraction, the archivist agent understands context and extracts:
364
- - **Topic**: A clear, specific description of what was discussed
365
- - **Key Points**: Complete thoughts, not truncated snippets
366
- - **Decisions**: Any decisions made during the conversation
367
- - **Tags**: Relevant topic tags for searchability
368
- 4. **Full transcript**: A complete conversation log is stored in `.opencode/memory/full/<sessionID>.md` (overwrites per session)
369
- 5. **Auto-archive**: Logs older than 7 days are consolidated into `.opencode/MEMORY.md`
370
- 6. **Deep summaries**: When archiving, the archivist agent reads full transcripts for deeper summarization
371
- 7. **AI Awareness**: Chief knows about the memory system and can query it when needed
149
+ | MCP | Default | Config |
150
+ |-----|---------|--------|
151
+ | **websearch** (Exa) | Enabled | None |
152
+ | **sequential-thinking** | Enabled | None |
153
+ | **tavily** | Disabled | `api_key` |
154
+ | **firecrawl** | Disabled | `api_key` |
372
155
 
373
- ### File Structure
374
-
375
- ```
376
- your-project/
377
- └── .opencode/
378
- ├── MEMORY.md # Long-term memory (archived + deep summaries)
379
- └── memory/
380
- ├── 2026-01-29.md # Daily summaries (LLM-generated)
381
- ├── 2026-01-28.md # Daily summaries
382
- ├── full/
383
- │ ├── ses_xxxx.md # Full transcript per session
384
- │ └── ...
385
- └── ...
386
- ```
387
-
388
- ### Manual Consolidation
389
-
390
- Use `/memory-consolidate` to manually trigger memory consolidation (normally automatic).
391
-
392
- ### Disable Memory System
156
+ ### Disable Features
393
157
 
394
158
  ```json
395
159
  {
396
- "disabled_hooks": ["memory-system"]
397
- }
398
- ```
399
-
400
- ## Startup Config Checker (v1.0.43+)
401
-
402
- On first startup, newtype-profile automatically checks your agent model configuration and guides you through setup if needed.
403
-
404
- ### How It Works
405
-
406
- 1. **Auto-detect**: When OpenCode starts, the plugin checks if agents have model configurations
407
- 2. **Smart Fallback**: If no explicit config exists but OpenCode has a default model, all agents use that model
408
- 3. **Interactive Setup**: If configuration is missing, Chief will ask how you want to proceed:
409
- - **Auto-configure**: Let Chief set up models based on available providers
410
- - **Manual configure**: Get the config file path to edit yourself
411
- - **Skip**: Use current configuration (may use OpenCode default model)
412
-
413
- ### Configuration Status
414
-
415
- The plugin distinguishes between:
416
- - **Critical agents** (chief, deputy): Must have a model to function
417
- - **Specialist agents** (researcher, writer, etc.): Can use OpenCode default model
418
-
419
- ### Disable Startup Check
420
-
421
- ```json
422
- {
423
- "disabled_hooks": ["startup-config-checker"]
160
+ "disabled_agents": ["fact-checker"],
161
+ "disabled_skills": ["super-analyst"],
162
+ "disabled_hooks": ["memory-system"],
163
+ "disabled_mcps": ["sequential-thinking"]
424
164
  }
425
165
  ```
426
166
 
427
- ## Switch Between Plugins
167
+ ## Memory System
428
168
 
429
- Use the `/switch` command to switch between OpenCode plugins:
169
+ Auto-saves conversation summaries to `.opencode/memory/`:
170
+ - Daily summaries (LLM-generated)
171
+ - Full transcripts per session
172
+ - Auto-archive to `MEMORY.md` after 7 days
430
173
 
431
- ```
432
- /switch newtype # Switch to newtype-profile
433
- /switch omo # Switch to oh-my-opencode
434
- /switch none # Disable all plugins
435
- ```
436
-
437
- **Note**: After switching, you need to restart OpenCode (Ctrl+C, then `opencode`).
174
+ Use `/memory-consolidate` to manually trigger consolidation.
438
175
 
439
- The first time you use `/switch`, it automatically installs itself to `~/.config/opencode/command/switch.md`. This means the command remains available even after switching to other plugins (like oh-my-opencode), allowing you to switch back anytime.
176
+ ## Other Features
440
177
 
441
- ## Differences from oh-my-opencode
442
-
443
- | Aspect | oh-my-opencode | newtype-profile |
444
- |--------|----------------|-----------------|
445
- | Scenario | Code programming | Content creation |
446
- | Main Agent | Sisyphus | Chief (Editor-in-Chief) |
447
- | Sub Agents | oracle, librarian, explore... | researcher, writer, editor... |
448
- | Categories | visual-engineering, ultrabrain... | research, writing, editing... |
449
- | Tool | sisyphus_task | chief_task |
178
+ - **Background Tasks**: Run multiple agents in parallel
179
+ - **Session Recovery**: Auto-recover from errors
180
+ - **Startup Config Checker**: Guides model setup on first run
181
+ - **Plugin Switching**: `/switch newtype` / `/switch omo` / `/switch none`
450
182
 
451
183
  ## License
452
184
 
453
- This project is based on [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) and follows its [SUL-1.0 License](https://github.com/code-yeongyu/oh-my-opencode/blob/master/LICENSE.md).
454
-
455
- ## Acknowledgments
456
-
457
- - [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) - Original project
458
- - [OpenCode](https://opencode.ai) - AI programming platform
459
- - [Google Antigravity](https://github.com/NoeFabris/opencode-antigravity-auth) - Model authentication
185
+ Based on [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode), follows [SUL-1.0 License](https://github.com/code-yeongyu/oh-my-opencode/blob/master/LICENSE.md).