Skip to content
Agentmart
Submit a tool

aide-architect-editor-implementation

The implementation plan for the architect→editor two-call decomposition in AIDE's agent loop.

Skill by AnonymousNomad

IndexedApache-2.0★ 53
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/anonymousnomad-aide-architect-editor-implementation

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The implementation plan for the architect→editor two-call decomposition in AIDE's agent loop. Use when actually building the feature; the companion skill aide-architect-editor-pattern is the doctrine, this is the code map. Covers node/src/services/agent-loop.mjs integration points, the plan parser, the agent:plan event, the /architect slash command, the test cases, the rollout order, and the failure modes to test.

Use cases: testing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/aide-architect-editor-implementation

What's inside

Skill name
aide-architect-editor-implementation
Description
The implementation plan for the architect→editor two-call decomposition in AIDE's agent loop. Use when actually building the feature; the companion skill aide-architect-editor-pattern is the doctrine, this is the code map. Covers node/src/services/agent-loop.mjs integration points, the plan parser, the agent:plan event, the /architect slash command, the test cases, the rollout order, and the failure modes to test.
License
Apache-2.0
Instructions
211 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Agent Skills spec issues

  • files: referenced but missing: scripts/run-arch.mjs

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Architect → Editor — Implementation

The doctrine lives in `aide-architect-editor-pattern`. This skill
is the **engineering playbook** for that doctrine: the concrete
files, the exact insertion points, the test cases, the rollout
order, and the failure modes.

## Architecture (recap)

Two model calls per "complex" agent turn:

1. **Architect**: same system prompt + transcript + a framing
   suffix that says "read first, plan second, never emit tool
   calls. Output a `## Plan` block." Returns text with a
   fenced plan block.
2. **Editor**: same system prompt + transcript + the architect's
   plan as a system-prompt prefix. Returns the same XML tool
   calls we already parse.

The agent loop decides "architect then editor" per turn, not
per session. A session can have some turns be architect/editor
and other turns be the one-call path.

## Files to touch

### 1. `node/src/services/agent-loop.mjs`

Add a new option on `start(task, mode, chatFnOverride, options)`:

```ts
type AgentOptions = {
  architectEditor?: boolean;  // opt-in to the two-call pattern
  architectMaxRetries?: number; // default 1
}
```

Modify `runSession` so that, when `architectEditor` is on AND
the model emits no tool calls AND the response contains a
`## Plan` block, the loop:

### 2. `common/contracts/agent.ts`

Add a new event type:

```ts
export const AgentPlanEvent = z.object({
  event: z.literal('plan'),
  session_id: z.string().min(1),
  plan: z.string().max(8192),
  model: z.string().optional(),
  created_at: z.number().int()
}).strict();
```

Add to the `AgentStreamEvent` discriminated union.

### 3. `node/src/routes/agent.ts`

Extend `AgentStartRequest` to accept `architect_editor?: boolean`.

Extend the start handler to read the new field and pass it
through to `service.start()`.

### 4. `daemon/model-manager.mjs` + `node/src/services/model-runtime.ts`

Add a `role: 'architect' | 'editor' | 'chat'` parameter on
the chat function. When set, the runtime resolves the
preferred model for that role (smaller/faster for editor,
stronger/slower for architect). If the role model isn't
allowlisted, fall through to the chat-default model.

This is OPTIONAL for v1 — both architect and editor can use
the same chat-default model. The role is a hint, not a hard
selector.

### 5. `harness/scaffold.mjs`

Add a new scaffold tier `architect` (~400 tokens) with the
framing "read first, plan second, never edit." Used as the
system-prompt prefix when `architectEditor: true`.

Add a new scaffold tier `editor` (~300 tokens) with the
framing "you are the editor. The architect produced this plan.
Translate it into AIDE tool calls. Do not re-reason."

## Rollout

Ship in 2 PRs:

### PR A — architect/editor core (this session, smaller)

- architect/editor option on agent loop
- `agent:plan` event
- plan parser
- 6 arch tests
- skill `aide-architect-editor-pattern` (already done)
- skill `aide-architect-editor-implementation` (this skill)

### PR B — scaffold tiers + role selector (next session)

- `architect` and `editor` scaffold tiers in `harness/scaffold.mjs`
- `role: 'architect' | 'editor'` on the chat function
- `daemon/model-manager.mjs` role-aware resolution
- `/architect` slash command

## Pitfalls

- **Do NOT add a "needs approval for architect" prompt** in
  the agent loop. The architect is reasoning; it's free.
- **Do NOT cache the plan between turns.** Re-derive every
  turn; the transcript may have grown.
- **Do NOT surface the plan as a chat reply.** It goes on the
  `agent:plan` event, not in the assistant message.
- **DO limit the architect output to a single `## Plan`
  block.** Multi-block plans are a parser anti-pattern.
- **DO honour the existing approval flow on the editor's
  tool calls.** The architect did not approve; the operator
  must see the actual tool calls.
- **DO keep the architect loop budget visible** to the

From AnonymousNomad/covert-coder, Apache-2.0.

More from AnonymousNomad/covert-coder

Signals

Stars
53
Forks
15
Open issues
2
Last commit (this folder)
Aug 28, 2026 (2 months ago)
Last release
Aug 10, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from AnonymousNomad

Cite this page

aide-architect-editor-implementation skill. Agent Mart. https://agentmart.dev/skills/anonymousnomad-aide-architect-editor-implementation (last updated 2026-10-24)