Capability-bounded stream editor and text transformer for the openOODA era.
A drop-insedalternative written in pure openOODA, featuring negative-trust capability security, pattern substitutions, in-place bounded file writes (FsWriteCap), and a first-class Model Context Protocol (MCP) surface.
Part of openOODA-tools.
oosed has zero runtime dependencies. It compiles to a standalone native binary linked directly with libc.
Installs the standalone native binary to /usr/local/bin (or ~/.local/bin):
curl -fsSL https://openooda-tools.github.io/oosed/install.sh | bash# Automated via installer
curl -fsSL https://openooda-tools.github.io/oosed/install.sh | bash -s -- --apt
# Or manual package install
sudo dpkg -i oosed_0.1.1-1_amd64.deb# Automated via installer
curl -fsSL https://openooda-tools.github.io/oosed/install.sh | bash -s -- --dnf
# Or manual RPM install
sudo dnf install ./oosed-0.1.1-1.fc44.x86_64.rpm# Automated via installer
curl -fsSL https://openooda-tools.github.io/oosed/install.sh | bash -s -- --arch
# Or manual build via packaging/PKGBUILD
cd packaging && makepkg -siTo cleanly remove oosed and any installed package manager entries:
# Automated via standalone uninstaller
curl -fsSL https://openooda-tools.github.io/oosed/uninstall.sh | bash
# Or via installer flag
curl -fsSL https://openooda-tools.github.io/oosed/install.sh | bash -s -- --uninstall
# Or preview removal without making changes (dry-run)
curl -fsSL https://openooda-tools.github.io/oosed/uninstall.sh | bash -s -- --dry-runPerform stream transformations on standard input or files:
# Substitute first occurrence of pattern
echo "hello world" | oosed 's/world/universe/'
# Global substitution across line
echo "apple banana apple" | oosed 's/apple/orange/g'
# Delete matching lines
cat input.txt | oosed '/deprecated/d'
# Quiet mode with selective printing
cat input.txt | oosed -n '/ERROR/p'
# Safe in-place modification (gated by FsWriteCap)
oosed -i 's/v1.0.0/v1.0.1/g' config.ootoosed speaks JSON-RPC 2.0 MCP over stdio for LLM coding agents:
oosed --mcpstream_replace: Replace string patterns in arbitrary text blocks.- Parameters:
text(string),pattern(string),replacement(string),global(boolean)
- Parameters:
execute_script: Apply standard sed scripts (s/pat/repl/g,/pat/d) on text.- Parameters:
text(string),script(string)
- Parameters:
oosed enforces strict Object Capability Discipline (OCap):
- FsReadCap: Strictly bounded read access to input files.
- FsWriteCap: Required exclusively when
-i/--in-placewriting is explicitly commanded. - Zero Ambient Authority: Zero network sockets, zero child process spawning, zero unprompted disk writes.