Files
swe-agent--swe-agent/docs/reference/agent_config.md
T
wehub-resource-sync 4e0f4422d0
Check Markdown links / markdown-link-check (push) Waiting to run
Pytest / test (3.11) (push) Waiting to run
Pytest / test (3.12) (push) Waiting to run
build-docs / deploy (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:25:42 +08:00

1004 B

Agent configuration

This page documents the configuration objects used to specify the behavior of an agent. To learn about the agent class itself, see the agent class reference page.

It might be easiest to simply look at some of our example configurations in the config dir.

Example: default config default.yaml
--8<-- "config/default.yaml"

Currently, there are three main agent classes:

  • DefaultAgentConfig: This is the default agent.
  • RetryAgentConfig: A "meta agent" that instantiates multiple agents for multiple attempts and then picks the best solution.
  • ShellAgentConfig: Config for ShellAgent (invoked with sweagent sh), which is an experimental mode for quick & interactive (human-in-the-loop) workflows.

::: sweagent.agent.agents.RetryAgentConfig

::: sweagent.agent.agents.DefaultAgentConfig

::: sweagent.agent.agents.ShellAgentConfig