@@ -5,7 +5,7 @@ doing, and the Agent can tell her what to say.*
55
66English | [ 简体中文] ( README.zh-CN.md )
77
8- Author: [ antianqi] ( https://github.com/antianqi ) · Version: ` 1.6 .0 ` ·
8+ Author: [ antianqi] ( https://github.com/antianqi ) · Version: ` 1.7 .0 ` ·
99Plugin ID: ` mmx-octopus ` · Category: ` Productivity `
1010
1111* The app interface is in Chinese.*
@@ -110,40 +110,28 @@ it like the rest of the port.
110110 ` context.pluginRoot ` : ` miniapp/node/identity/AGENTS.md ` and
111111 ` miniapp/node/identity/STORY.md ` (who she is), plus the page assets under
112112 ` miniapp/client/ ` .
113- - ** And one file of the Host's** — to keep the name in the Host's agent list in sync
114- with the name set in the panel, the runtime rewrites the ` displayName: ` line in the
115- frontmatter of the ` agent.md ` of ** the agent that has this Mini App installed** —
116- the one whose folder contains ` miniapps/<plugin-id> ` . It never goes looking for
117- other agents' files: it does not walk up the directory tree for an ` agent.md ` , and
118- it leaves every other agent's file alone. The ` agents ` folder is derived from this
119- package's own data directory rather than a hard-coded home path. ** This still
120- relies on the Host's on-disk layout, which is not a documented API.**
121- - ** What it writes** — four JSON files under ` context.dataDir ` , the private
122- directory the Host creates for this plugin: ` context.dataDir/state.json ` (her
123- expression, position, bubble and the Agent's busy state),
124- ` context.dataDir/chat.json ` (your chat with her),
113+ - ** What it writes** — and ** nothing else** . Four JSON files under
114+ ` context.dataDir ` , the private directory the Host creates for this plugin:
115+ ` context.dataDir/state.json ` (her expression, position, bubble and the Agent's
116+ busy state), ` context.dataDir/chat.json ` (your chat with her),
125117 ` context.dataDir/diary.json ` (her diary) and ` context.dataDir/style.json `
126118 (how she has learned to write). Every write is atomic — a temporary file in
127119 the same directory, then a rename — so a crash cannot leave a half-written
128- file behind.
129- - ** The two writes outside that folder** —
130- - ** ` AGENTS.md ` in the workspace directory of her own Agent session.** She keeps
131- her identity there. The Host re-reads that file every turn and puts it into the
132- system prompt, which is why her identity survives context compaction. It is
133- written atomically (a temporary file in the same directory, then a rename) and
134- only when its content differs from the template shipped in this package — so ** a
135- hand edit to it is lost on the next turn** . It belongs to this Mini App's own
136- agent workspace. It is written ** only when that workspace is this package's own
137- ` miniapps/<plugin-id> ` folder** ; if the Host resolves some other agent for her
138- and the workspace turns out to be a real project, the file is ** not** written and
139- her identity is passed in the message instead — so a project's own ` AGENTS.md `
140- is never overwritten.
141- - ** The ` displayName: ` line in the frontmatter of that agent's ` agent.md ` ** , so the
142- name in the Host's agent list follows the name set in the panel. Only that one
143- line is rewritten — the rest of the file is kept verbatim, and nothing is
144- written when the file has no frontmatter. It is written when the name changes;
145- the candidate files are tried in order and the runtime stops at the first one it
146- can use.
120+ file behind. ** No file outside ` context.dataDir ` is ever written** : not the
121+ Host's ` agent.md ` , not the ` AGENTS.md ` of the agent's workspace, nothing else.
122+ - ** Leftovers from earlier versions** — versions before 1.7.0 wrote an ` AGENTS.md `
123+ into the workspace of the agent that has this Mini App installed, to carry her
124+ identity there. That is no longer written and no longer needed. If you are
125+ upgrading from an earlier version the old file may still be there
126+ (` agents/<agent>/miniapps/<plugin-id>/AGENTS.md ` ) and you can delete it — the
127+ runtime never touches it, because a plugin must not write outside its own
128+ data directory.
129+ - ** How her identity reaches her** — in the message, every turn. Her character
130+ sheet (who she is, what she looks like, her rules) is read from this package's
131+ own ` miniapp/node/identity/AGENTS.md ` and passed inside each prompt, so no
132+ file has to be written for it. Because it travels in the conversation, the
133+ Host's context compaction may drop it — that is why it is sent again every
134+ turn.
147135- ** Sessions read** — the package declares ` session.read ` . It reads the title,
148136 the running state and the final reply of a turn, to tell whether the Agent is
149137 thinking or has finished, and to summarise the turn. The board in the panel
@@ -156,9 +144,11 @@ it like the rest of the port.
156144 none. It never runs turns on your own sessions.
157145- ** Agent turns it starts on its own** — besides your messages, the runtime starts
158146 a few turns by itself, and ** each of them uses your model quota** :
159- - ** Idle talk** — after 20 minutes of quiet she may start a conversation of her
160- own; at most 2 turns an hour, and at least 45 minutes apart. ** Turn it off in
161- the panel** : Settings → 「她没人的时候自己说话」 ("She talks when you are away").
147+ - ** Idle talk** — ** off by default** ; turn it on in the panel: Settings →
148+ 「她没人的时候自己说话」 ("She talks when you are away"). Once on, after 20
149+ minutes of quiet she may start a conversation of her own; at most 2 turns an
150+ hour, and at least 45 minutes apart. The same switch turns those turns off
151+ again.
162152 - ** A diary entry** — after a chat, if today has no entry yet, she writes one.
163153 - ** Style learning** — after a chat, your recent chat lines are sent to the model
164154 so she can pick up how you write.
0 commit comments