<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Implementing Secure File Operations

## Tools

### File Safety

| Command | Description |
|---|---|
| `pathlib.Path.resolve()` | Canonical |
| `os.path.realpath()` | Symlinks |
| `agent.js scan` | Detection |
| `agent.js audit` | Audit |

### Agent Script

```bash
node agent.js scan --directory <value> --check <value>
node agent.js audit --file <value> --checks <value>
node agent.js fix --file <value> --finding <value>
node agent.js report --directory <value>
```
