Skip to content

[chore] Rename agent config to agent template#4901

Merged
junaway merged 2 commits into
big-agentsfrom
chore/clean-up-agent-template
Jun 28, 2026
Merged

[chore] Rename agent config to agent template#4901
junaway merged 2 commits into
big-agentsfrom
chore/clean-up-agent-template

Conversation

@junaway

@junaway junaway commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Context

The agent authoring type was named agent_config / AgentConfig everywhere, out of step with the prompt-template / PromptTemplate naming and with the just-landed skill-template rename. This renames the agent authoring vocabulary to "template", the same way #4900 did for skills. Naming layer only. No behavior change.

Changes

Rename agent config to agent template (mirrors prompt-template and skill-template):

  • AgentConfig to AgentTemplate, AgentConfigSchema to AgentTemplateSchema.
  • The whole harness-config family too: PiAgentConfig, HarnessAgentConfig, ClaudeAgentConfig, AgentaAgentConfig, ResolvedAgentConfig to ...AgentTemplate.
  • Catalog type __ag_type__ / x-ag-type-ref goes from "agent_config" to "agent-template" (dash, like prompt-template).
  • Web: AgentConfigControl to AgentTemplateControl (file renamed), plus agentConfigLayout to agentTemplateLayout, AGENT_CONFIG_LAYOUTS to AGENT_TEMPLATE_LAYOUTS, props and atoms.
  • Services: AGENT_CONFIG_SCHEMA to AGENT_TEMPLATE_SCHEMA, _DEFAULT_AGENT_CONFIG to _DEFAULT_AGENT_TEMPLATE.
  • Env var AGENTA_AGENT_CONFIG_DIR to AGENTA_AGENT_TEMPLATE_DIR (the directory holding the static on-file agent template). No back-compat.

Deliberately kept (these are not the agent template):

  • AgentaClientConfig (the web Agenta API client config), AgentaConfig (the API env config), and AgentRunnerConfigurationError (the runner error).

No back-compat: every renamed type is new on big-agents, so this is a clean break with no aliases.

This branch also merges big-agents (which now carries the skill-template rename #4900). The merge combined both renames where they overlapped, so a skill referenced inside an agent template reads SkillTemplate inside AgentTemplate, and the agent template's skills field references the skill-template catalog type.

Tests / notes

  • SDK agents + catalog suites green (455). Services agent green (42). API workflows green (62).
  • Web: @agenta/entity-ui and @agenta/playground tsc clean; the skill control test passes post-merge (12/12).
  • Full sweep: zero agent_config / AgentConfig residual in live code (the only retained occurrence is intentional, the kept identifiers above), and zero skill_config residual from the merged branch.
  • Follow-up not in this PR: the agent_config to agent_template rename does not touch the Fern-generated client; it still needs an OpenAPI regen alongside the skill-template one.

jp-agenta and others added 2 commits June 28, 2026 11:01
Rename the agent authoring type from agent_config / AgentConfig to agent
template, naming-layer only, mirroring the skill-template rename and the
prompt-template precedent. No behavior change.

- AgentConfig -> AgentTemplate, AgentConfigSchema -> AgentTemplateSchema
- harness-config family: Pi/Harness/Claude/Agenta/Resolved AgentConfig -> ...AgentTemplate
- catalog __ag_type__ / x-ag-type-ref "agent_config" -> "agent-template"
- web AgentConfigControl -> AgentTemplateControl (+ layout, props, atoms)
- services AGENT_CONFIG_SCHEMA / _DEFAULT_AGENT_CONFIG -> AGENT_TEMPLATE_*
- env var AGENTA_AGENT_CONFIG_DIR -> AGENTA_AGENT_TEMPLATE_DIR (static on-file template dir)

Kept: AgentaClientConfig, AgentaConfig (env), AgentRunnerConfigurationError.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	sdks/python/agenta/sdk/agents/dtos.py
#	sdks/python/oss/tests/pytest/unit/agents/skills/test_skills_e2e.py
#	sdks/python/oss/tests/pytest/unit/test_skill_template_catalog.py
Copilot AI review requested due to automatic review settings June 28, 2026 09:15
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 28, 2026
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jun 28, 2026 9:16am

Request Review

@dosubot dosubot Bot added the refactoring A code change that neither fixes a bug nor adds a feature label Jun 28, 2026
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b703d478-2c04-433e-a643-f75d4fb41ad4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/clean-up-agent-template

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@junaway junaway merged commit e5af231 into big-agents Jun 28, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring A code change that neither fixes a bug nor adds a feature size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants