LogVeil turns agent logs, terminal captures, JSONL transcripts, and chat exports into safe repro bundles you can review and share.
It is built for the awkward moment after an agent run fails: the log has useful evidence, but it may also contain home paths, API keys, tokens, emails, prompts, or private infrastructure details. LogVeil keeps the workflow local, deterministic, and scriptable.
npm install
npm run build
node dist/cli.js redact examples/agent-session.log --out repro-safe.md --json-out evidence.json
node dist/cli.js audit examples/agent-session.log --format jsonFor a fuller fixture-backed walkthrough, see docs/tutorials/sanitize-agent-session.md.
After package installation, use the binary directly:
logveil redact ./session.log --out repro-safe.md
logveil audit ./session.log --format json --fail-on secretProduces a Markdown repro bundle by default.
logveil redact ./session.log --out repro-safe.md
logveil redact ./logs --out repro-safe.md --json-out redaction-evidence.jsonProduces JSON by default for automation.
logveil audit ./session.log --format json
logveil audit ./session.log --format markdown--fail-on exits with code 2 when findings at or above the selected severity exist.
logveil audit ./session.log --format json --fail-on secret
logveil audit ./session.log --format json --fail-on warningAccepted values: none, info, warning, secret.
- Offline by default: no telemetry, SaaS calls, or hidden network access.
- Redaction is enabled by default.
- Outputs are deterministic, including a stable
createdAttimestamp. - Raw evidence is masked in reports.
- Source files are never mutated; LogVeil only writes when
--outor--json-outis provided.
LogVeil detects common high-signal patterns:
- OpenAI-style
sk-...API keys - GitHub
ghp_...and related tokens - AWS access key IDs
- secret-looking key/value assignments
- email addresses
- Unix home-directory paths
- private IPv4 addresses
This is an MVP, not a complete DLP system. Review sanitized bundles before publishing them. Add project-specific checks around especially sensitive logs, binary captures, screenshots, or proprietary prompt content.
npm test
npm run check
npm run build
npm run smoke
bash scripts/validate.shThe smoke script uses checked-in fixtures under examples/.