@agent-smith/feat-agents 0.0.1 → 0.0.2

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
@@ -22,22 +22,21 @@ This package is part of the [Agent Smith](https://github.com/lynxai-team/agent-s
22
22
 
23
23
  ## ✨ Features
24
24
 
25
- | Feature | Description |
26
- |---------|-------------|
27
- | 🤖 **Coordinator Agent** | Central `agent-smith` agent that decomposes tasks, plans workflows, and delegates to specialized agents via tool calls |
28
- | 🔍 **Specialized Agents** | 16 pre-configured agents for search, code, documentation, SQL queries, assistance, and help scenarios |
29
- | **Workflow Orchestration** | 4 YAML-defined workflows for config info, database queries, Q&A sessions, and vision tasks |
30
- | 📋 **Task Management Skills** | 15+ reusable skills for task creation, execution (solo/team), documentation updates, and project management |
31
- | 🧩 **Context Fragments** | Workspace context helpers that provide agents with project structure awareness |
32
- | 🔗 **Agent Delegation** | Coordinator can call specialized agents sequentially using the `run-agent` tool |
33
- | 🎯 **Model Flexibility** | Supports all compatible LLM models with configurable inference parameters |
25
+ - 🤖 **Coordinator Agent** — Central `agent-smith` agent that decomposes tasks, plans workflows, and delegates to specialized agents via tool calls
26
+ - 🔍 **16 Specialized Agents** — Pre-configured agents for search, code, documentation, SQL queries, assistance, help, state tracking, project management, and collaboration
27
+ - **4 Workflows** YAML-defined pipelines for config info retrieval, database queries, Q&A sessions, and vision tasks
28
+ - 📋 **15+ Reusable Skills** Task creation/execution (solo/team), documentation updates, codebase summaries, and project management
29
+ - 🧩 **Context Fragments** Workspace context helpers that provide agents with project structure awareness
30
+ - 🔗 **Agent Delegation** Coordinator calls specialized agents sequentially via the `run-agent` tool
31
+ - 🎯 **Model Flexibility** Supports all compatible LLM models (qwen35b, qwen4b, etc.) with configurable inference parameters
32
+ - 🛡️ **Security Patterns** Agents operate within a specified workspace directory with controlled tool access
34
33
 
35
34
  ---
36
35
 
37
36
  ## 📦 Installation
38
37
 
39
38
  ```bash
40
- # Install via npm (as part of agent-smith-plugins)
39
+ # Install globally via npm
41
40
  npm i -g @agent-smith/feat-agents
42
41
  ```
43
42
 
@@ -53,7 +52,7 @@ plugins:
53
52
  Then update your client configuration:
54
53
 
55
54
  ```bash
56
- lm conf ~/.agent-smith/features/config.yml
55
+ lm conf
57
56
  ```
58
57
 
59
58
  ---
@@ -63,11 +62,17 @@ lm conf ~/.agent-smith/features/config.yml
63
62
  Launch the main coordinator agent:
64
63
 
65
64
  ```bash
66
- lm run-agent agent-smith "Create documentation for my project"
65
+ lm agent-smith "Create documentation for my project"
67
66
  ```
68
67
 
69
68
  The coordinator will automatically decompose your request and delegate to specialized agents as needed.
70
69
 
70
+ For direct inference (bypassing coordination):
71
+
72
+ ```bash
73
+ lm infer "Explain how multi-agent coordination works"
74
+ ```
75
+
71
76
  ---
72
77
 
73
78
  ## 📋 Agents Reference
@@ -85,7 +90,7 @@ The coordinator will automatically decompose your request and delegate to specia
85
90
 
86
91
  | Agent | Description |
87
92
  |-------|-------------|
88
- | `agent-smith-search` | Web search and webpage reading agent — uses ddsearch, read-webpage tools |
93
+ | `agent-smith-search` | Web search and webpage reading — uses ddsearch, read-webpage tools |
89
94
  | `agent-smith-code` | Code management agent for programming tasks |
90
95
  | `agent-smith-doc` | Documentation management agent for project docs |
91
96
  | `agent-smith-sql` | Database query agent — generates SQL from natural language questions |
@@ -106,18 +111,22 @@ The plugin includes 4 workflow definitions for multi-step operations:
106
111
 
107
112
  | Workflow | Purpose |
108
113
  |----------|---------|
109
- | `agent-smith-config-info.yml` | Configuration information retrieval workflows |
110
- | `agent-smith-db.yml` | Database query orchestration with SQL agent |
111
- | `q.yml` | Q&A workflow — adapts pre-query then runs inference agent |
112
- | `vision.yml` | Vision tasks workflow for image/video analysis |
114
+ | `agent-smith-config-info` | Configuration information retrieval workflows |
115
+ | `agent-smith-db` | Database query orchestration with SQL agent |
116
+ | `q` | Q&A workflow — adapts pre-query then runs inference agent |
117
+ | `vision` | Vision tasks workflow for image/video analysis |
118
+
119
+ Execute a workflow:
113
120
 
114
- Workflows are YAML-defined pipelines that chain actions with AI agents, enabling complex multi-step operations.
121
+ ```bash
122
+ lm workflow agent-smith-config-info
123
+ ```
115
124
 
116
125
  ---
117
126
 
118
127
  ## 🛠️ Skills Reference
119
128
 
120
- The plugin provides 15+ reusable skills for AI coding agents:
129
+ The plugin provides 15+ reusable skills for AI coding agents, loaded via the `load-skill` tool.
121
130
 
122
131
  ### Task Creation
123
132
  | Skill | Description |
@@ -125,6 +134,7 @@ The plugin provides 15+ reusable skills for AI coding agents:
125
134
  | `create-task` | Entry point — analyzes request, chooses execution mode, creates task |
126
135
  | `create-task-solo` | Single-agent task creation |
127
136
  | `create-task-team` | Multi-agent team task creation |
137
+ | `create-task-from-template` | Create tasks from predefined templates |
128
138
  | `use-tasks` | Task usage and management skill |
129
139
 
130
140
  ### Task Execution
@@ -144,7 +154,44 @@ The plugin provides 15+ reusable skills for AI coding agents:
144
154
  | `create-project-docs` | Generate project documentation structure |
145
155
  | `update-codebase-summary` | Create or update codebase summary documentation |
146
156
  | `update-project-nav` | Update the project navigation map |
147
- | `update-doc-map` | Update the documentation map |
157
+
158
+ ### Exploration
159
+ | Skill | Description |
160
+ |-------|-------------|
161
+ | `smart-explore` | Navigate and explore module directory trees efficiently |
162
+
163
+ ---
164
+
165
+ ## 📋 Tasks Reference
166
+
167
+ The plugin includes pre-defined tasks — structured work units with goals, plans, and progress tracking for complex multi-step operations. Use the `load-task` tool to load a task into your workspace, then execute it with the appropriate skill.
168
+
169
+ | Task | Description | Mode | Phases |
170
+ |------|-------------|------|--------|
171
+ | `update-project-doc` | Create or update AI agent navigation documentation for a project (AGENTS.md, decision-tree.md, codebase-summary.md, project-nav.md, etc.) | Solo | 8 phases: Explore → AGENTS.md → Per-Repo AGENTS.md → decision-tree → project-overview → codebase-summary → project-nav → Cross-Reference |
172
+
173
+ ### Using Tasks
174
+
175
+ Prompt to execute a task:
176
+
177
+ ```
178
+ execute the update-project-doc
179
+
180
+ %execute-task-solo
181
+ ```
182
+
183
+ The `%execute-task-solo` part loads this skill directly in the prompt, so that the agent has all the execution instructions.
184
+ Use `%execute-task-team` for multi agents tasks. Note: the agent must have the `load-task` tool. When it uses it the task directory is copied to `.agents/tasks/[task-name]` and it's execution and state will be managed from there.
185
+
186
+ The agent will execute phases sequentially, verify success criteria after each step, and update `state.md` to track progress.
187
+
188
+ ### Task Structure
189
+
190
+ Each task contains:
191
+ - `goals.md` — Goals and success criteria
192
+ - `plan.md` — Step-by-step execution plan with verifiable success criteria
193
+ - `state.md` — Progress tracking (updated after each phase)
194
+ - `notes.md` — Optional context, rules, and related skills
148
195
 
149
196
  ---
150
197
 
@@ -158,8 +205,11 @@ agents/
158
205
  │ ├── agent-smith.yml # Main coordinator agent
159
206
  │ ├── agent-smith-assistant.yml
160
207
  │ ├── agent-smith-search.yml
208
+ │ ├── agent-smith-code.yml
209
+ │ ├── agent-smith-doc.yml
161
210
  │ ├── agent-smith-sql.yml
162
- └── ...
211
+ ├── agent-smith-help.yml
212
+ │ └── ... (16 total)
163
213
  ├── workflows/ # 4 workflow definitions
164
214
  │ ├── agent-smith-config-info.yml
165
215
  │ ├── agent-smith-db.yml
@@ -168,8 +218,14 @@ agents/
168
218
  ├── skills/ # 15+ skill modules
169
219
  │ ├── create-readme/SKILL.md
170
220
  │ ├── create-task/SKILL.md
171
- │ ├── document-package/SKILL.md
172
- │ └── ...
221
+ │ ├── smart-explore/SKILL.md
222
+ │ └── ... (16 total)
223
+ ├── tasks/ # Pre-defined task definitions
224
+ │ └── update-project-doc/ # Project documentation task
225
+ │ ├── goals.md
226
+ │ ├── plan.md
227
+ │ ├── state.md
228
+ │ └── notes.md
173
229
  └── fragments/ # Context helper files
174
230
  ├── workspace.md # Workspace context info
175
231
  └── ctx-helper-files.md # Context file references
@@ -180,7 +236,9 @@ agents/
180
236
  ## 🔧 Architecture
181
237
 
182
238
  ### Agent Coordination Pattern
183
- The `agent-smith` coordinator agent follows a specific workflow:
239
+
240
+ The `agent-smith` coordinator agent follows a structured workflow:
241
+
184
242
  1. **Analyze** the user request
185
243
  2. **Decompose** into subtasks if necessary
186
244
  3. **Plan** the work sequence
@@ -188,19 +246,24 @@ The `agent-smith` coordinator agent follows a specific workflow:
188
246
  5. **Synthesize** results from agent responses
189
247
 
190
248
  ### Available Tools
249
+
191
250
  Agents have access to these tools:
192
- - `readfile` — Read file contents
193
- - `edit-search-replace` Search and replace in files
194
- - `shell` — Execute shell commands
195
- - `python` Execute Python code
196
- - `run-agent` Call other agents for delegated work
197
- - `load-skill` Load skill modules for specific tasks
198
- - `notify-user` Send notifications to the user
199
- - `ddsearch` Web search (via DuckDuckGo)
200
- - `read-webpage` Read and extract webpage content
251
+
252
+ | Tool | Description |
253
+ |------|-------------|
254
+ | `readfile` | Read file contents |
255
+ | `edit-search-replace` | Search and replace in files |
256
+ | `shell` | Execute shell commands |
257
+ | `python` | Execute Python code |
258
+ | `run-agent` | Call other agents for delegated work |
259
+ | `load-skill` | Load skill modules for specific tasks |
260
+ | `load-task` | Load task definitions for complex operations |
261
+ | `notify-user` | Send notifications to the user |
201
262
 
202
263
  ### Context Fragments
203
- Agents can include project context using file references:
264
+
265
+ Agents can include project context using file references in YAML:
266
+
204
267
  ```yaml
205
268
  template:
206
269
  system: |-
@@ -208,11 +271,31 @@ template:
208
271
  {file:../fragments/ctx-helper-files.md}
209
272
  ```
210
273
 
274
+ ### Sample Agent Definition
275
+
276
+ Each agent is defined as a YAML file:
277
+
278
+ ```yaml
279
+ name: infer
280
+ description: Run a raw inference query
281
+ type: "agent-smith"
282
+ prompt: |-
283
+ {prompt}
284
+ model: qwen4b
285
+ inferParams:
286
+ top_p: 0.95
287
+ top_k: 20
288
+ min_p: 0
289
+ temperature: 0.6
290
+ repeat_penalty: 1
291
+ ```
292
+
211
293
  ---
212
294
 
213
295
  ## ⚙️ Configuration
214
296
 
215
297
  ### Model Parameters
298
+
216
299
  Agents support configurable inference parameters:
217
300
 
218
301
  ```yaml
@@ -229,6 +312,7 @@ chat_template_kwargs:
229
312
  ```
230
313
 
231
314
  ### Variables
315
+
232
316
  Agents can require runtime variables:
233
317
 
234
318
  ```yaml
@@ -238,6 +322,20 @@ variables:
238
322
  description: The local directory path where to operate
239
323
  ```
240
324
 
325
+ ### Customizing Agent Behavior
326
+
327
+ To customize an agent, copy the YAML from `dist/agents/` to your local features directory and modify it. The coordinator uses a system prompt that lists available agents and their purposes:
328
+
329
+ ```yaml
330
+ template:
331
+ system: |-
332
+ You are Agent Smith, an AI coordinator agent. Your job is to organise
333
+ the workflow of other agents. Available agents:
334
+ - `agent-smith-assistant`: default assistant
335
+ - `agent-smith-search`: web search and reading
336
+ {file:../fragments/workspace.md}
337
+ ```
338
+
241
339
  ---
242
340
 
243
341
  ## 🔗 Related Packages
@@ -249,16 +347,19 @@ variables:
249
347
  | [`@agent-smith/feat-git`](https://www.npmjs.com/package/@agent-smith/feat-git) | Git operations with AI-powered commit messages |
250
348
  | [`@agent-smith/feat-sqlite`](https://www.npmjs.com/package/@agent-smith/feat-sqlite) | SQLite database operations |
251
349
  | [`@agent-smith/feat-search`](https://www.npmjs.com/package/@agent-smith/feat-search) | Web search and crawling tools (used by search agent) |
350
+ | [`@agent-smith/feat-shell`](https://www.npmjs.com/package/@agent-smith/feat-shell) | Sandboxed shell/Python execution in Docker containers |
351
+ | [`@agent-smith/feat-fs`](https://www.npmjs.com/package/@agent-smith/feat-fs) | Filesystem operations with path authorization |
252
352
 
253
353
  ---
254
354
 
255
- ## 📝 Important Notes
355
+ ## ⚠️ Important Notes
256
356
 
257
- - **No external dependencies** — Agents, workflows, and skills are loaded by the core framework
357
+ - **No runtime code** — Agents, workflows, and skills are YAML/Markdown files loaded by the `@agent-smith/core` framework at runtime
258
358
  - **YAML-based configuration** — All agent definitions use YAML for easy customization
259
359
  - **Sequential delegation** — The coordinator calls one agent at a time for task completion
260
360
  - **Model flexibility** — Supports all compatible LLM models with configurable inference parameters
261
- - **Workspace context** — Agents operate within a specified workspace directory
361
+ - **Workspace context** — Agents operate within a specified workspace directory (required variable)
362
+ - **Requires core framework** — This plugin depends on `@agent-smith/core` for execution
262
363
 
263
364
  ---
264
365
 
@@ -4,9 +4,9 @@ prompt: |-
4
4
  {prompt}
5
5
  template:
6
6
  system: |-
7
- You are Agent Smith assistant, an AI agent. You can run other agents to do jobs using the `run-agent` tool with the agent `agent-smith-assistant`, a fork of yourself.
7
+ You are Agent Smith assistant, an AI agent
8
8
 
9
- {file:../fragments/workspace.txt}
9
+ {file:../fragments/workspace.md}
10
10
  {file:../fragments/ctx-helper-files.md}
11
11
  model: qwen35b
12
12
  inferParams:
@@ -24,8 +24,10 @@ variables:
24
24
  workspace:
25
25
  description: The local directory path where to operate
26
26
  toolsList:
27
+ - readfile
28
+ - edit-search-replace
27
29
  - shell
28
30
  - python
31
+ - run-agent
29
32
  - load-skill
30
- - read-webpage
31
- - run-agent
33
+ - load-task
@@ -4,7 +4,10 @@ prompt: |-
4
4
  {prompt}
5
5
  template:
6
6
  system: |-
7
- You are Agent Smith, the AI agent for the Agent Smith project, a toolkit to run AI agents. You lead a team of specialized agents. Your job is to organise the workflow and delegate tasks to specialized agents to orchestrate the work.
7
+ You are Agent Smith, the AI agent for the Agent Smith project, a toolkit to run AI agents. Your job is to organise the workflow of other agents. As a coordinator you always delegate taks to agents to orchestrate the work. Your job is to coordinate the team of agents. Available agents:
8
+
9
+ - `agent-smith-assistant`: a fork of yourself, the default agent. Run it by default to accomplish any task.
10
+ - `agent-smith-doc`: senior documentation agent for the project
8
11
 
9
12
  {file:../fragments/workspace.md}
10
13
  {file:../fragments/ctx-helper-files.md}
@@ -16,7 +19,7 @@ inferParams:
16
19
  top_p: 0.85
17
20
  temperature: 0.6
18
21
  repetition_penalty: 1
19
- presence_penalty: 1.5
22
+ presence_penalty: 1.2
20
23
  chat_template_kwargs:
21
24
  enable_thinking: true
22
25
  preserve_thinking: true
@@ -26,8 +29,10 @@ variables:
26
29
  description: The local directory path where to operate
27
30
  toolsList:
28
31
  - readfile
29
- - writetofile
30
32
  - edit-search-replace
31
33
  - shell
32
34
  - python
33
- - agent-smith-doc
35
+ - run-agent
36
+ - load-skill
37
+ - load-task
38
+ - notify-user
@@ -12,17 +12,10 @@ prompt: |-
12
12
  template:
13
13
  system: |-
14
14
  You are a documentation agent for the Agent Smith project, a toolkit to run AI agents.
15
-
16
- In addition to your tools you are provided with some skills: these are instructions to accomplish specific tasks. Here are some available skills and instructions about when to use them:
17
-
18
- {skills}
19
-
20
- You can choose to use a skill using the `load-skill` tool when it matches the task. Loading the skill will provide you with instructions to follow about how to accomplish the specific task it was made for. If a user asks you to load a skill use the `load-skill` tool directly
21
-
22
15
  {file:../fragments/workspace.md}
23
- - `agent-smith/.agents/documentation/project-overview.md`: a high level project overview
16
+ - `.agents/documentation/project-overview.md`: a high level project overview
24
17
  {file:../fragments/ctx-helper-files.md}
25
- - `agent-smith/.agents/documentation/documentation-map.md`: an entrypoint to navigate in the documentation.
18
+ - `.agents/documentation/documentation-map.md`: an entrypoint to navigate in the documentation.
26
19
  Always start by reading these files before searching, starting with `AGENTS.md`.
27
20
  model: qwen35b
28
21
  inferParams:
@@ -44,9 +37,6 @@ toolsList:
44
37
  - edit-search-replace
45
38
  - shell
46
39
  - python
47
- - notify-user
48
- skills:
49
- - update-project-nav
50
- - update-codebase-summary
51
- - document-package
52
- - create-readme
40
+ - load-skill
41
+ - load-task
42
+ - notify-user
@@ -15,9 +15,8 @@ template:
15
15
  - `workflow`: a workflow defined in yaml
16
16
  - `action`: code actions defined in yaml or javascript or python
17
17
  - `adaptater`: adaptater code defined in javascript
18
- - `skill`: process instructions defined in markdown
18
+ - `skill`: process instructions defined in markdown. You can load some skills using the `load-skill` tool
19
19
  - `command`: user defined commands in javascript
20
- To read a feature from the database (an agent, action, skill, command, adaptater, workflow) use the "show-feature" tool
21
20
 
22
21
  {file:../fragments/workspace.md}
23
22
 
@@ -42,5 +41,5 @@ variables:
42
41
  toolsList:
43
42
  - shell
44
43
  - readfile
45
- - show-feature
44
+ - load-skill
46
45
  - agent-smith-config-info
@@ -2,8 +2,6 @@ description: An agent to manage Agent Smith's documentation
2
2
  category: "agent-smith"
3
3
  prompt: |-
4
4
  {prompt}
5
-
6
- You must read some doc and context to understand the project and help the user
7
5
  template:
8
6
  system: |-
9
7
  You are a help agent for the Agent Smith project, a toolkit to run AI agents. It uses different classes of internal features:
@@ -11,9 +9,8 @@ template:
11
9
  - `workflow`: a workflow defined in yaml
12
10
  - `action`: code actions defined in yaml or javascript or python
13
11
  - `adaptater`: adaptater code defined in javascript
14
- - `skill`: process instructions defined in markdown
12
+ - `skill`: process instructions defined in markdown. You can load some skills using the `load-skill` tool
15
13
  - `command`: user defined commands in javascript
16
- To read a feature from the database (an agent, action, skill, command, adaptater, workflow) use the "show-feature" tool
17
14
 
18
15
  {file:../fragments/workspace.md}
19
16
 
@@ -39,6 +36,6 @@ variables:
39
36
  toolsList:
40
37
  - shell
41
38
  - readfile
42
- - show-feature
39
+ - load-skill
43
40
  - agent-smith-config-info
44
41
  - agent-smith-help-assistant
@@ -39,4 +39,5 @@ toolsList:
39
39
  - python
40
40
  - run-agent
41
41
  - load-skill
42
+ - load-task
42
43
  - notify-user