agentsys 5.3.0 → 5.3.1

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.
Files changed (136) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor/commands/audit-project-agents.md +454 -0
  4. package/.cursor/commands/audit-project-github.md +141 -0
  5. package/.cursor/commands/audit-project.md +330 -0
  6. package/.cursor/commands/consult.md +417 -0
  7. package/.cursor/commands/debate.md +381 -0
  8. package/.cursor/commands/delivery-approval.md +334 -0
  9. package/.cursor/commands/deslop.md +142 -0
  10. package/.cursor/commands/drift-detect.md +259 -0
  11. package/.cursor/commands/enhance.md +172 -0
  12. package/.cursor/commands/learn.md +165 -0
  13. package/.cursor/commands/next-task.md +519 -0
  14. package/.cursor/commands/perf.md +464 -0
  15. package/.cursor/commands/repo-map.md +124 -0
  16. package/.cursor/commands/ship-ci-review-loop.md +468 -0
  17. package/.cursor/commands/ship-deployment.md +348 -0
  18. package/.cursor/commands/ship-error-handling.md +265 -0
  19. package/.cursor/commands/ship.md +517 -0
  20. package/.cursor/commands/sync-docs.md +171 -0
  21. package/.cursor/commands/web-ctl.md +101 -0
  22. package/.cursor/skills/consult/SKILL.md +425 -0
  23. package/.cursor/skills/debate/SKILL.md +316 -0
  24. package/.cursor/skills/deslop/SKILL.md +204 -0
  25. package/.cursor/skills/discover-tasks/SKILL.md +297 -0
  26. package/.cursor/skills/drift-analysis/SKILL.md +324 -0
  27. package/.cursor/skills/enhance-agent-prompts/SKILL.md +277 -0
  28. package/.cursor/skills/enhance-claude-memory/SKILL.md +387 -0
  29. package/.cursor/skills/enhance-cross-file/SKILL.md +110 -0
  30. package/.cursor/skills/enhance-docs/SKILL.md +298 -0
  31. package/.cursor/skills/enhance-hooks/SKILL.md +554 -0
  32. package/.cursor/skills/enhance-orchestrator/SKILL.md +255 -0
  33. package/.cursor/skills/enhance-plugins/SKILL.md +319 -0
  34. package/.cursor/skills/enhance-prompts/SKILL.md +340 -0
  35. package/.cursor/skills/enhance-skills/SKILL.md +436 -0
  36. package/.cursor/skills/learn/SKILL.md +349 -0
  37. package/.cursor/skills/orchestrate-review/SKILL.md +260 -0
  38. package/.cursor/skills/perf-analyzer/SKILL.md +37 -0
  39. package/.cursor/skills/perf-baseline-manager/SKILL.md +30 -0
  40. package/.cursor/skills/perf-benchmarker/SKILL.md +52 -0
  41. package/.cursor/skills/perf-code-paths/SKILL.md +32 -0
  42. package/.cursor/skills/perf-investigation-logger/SKILL.md +41 -0
  43. package/.cursor/skills/perf-profiler/SKILL.md +42 -0
  44. package/.cursor/skills/perf-theory-gatherer/SKILL.md +35 -0
  45. package/.cursor/skills/perf-theory-tester/SKILL.md +36 -0
  46. package/.cursor/skills/repo-mapping/SKILL.md +83 -0
  47. package/.cursor/skills/sync-docs/SKILL.md +351 -0
  48. package/.cursor/skills/validate-delivery/SKILL.md +186 -0
  49. package/.cursor/skills/web-auth/SKILL.md +177 -0
  50. package/.cursor/skills/web-browse/SKILL.md +516 -0
  51. package/.kiro/agents/agent-enhancer.json +12 -0
  52. package/.kiro/agents/ci-fixer.json +13 -0
  53. package/.kiro/agents/ci-monitor.json +12 -0
  54. package/.kiro/agents/claudemd-enhancer.json +12 -0
  55. package/.kiro/agents/consult-agent.json +13 -0
  56. package/.kiro/agents/cross-file-enhancer.json +12 -0
  57. package/.kiro/agents/debate-orchestrator.json +13 -0
  58. package/.kiro/agents/delivery-validator.json +12 -0
  59. package/.kiro/agents/deslop-agent.json +12 -0
  60. package/.kiro/agents/docs-enhancer.json +12 -0
  61. package/.kiro/agents/exploration-agent.json +12 -0
  62. package/.kiro/agents/hooks-enhancer.json +11 -0
  63. package/.kiro/agents/implementation-agent.json +13 -0
  64. package/.kiro/agents/learn-agent.json +12 -0
  65. package/.kiro/agents/map-validator.json +11 -0
  66. package/.kiro/agents/perf-analyzer.json +12 -0
  67. package/.kiro/agents/perf-code-paths.json +11 -0
  68. package/.kiro/agents/perf-investigation-logger.json +12 -0
  69. package/.kiro/agents/perf-orchestrator.json +13 -0
  70. package/.kiro/agents/perf-theory-gatherer.json +12 -0
  71. package/.kiro/agents/perf-theory-tester.json +13 -0
  72. package/.kiro/agents/plan-synthesizer.json +12 -0
  73. package/.kiro/agents/planning-agent.json +12 -0
  74. package/.kiro/agents/plugin-enhancer.json +12 -0
  75. package/.kiro/agents/prompt-enhancer.json +12 -0
  76. package/.kiro/agents/reviewer-perf-test.json +11 -0
  77. package/.kiro/agents/reviewer-quality-security.json +11 -0
  78. package/.kiro/agents/simple-fixer.json +13 -0
  79. package/.kiro/agents/skills-enhancer.json +11 -0
  80. package/.kiro/agents/sync-docs-agent.json +13 -0
  81. package/.kiro/agents/task-discoverer.json +12 -0
  82. package/.kiro/agents/test-coverage-checker.json +12 -0
  83. package/.kiro/agents/web-session.json +12 -0
  84. package/.kiro/agents/worktree-manager.json +13 -0
  85. package/.kiro/skills/consult/SKILL.md +425 -0
  86. package/.kiro/skills/debate/SKILL.md +316 -0
  87. package/.kiro/skills/deslop/SKILL.md +204 -0
  88. package/.kiro/skills/discover-tasks/SKILL.md +297 -0
  89. package/.kiro/skills/drift-analysis/SKILL.md +324 -0
  90. package/.kiro/skills/enhance-agent-prompts/SKILL.md +277 -0
  91. package/.kiro/skills/enhance-claude-memory/SKILL.md +387 -0
  92. package/.kiro/skills/enhance-cross-file/SKILL.md +110 -0
  93. package/.kiro/skills/enhance-docs/SKILL.md +298 -0
  94. package/.kiro/skills/enhance-hooks/SKILL.md +554 -0
  95. package/.kiro/skills/enhance-orchestrator/SKILL.md +255 -0
  96. package/.kiro/skills/enhance-plugins/SKILL.md +319 -0
  97. package/.kiro/skills/enhance-prompts/SKILL.md +340 -0
  98. package/.kiro/skills/enhance-skills/SKILL.md +436 -0
  99. package/.kiro/skills/learn/SKILL.md +349 -0
  100. package/.kiro/skills/orchestrate-review/SKILL.md +260 -0
  101. package/.kiro/skills/perf-analyzer/SKILL.md +37 -0
  102. package/.kiro/skills/perf-baseline-manager/SKILL.md +30 -0
  103. package/.kiro/skills/perf-benchmarker/SKILL.md +52 -0
  104. package/.kiro/skills/perf-code-paths/SKILL.md +32 -0
  105. package/.kiro/skills/perf-investigation-logger/SKILL.md +41 -0
  106. package/.kiro/skills/perf-profiler/SKILL.md +42 -0
  107. package/.kiro/skills/perf-theory-gatherer/SKILL.md +35 -0
  108. package/.kiro/skills/perf-theory-tester/SKILL.md +36 -0
  109. package/.kiro/skills/repo-mapping/SKILL.md +83 -0
  110. package/.kiro/skills/sync-docs/SKILL.md +351 -0
  111. package/.kiro/skills/validate-delivery/SKILL.md +186 -0
  112. package/.kiro/skills/web-auth/SKILL.md +177 -0
  113. package/.kiro/skills/web-browse/SKILL.md +516 -0
  114. package/.kiro/steering/audit-project-agents.md +459 -0
  115. package/.kiro/steering/audit-project-github.md +146 -0
  116. package/.kiro/steering/audit-project.md +330 -0
  117. package/.kiro/steering/consult.md +422 -0
  118. package/.kiro/steering/debate.md +386 -0
  119. package/.kiro/steering/delivery-approval.md +339 -0
  120. package/.kiro/steering/deslop.md +149 -0
  121. package/.kiro/steering/drift-detect.md +264 -0
  122. package/.kiro/steering/enhance.md +177 -0
  123. package/.kiro/steering/learn.md +166 -0
  124. package/.kiro/steering/next-task.md +481 -0
  125. package/.kiro/steering/perf.md +469 -0
  126. package/.kiro/steering/repo-map.md +126 -0
  127. package/.kiro/steering/ship-ci-review-loop.md +473 -0
  128. package/.kiro/steering/ship-deployment.md +353 -0
  129. package/.kiro/steering/ship-error-handling.md +270 -0
  130. package/.kiro/steering/ship.md +522 -0
  131. package/.kiro/steering/sync-docs.md +178 -0
  132. package/.kiro/steering/web-ctl.md +106 -0
  133. package/CHANGELOG.md +6 -0
  134. package/lib/adapter-transforms.js +28 -0
  135. package/package.json +1 -1
  136. package/site/content.json +1 -1
