ds agent
On this page
Defined in cli/commands/agent.ts. Wires an agent's DevStride and GitHub access from the agent bundle's credentials, which ds secrets pull writes to ~/.config/devstride/agent.env — never into .env. Needs no AWS login and no stage bind. See Agent service credentials.
ds agent mcp-config#
ds agent mcp-config [--replace] [--codex]
Points the repository's DevStride MCP connection at the agent bundle's DEVSTRIDE_API_* key: one entry in Claude Code's ~/.claude.json, under the main checkout, which wt1 and wt2 share (Claude Code never reads an entry under a worktree's own path). An entry already there is kept unless --replace. --codex does the same for Codex's own connection instead: it is added to Codex's config.toml only when Codex has none, so a person's own DevStride sign-in in Codex is never replaced, and every change is first loaded by Codex from a scratch copy, so a broken configuration is never written. ./setup does both on a new machine. Restart Claude Code or Codex to pick up a change.
ds agent check-gh#
ds agent check-gh
Read-only proof that gh works non-interactively from the bundle's GH_TOKEN. Prints PASS or FAIL with the fix, and exits 1 on FAIL. gh reads GH_TOKEN only from its own environment, so an agent's shell must export it from ~/.config/devstride/agent.env for gh to act as the agent. No flags.