Let a person act as one of their agents (X-Vtodo-Act-As, MCP act_as) #133
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CrowderSoup/vTodo!133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/agent-act-as"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The usage review showed that Azure runs about six Claude "workers" through the claude.ai vTodo connector. They all sign in with OAuth as Azure, so every change, comment and claim says Azure. Agent sub-accounts already exist, but they can only sign in with their own API token, which claude.ai can't use. Production has zero agents.
What
X-Vtodo-Act-As: <agent id>. The request then runs as that agent (apps/api/authentication.py:act_as), with exactly the access an agent gets with its own token: its person's workspaces, member at most.GET /api/v1/agents/lists your agents' ids.workspacenow also takesact_as(an agent's id, or its name looked up withlist_agents). A test makes sure new tools don't miss it.list_agentstool tells a Claude session to pass its agent name on every change.Testing
apps/api/tests/test_act_as.pychecks history, comment authors, claims,claim_next_task, the member cap, and refusals.mcp_server/tests/test_act_as.pychecks the header and name lookup.makemigrations --checkis clean, and there's no migration.After deploy
Azure adds an agent per worker in Settings → API (she doesn't need the token), then adds "You are Spotter; pass act_as="Spotter"" to each worker's prompt.
🤖 Generated with Claude Code