logs-management

logs-management is a skill for Claude Code, Codex from samugit83/redamon. It costs 242 tokens per session (3,031 once invoked), scanned A, original, MIT.

A system for storing, routing, serving, compressing, and expiring logs for project scans and other runs. Logs are records of program activity, while detailed logs contain extra diagnostic information that should not appear in the live output.

In plain words
What is it for?
Use it when changing logging levels, per-run log destinations, scan or chat records, log retention, access controls, download behavior, or the Logs interface.
Why use it?
It keeps sensitive or noisy diagnostic detail out of a scan's live output and defines how logs are saved, accessed, deleted, and shown in the Logs tab.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./agentic/run_tests.sh tests/test_logging_routes.py tests/test_log_policy_levels.py.

Good fit Use it when changing logging levels, per-run log destinations, scan or chat records, log retention, access controls, download behavior, or the Logs interface.

Compare 6 skills from other repositories ↓
About the project

RedAmon is an AI framework that connects reconnaissance, exploitation, and post-exploitation activities into an automated security-testing pipeline, while organizing findings and proposing code fixes. It is for authorized penetration testing, security research, and education. The catalogue entries provide skills and instructions for working with the framework.

samugit83/redamon · 3,544 stars · on GitHub · redamon.org

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/samugit83/redamon
agentmods
npx agentmods add skills/samugit83/redamon/logs-management

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for logs-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/samugit83/redamon/logs-management/github.svg)](https://agentmods.dev/skills/samugit83/redamon/logs-management)
Your own site
<a href="https://agentmods.dev/skills/samugit83/redamon/logs-management"><img src="https://agentmods.dev/badge/skills/samugit83/redamon/logs-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for logs-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/samugit83/redamon/logs-management"><img src="https://agentmods.dev/badge/skills/samugit83/redamon/logs-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 242 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00242 $0.03031
Opus 5.5 $0.00097 $0.01212
Sonnet 5.5 $0.00048 $0.00606
Haiku 4.5 $0.00024 $0.00303

Measured yesterday against content hash 7346f2dae018, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

logs-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/logs-management/SKILL.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use

  • Changing what a scan, a chat, a Triage run or a CodeFix session saves, where, at which level.
  • Changing how the orchestrator lists, serves, zips, deletes, compresses or expires an entry.
  • Changing who may read or delete a log, or the Logs tab and the Logging settings.

The design, layout and troubleshooting are README.LOGS.md. Also follow orchestrator-container-spawn (a spawn's bind and labels), rbac-authz (every route check), project-settings-cascade (a logging column), redamon-testing (the tests).


Critical Rules

  • NEVER write Verbose or Debug detail to a scan's stdout or stderr. A scan's stdout is the live drawer, which streams at plain recon:read (R); detail (command lines, raw tool output) is raw data (R*). Detail goes only under REDAMON_DETAIL_DIR, through tool_log.record (recon) or the scanners' detail_log.py (gvm_scan and its three byte-identical copies). Never turn on a tool's own verbose flag that prints: AI attack's Debug first used garak's -v, which printed target replies to stdout, and now copies only the bytes this run appended to garak's own log (garak_log_path in main.py). Each kind has a test that stdout is byte-identical at every level (test_tool_log.py, test_scanner_detail_log.py, the tests/test_*_detail_log.py files, test_detail_log.py for AI attack); a new writer or call site adds its own.
  • NEVER remove a scan container except through _discard (container_manager.py). A removed container's Docker log is gone for good; _discard finalizes the entry, then removes with v=True. The stop path once removed recon containers with functools.partial(container.remove, force=True), which lost their last lines and leaked two anonymous volumes per run. test_scan_containers_leave_no_volumes.py reads the module's syntax tree and fails on any other removal form. A deliberate stop calls _mark_stopping(container) before its signal, or the entry reads failed/completed (GVM exits 130, GitHub hunt 0); test_log_archive_stops.py covers each stop path.
  • Ids, never paths. A caller names an entry by project, group and stem, each checked against its pattern, and only service.py turns that into a file: layout.open_dir_nofollow one component at a time, the leaf with O_NOFOLLOW relative to its folder's descriptor (layout.py). Never realpath then open, never os.path.join(root, ...): the agent writes under the same root and the orchestrator runs as root with the Docker socket. The agent opens its files the same way (_open_folder / _open_file in logging_config.py).
  • A route key is route_key(raw), never a sanitised id, and the rule lives in four copies: route_key in logging_config.py and layout.py, routeKey in ids.ts, and the e2e runner's pinned copy in runner.py. Change all four or none; the same hashes are pinned in ids.test.ts and test_log_service.py. A lossy filter once made session.abc and session_abc one folder, so one person wrote into and deleted another's chat log. Never reverse a key: whoever holds the raw id (the database) computes it.
  • Check the exact name before every open, create or delete of a name derived from a route key or a stem (layout.exact_name / open_dir_exact, the agent's _exact_name_at, the runner's _listed). On a case-insensitive disk SESSION_X opens session_x: a case-variant conversation id read, deleted and wrote into another person's chat log until 713bbf4d. Absent exact name: the orchestrator answers 404 and deletes nothing, the agent sends that route's records to its system log.
  • The database decides who reads a log; a meta file never does. Anyone on the host can edit a .meta.json. An agent entry is readable only through readableAgentSessions (joins.ts: readableConversationsWhere plus routeKey(sessionId) equal to the stem), in the list, the read, the download, the zip and the delete alike; a refused entry is the same 404 as a missing one. Never meta.session_id, never requireConversationRead (its author branch asks agent:chat at W+A, so an author below it would see an entry listed and be refused opening it). "By" names only the project's owner or a current collaborator.
  • The two redaction copies stay byte-identical, standard library only: agentic/log_redaction.py and log_archive/redaction.py (test_log_redaction_copies.py). Edit both, and bump REDACTION_VERSION with any pattern change: it is written into every meta's redaction.
  • A scan never relies on its own redaction; the sweeper never redacts a live run's folder; the file service serves detail only when it is redacted and untracked. Scanners carry no copy of the redaction module: what they mask at write time (argv header values and credential flags in tool_log, the GMP password in GVM's detail) is by structure, and everything else is written raw for the orchestrator to redact after the run. A Debug scan whose group was switched off before an orchestrator restart was skipped by adoption, then redacted while it still wrote raw lines, and served as redacted. Now adoption takes back an existing entry whatever the switch, the sweeper asks Docker for the live runs by label before it redacts (_live_runs in retention.py) and redacts nothing when Docker cannot answer, and a tracked entry's detail is never zipped (test_log_detail_guard.py).
  • The logging settings stay mcp: never, deny_reason: not-tuning, share: gate: neither read nor written over MCP, never in a preset, never set by a RoE document (registry.consistency.test.ts, test_registry_share_key.py). Their risk direction comes from the field's shape (loggingDirection in settingsRisk.ts: switch disable, level higher, *RetentionDays shorten); a logging field of another shape has none and fails the gate test.
  • The agent's log policy never comes from get_setting. A handler reads the run's current_log_policy (record_policy()); outside every run it takes the defaults, and a route bound where no policy is takes its project's last loaded one, or is held until there is one. get_setting outside a run's task answers for whichever project loaded last (test_logging_routes.py ..._even_after_another_project_loaded). Triage and CodeFix load their settings before bind_route, or an off run writes its first lines.
  • A group switched off writes nothing: no file, no meta, no events, and a record of no route logged during that run is dropped; a scan group off is never tracked, binds no detail and runs at normal. An off group once kept writing after a Stop (test_log_policy_levels.py test_off_writes_nothing_not_even_a_meta and its neighbours).
  • The webapp's start runs prisma db push --accept-data-loss (the entrypoint in webapp/Dockerfile). Any webapp rebuild pushes whatever schema.prisma holds in the tree, dropping a column that is not there, another session's half-done edit included. Before a rebuild that carries a schema change (a logging column), diff the live database against the tree read-only (Commands) and build only when it is ADD COLUMN.

Read the full file on GitHub · 183 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 183 lines · 242 tokens per session scan A 7346f2dae018

Subscribe to this mod's changes

logs-management is a skill published in the GitHub repository samugit83/redamon (3,544 stars, last pushed today), licensed MIT. It adds 242 tokens to every session and 3,031 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

logs-management compared with skills from other repositories

logs-management next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
logs-managementsamugit83/redamonSkill3.5ktodayMITA242Claude Code, Codex
browser-edge-casesaden-hive/hiveSkill11ktodayApache-2.0A40Claude Code
triage-issueaden-hive/hiveSkill11ktodayApache-2.0A0Claude Code
hive.error-recoveryaden-hive/hiveSkill11ktodayApache-2.0A25Claude Code, Codex
node-connectspinabot/brigadeSkill11k17d agoMITA79Claude Code, Codex
argusAwarexone/Agentic-Bug-HunterSkill6.1k18d agoMITA166Claude Code
exploiting-format-string-vulnerabilitiesxalgorix/xalgorixSkill1.5ktodayApache-2.0A69Claude Code, Codex