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.
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.
git clone --depth 1 https://github.com/samugit83/redamonnpx agentmods add skills/samugit83/redamon/logs-managementWrote 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.
[](https://agentmods.dev/skills/samugit83/redamon/logs-management)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 underREDAMON_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_pathin main.py). Each kind has a test that stdout is byte-identical at every level (test_tool_log.py, test_scanner_detail_log.py, thetests/test_*_detail_log.pyfiles, 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;_discardfinalizes the entry, then removes withv=True. The stop path once removed recon containers withfunctools.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 readsfailed/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_nofollowone component at a time, the leaf withO_NOFOLLOWrelative to its folder's descriptor (layout.py). Neverrealpaththen open, neveros.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_filein logging_config.py). - A route key is
route_key(raw), never a sanitised id, and the rule lives in four copies:route_keyin logging_config.py and layout.py,routeKeyin ids.ts, and the e2e runner's pinned copy in runner.py. Change all four or none; the same hashes are pinned inids.test.tsandtest_log_service.py. A lossy filter once madesession.abcandsession_abcone 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 diskSESSION_Xopenssession_x: a case-variant conversation id read, deleted and wrote into another person's chat log until713bbf4d. 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 throughreadableAgentSessions(joins.ts:readableConversationsWhereplusrouteKey(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. Nevermeta.session_id, neverrequireConversationRead(its author branch asksagent:chatat 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_VERSIONwith any pattern change: it is written into every meta'sredaction. - 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
redactedand untracked. Scanners carry no copy of the redaction module: what they mask at write time (argv header values and credential flags intool_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 asredacted. Now adoption takes back an existing entry whatever the switch, the sweeper asks Docker for the live runs by label before it redacts (_live_runsin 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 (loggingDirectionin settingsRisk.ts: switchdisable, levelhigher,*RetentionDaysshorten); 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'scurrent_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_settingoutside 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 beforebind_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.pytest_off_writes_nothing_not_even_a_metaand its neighbours). - The webapp's start runs
prisma db push --accept-data-loss(the entrypoint in webapp/Dockerfile). Any webapp rebuild pushes whateverschema.prismaholds 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 isADD COLUMN.
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.
- yesterday First seen · 183 lines · 242 tokens per session scan A 7346f2dae018
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.
logs-management compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| logs-managementsamugit83/redamon | Skill | 3.5k | today | MIT | A | 242 | Claude Code, Codex |
| browser-edge-casesaden-hive/hive | Skill | 11k | today | Apache-2.0 | A | 40 | Claude Code |
| triage-issueaden-hive/hive | Skill | 11k | today | Apache-2.0 | A | 0 | Claude Code |
| hive.error-recoveryaden-hive/hive | Skill | 11k | today | Apache-2.0 | A | 25 | Claude Code, Codex |
| node-connectspinabot/brigade | Skill | 11k | 17d ago | MIT | A | 79 | Claude Code, Codex |
| argusAwarexone/Agentic-Bug-Hunter | Skill | 6.1k | 18d ago | MIT | A | 166 | Claude Code |
| exploiting-format-string-vulnerabilitiesxalgorix/xalgorix | Skill | 1.5k | today | Apache-2.0 | A | 69 | Claude Code, Codex |