An independent L1 Rust Core Extension, extracted from bitty (Bitty Core): a generic out-of-process IPC bridge boundary (DevTools protocol, bounded framing, peer-credential auth, scope-based consent).
Pre-1.0 (version = "0.0.1" across every crate in this workspace). Extracted from Bitty Core (CTX-0916, Issue #1585) following the bitty-network pattern. Implements the accepted IPC-Agent RFC (OQ-018, accepted 2026-08-29). General IPC infrastructure for DevTools, Headless, Sandbox, Panel extensions, and AI plugins. Not yet published to crates.io; see Consuming from Bitty Core for the current pin pattern.
bitty-ipc is split into focused, composable crates for fine-grained plugin dependencies:
bitty-ipc-api # Pure API layer (zero dependencies)
↑
bitty-ipc-core # Framing, wire, limits, transport
↑
bitty-ipc-auth # Platform auth (rustix/nix/Win32 SID)
bitty-ipc-winpipe # Windows named-pipe transport (Windows-only surface)
↑
bitty-ipc-devtools # DevTools protocol
↑
bitty-ipc # Full implementation (BridgeClient)
| Crate | Role |
|---|---|
bitty-ipc-api |
Pure types (zero dependencies): error types, scope definitions, wire envelope types, frame types, channel types. The only crate plugins and cross-repo consumers depend on for API contracts. |
bitty-ipc-core |
Core implementation: bounded framing (encode/decode), wire protocol v1, rate limits (RC-9/RC-10), transport stubs, no platform-specific code. |
bitty-ipc-auth |
Platform authentication: peer credential verification via rustix (Linux) and nix (macOS/BSD), Windows named-pipe client token SID verification, UID verification, child token management, socket/directory mode checks. |
bitty-ipc-winpipe |
Windows named-pipe transport: current-user-only DACL, endpoint attestation, client/server SID queries, overlapped I/O with per-read/write timeouts. Empty surface off Windows. |
bitty-ipc-devtools |
DevTools protocol: bitty.debug/* method dispatch, snapshot/ctl/tool_dispatch protocols, headless request parsing. |
bitty-ipc |
Full implementation: BridgeClient composing method registry, scope authorization, consent ledger, bounded endpoint. The published boundary for bitty-ai, devtools, and out-of-process consumers. |
- DevTools: Performance profilers, log viewers, terminal state inspectors
- Headless: CI/CD integration, automated testing, remote control
- Sandbox: Isolated plugin execution with scope-based permissions
- Panel Extensions: Custom panels needing real-time terminal data
- AI Plugins: Foundation for
bitty-agent's AI protocol layer
[features]
default = []
test-support = [] # Hermetic test entry points (dev-only; also on bitty-ipc-auth)MCP is deliberately absent from this repository: the protocol client is
agent-only tooling and lives in bitty-ai (crates/bitty-ai-mcp). This
repository carries no MCP client or protocol implementation, only the generic
IPC boundary, the DevTools tool-name adapter, and the MCP scope profiles in
bitty-ipc-api that any client uses for consent.
Bitty Core (bitty/) depends on this repository as an exact-rev Git dependency, never a branch or tag, per workspace policy:
[dependencies]
bitty-ipc = { git = "https://github.com/bitty-terminal/bitty-ipc", rev = "<40-or-7-char-sha>" }
# or any individual crate, e.g.:
bitty-ipc-api = { git = "https://github.com/bitty-terminal/bitty-ipc", rev = "<40-or-7-char-sha>" }Enable test-support on bitty-ipc (and bitty-ipc-auth where needed) only in [dev-dependencies]:
[dev-dependencies]
bitty-ipc = { git = "https://github.com/bitty-terminal/bitty-ipc", rev = "<sha>", features = ["test-support"] }Bump the pin only through a scoped task once this repo's main is green; never point at a branch name before a tagged release.
Every byte crossing the IPC wire boundary is treated as untrusted per ADR-0003:
- Hard frame-payload bound: 256 KiB per message (RC-10)
- Bounded channels/transport and pending table (RC-9)
- Method-name RFC grammar validation before dispatch
- Peer-credential UID equality before parsing
- Per-request scope evaluation server-side
- Fail-closed overflow and countable shedding
- Architecture: See crate-level docs in each
crates/*/src/lib.rs - Security: bitty-docs threat model
- RFC: IPC-Agent RFC
- API Documentation:
cargo doc --workspace --no-deps --open
crates/— workspace members (bitty-ipc-api,bitty-ipc-core,bitty-ipc-auth,bitty-ipc-winpipe,bitty-ipc-devtools,bitty-ipc)
All quality gates run through the justfile, never bare tool invocations:
just check # fmt-check + clippy -D warnings + test
just fmt-check
just clippy
just test
just typecheck
just actionlintToolchain channel is pinned in rust-toolchain.toml; MSRV is 1.85 (rust-version in the workspace root Cargo.toml).
MIT OR Apache-2.0