@@ -0,0 +1,106 @@
1
+ ---
2
+ inclusion: manual
3
+ name: "web-ctl"
4
+ description: "Use when user asks to \"open a webpage\", \"browse website\", \"log into site\", \"scrape page\", \"interact with web\", \"web automation\", \"browser control\"."
5
+ ---
6
+
7
+ # /web-ctl Command
8
+
9
+ Browser automation for AI agents. Navigate websites, authenticate with human handoff, and interact with web pages.
10
+
11
+ ## Intent Routing
12
+
13
+ Parse the user's request and route appropriately:
14
+
15
+ ### Simple Actions (Direct Skill Invocation)
16
+
17
+ For single-step requests like "go to example.com" or "take a screenshot":
18
+
19
+ 1. Invoke the **web-browse** skill with session name and action
20
+ 2. Sessions auto-create on first run command if they don't exist
21
+
22
+ ### Auth Requests
23
+
24
+ For "log into X" or "authenticate to Y":
25
+
26
+ 1. Create a session named after the service
27
+ 2. Invoke the **web-auth** skill
28
+
29
+ ### Multi-Step Flows
30
+
31
+ For complex requests like "find information on a website" or "fill out a form":
32
+
33
+ 1. Delegate to the **web-session** agent via Task tool
34
+
35
+ ## Quick Reference
36
+
37
+ ```bash
38
+ # Session lifecycle
39
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session start <name>
40
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session auth <name> --provider <provider>
41
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session auth <name> --url <url> [--verify-url <url>] [--verify-selector <sel>]
42
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session auth <name> --provider <slug> --providers-file <path>
43
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session providers
44
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session list
45
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session end <name>
46
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js session verify <name> --url <url>
47
+
48
+ # Browser actions
49
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> goto <url> [--ensure-auth]
50
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> snapshot
51
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> click <selector>
52
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> read <selector>
53
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> screenshot
54
+
55
+ # Snapshot control (apply to any action with snapshot output)
56
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> snapshot --snapshot-depth 3
57
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> goto <url> --snapshot-selector "css=nav"
58
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> click <sel> --no-snapshot
59
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> snapshot --snapshot-collapse
60
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> snapshot --snapshot-compact
61
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> snapshot --snapshot-text-only --snapshot-max-lines 50
62
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> goto <url> --snapshot-full
63
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> goto <url> --snapshot-collapse --snapshot-depth 4
64
+
65
+ # Macros
66
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> select-option <sel> <text>
67
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> tab-switch <name>
68
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> modal-dismiss [--accept]
69
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> form-fill --fields '<json>' [--submit]
70
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> search-select <sel> <query> --pick <text>
71
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> date-pick <sel> --date <YYYY-MM-DD>
72
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> file-upload <sel> <path>
73
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> hover-reveal <sel> --click <target>
74
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> scroll-to <sel>
75
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> wait-toast [--dismiss]
76
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> iframe-action <iframe> <action> [args]
77
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> login --user <u> --pass <p>
78
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> next-page
79
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> paginate --selector <sel> [--max-pages N] [--max-items N]
80
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> extract --selector <sel> [--fields f1,f2,...] [--max-items N] [--max-field-length N]
81
+ node /Users/avifen/.agentsys/plugins/web-ctl/scripts/web-ctl.js run <session> extract --auto [--max-items N] [--max-field-length N]
82
+ ```
83
+
84
+ ## Examples
85
+
86
+ User: "Open github.com and show me my profile"
87
+ 1. Start session "github"
88
+ 2. Auth if needed (web-auth skill)
89
+ 3. Navigate to github.com/profile
90
+ 4. Snapshot and report
91
+
92
+ User: "Take a screenshot of example.com"
93
+ 1. Start session "quick"
94
+ 2. Goto example.com
95
+ 3. Screenshot
96
+ 4. End session
97
+
98
+ User: "Log into Twitter"
99
+ 1. Start session "twitter"
100
+ 2. Auth with `--provider twitter` (auto-configures URL and success detection)
101
+ 3. Report success/failure
102
+
103
+ User: "Log into GitHub"
104
+ 1. Start session "github"
105
+ 2. Auth with `--provider github`
106
+ 3. Report success/failure
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [5.3.1] - 2026-03-02
11
+
12
+ ### Fixed
13
+
14
+ - **Code block Task() transform for Kiro** - Phase 9 reviewer Task() calls inside fenced JavaScript code blocks were not being transformed. Fixed with multiline-anchored fence regex that correctly handles backtick template literals inside code blocks.
15
+
10
16
  ## [5.3.0] - 2026-03-02
