| Crates.io | swiftide-docker-executor |
| lib.rs | swiftide-docker-executor |
| version | 0.13.1 |
| created_at | 2025-01-04 13:05:22.776163+00 |
| updated_at | 2025-09-16 15:09:02.91245+00 |
| description | A docker executor for swiftide agent tools |
| homepage | https://github.com/bosun-ai/swiftide |
| repository | https://github.com/bosun-ai/swiftide-docker-executor |
| max_upload_size | |
| id | 1503880 |
| size | 186,290 |
A Tool executor meant to be used with Swiftide Agents.
Process is two-staged. First, configure the executor, then start it. The started executor implements ToolExecutor and can then be used in agents.
This executor is used mainly in kwaak. It is set up generically, is useable as an executor for any swiftide agent.
let executor = DockerExecutor::default()
.with_context_path(".")
.with_image_name("test")
.with_dockerfile("Dockerfile.overwritten");
executor
let context = DefaultContext::from_executor(executor);
let agent = Agent::builder().context(context).build();
swiftide-docker-service is in the pathAdditionally, the executor can be used to load files into a Swiftide indexing pipeline.
let executor = DockerExecutor::default()
.with_context_path(".")
.with_image_name("test")
.with_dockerfile("Dockerfile.overwritten");
let loader = executor.into_file_loader("./", vec![".rs"]);
swiftide::indexing::from_loader(loader)
The executor communicates with docker over a grpc client build in swiftide-docker-service. The service is published on docker hub.
This gives more control than just relying on shell execution and enables future expansion.
When given a dockerfile, the executer copies the service from the swiftide-docker-service image, then starts it. Any existing CMDs or ENTRYPOINTs are removed.
For convenience, the executor only works with Ubuntu based images.