Skip to content

chore(agent): remove dead code from agent-workflows#4809

Merged
mmabrouk merged 1 commit into
big-agentsfrom
chore/agent-dead-code-cleanup
Jun 23, 2026
Merged

chore(agent): remove dead code from agent-workflows#4809
mmabrouk merged 1 commit into
big-agentsfrom
chore/agent-dead-code-cleanup

Conversation

@mmabrouk

Copy link
Copy Markdown
Member

What

Acts on the dead-code report review (PR #4806 scratch). Removes zero-caller and broken code
from the agent-workflows stack, and demotes the confusing in-process POC backend out of the
shipped SDK. Stacked on #4806.

Deleted (zero callers / unimportable)

  • services/oss/src/agent/client.py - logic moved to agenta.sdk.agents.platform.connection.
  • sdks .../agents/ui_messages.py - a Vercel-adapter shim, not the internal IR (AgentRun /
    AgentEvent is the IR).
  • sdks .../agents/tools/wire.py (tool_spec_to_wire / tool_specs_to_wire) - superseded by
    the ToolSpec.to_wire() method.
  • parse_tool_configs (tools/parsing.py) - no caller; the live path uses
    coerce_tool_configs.
  • sdks .../engines/running/registry.py - imports a running.types module that does not
    exist, so it has never been importable (broken since the 2026-05 SDK reorg).
  • is_import_safe (engines/running/sandbox.py) - no caller.
  • shutdownTracing (services/agent/src/tracing/otel.ts) - no process-exit flush path; the
    runner flushes per run.

All __init__ re-exports for the above were removed too.

InProcessPiBackend: removed from the SDK, kept as a test helper

It was a public "reference backend" that the deployed service never selects, which read as a
deployment option and caused confusion. Removed from the SDK public API. The class moved to
sdks/python/oss/tests/pytest/integration/agents/_in_process_backend.py so the transport
round-trip integration test still exercises the real wire and subprocess transport. The
sidecar's in-process pi engine (engines/pi.ts) is unchanged and still reachable with
backend: "pi". Design docs updated to match.

Kept on review

The sandbox_agent.ts test re-exports, LocalBackend, the Claude and Agenta harnesses, and
the service secrets.py / tools/secrets.py / tools/gateway.py re-export shims (deletable
later once their tests repoint to agenta.sdk.agents.platform).

Tests

Green: SDK agents 158 unit + 3 transport integration, service agent 20 unit, runner 104
vitest. ruff format/check and tsc --noEmit clean.

https://claude.ai/code/session_01K1B1nizzup79YAnc2wF77L

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
agenta-documentation Error Error Jun 23, 2026 3:18pm

Request Review

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. refactoring A code change that neither fixes a bug nor adds a feature labels Jun 23, 2026
@coderabbitai

coderabbitai Bot commented Jun 23, 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: 17fcd0b2-fce7-4353-a429-1ee50c4f2e22

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:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/agent-dead-code-cleanup

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.

@mmabrouk mmabrouk changed the base branch from docs/agent-workflows-doc-accuracy to big-agents June 23, 2026 15:11
Act on the dead-code report review. Remove zero-caller and broken code, and
demote the confusing in-process POC backend out of the shipped SDK.

Deleted (zero callers / unimportable):
- services/oss/src/agent/client.py (logic moved to the SDK platform package)
- sdks: agents/ui_messages.py (Vercel-adapter shim, not the internal IR),
  agents/tools/wire.py (superseded by ToolSpec.to_wire()), parse_tool_configs,
  engines/running/registry.py (broken import since the 2026-05 SDK reorg),
  engines/running/sandbox.py::is_import_safe
- services/agent/src/tracing/otel.ts::shutdownTracing (no process-exit path)

InProcessPiBackend was a public 'reference backend' that the service never
selects. Removed it from the SDK public API and moved the class to a test-only
helper so the transport round-trip integration test still runs. Updated the
design docs to match.

Kept on review: the sandbox_agent.ts test re-exports, LocalBackend, the Claude
and Agenta harnesses, and the service secret/gateway re-export shims (deletable
later once their tests repoint to agenta.sdk.agents.platform).

Tests green: SDK agents 158 unit + 3 transport integration, service agent 20
unit, runner 104 vitest. ruff and tsc clean.

Claude-Session: https://claude.ai/code/session_01K1B1nizzup79YAnc2wF77L
@mmabrouk mmabrouk force-pushed the chore/agent-dead-code-cleanup branch from d3c4902 to 2454f73 Compare June 23, 2026 15:16
@mmabrouk mmabrouk merged commit 7c86a77 into big-agents Jun 23, 2026
21 of 24 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-production-f042.up.railway.app/w
Project agenta-oss-pr-4809
Image tag pr-4809-1a03073
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-06-23T15:28:29.117Z

mmabrouk added a commit that referenced this pull request Jun 24, 2026
chore(agent): remove dead code from agent-workflows
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.

1 participant