How nebulock-inc/agentic-detection-engineering-framework works
ADEF is a CLI and MCP framework that adds a read-only catalog, ATT&CK coverage, schema-grounded authoring, and durable per-detection lifecycle journals around existing detection rules. Its main workflow is to initialize a workspace, discover and catalog rules, then search/refine detections, record health measurements, and evolve them toward keep, tune, or deprecate decisions. The graph preserves documented capability branches; connections based only on the README or SOURCE INDEX are cited there, and unsampled implementation details are not inferred.
Main entry points: catalog.py Catalog command · evolve_chain.py Evolve chain · corpus.py Detection corpus · refine_chain.py Refine chain
Components 22
User interfaces
- CLI
adef/cli.py - MCP server
adef/mcp/server.py - MCP tools
adef/mcp/tools
Discovery and catalog
- Catalog command
adef/commands/catalog.py - Rule discovery
adef/core/rule_discovery.py - Rule parser
adef/core/rule_parser.py - Catalog records
adef/core/catalog.py
FORGE lifecycle
- Refine chain
adef/orchestration/refine_chain.py - Refine agents
adef/agents - Evolve chain
adef/orchestration/evolve_chain.py - Tune and retire advice
adef/agents/tune_recommender.py
Analysis and authoring
- Schema declaration
adef/core/declaration.py - ATT&CK coverage
adef/core/coverage.py - ATT&CK data
adef/core/attack.py - Search and similarity
adef/core/memory.py - Detection corpus
adef/core/corpus.py - Search text projection
adef/core/corpus_text.py
Workspace state
- Detection journals
adef/core/journal.py - Health ingestion
adef/core/health_docs.py - Health history
adef/core/health_store.py - Workspace setup
adef/core/workspace.py
Other components
- Detection engineer
Connections 28
- Detection engineer → CLI: runs commands
README.md - Detection engineer → MCP server: uses tools
README.md - CLI → Catalog command: dispatches commands
- Catalog command → Rule discovery: discovers rules
adef/commands/catalog.py - Rule discovery → Rule parser: parses queries
adef/core/rule_discovery.py - Catalog command → Catalog records: writes records
adef/commands/catalog.py - Catalog command → Detection journals: creates journals
adef/commands/catalog.py - Catalog command → Schema declaration: inherits declarations
adef/commands/catalog.py - Detection engineer → ATT&CK coverage: requests coverage
README.md - ATT&CK coverage → ATT&CK data: uses ATT&CK data
adef/core/coverage.py - Detection engineer → Search and similarity: searches detections
README.md - Search and similarity → Detection corpus: searches corpus
adef/agents/rule_similarity.py - Detection corpus → Search text projection: projects records
adef/core/corpus.py - Detection corpus → Catalog records: reads records
adef/core/corpus.py - Detection corpus → Detection journals: reads journals
adef/core/corpus.py - Detection engineer → Refine chain: runs refinement
README.md - Refine chain → Refine agents: runs agent steps
adef/orchestration/refine_chain.py - Refine chain → Detection journals: appends findings
adef/orchestration/refine_chain.py - Detection engineer → Health ingestion: submits measurements
README.md - Health ingestion → Health history: stores health
adef/core/health_store.py - Detection engineer → Evolve chain: runs evolution
README.md - Evolve chain → Health history: reads measurements
adef/orchestration/evolve_chain.py - Evolve chain → Tune and retire advice: requests verdicts
adef/orchestration/evolve_chain.py - Evolve chain → Detection journals: records decisions
adef/orchestration/evolve_chain.py - MCP server → MCP tools: registers tools
- MCP tools → Refine chain: invokes chain
adef/mcp/tools/agent_tools.py - MCP tools → Evolve chain: invokes chain
adef/mcp/tools/agent_tools.py - Detection engineer → Workspace setup: initializes workspace
README.md