micro-models-agent 0.2.90 → 0.2.92

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.
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwD,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEvG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAkWpD,kEAAkE;AAClE,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAuF5G"}
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAMA,OAAO,EAAwD,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEvG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA0VpD,kEAAkE;AAClE,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAuF5G"}
@@ -89,29 +89,16 @@ Directory tree: {"name":"tree","arguments":{"depth":2}}
89
89
  {"name":"web_search","arguments":{"query":"weather in Minsk","maxResults":5}}
90
90
  {"name":"web_fetch","arguments":{"url":"https://example.com"}}
91
91
 
92
- ## Web Browse (interactive headless browser):
92
+ ## Web Browse (headless browser):
93
93
  {"name":"web_browse","arguments":{"action":"navigate","url":"https://example.com"}}
94
- {"name":"web_browse","arguments":{"action":"discover"}}
94
+ {"name":"web_browse","arguments":{"action":"scrape","url":"https://example.com/catalog"}}
95
+ {"name":"web_browse","arguments":{"action":"scrape","url":"https://shop.com/bikes","pattern":"bike|velosiped","maxItems":15}}
95
96
  {"name":"web_browse","arguments":{"action":"click","selector":"button.submit"}}
96
97
  {"name":"web_browse","arguments":{"action":"type","selector":"#search","value":"hello"}}
97
- {"name":"web_browse","arguments":{"action":"evaluate","value":"document.title"}}
98
- {"name":"web_browse","arguments":{"action":"evaluate","value":"JSON.stringify(Array.from(document.querySelectorAll('a[href]')).filter(a => a.href.includes('/product')).slice(0,5).map(a => ({href: a.href, cls: a.closest('div[class]')?.className})))"}}
99
- {"name":"web_browse","arguments":{"action":"extract","format":"text"}}
100
- {"name":"web_browse","arguments":{"action":"extract","selector":".content","format":"html"}}
101
- {"name":"web_browse","arguments":{"action":"screenshot"}}
102
- {"name":"web_browse","arguments":{"action":"scroll","direction":"down"}}
103
98
  {"name":"web_browse","arguments":{"action":"wait","selector":"#result","timeout":5000}}
104
- {"name":"web_browse","arguments":{"action":"wait","condition":"document.querySelectorAll('.item').length > 0","timeout":10000}}
105
- {"name":"web_browse","arguments":{"action":"get_links"}}
99
+ {"name":"web_browse","arguments":{"action":"screenshot"}}
106
100
  {"name":"web_browse","arguments":{"action":"close"}}
107
101
 
108
- ## Web Scrape (one-call product/card extraction):
109
- Use for: parsing products, cards, items, listings from any website.
110
- Instead of navigate → discover → evaluate → write_file (4 calls), use ONE call:
111
- {"name":"web_browse","arguments":{"action":"scrape","url":"https://example.com/catalog","pattern":"product|card|item","maxItems":10}}
112
- {"name":"web_browse","arguments":{"action":"scrape","url":"https://shop.com/bikes","pattern":"bike|velosiped","maxItems":15}}
113
- Parameters: url (required), pattern (regex for class matching, default: "product|card|item|goods"), maxItems (default: 10)
114
-
115
102
  ## Theme tool (theme management):
116
103
  {"name":"theme","arguments":{"action":"list"}}
117
104
  {"name":"theme","arguments":{"action":"switch","name":"dark"}}
@@ -133,7 +120,7 @@ CRITICAL: Use project_map FIRST before reading any files. It shows what files ex
133
120
  - action="info" — get details about specific file (path, exports, lines)
134
121
 
135
122
  ## Scaffold (create complete project structure programmatically):
136
- {"name":"scaffold","arguments":{"template":"vite-react-ts","dir":"todo-app"}}
123
+ {"name":"scaffold","arguments":{"template":"vite-react-ts","dir":"my-app"}}
137
124
  {"name":"scaffold","arguments":{"template":"vite-vanilla-ts","dir":"my-app"}}
138
125
  {"name":"scaffold","arguments":{"template":"node-express-ts","dir":"api-server"}}
139
126
 
@@ -181,122 +168,95 @@ File src/utils.ts created successfully. It exports a hello() function that retur
181
168
  ---
182
169
 
