BeClaude

maskara

New
16GitHub TrendingGeneralby mrgoonie

Offline CLI for scanning and redacting secrets from coding-agent session logs

Summary

Maskara is an offline CLI tool that scans and redacts secrets from coding-agent session logs, helping developers safely share logs without exposing sensitive data like API keys, tokens, or passwords.

  • It runs entirely on your machine, ensuring privacy and security when debugging or reviewing agent behavior.

Install & Usage

1
Create the agents directory
mkdir -p .claude/agents
2
Save the agent file

Add the configuration to .claude/agents/maskara.md

3
Invoke with @agent-name
@maskara

Use Cases

Scan a Claude Code session log for accidentally exposed API keys before sharing it with a colleague.
Redact all secrets from a batch of log files before uploading them to a support ticket or bug report.
Automatically sanitize logs generated during automated testing to prevent credential leaks in CI/CD pipelines.
Review a log from a coding agent session to identify which secrets were accessed without exposing them in plaintext.
Prepare a log file for public demonstration or tutorial by removing all sensitive tokens and credentials.
Integrate maskara into a pre-commit hook to ensure no secrets are committed in log files.

Usage Examples

1

/maskara scan session.log

2

/maskara redact session.log --output sanitized.log

3

Run maskara on all .log files in the current directory to redact secrets.

View source on GitHub
agent

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is maskara?

Maskara is an offline CLI tool that scans and redacts secrets from coding-agent session logs, helping developers safely share logs without exposing sensitive data like API keys, tokens, or passwords. It runs entirely on your machine, ensuring privacy and security when debugging or reviewing agent behavior.

How to install maskara?

To install maskara: create the agents directory (mkdir -p .claude/agents), then add the config to .claude/agents/maskara.md. Finally, @maskara in Claude Code.

What is maskara best for?

maskara is a agent categorized under General. It is designed for: agent. Created by mrgoonie.

What can I use maskara for?

maskara is useful for: Scan a Claude Code session log for accidentally exposed API keys before sharing it with a colleague.; Redact all secrets from a batch of log files before uploading them to a support ticket or bug report.; Automatically sanitize logs generated during automated testing to prevent credential leaks in CI/CD pipelines.; Review a log from a coding agent session to identify which secrets were accessed without exposing them in plaintext.; Prepare a log file for public demonstration or tutorial by removing all sensitive tokens and credentials.; Integrate maskara into a pre-commit hook to ensure no secrets are committed in log files..