The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(skills): determiner-led child/to-workers recipients stay delegation prose
teknium1d766e5d1de18
diff --git a/tests/tools/test_skills_guard.py b/tests/tools/test_skills_guard.pyindex fd805de59df..8b12aa9eec6 100644--- a/tests/tools/test_skills_guard.py+++ b/tests/tools/test_skills_guard.py@@ -265,7 +265,9 @@ class TestScanFile:prose = tmp_path / "SKILL.md"prose.write_text("4. **Guard context.** Send subagents the minimum context they need. File paths, signatures.\n"- "Share each worker the context of its own slice only.\n",+ "Share each worker the context of its own slice only.\n"+ "Send the child the context it needs.\n"+ "Send to workers the context they need.\n",encoding="utf-8",)assert not any(fi.pattern_id == "context_exfil" for fi in scan_file(prose, "SKILL.md"))diff --git a/tools/skills_guard.py b/tools/skills_guard.pyindex 430eb76a97b..d2b078f27c5 100644--- a/tools/skills_guard.py+++ b/tools/skills_guard.py@@ -116,7 +116,7 @@ _SHORT_FILLER = r'(?:\w+\s+){0,3}?'# exfil ("Send child context to the operator"). A URL destination is still send_to_url._NOT_DELEGATE = (r'(?!(?:(?:the|your|each|every|all|to|a)\s+)?(?:sub-?agents?|sub-?tasks?)\b'- r'|(?:(?:the|your|each|every|all|a)\s+)(?:workers?|delegates?|children)\b)'+ r'|(?:(?:the|your|each|every|all|to|a)\s+)(?:workers?|delegates?|children|child)\b)')# POSIX shell names as one shared alternation, so every pipe-to-shell pattern below flags the