Repository navigation
community_6_modules_llm_budget
grisun0 edited this page Oct 17, 2026
·
1 revision
Community 6 | 35 files | cohesion 0.43
This community groups 35 file(s) rooted at modules with dominant language py (cohesion 0.43). Central symbols: AIModel, ASTToolExtractor, AgentRunner, AgentTool, AiCommandSet, AnthropicModel, AuthError, BudgetConfig. Core file: tests/test_payload_schema.py (53 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 |
|---|---|---|---|---|
modules/agent_runner.py |
py | utility | 38 | yes |
modules/ai_model.py |
py | business_logic | 39 | yes |
modules/llm_adapter.py |
py | infrastructure | 15 | yes |
modules/llm_client.py |
py | infrastructure | 12 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
tests/test_ai_commands_llm.py |
py | testing | 18 | yes |
tests/test_core_config.py |
py | testing | 19 | yes |
tests/test_dependencies.py |
py | testing | 35 | yes |
tests/test_lazy_streaming.py |
py | testing | 17 | yes |
| 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 |
| 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 |
|---|---|---|---|---|
contrib/legacy/lazyaddon_creator.py |
py | utility | 14 | yes |
contrib/legacy/lazyllmchat.py |
py | utility | 30 | no |
contrib/legacy/lazyphishingai.py |
py | presentation | 12 | yes |
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
cli/commands/ai.py |
py | utility | 8 | yes |
... and 15 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. -
parse_github_url(function,contrib/legacy/lazyaddon_creator.py:49)def parse_github_url(url)- Extrae (owner, repo) de una URL de GitHub. -
github_api_get(function,contrib/legacy/lazyaddon_creator.py:58)def github_api_get(owner, repo, endpoint)- GET a la API pública de GitHub (sin auth, rate-limit 60/hr). -
fetch_repo_metadata(function,contrib/legacy/lazyaddon_creator.py:68)def fetch_repo_metadata(owner, repo)- Devuelve metadata básica del repo. -
fetch_readme(function,contrib/legacy/lazyaddon_creator.py:73)def fetch_readme(owner, repo)- Descarga y decodifica el README. -
fetch_root_files(function,contrib/legacy/lazyaddon_creator.py:85)def fetch_root_files(owner, repo)- Lista nombres de archivos en el directorio raíz. -
build_llm_prompt(function,contrib/legacy/lazyaddon_creator.py:98)def build_llm_prompt(meta, readme, root_files)- Construye el prompt para el LLM. -
extract_json_from_response(function,contrib/legacy/lazyaddon_creator.py:164)def extract_json_from_response(text)- Extrae el primer bloque JSON de una respuesta de LLM. -
heuristic_install_command(function,contrib/legacy/lazyaddon_creator.py:192)def heuristic_install_command(root_files, language)- Infiere un install_command básico a partir de los archivos raíz. -
heuristic_execute_command(function,contrib/legacy/lazyaddon_creator.py:211)def heuristic_execute_command(name, root_files, language)- Infiere un execute_command básico. -
heuristic_params(function,contrib/legacy/lazyaddon_creator.py:245)def heuristic_params(name, readme, root_files)- Infiere parámetros comunes basándose en el nombre y README. -
fallback_yaml_data(function,contrib/legacy/lazyaddon_creator.py:276)def fallback_yaml_data(meta, readme, root_files)- Genera datos de addon usando solo heurísticas locales (sin LLM). -
build_yaml(function,contrib/legacy/lazyaddon_creator.py:300)def build_yaml(data, repo_url)- Construye la estructura de dict que representa el addon YAML. -
save_yaml(function,contrib/legacy/lazyaddon_creator.py:336)def save_yaml(addon, output_dir)- Guarda el dict como archivo YAML en output_dir. -
main(function,contrib/legacy/lazyaddon_creator.py:357)def main() -
LazyOwnShellBridge(class,contrib/legacy/lazyllmchat.py:22)class LazyOwnShellBridge -
__init__(method,contrib/legacy/lazyllmchat.py:25)def __init__(self, script_path) -
_load_shell(method,contrib/legacy/lazyllmchat.py:31)def _load_shell(self) -
no_history_init(function,contrib/legacy/lazyllmchat.py:38)def no_history_init(self_) -
execute(method,contrib/legacy/lazyllmchat.py:65)def execute(self, command) -
target(function,contrib/legacy/lazyllmchat.py:70)def target() -
SessionContextProvider(class,contrib/legacy/lazyllmchat.py:104)class SessionContextProvider -
__init__(method,contrib/legacy/lazyllmchat.py:105)def __init__(self, session_path)
- Internal resolved imports (EXTRACTED): 89
- Cross-boundary resolved imports (EXTRACTED): 104
- [EXTRACTED] depends_on community 7 <-> 6 (strength 0.9): Extracted import edge crosses communities: cli/assign.py imports core/payload_schema.py.
- [EXTRACTED] depends_on community 0 <-> 6 (strength 0.9): Extracted import edge crosses communities: cli/banner_config.py imports core/parsers.py.
- [EXTRACTED] depends_on community 6 <-> 3 (strength 0.9): Extracted import edge crosses communities: cli/commands/ai.py imports modules/killchain.py.
- [EXTRACTED] depends_on community 6 <-> 4 (strength 0.9): Extracted import edge crosses communities: cli/commands/ai.py imports modules/llm_pool.py.
- [taint high]
cli/banner_config.py->core/parsers.pyviasubprocess(1 hops) - [taint high]
cli/banner_config.py->core/payload_schema.pyviasubprocess(3 hops) - [taint high]
cli/banner_config.py->modules/llm_factory.pyviasubprocess(4 hops) - [taint high]
cli/banner_config.py->core/llm_budget.pyviasubprocess(5 hops) - [taint high]
cli/banner_config.py->modules/llm_client.pyviasubprocess(5 hops) - [taint high]
cli/banner_config.py->modules/ai_model.pyviasubprocess(5 hops) - [cycle]
modules/llm_factory.py->modules/ai_model.py->modules/llm_factory.py - [cycle]
modules/llm_factory.py->modules/ai_model.py->modules/llm_factory.py - [cycle]
modules/llm_factory.py->modules/ai_model.py->modules/llm_factory.py
- Why do 3 file(s) lack file-level docs (e.g.
contrib/legacy/lazyllmchat.py)? What purpose do they serve? - Can the cycle
modules/llm_factory.py->modules/ai_model.pybe broken with an interface? - What would break if the most connected file in modules: llm_budget changed?
- Should modules: llm_budget be split, given cohesion 0.43?
cli/commands/ai.pycontrib/legacy/lazyaddon_creator.pycontrib/legacy/lazyllmchat.pycontrib/legacy/lazyphishingai.pycore/__init__.pycore/dependencies.pycore/errors.pycore/http.pycore/llm_budget.pycore/network.pycore/parsers.pycore/payload_schema.pydiscord_c2.pymodules/agent_runner.pymodules/ai_model.pymodules/llm_adapter.pymodules/llm_client.pymodules/llm_factory.pymodules/llm_prompts.pymodules/sidequestion.py- ... and 15 more
Generated offline by readmenator from commit 2f44e17e04bd. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_cli_commands
- community_10_modules_surface_graph
- community_11_modules_opsec_scorer
- community_12_modules_kerberos_core
- community_13_modules_saas_attacks
- community_14_modules_polymorphic_engine
- community_15_contrib_legacy
- community_16_scripts_journal
- community_17_modules_backdoor
- community_18_poc_tui
- community_19_scripts_check_contract_manifest
- community_1_modules_lazyc2
- community_20_scripts_migrate_lazyown
- community_21_tools
- community_22_orphans
- community_2_modules_lazy_loop
- community_3_cli
- community_4_modules_autonomous_daemon
- community_5_lazygui_panels
- community_6_modules_llm_budget
- community_7_static_js
- community_8_skills_claude_md_orchestrator
- community_9_skills_hermes_lazyown
- 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_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
- 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_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_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_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes