Skip to content

ref(dotagents): Split agent runtime concerns#122

Merged
dcramer merged 1 commit into
mainfrom
dcramer/ref/split-agent-runtime-concerns
Jun 30, 2026
Merged

ref(dotagents): Split agent runtime concerns#122
dcramer merged 1 commit into
mainfrom
dcramer/ref/split-agent-runtime-concerns

Conversation

@dcramer

@dcramer dcramer commented Jun 30, 2026

Copy link
Copy Markdown
Member

This rehomes the existing agent runtime code into clearer ownership boundaries without changing runtime behavior.

Before, src/agents/ held several different concerns: target definitions, MCP and hook writers, subagent loading/writing, subagent formatting, and the public compatibility barrel. After this split:

  • src/targets/ owns target agent definitions, MCP/hook config generation, target paths, registry, and target-specific errors.
  • src/subagents/ owns subagent identity parsing, installed subagent loading/writing, runtime subagent projection, subagent formatting, and subagent-specific types.
  • src/agents/index.ts remains as the compatibility re-export barrel so existing imports keep working.

The split keeps target helper code under targets/definitions/helpers.ts and subagent serialization under subagents/format.ts, so the new folders reflect actual ownership rather than just renamed paths. This is intended to land ahead of plugin support so that PR can focus on plugin behavior instead of a broad module move.

Move target definitions, MCP and hook writers, and subagent runtime handling into separate modules while keeping the agents barrel as a compatibility layer.

Update local agent instructions to describe the new source layout.

Co-Authored-By: Codex <noreply@openai.com>
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
dotagents Ready Ready Preview, Comment Jun 30, 2026 2:23am

Request Review

@dcramer dcramer merged commit 0d50a26 into main Jun 30, 2026
20 checks passed
@dcramer dcramer deleted the dcramer/ref/split-agent-runtime-concerns branch June 30, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant