Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
{
"shell/control_flow.sh": {
"file_info": {
"path": "lang_samples/shell/control_flow.sh",
"language": "shell",
"size_bytes": 734,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/shell/control_flow.sh::process",
"name": "process",
"qualified_name": "lang_samples.shell.control_flow.process",
"kind": "function",
"signature": "def process",
"start_line": 5,
"end_line": 36,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/shell/control_flow.sh::trivial",
"name": "trivial",
"qualified_name": "lang_samples.shell.control_flow.trivial",
"kind": "function",
"signature": "def trivial",
"start_line": 38,
"end_line": 40,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"process",
"trivial"
],
"export_aliases": {},
"calls": [
{
"target_name": "cat",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/control_flow.sh::process",
"line": 16,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "check_done",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/control_flow.sh::process",
"line": 27,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "step",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/control_flow.sh::process",
"line": 28,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "befe439c081cb9c86a614d5994a89150937346a39a9686e4832dd2032cdc3423",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"shell/functions.sh": {
"file_info": {
"path": "lang_samples/shell/functions.sh",
"language": "shell",
"size_bytes": 221,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/shell/functions.sh::greet",
"name": "greet",
"qualified_name": "lang_samples.shell.functions.greet",
"kind": "function",
"signature": "def greet",
"start_line": 4,
"end_line": 7,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/shell/functions.sh::deploy",
"name": "deploy",
"qualified_name": "lang_samples.shell.functions.deploy",
"kind": "function",
"signature": "def deploy",
"start_line": 9,
"end_line": 12,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
},
{
"id": "lang_samples/shell/functions.sh::build_step",
"name": "build_step",
"qualified_name": "lang_samples.shell.functions.build_step",
"kind": "function",
"signature": "def build_step",
"start_line": 14,
"end_line": 16,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"greet",
"deploy",
"build_step"
],
"export_aliases": {},
"calls": [
{
"target_name": "greet",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/functions.sh::deploy",
"line": 10,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "build_step",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/functions.sh::deploy",
"line": 11,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "6b448e7c5c76eeb1f706e2fc7a72aaedeed0c2f352a158dd3390c7bc02b1947e",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"shell/sourcing.sh": {
"file_info": {
"path": "lang_samples/shell/sourcing.sh",
"language": "shell",
"size_bytes": 259,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/shell/sourcing.sh::main",
"name": "main",
"qualified_name": "lang_samples.shell.sourcing.main",
"kind": "function",
"signature": "def main",
"start_line": 10,
"end_line": 13,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [
{
"raw_statement": "source \"$SCRIPT_DIR/lib/util.sh\"",
"module_path": "$SCRIPT_DIR/lib/util.sh",
"imported_names": [],
"is_relative": false,
"resolved_file": null,
"bindings": [],
"is_reexport": false,
"is_module_declaration": false,
"type_only": false,
"deferred": false
},
{
"raw_statement": ". ./helpers.sh",
"module_path": "./helpers.sh",
"imported_names": [],
"is_relative": true,
"resolved_file": null,
"bindings": [],
"is_reexport": false,
"is_module_declaration": false,
"type_only": false,
"deferred": false
},
{
"raw_statement": "source \"${BASH_SOURCE%/*}/lib/log.sh\"",
"module_path": "${BASH_SOURCE%/*}/lib/log.sh",
"imported_names": [],
"is_relative": false,
"resolved_file": null,
"bindings": [],
"is_reexport": false,
"is_module_declaration": false,
"type_only": false,
"deferred": false
}
],
"exports": [
"main"
],
"export_aliases": {},
"calls": [
{
"target_name": "dirname",
"receiver_name": null,
"caller_symbol_id": null,
"line": 4,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "util_init",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/sourcing.sh::main",
"line": 11,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "helper_run",
"receiver_name": null,
"caller_symbol_id": "lang_samples/shell/sourcing.sh::main",
"line": 12,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
},
{
"target_name": "main",
"receiver_name": null,
"caller_symbol_id": null,
"line": 15,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "c225e165b2145597b5fc6f907d51168ec8d1886126ca893481bc43c385551f57",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"shell/zero_functions.sh": {
"file_info": {
"path": "lang_samples/shell/zero_functions.sh",
"language": "shell",
"size_bytes": 149,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [],
"imports": [],
"exports": [],
"export_aliases": {},
"calls": [
{
"target_name": "rm",
"receiver_name": null,
"caller_symbol_id": null,
"line": 6,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "f783d82380d06790643f7bf9debfc1efe4949221e04a164f5c527fe866779734",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
},
"shell/zshisms.zsh": {
"file_info": {
"path": "lang_samples/shell/zshisms.zsh",
"language": "shell",
"size_bytes": 308,
"is_test": false,
"is_config": false,
"is_api_contract": false,
"is_entry_point": false,
"is_manifest_entry": false,
"is_reachability_root": false,
"is_application_main": false
},
"symbols": [
{
"id": "lang_samples/shell/zshisms.zsh::setup",
"name": "setup",
"qualified_name": "lang_samples.shell.zshisms.setup",
"kind": "function",
"signature": "def setup",
"start_line": 11,
"end_line": 13,
"docstring": null,
"decorators": [],
"visibility": "public",
"is_async": false,
"complexity_estimate": 1,
"language": "shell",
"parent_name": null,
"is_exported_symbol": false,
"is_declaration": false,
"type_parameter_count": null,
"extension_receiver": null,
"written_receiver": null,
"modifiers": [],
"alias_of": null
}
],
"imports": [],
"exports": [
"setup"
],
"export_aliases": {},
"calls": [
{
"target_name": "autoload",
"receiver_name": null,
"caller_symbol_id": null,
"line": 6,
"argument_count": null,
"receiver_call": null,
"scope_name": null,
"edge_type": "calls",
"supplied_props": null,
"bare_name_fallback": false,
"spawned": false,
"program_call": false,
"argument_types": null,
"argument_names": null
}
],
"heritage": [],
"docstring": null,
"parse_errors": [],
"content_hash": "f02cc421a5f37bc0d8def8e44c990da3cda7fdb478b434af5c33e62951268d6a",
"type_refs": [],
"local_refs": [],
"registrars": [],
"references": [],
"schema_refs": [],
"grammar_missing": false
}
}