Initial Agentsd project commit

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 15:09:56 +08:00
commit 1bf1f08f9a
41 changed files with 8106 additions and 0 deletions

22
core/agentsd/src/main.rs Normal file
View File

@@ -0,0 +1,22 @@
mod syscall;
mod plugin;
mod server;
pub mod paths;
pub mod callback;
pub mod permission;
use anyhow::Result;
use tracing_subscriber::EnvFilter;
#[tokio::main]
async fn main() -> Result<()> {
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env().add_directive("agentsd=info".parse()?))
.init();
tracing::info!("agentsd starting");
tracing::info!("data dir: {}", paths::data_dir().display());
let kernel = syscall::Kernel::new()?;
server::run(kernel).await
}