Repository navigation
community_9_core
grisun0 edited this page Oct 21, 2026
·
3 revisions
Community 9 | 22 files | cohesion 0.43
This community groups 22 file(s) rooted at core with dominant language py (cohesion 0.43). Central symbols: AiCommandSet, AuthError, BudgetConfig, BudgetExceeded, BudgetGuard, BudgetLedger, BudgetedBackend, Config. Core file: core/llm_budget.py (45 symbols). Documented purpose: Artificial Intelligence command set. Covers the do_ask, do_groq, do_ai_playbook and do_ai_toggle commands. ask answers through the configur.
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
core/__init__.py |
py | utility | 0 | yes |
core/dependencies.py |
py | utility | 23 | yes |
core/errors.py |
py | utility | 23 | yes |
core/http.py |
py | presentation | 10 | yes |
core/llm_budget.py |
py | utility | 45 | yes |
core/network.py |
py | utility | 8 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
tests/test_ai_commands_llm.py |
py | testing | 18 | yes |
tests/test_dependencies.py |
py | testing | 35 | yes |
tests/test_llm_adapter_parity.py |
py | testing | 41 | yes |
tests/test_llm_budget.py |
py | testing | 27 | yes |
tests/test_llm_prompts.py |
py | testing | 27 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
discord_c2.py |
py | utility | 21 | no |
slack_c2_bot.py |
py | utility | 16 | yes |
telegram_c2.py |
py | utility | 18 | no |
telegram_hermes.py |
py | utility | 29 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
modules/llm_adapter.py |
py | infrastructure | 15 | yes |
modules/llm_prompts.py |
py | utility | 28 | yes |
modules/sidequestion.py |
py | utility | 9 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
cli/commands/ai.py |
py | utility | 8 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
contrib/legacy/lazyphishingai.py |
py | presentation | 12 | yes |
... and 2 more files in this community.
-
AiCommandSet(class,cli/commands/ai.py:71)class AiCommandSet(LazyOwnCommandSet)- Pending phase module for the Artificial Intelligence commands. -
do_ask(method,cli/commands/ai.py:78)def do_ask(self, line)- Ask the AI a question with current session context pre-loaded. -
do_groq(method,cli/commands/ai.py:166)def do_groq(self, line)- Generate a single-line command through the Groq backend. -
do_poolcheck(method,cli/commands/ai.py:197)def do_poolcheck(self, line)- Prove the LLM failover pool order with one live prompt. -
_serve(function,cli/commands/ai.py:220)def _serve(member_id, backend_name, text) -
do_ai_playbook(method,cli/commands/ai.py:254)def do_ai_playbook(self, line)- Generate an offensive playbook from Nmap CSV + KB + Ollama. -
do_ai_toggle(method,cli/commands/ai.py:361)def do_ai_toggle(self, _arg)- Toggle the in-process AI assistant on or off. -
do_llm_budget(method,cli/commands/ai.py:378)def do_llm_budget(self, line)- Show the LLM daily cost budget, per call token cap, and current spend. -
clean_think(function,contrib/legacy/lazyphishingai.py:28)def clean_think(texto) -
clean_yaml(function,contrib/legacy/lazyphishingai.py:31)def clean_yaml(texto) -
truncate_message(function,contrib/legacy/lazyphishingai.py:37)def truncate_message(message, max_chars) -
configure_logging(function,contrib/legacy/lazyphishingai.py:42)def configure_logging(debug) -
create_complex_prompt(function,contrib/legacy/lazyphishingai.py:46)def create_complex_prompt(base_prompt, history, knowledge_base) -
load_knowledge_base(function,contrib/legacy/lazyphishingai.py:101)def load_knowledge_base(file_path) -
save_knowledge_base(function,contrib/legacy/lazyphishingai.py:110)def save_knowledge_base(knowledge_base, file_path) -
add_to_knowledge_base(function,contrib/legacy/lazyphishingai.py:117)def add_to_knowledge_base(prompt, command, file_path) -
get_relevant_knowledge(function,contrib/legacy/lazyphishingai.py:122)def get_relevant_knowledge(prompt) -
process_prompt_local_yaml(function,contrib/legacy/lazyphishingai.py:132)def process_prompt_local_yaml(prompt, debug, mode, output_file) -
generate(function,contrib/legacy/lazyphishingai.py:155)def generate() -
parse_args(function,contrib/legacy/lazyphishingai.py:192)def parse_args() -
MissingDependencyError(class,core/dependencies.py:37)class MissingDependencyError(ImportError)- Raised when an optional dependency is used but is not installed. -
__init__(method,core/dependencies.py:45)def __init__(self, import_name, pip_package, feature)- Build a remediation-oriented error message. -
DependencySpec(class,core/dependencies.py:66)class DependencySpec- Declarative metadata for a single optional Python dependency. -
_DeferredImport(class,core/dependencies.py:101)class _DeferredImport- Stand-in for a missing optional dependency. -
__init__(method,core/dependencies.py:115)def __init__(self, spec)- Store the dependency spec used to build remediation errors. -
_raise(method,core/dependencies.py:123)def _raise(self)- Raise a :class:MissingDependencyErrorfor the proxied dependency. -
__getattr__(method,core/dependencies.py:132)def __getattr__(self, _name)- Reject attribute access on a missing dependency. -
__call__(method,core/dependencies.py:136)def __call__(self)- Reject calling a missing dependency. -
__getitem__(method,core/dependencies.py:140)def __getitem__(self, _key)- Reject subscription of a missing dependency. -
__iter__(method,core/dependencies.py:144)def __iter__(self)- Reject iteration over a missing dependency.
- Internal resolved imports (EXTRACTED): 47
- Cross-boundary resolved imports (EXTRACTED): 41
- [EXTRACTED] depends_on community 1 <-> 9 (strength 0.9): Extracted import edge crosses communities: cli/banner_config.py imports core/parsers.py.
- [EXTRACTED] depends_on community 9 <-> 0 (strength 0.9): Extracted import edge crosses communities: cli/commands/ai.py imports modules/llm_factory.py.
- [EXTRACTED] depends_on community 9 <-> 12 (strength 0.9): Extracted import edge crosses communities: cli/commands/ai.py imports modules/killchain.py.
- [taint high]
cli/banner_config.py->core/parsers.pyviasubprocess(1 hops) - [taint high]
cli/banner_config.py->core/llm_budget.pyviasubprocess(5 hops)
- Why do 2 file(s) lack file-level docs (e.g.
discord_c2.py)? What purpose do they serve? - What would break if the most connected file in core changed?
- Should core be split, given cohesion 0.43?
cli/commands/ai.pycontrib/legacy/lazyphishingai.pycore/__init__.pycore/dependencies.pycore/errors.pycore/http.pycore/llm_budget.pycore/network.pycore/parsers.pydiscord_c2.pymodules/llm_adapter.pymodules/llm_prompts.pymodules/sidequestion.pyslack_c2_bot.pytelegram_c2.pytelegram_hermes.pytests/test_ai_commands_llm.pytests/test_dependencies.pytests/test_llm_adapter_parity.pytests/test_llm_budget.py- ... and 2 more
Generated offline by readmenator from commit 9f1ab88375b8. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_modules_autonomous_daemon
- community_10_skills_claude_md_orchestrator
- community_11_modules_surface_graph
- community_12_skills_hermes_lazyown
- community_13_modules_kerberos_core
- community_14_modules_saas_attacks
- community_15_modules_polymorphic_engine
- community_16_contrib_legacy
- community_17_tests
- community_18_scripts_journal
- community_19_modules_backdoor
- community_1_cli_commands_utils
- community_20_poc_tui
- community_21_scripts_check_contract_manifest
- community_22_scripts_migrate_lazyown
- community_23_tools
- community_24_orphans
- community_2_modules_lazy_loop
- community_3_cli
- community_4_modules_lazyc2
- community_5_lazygui_panels
- community_6_static_js
- community_7_modules_lazyown_facts
- community_8_cli_commands_c2_profile_engine
- community_9_core
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p24
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- ARCHITECTURE_p8
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p15
- KB_modules_p16
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_sinks
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p18
- KB_tests_p19
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p42
- SYMBOLS_p43
- SYMBOLS_p44
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes