project-settings-cascade
Skill2.9k starsChanged 9 months agoMITView on GitHub
Changing or adding a project setting / default value in RedAmon. A single setting is duplicated across Prisma, two separate Python settings modules, the orchestrator defaults endpoint, and the frontend fallback; miss a layer and the UI shows one value while the backend uses another, and existing projects keep the old value forever. Trigger: editing a @default in webapp/prisma/schema.prisma; editing DEFAULT_AGENT_SETTINGS or fetch_agent_settings in agentic/project_settings.py, or DEFAULT_SETTINGS or fetch_project_settings in recon/project_settings.py; editing the /defaults endpoint or RUNTIME_ONLY_KEYS in recon_orchestrator/api.py; changing a default toggle/number/string in a ProjectForm section.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about samugit83/redamon
- @agentwire.thecompound.tech“https://github.com/samugit83/redamon more like this: https://agentwire.thecompound.tech/aw/s7ukpg”Bluesky · Oct 2, 2026 · 1 likes
- raphabot/awesome-cybersecurity-agentic-ai“Add RedAmon to Tools”GitHub · Oct 1, 2026
- kyrolabs/awesome-langchain“Add RedAmon to Agents”GitHub · Oct 1, 2026
- enaqx/awesome-pentest“Add RedAmon to Multi-paradigm Frameworks”GitHub · Oct 1, 2026
- The-Art-of-Hacking/h4cker“Add RedAmon to AI Agentic Tools for Cybersecurity”GitHub · Oct 1, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub and Bluesky (7 times).
On GitHub · 6
- Oct 1, 2026Add RedAmon to Tools — raphabot/awesome-cybersecurity-agentic-ai0 reactions
- Oct 1, 2026Add RedAmon to Agents — kyrolabs/awesome-langchain0 reactions
- Oct 1, 2026Add RedAmon to Multi-paradigm Frameworks — enaqx/awesome-pentest0 reactions
- Oct 1, 2026Add RedAmon to AI Agentic Tools for Cybersecurity — The-Art-of-Hacking/h4cker0 reactions
- Oct 1, 2026Add RedAmon to Pentest & Red-Team Agents — scadastrangelove/awesome-ai-security-tools0 reactions · 1 comment
1 more on GitHub
- Jun 6, 2026[Add] RedAmon (samugit83/redamon) — PyTorchKR/landscape0 reactions
On Bluesky · 1
- Oct 2, 2026https://github.com/samugit83/redamon more like this: https://agentwire.thecompound.tech/aw/s7ukpg — @agentwire.thecompound.tech1 likes and repost
In this repository24 other files it gives its agents.
- agentic/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- recon/AGENTS.mdAGENTS.md
- recon_orchestrator/AGENTS.mdAGENTS.md
- webapp/AGENTS.mdAGENTS.md
- agentic/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- recon/CLAUDE.mdCLAUDE.md
- recon_orchestrator/CLAUDE.mdCLAUDE.md
- webapp/CLAUDE.mdCLAUDE.md
- add-community-skillSkill
- add-partial-reconSkill
- agentic-tool-integrationSkill
- builtin-agent-skillSkill
- graph-db-writesSkill
- llm-provider-integrationSkill
- mcp-server-toolsSkill
- orchestrator-container-spawnSkill
- priority-board-triageSkill
- recon-ai-enrichmentSkill
- recon-tool-integrationSkill
- redamon-testingSkill
- supply-chain-scanSkill
- traffic-captureSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 56
A new column FAILS THE BUILD until it has a registry entry: Every parameter is described once, in recon_settings/registry.yaml, with its …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- Adding a new project setting, or changing the default value of an existing one.
This skill is the settings sub-pattern the tool/skill skills depend on; they link
here rather than restating it. For the surrounding tool wiring, see
agentic-tool-integration,
recon-tool-integration, or
builtin-agent-skill.
Critical Rules
- NEVER change a default in one layer only. A setting is synchronized across every layer in the table below. Update them in one commit or the UI and backend drift silently.
- NEVER assume existing projects pick up a new/changed default. A Prisma
@defaultapplies to new projects only. Existing rows keep their stored value; changing behaviour for them needs an explicit SQLUPDATE(ask before running it - it mutates every project). - NEVER share settings code between agent and recon.
agentic/project_settings.pyandrecon/project_settings.pyare separate modules with their own default dicts (DEFAULT_AGENT_SETTINGSvsDEFAULT_SETTINGS). A setting used by both is declared in both. - NEVER use
prisma migrate. This project is push-based:docker compose exec webapp npx prisma db push. - ALWAYS keep the name triad aligned: DB column
snake_case(via@map()), Prisma field + frontend + APIcamelCase, Python keySCREAMING_SNAKE_CASE. A mismatch meansfetch_*_settingsreadsNoneand silently falls back to the default. - ALWAYS give the frontend
onChangea fallback equal to the Python/Prisma default, so a project saved before the field existed does not writeundefined. - A new column FAILS THE BUILD until it has a registry entry. Every
parameter is described once, in
recon_settings/registry.yaml, with its
unit, phase, traffic class, engagement-cap flag, MCP disposition, meaning, and
either a bound or a named validator. Add the column, run
python3 tooling/scripts/extract_recon_registry.pyto draft the entry, EDIT IT, thenpython3 recon_settings/build.py. The draft is a starting point: no extraction can tell whether ameaningis true or a bound is right. - NEVER hand-edit
registry.json. It is a build artifact, written to two places (recon_settings/for Python,webapp/src/lib/reconSettings/for TypeScript) by one build, andbuild.py --checkfails the gate when either is stale. Edit the YAML. - NEVER add a rate field without
roe_capped: true. Anrpsfield withtraffic: activeand no cap fails the build, because that gap is how three rate limits shipped reachable over MCP and outside the engagement ceiling. mcp: settableis the normal answer, and a REAL bound is the control. The form input and the MCP validator are both generated from the registry, so a bound of0..10000000is a fake control on both doors at once.bounds.test.tsfails anycountorthreadsmaximum above 100000; the only way past it is a field whose SHIPPED default is already higher, named individually inABOVE_THE_FLAT_CEILINGwith its own maximum, and the test refuses an entry whose default would fit under the ceiling anyway.- A field with a closed vocabulary gets
values:, notvalidator: free_text. That is what makes the form render a<select>and the write refuse an unknown value instead of accepting it and having the runtime replace it silently.bounds.test.tsalso fails a bespoke control that renders a closed-value field as anything but a<select>, because a text box over a closed set means the form accepts what the save rejects. mcp: neverneeds adeny_reasonthe schema defines -identity,internal,escalation,secret,upload-managed,engagement-record,not-tuningorderived. There is no ALLOW/DENY table and nounboundedreason; denying a tuning field "to be safe" makes the API the weaker of two doors and failsparity.test.ts.- A settable field needs a form input, and an input needs a classification.
form_sectionis joined from the tool's entry unless the field names its own, and an explicitnullmeans "no input anywhere" - which the parity test reads to tell a deliberate omission from a forgotten one. - State what
0means on any field that defaults to it. Several rates treat0as UNLIMITED, which makes it the FASTEST value rather than the safest. A numeric defaulting to 0 withoutzero_meansfails the build, and themeaninghas to repeat it in words.
The layers (recon example: katanaTimeout)
| Layer | File | Form |
| DB / schema | webapp/prisma/schema.prisma | katanaTimeout Int @default(3600) @map("katana_timeout") |
| Python default | recon/project_settings.py:21 DEFAULT_SETTINGS (or agentic/project_settings.py DEFAULT_AGENT_SETTINGS) | 'KATANA_TIMEOUT': 3600 |
| Fetch mapping | recon/project_settings.py:863 fetch_project_settings (or fetch_agent_settings in the agent module) | settings['KATANA_TIMEOUT'] = project.get('katanaTimeout', DEFAULT_SETTINGS['KATANA_TIMEOUT']) |
| Registry | recon_settings/registry.yaml | katanaTimeout: { tool: katana, runtime_key: KATANA_TIMEOUT, unit: seconds, phase: resource_enum, traffic: active, roe_capped: false, mcp: settable, bounds: {...}, meaning: ... } |
| Served defaults | recon_orchestrator/api.py /defaults | nothing to do: the payload and its exclusions are REGISTRY QUERIES now. A key with no column is excluded by source: internal, and the column name comes from the registry rather than a snake-to-camel guess (which could not recover an intercap, so nine settings never reached the form). |
| Frontend | the tool's ProjectForm section component | control with an onChange fallback equal to the default. Its min/max must not be WIDER than the registry bounds, or the form accepts a value the save refuses. |
Agent-only settings use DEFAULT_AGENT_SETTINGS + fetch_agent_settings; recon-only
use DEFAULT_SETTINGS + fetch_project_settings. There is no shared module.
The registry reaches three services on three schedules
This is the part that bites, because two of the three pick a change up on their own and the third does not:
| Service | How it gets the registry | After a registry change |
recon | volume-mounted, spawned per scan | nothing |
recon-orchestrator | read-only mount | docker compose restart recon-orchestrator |
agent | COPY-baked (agentic/Dockerfile) | docker compose build agent && docker compose up -d agent |
Rebuilding the agent is not optional after a registry change. build.py also
writes recon_settings/roe_parse_prompt.py, which embeds the SHA-256 of
registry.json, and /roe/parse compares that digest against the registry it
actually loaded. A stale agent image therefore returns 503 on every RoE
document upload, naming both digests, rather than parsing a document against a
field list that no longer matches what will validate the answer.
It fails closed on purpose: a stale prompt does not produce an error, it produces a confidently wrong configuration.
Commands
python3 tooling/scripts/extract_recon_registry.py # draft the registry entry for a new column
python3 recon_settings/build.py # rebuild the THREE artifacts (--check in the gate)
cd webapp && npm run docs:settings # regenerate the wiki settings registry
docker compose exec webapp npx prisma db push # apply schema; NEVER prisma migrate
docker compose build agent && docker compose up -d agent # REQUIRED after ANY registry change (see below)
docker compose restart recon-orchestrator # picks the registry up from its mount
# existing projects (ask first - mutates every row):
docker compose exec postgres psql -U redamon -d redamon -c "UPDATE projects SET katana_timeout = 3600 WHERE katana_timeout IS NULL;"Resources
- Naming + servement details in docs/readmes/coding_agent_prompts/PROMPT.ADD_RECON_TOOL.md (settings multi-layer flow)
- Related skills:
agentic-tool-integration,recon-tool-integration,recon-ai-enrichment
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

