Skip to content

perf: startup instrumentation and npm install#208

Merged
NathanFlurry merged 1 commit into
mainfrom
startup-speed
Mar 6, 2026
Merged

perf: startup instrumentation and npm install#208
NathanFlurry merged 1 commit into
mainfrom
startup-speed

Conversation

@NathanFlurry
Copy link
Copy Markdown
Member

Summary

Improves agent startup performance by replacing npx-based launchers with pre-installed npm packages, reducing resolution overhead on every spawn. Adds comprehensive timing instrumentation across the entire startup path (CLI, HTTP adapter, agent installation, process spawning) for detailed performance profiling. Improves error diagnostics when agent processes crash.

Changes

  • Timing instrumentation: Added structured tracing with millisecond-level granularity to gigacode CLI, ACP HTTP adapter, agent installation steps, and instance creation phases
  • npx → npm install migration: Agent processes now pre-installed via npm install --prefix during install phase, then executed directly without runtime npm overhead
  • Better crash diagnostics: New AdapterError::Exited variant captures exit codes and last 16 lines of stderr, providing actionable error information when agents crash
  • Error improvements: Updated error messages with specific remediation steps (e.g., run step 3: sandbox-agent install-agent {agent})

🤖 Generated with Claude Code

Add comprehensive tracing instrumentation across the entire agent startup path (gigacode CLI, ACP HTTP adapter, agent installation, and process spawning) to enable detailed performance profiling. Replace npm-based agent process launchers that use npx (incurring resolution overhead on every spawn) with pre-installed npm packages, reducing startup latency. Improve error diagnostics when agent processes crash by capturing exit codes and stderr tails. Update error handling to map exited processes to dedicated error variants with actionable error messages.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@railway-app railway-app Bot temporarily deployed to sandbox-agent / sandbox-agent-pr-208 March 6, 2026 20:05 Destroyed
@railway-app
Copy link
Copy Markdown

railway-app Bot commented Mar 6, 2026

🚅 Deployed to the sandbox-agent-pr-208 environment in sandbox-agent

Service Status Web Updated (UTC)
website 🕐 Initializing (View Logs) Web Mar 6, 2026 at 8:05 pm

@NathanFlurry NathanFlurry merged commit e7656d7 into main Mar 6, 2026
2 of 3 checks passed
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