11
17
 
12
18
  ### Added
@@ -484,6 +484,34 @@ function transformCommandForKiro(content, options) {
484
484
  content = content.replace(/(?:const|let|var)\s+\{?[^}=\n]+\}?\s*=\s*require\s*\([^)]+\);?/g, '');
485
485
  content = content.replace(/require\s*\(['"][^'"]+['"]\)/g, '');
486
486
 
487
+ // Transform code blocks containing Promise.all + Task() (parallel reviewer spawns).
488
+ // The bare Task() regex below can't reach inside fenced code blocks.
489
+ // Fence boundaries must be at line start (^```) to avoid matching backtick
490
+ // template literals inside the code as false fence endings.
491
+ content = content.replace(/^```(?:javascript|js)?\n([\s\S]*?)^```$/gm, (fullBlock, codeContent) => {
492
+ if (!codeContent.includes('Promise.all') || !codeContent.includes('Task(')) return fullBlock;
493
+ const taskMatches = [...codeContent.matchAll(/Task\s*\(\s*\{[\s\S]*?subagent_type:\s*['"](?:[^"':]+:)?([^'"]+)['"][\s\S]*?prompt:\s*`((?:[^`]|\$\{[^}]*\})*)`/gs)];
494
+ if (taskMatches.length < 2) return fullBlock;
495
+
496
+ const delegations = taskMatches.map(m => {
497
+ const agent = m[1];
498
+ const promptFirstLine = m[2].split('\n').find(l => l.trim()) || '';
499
+ return `Delegate to the \`${agent}\` subagent:\n> ${promptFirstLine.trim()}`;
500
+ });
501
+
502
+ let result = delegations.join('\n\n');
503
+
504
+ const hasReviewKeyword = delegations.some(d =>
505
+ /review|quality|security|performance|test|coverage/i.test(d)
506
+ );
507
+ if (delegations.length >= 4 && hasReviewKeyword) {
508
+ result = `**Review phase (Kiro - max 4 agents, fallback to 2 sequential):**\n\nTry delegating to these subagents (experimental parallel spawning):\n\n${result}\n\nIf parallel spawning is unavailable, run 2 combined reviewers sequentially:\n1. Delegate to the \`reviewer-quality-security\` subagent (code quality + security)\n2. Then delegate to the \`reviewer-perf-test\` subagent (performance + test coverage)\n\nAggregate all findings from whichever execution path succeeded.`;
509
+ }
510
+
511
+ return result;
512
+ });
513
+
514
+ // Transform bare Task() calls outside code blocks
487
515
  content = content.replace(/await\s+Task\s*\(\s*\{[^{}]*(?:\{[^{}]*\}[^{}]*)*\}\s*\);?/g, (match) => {
488
516
  const agentMatch = match.match(/subagent_type:\s*["'](?:[^"':]+:)?([^"']+)["']/);
489
517
  const promptMatch = match.match(/prompt:\s*[`"']([\s\S]*?)[`"']/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentsys",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "A modular runtime and orchestration system for AI agents - works with Claude Code, OpenCode, and Codex CLI",
5
5
  "main": "lib/platform/detect-platform.js",
6
6
  "type": "commonjs",
package/site/content.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://agent-sh.github.io/agentsys",
6
6
  "repo": "https://github.com/agent-sh/agentsys",
7
7
  "npm": "https://www.npmjs.com/package/agentsys",
8
- "version": "5.3.0",
8
+ "version": "5.3.1",
9
9
  "author": "Avi Fenesh",
10
10
  "author_url": "https://github.com/avifenesh"
11
11
  },