- Add agent_set_is_subagent and agent_set_tool_registry to agent API for subagent support
- Add timeout_seconds parameter to r_bash_execute to prevent hanging processes
- Refactor context_manager truncation logic with dynamic ratio-based truncation and total size calculation
- Add messages_to_json_string helper and r_config_get_max_tokens accessor
- Introduce tool_registry_get_specialized for type-filtered tool registries
- Add completion_phrases and passive_phrases detection to agent completion logic
- Suppress spinner in http_client when stderr is not a TTY
- Add comprehensive agent_benchmark.py with TestCase framework and logging
Implement pthread-based parallel execution in tool_registry_execute to run tool calls concurrently, replacing the previous sequential loop. Add tool_thread_args_t struct and tool_thread_func wrapper for thread-safe execution. Introduce MAX_PARALLEL_PROBES constant and probe_t struct in network_port_scan_execute to enable concurrent socket probing with non-blocking connect patterns, replacing the single-threaded sequential port scan loop.