Open
Description
The agent
should have a routine listening for newly created dev containers.
Once a new dev container is detected, it should:
- Communicate with
coderd
to create aworkspace_agents
record and receive anauth_token
. - Detect the architecture of the dev container
- Check if a copy of an agent with that architecture is stored, otherwise download a new one.
- Copy that binary onto the agent.
- Attempt to add
CAP_NET_ADMIN
to the injected dev-container binary. - Run the
coder agent
command in the dev container using theauth_token
obtained earlier.