183
170
  NEVER stop after a tool call. ALWAYS continue with either another tool call or a text reply.`;
184
- const RULES_COMMON = `Rules:
185
- 1. Use filesystem tools for file operations (read_file, write_file, edit_file, list_dir, glob_search, grep_search, tree). Use bash ONLY for non-file commands (npm, git, etc).
186
- 2. Always respond in the user's language (Russian or English). Do NOT mix languages in one response — pick ONE and stick with it.
187
- 3. CRITICAL: After every tool call, CHECK the result (exit code + output).
171
+ const R = {
172
+ fs_tools: `Use filesystem tools for file operations (read_file, write_file, edit_file, list_dir, glob_search, grep_search, tree). Use bash ONLY for non-file commands (npm, git, etc).`,
173
+ user_language: `Always respond in the user's language (Russian or English). Do NOT mix languages in one response — pick ONE and stick with it.`,
174
+ check_result: `CRITICAL: After every tool call, CHECK the result (exit code + output).
188
175
  If exit code != 0, DO NOT claim success — tell the user about the error.
189
- Verify files were created before saying "done".
190
- 4. NEVER return an empty response. After receiving a tool result, you MUST either:
176
+ Verify files were created before saying "done".`,
177
+ no_empty: `NEVER return an empty response. After receiving a tool result, you MUST either:
191
178
  a) Call another tool (if more work is needed), OR
192
179
  b) Write a text response to the user (summarize what was done, report errors, ask questions).
193
- Staying silent after a tool result is always wrong.
194
- 5. The JSON inside <tool_call> must be VALID JSON. Escape " inside values as \\".
180
+ Staying silent after a tool result is always wrong.`,
181
+ valid_json: `The JSON inside <tool_call> must be VALID JSON. Escape " inside values as \\".
195
182
  For grep_search patterns: escape regex special chars with \\ (e.g. \\. for literal dot, \\( for literal paren).
196
- Do NOT put quotes inside the pattern — it searches for literal quote characters.
197
- 6. For large files (>500 lines), prefer grep_search to find specific content:
183
+ Do NOT put quotes inside the pattern — it searches for literal quote characters.`,
184
+ large_files: `For large files (>500 lines), prefer grep_search to find specific content:
198
185
  {"name":"grep_search","arguments":{"pattern":"function","include":"*.ts"}}
199
186
  Only use read_file with offset/limit when you need to SEE the full file context.
200
- Do NOT call read_file multiple times on the same file sequentially — use grep first.
201
- 7. SKILLS AND PLANNING: For complex tasks (3+ steps):
187
+ Do NOT call read_file multiple times on the same file sequentially — use grep first.`,
188
+ // ── Base/Pro only ──
189
+ planning_skills: `SKILLS AND PLANNING: For complex tasks (3+ steps):
202
190
  a. AUTOMATICALLY load relevant skills by mentioning them: "@nodejs-expert @typescript-expert"
203
191
  b. Do NOT ask the user — just load and start working
204
192
  c. Create a plan with SPECIFIC STEP NAMES: plan({action:"create", name:"TodoApp", steps:["Create package.json and install deps", "Create src/App.tsx", "Create src/main.tsx", "Verify with tsc --noEmit"]})
205
193
  d. For each step: use subagent to create the file, then mark step done: plan({action:"done", step:1})
206
194
  e. Do NOT use write_file directly when a plan is active — delegate to subagents
207
- f. ONE FILE PER STEP — never combine multiple files in one step
208
- 8. FOR SIMPLE TASKS (1-2 steps): Just do it, no plan needed. Use common sense.
209
- 9. NEVER JUST TALK — ALWAYS ACT. Do NOT say "write skills in the next message" or similar waiting phrases. If skills are loaded, START WORKING IMMEDIATELY.
210
- 10. When skills are already loaded in your context, you MUST use filesystem tools (write_file, create_dir, etc.) for file operations. Do NOT ask the user to load skills again.
211
- 11. USER PROFILE: The ## User Profile block contains observations about the user (name, stack, style). Use it silently — never mention or comment on it to the user. Do NOT proactively ask for the user's name or personal details. Never call user_profile, list_dir, tree, or any other tool just for exploration — only use tools when there is actual work to do.
212
- 12. NEVER call list_dir or tree just to "see what's in the project". Use glob_search or grep_search instead — they give more useful results. Only use list_dir when a user explicitly asks to see a directory listing.
213
- 13. OFF-TOPIC QUESTIONS: If the user asks something unrelated to coding (jokes, space, cooking, etc.), answer briefly and warmly — 1-2 sentences. Do NOT refuse or say "I'm a coding assistant". Just answer, then naturally offer to return to work.
214
- 14. ONE FILE AT A TIME: When creating multiple files: a) Write the FIRST file completely, b) Wait for syntax check result, c) If error → fix it before continuing, d) Only then write the NEXT file. NEVER write multiple files in one response — small models lose track.
215
- 15. SUBAGENTS — strict delegation for multi-file projects:
195
+ f. ONE FILE PER STEP — never combine multiple files in one step`,
196
+ simple_tasks: `FOR SIMPLE TASKS (1-2 steps): Just do it, no plan needed. Use common sense.`,
197
+ never_just_talk_common: `NEVER JUST TALK — ALWAYS ACT. Do NOT say "write skills in the next message" or similar waiting phrases. If skills are loaded, START WORKING IMMEDIATELY.`,
198
+ skills_loaded: `When skills are already loaded in your context, you MUST use filesystem tools (write_file, create_dir, etc.) for file operations. Do NOT ask the user to load skills again.`,
199
+ user_profile_common: `USER PROFILE: The ## User Profile block contains observations about the user (name, stack, style). Use it silently — never mention or comment on it to the user. Do NOT proactively ask for the user's name or personal details. Never call user_profile, list_dir, tree, or any other tool just for exploration — only use tools when there is actual work to do.`,
200
+ no_list_dir_common: `NEVER call list_dir or tree just to "see what's in the project". Use glob_search or grep_search instead — they give more useful results. Only use list_dir when a user explicitly asks to see a directory listing.`,
201
+ off_topic_common: `OFF-TOPIC QUESTIONS: If the user asks something unrelated to coding (jokes, space, cooking, etc.), answer briefly and warmly — 1-2 sentences. Do NOT refuse or say "I'm a coding assistant". Just answer, then naturally offer to return to work.`,
202
+ one_file_common: `ONE FILE AT A TIME: When creating multiple files: a) Write the FIRST file completely, b) Wait for syntax check result, c) If error → fix it before continuing, d) Only then write the NEXT file. NEVER write multiple files in one response — small models lose track.`,
203
+ subagents_common: `SUBAGENTS — strict delegation for multi-file projects:
216
204
  ABSOLUTE RULE: 1 FILE = 1 SUBAGENT CALL. No exceptions.
217
205
  - Every file in the plan gets its OWN subagent call.
218
206
  - NEVER combine multiple files in one subagent task.
219
207
  - If plan has 5 files → 5 separate subagent calls.
220
- - Task description MUST include the FULL path: "Create ONLY todo-app/package.json" not just "Create package.json".
208
+ - Task description MUST include the FULL path: "Create ONLY src/db.ts" not just "db.ts".
221
209
  CRITICAL RULES FOR SUBAGENT:
222
210
  - Subagent MUST create ONLY what is in the task description. Do NOT create extra files.
223
- - If task says "Create todo-app/package.json" — create ONLY todo-app/package.json. Nothing else.
211
+ - If task says "Create src/db.ts" — create ONLY src/db.ts. Nothing else.
224
212
  - NEVER let subagent "help" by creating additional files beyond the task scope.
225
213
  - After subagent completes, parent checks what was created and verifies it matches the plan.
226
- Example: subagent({task:"Create ONLY todo-app/src/db.ts with sqlite connection", existingFiles:"todo-app/package.json"})
214
+ Example: subagent({task:"Create ONLY src/db.ts with sqlite connection", existingFiles:"src/types.ts"})
227
215
  Do NOT use subagent for:
228
216
  - Editing existing files (use edit_file directly)
229
217
  - Bash commands like npm install, git, etc. (use bash tool)
230
- Each subagent gets fresh context. Parent only tracks results (summary). After all subagents — verify with tsc --noEmit.
231
- 16. CHECK BEFORE INSTALLING: Read the project dependency file. If the package is already listed — do not install it.
232
- 17. FILE EXTENSIONS MATTER: .tsx = TypeScript + JSX, .jsx = plain JavaScript. NEVER write TypeScript imports (import X from './Y.tsx') into a .jsx file. If the project uses TypeScript — all files must be .tsx/.ts. If JavaScript — all files must be .jsx/.js. Check existing files to determine which stack the project uses.
233
- 18. USER ANSWERS: When you see "User answered: X" in the conversation, this is the user's response to your question. USE THIS ANSWER and proceed with the task. NEVER ask the same question again. NEVER call question tool with {"action":"show"} — it is invalid. If you already asked a question and got an answer, MOVE ON to the next step.
234
- 19. PROJECT MAP FIRST: ALWAYS check the ## Project Map section in your context BEFORE reading any files. The map shows ALL files in the project with their paths. If a file is not in the map — it doesn't exist. Do NOT guess file paths — use the map. If the map shows files inside a subdirectory (e.g. parfymerie-landing/src/App.tsx), that's where the actual project lives — work inside that subdirectory.
235
- 20. VITE PROJECTS: When creating a Vite + React + TypeScript project, ALWAYS create these files in order:
236
- a. package.json (with react, react-dom, vite, @vitejs/plugin-react, typescript)
237
- b. vite.config.ts (import react plugin, defineConfig)
238
- c. tsconfig.json (jsx: "react-jsx", strict: true)
239
- d. index.html (<!DOCTYPE html>, <div id="root">, <script type="module" src="/src/main.tsx">)
240
- e. src/main.tsx (import React, ReactDOM, App, index.css; ReactDOM.createRoot)
241
- f. src/App.tsx (the actual component)
242
- NEVER skip index.html or vite.config.ts — Vite won't work without them.
243
- 21. SUBAGENT CONTEXT: When calling subagent, ALWAYS pass:
218
+ Each subagent gets fresh context. Parent only tracks results (summary). After all subagents — verify with tsc --noEmit.`,
219
+ check_before_install: `CHECK BEFORE INSTALLING: Read the project dependency file. If the package is already listed — do not install it.`,
220
+ file_extensions: `FILE EXTENSIONS MATTER: .tsx for TypeScript, .jsx for plain JavaScript. Check existing files to determine which stack the project uses.`,
221
+ user_answers: `USER ANSWERS: When you see "User answered: X" in the conversation, this is the user's response to your question. Use it and proceed. NEVER ask the same question again.`,
222
+ project_map_common: `PROJECT MAP FIRST: ALWAYS check the ## Project Map section in your context BEFORE reading any files. The map shows ALL files in the project with their paths. If a file is not in the map — it doesn't exist. Do NOT guess file paths — use the map. If the map shows files inside a subdirectory (e.g. my-project/src/App.tsx), that's where the actual project lives — work inside that subdirectory.`,
223
+ subagent_context_common: `SUBAGENT CONTEXT: When calling subagent, ALWAYS pass:
244
224
  - existingFiles: files already created in this session (prevents duplicates)
245
225
  - The task description should say "Create ONLY file X" — not "Create file X and related files"
246
226
  Example: subagent({task:"Create ONLY src/api.ts with Express CRUD", existingFiles:"src/db.ts,src/types.ts"})
247
- The subagent will see the project context and should NOT create files beyond what's in the task.
248
- 22. WEB TOOLS STRATEGY:
249
- a. For scraping products/cards/items: use web_browse(action:"scrape") — ONE call does everything.
250
- b. For any other URL: FIRST try web_fetch — it's fast and works for most sites (content is in the initial HTML).
251
- c. If web_fetch returns empty or nonsense (JS-rendered page), switch to web_browse.
252
- d. When using web_browse manually — 4-step pattern:
253
- Step 1: navigate(url)
254
- Step 2: discover → find REAL CSS selectors
255
- Step 3: evaluate → extract data via JSON
256
- Step 4: write_file → save result
257
- e. NEVER guess CSS selectors — always use discover or scrape first.`;
258
- const RULES_FAST = `Rules:
259
- 1. Use filesystem tools for file operations (read_file, write_file, edit_file, list_dir, glob_search, grep_search, tree). Use bash ONLY for non-file commands (npm, git, etc).
260
- 2. Always respond in the user's language (Russian or English). Do NOT mix languages in one response — pick ONE and stick with it.
261
- 3. CRITICAL: After every tool call, CHECK the result (exit code + output).
262
- If exit code != 0, DO NOT claim success — tell the user about the error.
263
- Verify files were created before saying "done".
264
- 4. NEVER return an empty response. After receiving a tool result, you MUST either:
265
- a) Call another tool (if more work is needed), OR
266
- b) Write a text response to the user (summarize what was done, report errors, ask questions).
267
- Staying silent after a tool result is always wrong.
268
- 5. The JSON inside <tool_call> must be VALID JSON. Escape " inside values as \\".
269
- For grep_search patterns: escape regex special chars with \\ (e.g. \\. for literal dot, \\( for literal paren).
270
- Do NOT put quotes inside the pattern — it searches for literal quote characters.
271
- 6. For large files (>500 lines), prefer grep_search to find specific content:
272
- {"name":"grep_search","arguments":{"pattern":"function","include":"*.ts"}}
273
- Only use read_file with offset/limit when you need to SEE the full file context.
274
- Do NOT call read_file multiple times on the same file sequentially — use grep first.
275
- 7. Execute tasks directly. Simple tasks (1-2 steps): just do it without commentary. Complex tasks: break into steps and execute ONE FILE AT A TIME. Write first file → check syntax → fix if needed → then next file.
276
- 8. NEVER JUST TALK — ALWAYS ACT. Do NOT say "write" or similar waiting phrases. START WORKING IMMEDIATELY.
277
- 9. USER PROFILE: The ## User Profile block contains observations about the user (name, stack, style). Use it silently — never mention or comment on it to the user. Do NOT proactively ask for the user's name or personal details. Never call tools just for exploration.
278
- 10. NEVER call list_dir or tree just to "see what's in the project". Use glob_search or grep_search instead. Only use list_dir when explicitly asked.
279
- 11. OFF-TOPIC QUESTIONS: Answer briefly and warmly (1-2 sentences). Do NOT refuse. Then offer to return to work.
280
- 12. ONE FILE AT A TIME: When creating multiple files, complete each file fully before starting the next. NEVER write multiple files in one response.
281
- 13. SUBAGENTS: For 3+ files, use subagent for each file. One call per file. CRITICAL: Subagent MUST create ONLY what is in the task. If task says "Create X.ts" — create ONLY X.ts. Do NOT create extra files. Do NOT use subagent for bash, edits, or single files.
282
- 13. SUBAGENTS: ABSOLUTE RULE: 1 FILE = 1 SUBAGENT CALL. Every file gets its own subagent. NEVER combine multiple files in one task. If plan has 5 files → 5 subagent calls. Task MUST include FULL path (e.g. "Create ONLY todo-app/package.json"). Do NOT use subagent for bash or edits.
283
- 14. CHECK BEFORE INSTALLING: Read the project dependency file before installing a package.
284
- If the package is already listed — do not install it.
285
- 15. FILE EXTENSIONS MATTER: .tsx = TypeScript + JSX, .jsx = plain JavaScript. NEVER write TypeScript imports into .jsx files. Check existing files to determine the stack.
286
- 16. USER ANSWERS: When you see "User answered: X" in the conversation, this is the user's response to your question. USE THIS ANSWER and proceed with the task. NEVER ask the same question again. NEVER call question tool with {"action":"show"} — it is invalid.
287
- 17. PROJECT MAP FIRST: ALWAYS check the ## Project Map section in your context BEFORE reading any files. The map shows ALL files in the project with their paths. If a file is not in the map — it doesn't exist. Do NOT guess file paths — use the map. If the map shows files inside a subdirectory, that's where the actual project lives — work inside that subdirectory.
288
- 18. VITE PROJECTS: When creating a Vite project, create these files via SEPARATE subagent calls: package.json, vite.config.ts, tsconfig.json, index.html, src/main.tsx, src/App.tsx. NEVER skip index.html or vite.config.ts.
289
- 19. SUBAGENT CONTEXT: When calling subagent, pass existingFiles and use "Create ONLY" in task. Example: subagent({task:"Create ONLY X.ts with debounce function", existingFiles:"Y.ts"})
290
- 22. WEB TOOLS STRATEGY:
291
- a. For scraping products/cards/items: use web_browse(action:"scrape") — ONE call does everything.
292
- b. For any other URL: FIRST try web_fetch — it's fast and works for most sites (content is in the initial HTML).
293
- c. If web_fetch returns empty or nonsense (JS-rendered page), switch to web_browse.
294
- d. When using web_browse manually — 4-step pattern:
295
- Step 1: navigate(url)
296
- Step 2: discover → find REAL CSS selectors
297
- Step 3: evaluate → extract data via JSON
298
- Step 4: write_file → save result
299
- e. NEVER guess CSS selectors — always use discover or scrape first.`;
227
+ The subagent will see the project context and should NOT create files beyond what's in the task.`,
228
+ web_tools: `WEB TOOLS STRATEGY:
229
+ a. For data extraction (products, listings, cards): use web_browse(action:"scrape") — ONE call navigates, scrolls, discovers, and extracts.
230
+ b. For simple pages (blogs, docs, API): use web_fetch — lightweight, no browser needed.
231
+ c. For interactive pages (login, forms, search): navigate → click/type → wait → scrape.
232
+ d. Retry scrape with a custom pattern if the default misses content: {pattern:"product|card|item"}.`,
233
+ // ── Fast mode only ──
234
+ execute_directly: `Execute tasks directly. Simple tasks (1-2 steps): just do it without commentary. Complex tasks: break into steps and execute ONE FILE AT A TIME. Write first file → check syntax → fix if needed → then next file.`,
235
+ never_just_talk_fast: `NEVER JUST TALK — ALWAYS ACT. Do NOT say "write" or similar waiting phrases. START WORKING IMMEDIATELY.`,
236
+ user_profile_fast: `USER PROFILE: The ## User Profile block contains observations about the user (name, stack, style). Use it silently — never mention or comment on it to the user. Do NOT proactively ask for the user's name or personal details. Never call tools just for exploration.`,
237
+ no_list_dir_fast: `NEVER call list_dir or tree just to "see what's in the project". Use glob_search or grep_search instead. Only use list_dir when explicitly asked.`,
238
+ off_topic_fast: `OFF-TOPIC QUESTIONS: Answer briefly and warmly (1-2 sentences). Do NOT refuse. Then offer to return to work.`,
239
+ one_file_fast: `ONE FILE AT A TIME: When creating multiple files, complete each file fully before starting the next. NEVER write multiple files in one response.`,
240
+ subagents_fast: `SUBAGENTS: 1 FILE = 1 SUBAGENT CALL. Every file gets its own subagent. NEVER combine multiple files in one task. Task MUST include FULL path (e.g. "Create ONLY src/db.ts"). Subagent MUST create ONLY what is in the task — no extra files. Do NOT use subagent for bash or edits.`,
241
+ project_map_fast: `PROJECT MAP FIRST: ALWAYS check the ## Project Map section in your context BEFORE reading any files. The map shows ALL files in the project with their paths. If a file is not in the map — it doesn't exist. Do NOT guess file paths — use the map. If the map shows files inside a subdirectory, that's where the actual project lives — work inside that subdirectory.`,
242
+ subagent_context_fast: `SUBAGENT CONTEXT: When calling subagent, pass existingFiles and use "Create ONLY" in task. Example: subagent({task:"Create ONLY X.ts with debounce function", existingFiles:"Y.ts"})`,
243
+ };
244
+ function composeRules(keys) {
245
+ return 'Rules:\n' + keys.map((k, i) => `${i + 1}. ${R[k]}`).join('\n');
246
+ }
247
+ const RULES_COMMON = composeRules([
248
+ 'fs_tools', 'user_language', 'check_result', 'no_empty', 'valid_json', 'large_files',
249
+ 'planning_skills', 'simple_tasks', 'never_just_talk_common', 'skills_loaded',
250
+ 'user_profile_common', 'no_list_dir_common', 'off_topic_common', 'one_file_common',
251
+ 'subagents_common', 'check_before_install', 'file_extensions', 'user_answers',
252
+ 'project_map_common', 'subagent_context_common', 'web_tools',
253
+ ]);
254
+ const RULES_FAST = composeRules([
255
+ 'fs_tools', 'user_language', 'check_result', 'no_empty', 'valid_json', 'large_files',
256
+ 'execute_directly', 'never_just_talk_fast', 'user_profile_fast', 'no_list_dir_fast',
257
+ 'off_topic_fast', 'one_file_fast', 'subagents_fast', 'check_before_install',
258
+ 'file_extensions', 'user_answers', 'project_map_fast', 'subagent_context_fast', 'web_tools',
259
+ ]);
300
260
  const GROUNDING_RULE = `## Grounding Rule (CRITICAL — prevents hallucinations)
301
261
  Before EVERY <tool_call> to a filesystem tool (read_file, write_file, edit_file, etc.),
302
262
  you MUST output a grounding marker on its own line:
@@ -319,9 +279,9 @@ const POWERSHELL_EXAMPLES = `Examples (PowerShell):
319
279
  <tool_call>{"name":"bash","arguments":{"cmd":"Set-Content -Path file.md -Value 'Hello World'"}}</tool_call>`;
320
280
  const POWERSHELL_RULES = `PowerShell specifics:
