Chisel is a Rust file operation tool for AI agents, with the goal of reducing context consumption and limiting the scope of file access. It is available in two forms: an MCP server and an embeddable core library.
Purpose and main capabilities: File editing submits unified diffs via patch_apply rather than rewriting the entire file, making the token cost of editing large files lower; shell_exec exposes Unix commands such as grep, sed, awk, find, and cat, and the command allowlist is fixed at compile time, so the model cannot extend it at runtime. All paths are normalized before I/O and restricted to the configured root directory, and .. traversal and symlink escapes are rejected. Bearer token authentication is enabled by default, binding only to 127.0.0.1, along with atomic writes and read-only mode.
How to use: Prebuilt .mcpb packages or binaries can be downloaded from Releases, or it can be built from source; the server listens on 127.0.0.1:3000 by default, and the port can be changed with --port. Docker operation is supported, with the container running as a non-root user and not binding to 0.0.0.0; remote access requires a reverse proxy. It can be embedded in Rust, Node.js (>=22, WASM/WASI), and Python (wasmtime-py) projects. A skill file is included and can be installed with npx skills add ckanthony/Chisel.
Use cases: MCP clients or self-hosted servers that need to let agents read, search, and precisely edit code or documents within a restricted directory, and want to reduce token consumption.
Limitations: The server binary does not support Windows because the shell_exec allowlist consists of Unix tools, cap-std depends on POSIX openat semantics, and creating symlinks requires elevated privileges; the WASM build does not include shell_exec. The default request body limit is 4 MiB, and the default rate limit is 100 req/s. The S3/R2 object storage backend is only a future idea and has not yet been implemented.