openmoat 0.12.0

Policy checks for AI coding agents: decides allow, defer, ask or deny for every tool call from Claude Code, Codex, Cursor, OpenClaw, GitHub Copilot CLI, pi and Gemini CLI, configures Claude Code's, Codex's and Cursor's own OS sandboxes from the same policy, and keeps a local audit log.
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Other systems (Windows): the parent processes are not read yet, so only
//! the terminal check applies to the human-only commands.

use std::io;

pub(super) fn agent_ancestor() -> io::Result<Option<String>> {
    // Pid 0 ends the walk at once: no parent is known here.
    super::walk(0, |_| {
        Err(io::Error::other(
            "parent processes are not read on this system",
        ))
    })
}