@yachiyo-5i/xlyra-agent 1.0.2 → 1.2.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/README.md CHANGED
@@ -168,13 +168,18 @@ Interactive configuration commands require a TTY. For automated environments, wr
168
168
  "workdir": "~/.xlyra-agent/workspace",
169
169
  "agent_name": "xlyra assistant",
170
170
  "persona": "A concise software engineering assistant",
171
- "enable_command_execution": false
171
+ "enable_command_execution": false,
172
+ "enable_agents_md": true,
173
+ "enable_skills": true,
174
+ "skills_dirs": []
172
175
  }
173
176
  }
174
177
  ```
175
178
 
176
179
  API keys support `${ENV_VAR}` interpolation. Configuration is validated at startup, and configuration writes use atomic replacement.
177
180
 
181
+ `enable_agents_md` / `enable_skills` default to enabled when omitted. Each run rescans the workdir. Opening an untrusted repository allows its `AGENTS.md` and project-level Skills to influence model instructions; command execution remains gated by `enable_command_execution` and escalation. Disable the corresponding flags if you only want user-level skills or no repository instructions.
182
+
178
183
  ### Start the Server
179
184
 
180
185
  ```bash
@@ -243,6 +248,38 @@ Without a token, the service is unauthenticated and must not be exposed to untru
243
248
  | `apply_patch` | Validate and apply a multi-file patch as one operation |
244
249
  | `exec_command` | Execute an argv-based local command and manage long-running processes |
245
250
  | `write_stdin` | Poll a command session or write data to its standard input |
251
+ | `load_skill` | Activate a discovered Agent Skill by name (registered only when skills exist) |
252
+
253
+ ## AGENTS.md and Agent Skills
254
+
255
+ The runtime follows the open [AGENTS.md](https://agents.md/) and [Agent Skills](https://agentskills.io/specification) formats.
256
+
257
+ ### AGENTS.md
258
+
259
+ - Injects `{workdir}/AGENTS.md` into the system prompt (large files are truncated; UTF-8 BOM and CRLF are normalized).
260
+ - In each directory, `AGENTS.override.md` takes precedence over `AGENTS.md`; nested files are listed by path only, and the model is instructed to `read` the nearest file before editing a subtree.
261
+ - Discovery limits and filesystem failures are surfaced as warnings; the formatted context has a bounded byte size.
262
+ - Explicit user turns override conflicting file instructions.
263
+
264
+ ### Agent Skills
265
+
266
+ Discovery order (first match wins on name collisions):
267
+
268
+ 1. `{workdir}/.agents/skills/`
269
+ 2. `{workdir}/.xlyra/skills/`
270
+ 3. `{workdir}/.codex/skills/` (Codex compatibility)
271
+ 4. `{workdir}/.claude/skills/` (Claude compatibility)
272
+ 5. `{workdir}/.pi/skills/` (Pi compatibility)
273
+ 6. `~/.agents/skills/`
274
+ 7. `~/.xlyra/skills/`
275
+ 8. `~/.codex/skills/` (Codex compatibility)
276
+ 9. `~/.claude/skills/` (Claude compatibility)
277
+ 10. `~/.pi/agent/skills/` (Pi compatibility)
278
+ 11. Extra directories from `agent.skills_dirs`
279
+
280
+ Each skill is a directory with `SKILL.md`. Only `name` + `description` are disclosed at startup; `load_skill` loads the complete body on demand. Resource files are listed but not pre-read; the resource listing has bounded depth and item count. Paths in `agent.skills_dirs` are resolved relative to `workdir` unless absolute. The experimental `allowed-tools` field is parsed as metadata but is not used as a global permission grant.
281
+
282
+ Activated skill bodies carry retention markers so context compaction re-injects them instead of dropping the instructions. Discovery and catalog output are bounded; malformed entries are skipped with warnings.
246
283
 
247
284
  File tools are restricted to the configured workspace by default. The sandbox checks resolved paths and symlinks. Access outside the workspace can be approved for the current session.
248
285