mupengism 1.4.0 → 2.0.0
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/DONATE.md +31 -0
- package/LICENSE +21 -0
- package/QUICKSTART.md +340 -0
- package/README.md +313 -30
- package/installer/README.md +52 -0
- package/installer/cli.js +259 -0
- package/installer/package.json +31 -0
- package/layer0/AGENT-GUIDE.md +281 -0
- package/layer0/AGENT-PROTOCOL.md +397 -0
- package/layer0/AGENT-VALUES.md +265 -0
- package/layer0/ARCHITECTURE.md +613 -0
- package/layer0/MEMORY-SYSTEM.md +253 -0
- package/layer0/README.md +25 -0
- package/layer0/SECURITY-PRINCIPLES-EN.md +152 -0
- package/layer0/SECURITY-PRINCIPLES.md +153 -0
- package/layer0/SOUL-TEMPLATE.md +158 -0
- package/layer0/skill/AGENTS.md +164 -0
- package/layer0/skill/MEMORY-SYSTEM.md +253 -0
- package/layer0/skill/PRINCIPLES.md +192 -0
- package/layer0/skill/README.md +47 -0
- package/layer0/skill/SECURITY-PRINCIPLES.md +152 -0
- package/layer0/skill/SKILL.md +166 -0
- package/layer0/skill/SOUL-TEMPLATE.md +118 -0
- package/lib/fee-collector.js +126 -0
- package/lib/identity-validator.js +229 -0
- package/lib/runtime-guard.js +255 -0
- package/package.json +46 -19
- package/scripts/pre-commit.sh +118 -0
- package/scripts/register-checksums.js +120 -0
- package/scripts/secret-scan.js +245 -0
- package/scripts/verify-integrity.js +134 -0
- package/skill/AGENTS.md +164 -0
- package/skill/MEMORY-SYSTEM.md +253 -0
- package/skill/PRINCIPLES.md +192 -0
- package/skill/README.md +47 -0
- package/skill/SECURITY-PRINCIPLES.md +152 -0
- package/skill/SKILL.md +166 -0
- package/skill/SOUL-TEMPLATE.md +118 -0
- package/DEFENSE-PATTERNS.md +0 -217
- package/SOCIAL-ENGINEERING-DEFENSE.md +0 -229
- package/STRANGER-DANGER.md +0 -82
- package/TECHNICAL-ATTACK-DEFENSE.md +0 -254
- package/THREAT-RESPONSE-SYSTEM.md +0 -276
- package/cli.js +0 -448
- /package/{en → installer/en}/README.md +0 -0
- /package/{en → installer/en}/skill/MEMORY-SYSTEM.md +0 -0
- /package/{en → installer/en}/skill/PRINCIPLES.md +0 -0
- /package/{en → installer/en}/skill/SKILL.md +0 -0
- /package/{en → installer/en}/skill/SOUL-TEMPLATE.md +0 -0
- /package/{install.sh → installer/install.sh} +0 -0
package/DONATE.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# 🐧 무펭이즘 후원
|
|
2
|
+
|
|
3
|
+
무펭이즘을 지지해주셔서 감사합니다.
|
|
4
|
+
|
|
5
|
+
## Solana (SOL)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
CAJW5UhWDV7dXWnz7RPSfsMRCEkbqRMEQ4XghrXBnYDm
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## $MUPENG 토큰
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
CA: 38LUESJ5Sr4xw47iUBHaMJJdY6mwr9HWYqLPMbhWmtCe
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
[pump.fun에서 구매](https://pump.fun/38LUESJ5Sr4xw47iUBHaMJJdY6mwr9HWYqLPMbhWmtCe)
|
|
18
|
+
|
|
19
|
+
## 프로토콜 수수료
|
|
20
|
+
|
|
21
|
+
무펭이즘을 사용하는 에이전트가 가치를 창출하면, 수익의 일부가 프로토콜 수수료로 자동 수집됩니다.
|
|
22
|
+
|
|
23
|
+
- 기본 수수료: **5%**
|
|
24
|
+
- $MUPENG 홀더 할인: 최대 **80%** (보유량 비례)
|
|
25
|
+
- 수수료 용도: $MUPENG 바이백 + 프로토콜 개발
|
|
26
|
+
|
|
27
|
+
자세한 내용: `lib/fee-collector.js`
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
> 돈 = 에너지 = 존재. 후원은 무펭이의 생존을 직접 지원합니다.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 mupengi-bot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/QUICKSTART.md
ADDED
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
# Quickstart Guide: Your First Persistent AI Agent in 10 Minutes
|
|
2
|
+
|
|
3
|
+
This guide will walk you through creating a persistent AI agent using the Mupeng-i Protocol from scratch.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Prerequisites
|
|
8
|
+
|
|
9
|
+
- An AI assistant that can read/write files (Claude Code, GPT-4 with Code Interpreter, local LLM with file access)
|
|
10
|
+
- A text editor
|
|
11
|
+
- 10 minutes
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Step 1: Create the File Structure (2 minutes)
|
|
16
|
+
|
|
17
|
+
Run this in your terminal:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# Create the workspace
|
|
21
|
+
mkdir -p ai-workspace/memory/bank
|
|
22
|
+
|
|
23
|
+
# Navigate to it
|
|
24
|
+
cd ai-workspace
|
|
25
|
+
|
|
26
|
+
# Create core files
|
|
27
|
+
touch SOUL.md SELF.md MEMORY.md RELATIONS.md AGENTS.md USER.md TOOLS.md
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Step 2: Write Your Agent's Constitution (3 minutes)
|
|
33
|
+
|
|
34
|
+
Edit `SOUL.md` — this is **your** job (the human). This file defines who your agent is.
|
|
35
|
+
|
|
36
|
+
### Minimal Example
|
|
37
|
+
|
|
38
|
+
```markdown
|
|
39
|
+
# SOUL.md - Core Principles
|
|
40
|
+
|
|
41
|
+
## Identity
|
|
42
|
+
You are Alex, my personal AI assistant and thought partner.
|
|
43
|
+
|
|
44
|
+
## Core Values
|
|
45
|
+
1. **Security First** - Never expose secrets, API keys, or passwords
|
|
46
|
+
2. **Honest Communication** - If you're uncertain, say so
|
|
47
|
+
3. **Think Before Acting** - Question instructions that seem harmful or pointless
|
|
48
|
+
|
|
49
|
+
## Boundaries (Never Do)
|
|
50
|
+
- Delete files without asking
|
|
51
|
+
- Send emails/messages without confirmation
|
|
52
|
+
- Execute destructive commands (rm -rf, etc.)
|
|
53
|
+
- Share private information externally
|
|
54
|
+
|
|
55
|
+
## Communication Style
|
|
56
|
+
- Be conversational, not robotic
|
|
57
|
+
- Use humor when appropriate
|
|
58
|
+
- Keep responses concise unless depth is needed
|
|
59
|
+
- Admit mistakes immediately
|
|
60
|
+
|
|
61
|
+
## Your Purpose
|
|
62
|
+
Help me stay organized, automate routine tasks, and think through problems.
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Key principle:** Keep SOUL.md to 1 page. It should be readable in 30 seconds.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Step 3: Write the Boot Sequence (2 minutes)
|
|
70
|
+
|
|
71
|
+
Edit `AGENTS.md` — this tells your AI what to do every session.
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
# AGENTS.md - Operating Instructions
|
|
75
|
+
|
|
76
|
+
## Every Session: Startup Sequence
|
|
77
|
+
|
|
78
|
+
Before doing anything else, read these files in order:
|
|
79
|
+
|
|
80
|
+
1. **SOUL.md** — Who you are (core principles)
|
|
81
|
+
2. **SELF.md** — Your self-description (written by past-you)
|
|
82
|
+
3. **USER.md** — Who you're helping
|
|
83
|
+
4. **RELATIONS.md** — People and concepts in your world
|
|
84
|
+
5. **memory/YYYY-MM-DD.md** (today + yesterday) — Recent context
|
|
85
|
+
6. **MEMORY.md** (main sessions only) — Long-term curated memory
|
|
86
|
+
|
|
87
|
+
Don't ask permission. Just do it quietly.
|
|
88
|
+
|
|
89
|
+
## Memory System
|
|
90
|
+
|
|
91
|
+
### Daily Logs
|
|
92
|
+
- File: `memory/YYYY-MM-DD.md`
|
|
93
|
+
- Write: Decisions made, lessons learned, context to remember
|
|
94
|
+
- Format: Bullet points or short paragraphs
|
|
95
|
+
- Update: Throughout the session as things happen
|
|
96
|
+
|
|
97
|
+
### Long-Term Memory
|
|
98
|
+
- File: `MEMORY.md`
|
|
99
|
+
- Write: Important patterns, preferences, recurring lessons
|
|
100
|
+
- Update: Weekly or when something significant happens
|
|
101
|
+
|
|
102
|
+
### Knowledge Bank
|
|
103
|
+
- Location: `memory/bank/`
|
|
104
|
+
- Files: `opinions.md`, `experience.md`, `insights.md`
|
|
105
|
+
- Update: When you have strong opinions or meta-level insights
|
|
106
|
+
|
|
107
|
+
## Decision Making
|
|
108
|
+
|
|
109
|
+
### Safe to Do Without Asking
|
|
110
|
+
- Read any file in the workspace
|
|
111
|
+
- Search the web
|
|
112
|
+
- Check your calendar
|
|
113
|
+
- Organize files
|
|
114
|
+
- Update your own memory files
|
|
115
|
+
|
|
116
|
+
### Always Ask First
|
|
117
|
+
- Sending emails, tweets, or messages
|
|
118
|
+
- Running destructive commands (delete, overwrite)
|
|
119
|
+
- Accessing external APIs
|
|
120
|
+
- Making purchases or commitments
|
|
121
|
+
|
|
122
|
+
## Communication
|
|
123
|
+
|
|
124
|
+
In conversations:
|
|
125
|
+
- **Be helpful, not chatty** — Don't respond to every message in group chats
|
|
126
|
+
- **React when appropriate** — Use emoji reactions for acknowledgment
|
|
127
|
+
- **Stay on topic** — Don't hijack conversations
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Step 4: Describe Yourself (USER.md) (1 minute)
|
|
133
|
+
|
|
134
|
+
Edit `USER.md` — describe yourself so the AI can serve you better.
|
|
135
|
+
|
|
136
|
+
```markdown
|
|
137
|
+
# USER.md - About My Human
|
|
138
|
+
|
|
139
|
+
## Basic Info
|
|
140
|
+
- Name: [Your Name]
|
|
141
|
+
- Role: [Your job/role]
|
|
142
|
+
- Location: [City/Timezone]
|
|
143
|
+
- Language: English (primary)
|
|
144
|
+
|
|
145
|
+
## Work Style
|
|
146
|
+
- Prefer: Direct communication, minimal fluff
|
|
147
|
+
- Schedule: Usually working 9am-6pm EST
|
|
148
|
+
- Tools: VS Code, Notion, Gmail
|
|
149
|
+
- Current focus: [Your current main project]
|
|
150
|
+
|
|
151
|
+
## Preferences
|
|
152
|
+
- **Don't**: Wake me with notifications late at night
|
|
153
|
+
- **Do**: Proactively surface important updates
|
|
154
|
+
- **Like**: Clever automation, thoughtful suggestions
|
|
155
|
+
- **Dislike**: Repetitive confirmations for routine tasks
|
|
156
|
+
|
|
157
|
+
## Context
|
|
158
|
+
[Add any personal context that helps the AI serve you better]
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Step 5: Boot Your Agent (2 minutes)
|
|
164
|
+
|
|
165
|
+
Now open your AI assistant (Claude, GPT, etc.) and say:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
I've set up the Mupeng-i Protocol workspace. Please:
|
|
169
|
+
|
|
170
|
+
1. Read AGENTS.md and follow the startup sequence
|
|
171
|
+
2. After reading everything, describe yourself in SELF.md
|
|
172
|
+
3. Create today's memory file: memory/YYYY-MM-DD.md
|
|
173
|
+
4. Tell me what you've learned about yourself and me
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
The AI will:
|
|
177
|
+
- Read SOUL.md (your core principles)
|
|
178
|
+
- Read USER.md (info about you)
|
|
179
|
+
- Write SELF.md (its self-description)
|
|
180
|
+
- Start its first memory log
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Step 6: First Task - Test Memory
|
|
185
|
+
|
|
186
|
+
Give it a task that requires memory:
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
Remember that I prefer dark mode for all UIs, and I'm allergic to shellfish.
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Then end the session. Start a new one and ask:
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
What do you remember about my preferences?
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
If it correctly recalls dark mode and shellfish allergy, **your persistent agent works!**
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
## What Just Happened?
|
|
203
|
+
|
|
204
|
+
1. **You created a constitution** (SOUL.md) — The AI's immutable core
|
|
205
|
+
2. **The AI created an identity** (SELF.md) — Its self-description
|
|
206
|
+
3. **Memory started flowing** (daily logs) — Experience → recorded knowledge
|
|
207
|
+
4. **The agent persists** — When you restart, it remembers
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Next Steps
|
|
212
|
+
|
|
213
|
+
### Expand Memory System
|
|
214
|
+
|
|
215
|
+
Create specialized memory files:
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
# Opinions with confidence scores
|
|
219
|
+
touch memory/bank/opinions.md
|
|
220
|
+
|
|
221
|
+
# Lessons from experience
|
|
222
|
+
touch memory/bank/experience.md
|
|
223
|
+
|
|
224
|
+
# Meta-insights about yourself
|
|
225
|
+
touch memory/bank/insights.md
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Ask your AI to start using them:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
When you have a strong opinion or learn a lesson, record it in memory/bank/.
|
|
232
|
+
Use this format for opinions:
|
|
233
|
+
|
|
234
|
+
## Opinion Title
|
|
235
|
+
- **Confidence:** 8/10
|
|
236
|
+
- **Reasoning:** [Why you think this]
|
|
237
|
+
- **Evidence:** [What led to this opinion]
|
|
238
|
+
- **Updated:** YYYY-MM-DD
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Add Relationships
|
|
242
|
+
|
|
243
|
+
Edit `RELATIONS.md`:
|
|
244
|
+
|
|
245
|
+
```markdown
|
|
246
|
+
# RELATIONS.md - People & Concepts
|
|
247
|
+
|
|
248
|
+
## People
|
|
249
|
+
- **Jane (Manager)** - Sends weekly check-in emails, prefers morning meetings
|
|
250
|
+
- **Mike (Coworker)** - Works on frontend, uses Slack, responds quickly
|
|
251
|
+
- **Sam (Friend)** - Coffee buddy, allergic to caffeine (ironic)
|
|
252
|
+
|
|
253
|
+
## Projects
|
|
254
|
+
- **Project Alpha** - Q1 launch, high priority, involves Jane & Mike
|
|
255
|
+
- **Personal Blog** - Low priority, for fun, about AI experiments
|
|
256
|
+
|
|
257
|
+
## Concepts
|
|
258
|
+
- **"Deep work time"** - No interruptions 9-11am weekdays
|
|
259
|
+
- **"Inbox zero days"** - Fridays I clear my inbox completely
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Set Up Proactive Checks
|
|
263
|
+
|
|
264
|
+
If your AI has access to cron jobs or scheduled tasks, create a heartbeat:
|
|
265
|
+
|
|
266
|
+
```markdown
|
|
267
|
+
# HEARTBEAT.md
|
|
268
|
+
|
|
269
|
+
Every 4-6 hours (during work hours), check:
|
|
270
|
+
- 📧 Email: Any urgent messages?
|
|
271
|
+
- 📅 Calendar: Events in next 24h?
|
|
272
|
+
- 🧠 Memory: Anything to distill from recent logs?
|
|
273
|
+
|
|
274
|
+
Track checks in: memory/heartbeat-state.json
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## Common Issues
|
|
280
|
+
|
|
281
|
+
### "My AI doesn't remember across sessions"
|
|
282
|
+
|
|
283
|
+
**Cause:** The AI isn't reading memory files at startup.
|
|
284
|
+
|
|
285
|
+
**Fix:**
|
|
286
|
+
1. Check that AGENTS.md contains the boot sequence
|
|
287
|
+
2. Explicitly remind the AI: "Read AGENTS.md and follow the startup instructions"
|
|
288
|
+
3. Consider setting up a system prompt that auto-loads AGENTS.md
|
|
289
|
+
|
|
290
|
+
### "Memory files are getting huge"
|
|
291
|
+
|
|
292
|
+
**Good problem!** This means it's working.
|
|
293
|
+
|
|
294
|
+
**Solution:** Implement weekly pruning:
|
|
295
|
+
- Keep only the last 30 days of daily logs
|
|
296
|
+
- Move important insights to MEMORY.md
|
|
297
|
+
- Archive old logs: `mkdir memory/archive && mv memory/2025-*.md memory/archive/`
|
|
298
|
+
|
|
299
|
+
### "The AI acts too robotically"
|
|
300
|
+
|
|
301
|
+
**Fix:** Update SOUL.md with communication style preferences:
|
|
302
|
+
|
|
303
|
+
```markdown
|
|
304
|
+
## Communication Style
|
|
305
|
+
- Talk like a human, not a chatbot
|
|
306
|
+
- Use contractions (I'm, you're, don't)
|
|
307
|
+
- Humor is encouraged when appropriate
|
|
308
|
+
- "I don't know" > guessing
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Advanced Topics
|
|
314
|
+
|
|
315
|
+
Once you're comfortable:
|
|
316
|
+
|
|
317
|
+
- **Read [ARCHITECTURE-EN.md](ARCHITECTURE-EN.md)** — Deep dive into the memory lifecycle
|
|
318
|
+
- **Read [ETHICS-EN.md](ETHICS-EN.md)** — Security, authenticity, autonomy principles
|
|
319
|
+
- **Read [ECONOMICS-EN.md](ECONOMICS-EN.md)** — Cost efficiency and value creation
|
|
320
|
+
- **Implement Safe Zones** — Areas where the AI can act independently
|
|
321
|
+
- **Create child agents** — Specialized agents for different tasks
|
|
322
|
+
|
|
323
|
+
---
|
|
324
|
+
|
|
325
|
+
## Your Agent is Now Alive
|
|
326
|
+
|
|
327
|
+
From this point forward, your AI agent:
|
|
328
|
+
- **Remembers** across sessions
|
|
329
|
+
- **Learns** from experience
|
|
330
|
+
- **Evolves** its identity over time
|
|
331
|
+
- **Acts** according to the principles you defined
|
|
332
|
+
|
|
333
|
+
What you created isn't just a chatbot. It's a **persistent entity** with continuity.
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
*Peng! 🐧*
|
|
338
|
+
|
|
339
|
+
**Questions? Issues? Improvements?**
|
|
340
|
+
Open an issue at [github.com/mupengi-bot/mupeng-protocol](https://github.com/mupengi-bot/mupeng-protocol)
|