Skip to content

community_9_core

grisun0 edited this page Oct 21, 2026 · 3 revisions

core

Community 9 | 22 files | cohesion 0.43

Definition

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.

Files

core (7 files)

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

tests (6 files)

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

. (4 files)

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

modules (3 files)

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

cli/commands (1 files)

File Language Layer Symbols Doc
cli/commands/ai.py py utility 8 yes

contrib/legacy (1 files)

File Language Layer Symbols Doc
contrib/legacy/lazyphishingai.py py presentation 12 yes

... and 2 more files in this community.

Key Symbols

Internal vs External Edges

  • Internal resolved imports (EXTRACTED): 47
  • Cross-boundary resolved imports (EXTRACTED): 41

Connections

  • [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.

Risks

Open Questions

  • 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?

Sources

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally