Chaitanya Bhardwaj
← All projects

Rust contribution

Cortex

I contributed to a terminal coding agent’s lifecycle, task routing, and tool discovery.

Rust · MCP

Cortex terminal welcome screen and command suggestions
Upstream terminal screenshot · Full size ↗

What I contributed

I worked on agent lifecycle management, task routing between agents, and MCP tool discovery.

Where it fits

The Rust runtime owns the execution loop and tool registry. The terminal is the user interface for the coding agent. External MCP tools are adapted into the registry so calls go through the runtime’s existing validation and error handling.

How it works

Follow the workflow step by step.

01 Register

The runtime tracks agent lifecycle and matches agents by capability.

02 Route

Work is routed to a recipient’s bounded inbox. A full queue is a condition the sender must handle.

03 Discover

The MCP client adapts external tools into the native tool registry.