Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(core): update subprocess provider documentation

Steven Enamakel3fbd7c5bf91f
diff --git a/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs b/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs
index dc83d3851c..fb4b74f749 100644
--- a/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs
@@ -1,72 +1,6 @@
-//! Subprocess-backed providers: the Claude Agent SDK and the Claude Code CLI.
+//! OpenHuman's MCP endpoint for TinyAgents' native Claude subprocess builder.
-use super::*;
-use tinyinference_providers::route::{ProviderRoute, RouteKind};
-
-/// Build the Claude Agent SDK subprocess directly as a crate model. This is a
-/// prompt-guided model: TinyAgents owns its text-tool protocol, while the
-/// provider owns only subprocess transport and NDJSON decoding.
-pub(super) fn claude_agent_sdk_model_from_string(
- provider: &str,
- config: &Config,
-) -> Option<String> {
- let provider = provider.trim();
- if provider == CLAUDE_AGENT_SDK_PROVIDER {
- return config.claude_agent_sdk.default_model.clone();
- }
- let route = ProviderRoute::parse(provider)?;
- matches!(route.kind(), RouteKind::ClaudeAgentSdk).then_some(route.model)
-}
-
-pub(super) fn build_claude_code_model(
- role: &str,
- provider: &str,
- config: &Config,
- model_override: Option<&str>,
- egress: &EgressLedger,
-) -> Option<anyhow::Result<(Arc<dyn ChatModel<()>>, String)>> {
- let route = ProviderRoute::parse(provider)?;
- if !matches!(route.kind(), RouteKind::ClaudeCode) {
- return None;
- }
- Some((|| {
- if route.temperature.is_some() {
- log::warn!(
- "[providers][chat-factory] claude-code provider: per-model temperature override \
- is accepted but not wired through to the CLI — the @<temp> suffix is ignored"
- );
- }
- if route.model.is_empty() {
- anyhow::bail!(
- "[chat-factory] provider string '{}' for role '{}' has an empty model — \
- use 'claude-code:<model-id>'",
- provider,
- role
- );
- }
- let effective_model = model_override.unwrap_or(&route.model).to_owned();
- emit_inference_egress(
- role,
- &format!(
- "{}{effective_model}",
- tinyagents_harness::providers::claude_code::PROVIDER_PREFIX
- ),
- egress,
- );
- let workspace = config
- .config_path
- .parent()
- .map(std::path::Path::to_path_buf)
- .unwrap_or_else(|| config.workspace_dir.clone());
- let model = tinyagents_harness::providers::claude_code::ClaudeCodeProvider::from_env(
- effective_model,
- workspace,
- config.action_dir.clone(),
- )?
- .with_mcp_provider(Arc::new(OpenHumanMcpEndpoint));
- Ok((Arc::new(model) as Arc<dyn ChatModel<()>>, route.model))
- })())
-}
+pub(super) struct OpenHumanMcpEndpoint;
#[derive(Debug)]
struct OpenHumanMcpEndpoint;