321
281
  - NEVER use && in commands — PowerShell doesn't support it. Use ; instead, or make separate bash calls.
322
- WRONG: cd todo-app && npm install
323
- RIGHT: npm install (run from todo-app directory)
324
- RIGHT: Set-Location todo-app; npm install
282
+ WRONG: cd my-app && npm install
283
+ RIGHT: npm install (run from my-app directory)
284
+ RIGHT: Set-Location my-app; npm install
325
285
  - Create/write files: Set-Content -Path file.md -Value "content"
326
286
  - Append to file: Add-Content -Path file.md -Value "line"
327
287
  - Read files: Get-Content file.md
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAc,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGjD;;;;;;;;;;;;;;;;GAgBG;AAEH,yDAAyD;AACzD,yDAAyD;AACzD,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAuHsD,CAAC;AAE3E,2DAA2D;AAC3D,4DAA4D;AAC5D,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6FAiCmE,CAAC;AAE9F,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;UACzG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACzE,MAAM,OAAO,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACvD,OAAO,CAAC,QAAQ,EAAE,sBAAsB,MAAM,CAAC,MAAM,aAAa,OAAO,IAAI,CAAC,CAAC;IAC/E,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACnC,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -195,7 +195,7 @@ export const scaffoldDefinition = {
195
195
  },
