Repository navigation
community_2_readmenator_agent_output
grisun0 edited this page Oct 16, 2026
·
9 revisions
Community 2 | 19 files | cohesion 0.33
This community groups 19 file(s) rooted at readmenator with dominant language py (cohesion 0.33). Central symbols: AgentOutputGenerator, DeclaredRule, FileCache, FolderReadmeWriter, FolderSpec, GitHubWikiPublisher, GraphAnalyzer, ImportResolver. Core file: tests/test_security.py (68 symbols). Documented purpose: Agent-friendly output generator for ReadMenator. Generates grep-optimized, flat-markdown files in a dedicated output directory. File names for per-subsystem f.
| File | Language | Layer | Symbols | Doc |
|---|---|---|---|---|
readmenator/_agent_output.py |
py | utility | 33 | yes |
readmenator/_analyzer.py |
py | utility | 23 | yes |
readmenator/_cache.py |
py | infrastructure | 14 | yes |
readmenator/_folder_readme.py |
py | utility | 7 | yes |
readmenator/_gh_wiki.py |
py | utility | 18 | yes |
readmenator/_gitmeta.py |
py | utility | 4 | yes |
readmenator/_memory.py |
py | utility | 30 | yes |
readmenator/_purpose.py |
py | utility | 7 | yes |
readmenator/_resolver.py |
py | utility | 17 | yes |
readmenator/_security.py |
py | utility | 32 | yes |
readmenator/_wiki.py |
py | utility | 32 | yes |
tests/test_agent_friendliness.py |
py | testing | 59 | yes |
tests/test_analyzer.py |
py | testing | 14 | yes |
tests/test_cache.py |
py | testing | 22 | yes |
tests/test_folder_readme.py |
py | testing | 20 | yes |
tests/test_gh_wiki.py |
py | testing | 17 | yes |
tests/test_resolver.py |
py | testing | 22 | yes |
tests/test_security.py |
py | testing | 68 | yes |
tests/test_wiki.py |
py | testing | 30 | no |
-
AgentOutputGenerator(class,readmenator/_agent_output.py:71)class AgentOutputGenerator- Generates agent-friendly, grep-optimised output files. -
__init__(method,readmenator/_agent_output.py:78)def __init__(self, config)- Store configuration for output paths and size budgets. -
generate(method,readmenator/_agent_output.py:82)def generate(self, nodes, edges, resolved_edges, analysis, analysis_v2, findings- Write all agent output files and return the output directory path. -
_infer_subsystems(method,readmenator/_agent_output.py:139)def _infer_subsystems(self, nodes)- Group nodes by directory, inferring subsystem names. -
_build_index(method,readmenator/_agent_output.py:174)def _build_index(self, nodes, subsystems, imported_by)- Build the file -> purpose -> subsystem -> blast radius table. -
_build_architecture(method,readmenator/_agent_output.py:206)def _build_architecture(self, edges, resolved_edges, nodes)- Build internal dependency pairs plus per-file external imports. -
_build_security(method,readmenator/_agent_output.py:258)def _build_security(self, findings, nodes)- Build findings grouped by severity with scope and fix hints. -
_enclosing_symbol(method,readmenator/_agent_output.py:294)def _enclosing_symbol(symbols, line)- Return the nearest symbol defined at or before line. -
_is_public(method,readmenator/_agent_output.py:304)def _is_public(self, sym)- Return whether a symbol belongs in the public API listing. -
_qualified_names(method,readmenator/_agent_output.py:311)def _qualified_names(symbols)- Map each method's index toOwner.methodusing the nearest preceding type. -
_build_api(method,readmenator/_agent_output.py:329)def _build_api(self, nodes, resolved_map, imported_by, layers)- Build one greppable line per public function or method. -
_build_manifest(method,readmenator/_agent_output.py:387)def _build_manifest(self, nodes, edges, resolved_edges, findings, project_root,- Build MANIFEST.json: freshness, entry points, read order, costs. -
_entrypoints(method,readmenator/_agent_output.py:461)def _entrypoints(self, nodes, layers)- Return likely program entry points, shallowest paths first. -
_inventory(method,readmenator/_agent_output.py:472)def _inventory(self, out_dir)- List generated documents with line counts and token estimates. -
_build_symbols(method,readmenator/_agent_output.py:487)def _build_symbols(self, nodes)- Build grep-friendly symbol index (one line per symbol). -
_closed_loop(method,readmenator/_agent_output.py:502)def _closed_loop(cycle)- Render a cycle as a closed loop without duplicating a closed tail. -
_build_gotchas(method,readmenator/_agent_output.py:509)def _build_gotchas(self, analysis, analysis_v2, nodes, layers, imported_by)- Build actionable warnings: blast radius, hotspots, cycles, violations. -
keep(function,readmenator/_agent_output.py:528)def keep(file_id)- Return whether a file belongs in the gotcha lists. -
_build_concepts(method,readmenator/_agent_output.py:631)def _build_concepts(self, analysis_v2)- Build the grep-friendly semantic concept layer. -
_safe_name(method,readmenator/_agent_output.py:671)def _safe_name(name)- Return a filesystem-safe subsystem name. -
_write_subsystem_files(method,readmenator/_agent_output.py:678)def _write_subsystem_files(self, out_dir, subsystems, resolved_map, imported_by,- Write one paged KB_.md per inferred subsystem. -
_build_subsystem_content(method,readmenator/_agent_output.py:693)def _build_subsystem_content(self, name, file_nodes, resolved_map, imported_by,- Build per-file context (purpose, layer, symbols, edges) for one subsystem. -
_write_recipes(method,readmenator/_agent_output.py:743)def _write_recipes(self, recipes_dir, analysis, analysis_v2, findings, layers)- Write task recipes grounded in this project's actual analysis data. -
_deps_by_source(method,readmenator/_agent_output.py:871)def _deps_by_source(resolved_map)- Index resolved dependencies by source file, sorted and deduplicated. -
_build_resolved_map(method,readmenator/_agent_output.py:881)def _build_resolved_map(resolved_edges)- Map (source, target) pairs to their relation. -
_build_imported_by_map(method,readmenator/_agent_output.py:891)def _build_imported_by_map(resolved_edges)- Map each file to the files that import it. -
_page_name(method,readmenator/_agent_output.py:901)def _page_name(filename, page)- Return the file name of a page (page 1 keeps the original name). -
_split_units(method,readmenator/_agent_output.py:909)def _split_units(body, is_table)- Split a document body into atomic units that should not straddle pages. -
_chunk_unit(method,readmenator/_agent_output.py:922)def _chunk_unit(unit, budget)- Split an oversized unit into budget-sized chunks with continued headings. -
_paginate(method,readmenator/_agent_output.py:939)def _paginate(self, filename, content)- Split a document into pages that each respect the line cap.
- Internal resolved imports (EXTRACTED): 39
- Cross-boundary resolved imports (EXTRACTED): 61
- [EXTRACTED] depends_on community 2 <-> 0 (strength 0.9): Extracted import edge crosses communities: readmenator/_agent_output.py imports readmenator/_config.py.
- [EXTRACTED] depends_on community 2 <-> 1 (strength 0.9): Extracted import edge crosses communities: readmenator/_agent_output.py imports readmenator/_models.py.
- [EXTRACTED] depends_on community 3 <-> 2 (strength 0.9): Extracted import edge crosses communities: readmenator/_components.py imports readmenator/_cache.py.
- [EXTRACTED] depends_on community 5 <-> 2 (strength 0.9): Extracted import edge crosses communities: readmenator/_diagrams.py imports readmenator/_folder_readme.py.
- [EXTRACTED] depends_on community 4 <-> 2 (strength 0.9): Extracted import edge crosses communities: readmenator/_pipeline.py imports readmenator/_agent_output.py.
- [taint high]
readmenator/_diagrams.py->readmenator/_folder_readme.pyviasubprocess(1 hops) - [layer strict]
tests/test_folder_readme.py(testing) ->readmenator/_components.py(presentation)
- Why do 1 file(s) lack file-level docs (e.g.
tests/test_wiki.py)? What purpose do they serve? - What would break if the most connected file in readmenator: _agent_output changed?
- Should readmenator: _agent_output be split, given cohesion 0.33?
readmenator/_agent_output.pyreadmenator/_analyzer.pyreadmenator/_cache.pyreadmenator/_folder_readme.pyreadmenator/_gh_wiki.pyreadmenator/_gitmeta.pyreadmenator/_memory.pyreadmenator/_purpose.pyreadmenator/_resolver.pyreadmenator/_security.pyreadmenator/_wiki.pytests/test_agent_friendliness.pytests/test_analyzer.pytests/test_cache.pytests/test_folder_readme.pytests/test_gh_wiki.pytests/test_resolver.pytests/test_security.pytests/test_wiki.py
Generated offline by readmenator from commit 0c608d6d6fa2. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_readmenator_video
- community_1_readmenator_parsers
- community_2_readmenator_agent_output
- community_3_readmenator_graphrag
- community_4_readmenator_pipeline
- community_5_readmenator_diagrams
- community_6_readmenator_flowcharts
- community_7_orphans
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p2
- ARCHITECTURE
- ARCHITECTURE_p2
- CONCEPTS
- GOTCHAS
- INDEX
- KB_misc
- KB_parsers
- KB_readmenator
- KB_readmenator_p2
- KB_readmenator_p3
- KB_readmenator_p4
- KB_readmenator_p5
- KB_root
- KB_tests
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p2
- SYMBOLS_p3
- SYMBOLS_p4
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
Recipes