What's New in 4.1.18
Team Skill Improvements (PR #555)
Team detection hardening - 5 rounds of iterative review with 10 parallel Codex reviewers achieving unanimous PERFECT verdict.
Changes
isTeamEnabled()feature gate - New unified function across TS/script/template with settings.json + env var check. Team mode requires explicit opt-in viaCLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS- Team regex hardening - Negative lookbehind prevents false positives on "my team", "the team", "our team", "a team"
- Team detection gating - All three implementations hard-skip team when disabled (no false activation)
- Autopilot dedup fix - Fixed duplicate autopilot detection in TS keyword loop
- Dead code removal - Removed unused
createTeamWarning()from scripts/template - Conflict rules - team > autopilot, team > ultrapilot, with dedup before resolution
- Fail-closed parsing -
extractPromptreturns empty on malformed JSON instead of regex fallback - Typed schema - SKILL.md state examples use proper typed values with coercion note
- 16 new tests - Team-disabled behavior, false positives, dedup, conflict precedence, legacy routing
Test Results
- 153 keyword detector tests (16 new)
- 3840 full suite tests passing
- TypeScript clean