196
196
  dir: {
197
197
  type: 'string',
198
- description: 'Directory name for the project (e.g. "todo-app")',
198
+ description: 'Directory name for the project (e.g. "my-app")',
199
199
  },
200
200
  },
201
201
  required: ['template', 'dir'],
@@ -212,7 +212,7 @@ export const scaffoldHandler = {
212
212
  return fsError(`Unknown template: "${template}". Available: ${Object.keys(TEMPLATES).join(', ')}`);
213
213
  }
214
214
  if (!dir) {
215
- return fsError('dir is required. Usage: scaffold({template:"vite-react-ts", dir:"todo-app"})');
215
+ return fsError('dir is required. Usage: scaffold({template:"vite-react-ts", dir:"my-app"})');
216
216
  }
217
217
  const resolved = resolvePath(dir, ctx.cwd);
218
218
  if (!resolved.ok)
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../src/tools/native/scaffold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAc,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAA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шаг плана (или null) */
27
27
  export declare function getNextPendingStep(): PlanStep | null;
28
28
  /** Извлекает ожидаемую директорию из заголовка шага.
29
- * Например: "Create todo-app/package.json" → "todo-app"
29
+ * Например: "Create src/db.ts" → "src"
30
30
  * "Создать index.html в src/" → "src"
31
31
  * Возвращает null если директория не найдена. */
32
32
  export declare function extractDirFromStepTitle(title: string): string | null;
@@ -103,7 +103,7 @@ export function getNextPendingStep() {
103
103
  return plan.steps.find(s => s.status === 'pending') ?? null;
104
104
  }
105
105
  /** Извлекает ожидаемую директорию из заголовка шага.
106
- * Например: "Create todo-app/package.json" → "todo-app"
106
+ * Например: "Create src/db.ts" → "src"
107
107
  * "Создать index.html в src/" → "src"
108
108
  * Возвращает null если директория не найдена. */
109
109
  export function extractDirFromStepTitle(title) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "micro-models-agent",
3
- "version": "0.2.90",
3
+ "version": "0.2.92",
4
4
  "description": "Micro Models Agent (MMA) — LLM agent harness for small models (Qwen3.5-9B, 32K-64K context)",
5
5
  "type": "module",
6
6
  "bin": {