Skip to content

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

chore: remove unused imports across multiple files

Steven Enamakel422dfa8276e2
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
index 349ef8f180..c35064fb5f 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tests.rs
@@ -5,13 +5,9 @@ use crate::agent::orchestration::running_subagents::registry::DETACHED_LEDGER_TI
use crate::agent::orchestration::running_subagents::resolve::resume_ref_for_task;
use crate::agent::orchestration::running_subagents::resolve::task_id_for_session;
use crate::agent::orchestration::running_subagents::roster::snapshot_for_parent;
-use crate::agent::orchestration::running_subagents::steering::SteerDirectiveError;
-use crate::agent::orchestration::running_subagents::steering::SteeringDirective;
use crate::agent::orchestration::running_subagents::wait::wait;
use crate::agent::queued_turn::QueuedTurn;
-use crate::agent::tinyagents::host::steering::{
- openhuman_steering_handle, shared_steering_registry, SteeringRunClass,
-};
+use crate::agent::tinyagents::host::steering::shared_steering_registry;
use std::path::PathBuf;
use std::sync::Arc;
use std::sync::MutexGuard;
@@ -19,9 +15,7 @@ use std::time::Duration;
use tinyagents_graph::orchestration::OrchestrationTaskStatus;
use tinyagents_harness::ids::TaskId;
use tinyagents_harness::run_queue::{QueueLane, RunQueue};
-use tinyagents_harness::steering::{
- SteeringCommand, SteeringCommandKind, SteeringHandle, SteeringPolicy,
-};
+use tinyagents_harness::steering::{SteeringCommand, SteeringHandle};
use tokio::sync::watch;
use tokio::task::AbortHandle;
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs
index 9fa21a6ae7..67569f7831 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate.rs
@@ -79,7 +79,7 @@ use std::collections::HashMap;
use std::sync::{Arc, Mutex};
use async_trait::async_trait;
-use tinyagents_harness::error::{Result as TaResult, TinyAgentsError};
+use tinyagents_harness::error::{Result as TaResult};
use tinyagents_harness::host::security_gate::{
ContentOrigin, GateDecision, ScreenOutcome, SecurityGate, ToolCallRequest,
};
diff --git a/crates/openhuman-core/src/core/memory_cli_tests.rs b/crates/openhuman-core/src/core/memory_cli_tests.rs
index fd6c1002c4..c0ae07dd9d 100644
--- a/crates/openhuman-core/src/core/memory_cli_tests.rs
+++ b/crates/openhuman-core/src/core/memory_cli_tests.rs
@@ -1,6 +1,5 @@
use super::*;
use crate::core::cli_capability::{capability_verdict, CAPABILITY_UNAVAILABLE_PREFIX};
-use crate::core::subsystem::DriverClass;
use tinymemory_api::capabilities::{Capabilities, Capability};
/// Drift guard: a renamed controller function must break here rather than
diff --git a/crates/openhuman-core/src/core/subsystem/registry_tests.rs b/crates/openhuman-core/src/core/subsystem/registry_tests.rs
index 676e52b2c4..cff7c0e740 100644
--- a/crates/openhuman-core/src/core/subsystem/registry_tests.rs
+++ b/crates/openhuman-core/src/core/subsystem/registry_tests.rs
@@ -1,7 +1,6 @@
//! Tests for the subsystem registry: bind, rebind, fallback-on-failure, and
//! health updates.
-use std::cell::Cell;
use std::str::FromStr;
use serde_json::json;
diff --git a/crates/openhuman-core/src/core/types.rs b/crates/openhuman-core/src/core/types.rs
index d0a7350893..550c915bf0 100644
--- a/crates/openhuman-core/src/core/types.rs
+++ b/crates/openhuman-core/src/core/types.rs
@@ -3,7 +3,7 @@
//! This module contains structs and methods for handling RPC requests and
//! responses, as well as maintaining application state across subsystems.
-use serde::{Deserialize, Serialize};
+use serde::Serialize;
/// Success payload from a core RPC handler before JSON-RPC wrapping.
///
diff --git a/crates/openhuman-core/src/inference/host_runtime/core.rs b/crates/openhuman-core/src/inference/host_runtime/core.rs
index 28dc3d6ea6..ae212e381e 100644
--- a/crates/openhuman-core/src/inference/host_runtime/core.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/core.rs
@@ -1,10 +1,8 @@
-use std::path::PathBuf;
use std::sync::Arc;
use crate::config::Config;
use super::service::LocalAiService;
-use tinyinference_local::models::effective_chat_model_id;
static LOCAL_AI: once_cell::sync::OnceCell<Arc<LocalAiService>> = once_cell::sync::OnceCell::new();
diff --git a/crates/openhuman-core/src/memory/read_rpc/mod.rs b/crates/openhuman-core/src/memory/read_rpc/mod.rs
index c922974429..d3fdb69930 100644
--- a/crates/openhuman-core/src/memory/read_rpc/mod.rs
+++ b/crates/openhuman-core/src/memory/read_rpc/mod.rs
@@ -53,8 +53,6 @@ pub use vault::{obsidian_vault_status_rpc, vault_health_check_rpc};
// shipped binary (#5560).
#[cfg(test)]
pub(crate) use crate::config::Config;
-#[cfg(test)]
-pub(crate) use tinymemory_api::chunks::SourceKind;
#[cfg(test)]
#[path = "../read_rpc_tests.rs"]