Anonymous - 2026-04-23

Originally posted by: kumaakh

Technical direction: Add an unattended field to register_member/update_member and map it to the Claude --auto flag at dispatch time. This overlaps significantly with issue [#54] (remove dangerously_skip_permissions from execute_prompt) — consider implementing both together.

Approach:

  • Add unattended enum to the Agent type in src/types.ts: 'auto' | 'dangerous' | false
  • Add the field to registerMemberSchema (src/tools/register-member.ts) and updateMemberSchema (src/tools/update-member.ts)
  • In src/providers/claude.ts, in the method that builds the CLI invocation: if agent.unattended === 'auto', append --permission-mode auto (not --auto — verify current Claude Code flag name); if 'dangerous', append --dangerously-skip-permissions; otherwise use the compose_permissions path as today
  • The Team/Enterprise plan detection is not reliable via CLI — skip the detection heuristic and make unattended an explicit registration choice by the user instead

Key files:

  • src/types.ts — add unattended field to Agent
  • src/tools/register-member.ts, src/tools/update-member.ts — schema
  • src/providers/claude.ts — CLI invocation
  • src/tools/execute-prompt.ts — remove dangerously_skip_permissions param (aligns with [#54])
  • skills/fleet/permissions.md — document the new field
 

Related

Tickets: #54