Skip to content

Remove the coder entity#4272

Merged
KyleAMathews merged 11 commits intomainfrom
remove-coder
May 4, 2026
Merged

Remove the coder entity#4272
KyleAMathews merged 11 commits intomainfrom
remove-coder

Conversation

@KyleAMathews
Copy link
Copy Markdown
Contributor

Summary

Remove the coder entity (coding-session) — the feature that wrapped Claude Code / Codex CLI sessions as durable entities with live event mirroring.

Approach

Complete removal across three packages:

  • @electric-ax/agents — entity definition (coding-session.ts), tools (spawn_coder, prompt_coder), bootstrap registration, and the agent-session-protocol dependency
  • @electric-ax/agents-runtime — types (CodingSessionHandle, CodingSessionMeta, CodingSessionEventRow, etc.), constants (CODING_SESSION_*), observation source helpers, and the useCodingAgent context method
  • @electric-ax/agents-server-ui — dedicated view components (CodingSessionView, CodingSessionTimeline, CodingSessionSpawnForm), the useCodingSession hook, and conditional rendering in the router/new-session page

Horton's system prompt and tool list are updated to no longer reference coders.

Verification

pnpm --filter @electric-ax/agents-runtime exec tsc --noEmit
pnpm --filter @electric-ax/agents exec tsc --noEmit
pnpm --filter @electric-ax/agents-server-ui exec tsc --noEmit

All three pass cleanly.

Non-goals

  • Migration path for existing coder entities in production streams (there are none in prod yet)
  • Replacing the coder functionality with an alternative

🤖 Generated with Claude Code

The coder entity wrapped Claude Code / Codex CLI sessions as durable
entities. Remove it entirely: entity definition, tools (spawn_coder,
prompt_coder), runtime types and context-factory method, UI components
(CodingSessionView, CodingSessionTimeline, CodingSessionSpawnForm),
hooks, and the agent-session-protocol dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

❌ Patch coverage is 0% with 125 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.06%. Comparing base (65f0cf0) to head (6084ba9).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...ckages/agents-server-ui/src/components/Sidebar.tsx 0.00% 46 Missing ⚠️
...ackages/agents-server-ui/src/hooks/useProjects.tsx 0.00% 44 Missing ⚠️
...agents-server-ui/src/components/NewSessionPage.tsx 0.00% 35 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4272      +/-   ##
==========================================
+ Coverage   60.07%   63.06%   +2.99%     
==========================================
  Files          49      184     +135     
  Lines        6329    19932   +13603     
  Branches     1887     4962    +3075     
==========================================
+ Hits         3802    12571    +8769     
- Misses       2526     7358    +4832     
- Partials        1        3       +2     
Flag Coverage Δ
packages/agents 61.19% <ø> (+1.94%) ⬆️
packages/agents-runtime 79.23% <ø> (?)
packages/agents-server 66.03% <ø> (ø)
packages/agents-server-ui 1.64% <0.00%> (?)
packages/electric-ax 38.59% <ø> (ø)
packages/experimental 87.73% <ø> (?)
packages/react-hooks 86.48% <ø> (?)
packages/start 82.83% <ø> (?)
packages/typescript-client 94.27% <ø> (?)
packages/y-electric 56.05% <ø> (?)
typescript 63.06% <0.00%> (+2.99%) ⬆️
unit-tests 63.06% <0.00%> (+2.99%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

KyleAMathews and others added 2 commits May 4, 2026 16:15
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the dedicated coder docs page and clean up references in the
quickstart, usage overview, handler context reference, embedded builtins,
writing handlers, clients & react, horton entity docs, index page, and
sidebar navigation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
KyleAMathews and others added 3 commits May 4, 2026 16:17
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 82e7ceb
🔍 Latest deploy log https://app.netlify.com/projects/electric-next/deploys/69f91bfed9c28a0008d72c8c
😎 Deploy Preview https://deploy-preview-4272--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

KyleAMathews and others added 5 commits May 4, 2026 16:25
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add useProjects hook for project management with localStorage
persistence, update Sidebar to group entities by project, and
include related App/CSS changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@KyleAMathews KyleAMathews merged commit a3cee92 into main May 4, 2026
53 checks passed
@KyleAMathews KyleAMathews deleted the remove-coder branch May 4, 2026 22:39
@andresberrios
Copy link
Copy Markdown

andresberrios commented May 6, 2026

Hello @KyleAMathews! Why exactly was this removed? It's exactly what I was looking for.
Asking because I think that using the Claude subscription billing is only allowed through the Claude Code CLI and not when using the Claude Agent SDK. Not sure if that's what this got replaced with. Please correct me if I'm wrong.

@KyleAMathews
Copy link
Copy Markdown
Contributor Author

We're focusing on making Horton a great coding agent https://x.com/kylemathews/status/2051723417821512082

We'll get back to building a bridge but that's not the immediate priority.

If you have a codex account, Horton works great with it

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.

3 participants