87files
3modules
22,544lines
84classes
518functions
Module dependency graph
Graphviz not found — module dependency edges (weight):
Drill-down — module → file → function
harness13 files · 2,432 LOC
harness/local_harness/__init__.py 1 LOC
No top-level classes or functions.
harness/local_harness/batch/__init__.py 1 LOC
No top-level classes or functions.
harness/local_harness/batch/run.py 232 LOCBatch vulnhunt runner: clones repos from REPO_LIST.txt and scans them in parallel.
_repo_parts_from_url()— (internal helper) Provides the “repository parts from url” logic.repo_name_from_url()— Provides the “repository name from url” logic.repo_target_name_from_url()— Provides the “repository target name from url” logic.cmd_scan()— Provides the “cmd scan” logic.cmd_status()— Provides the “cmd status” logic.cmd_collect()— Provides the “cmd collect” logic.main()— Runs the main value.
harness/local_harness/batch/utils.py 197 LOCBatch scanning utilities: repo list parsing, result collection, status reporting.
parse_repo_list()— Reads and cleans up the repository list step.collect_results()— Looks up / reads the results value.scan_status()— Runs the status value.
harness/local_harness/benchmark/__init__.py 1 LOC
No top-level classes or functions.
harness/local_harness/benchmark/analyze_misses.py 459 LOCAnalyze missed benchmark findings to identify pipeline loss points and suggest prompt tunings.
extract_identifiers()— Reads and cleans up the identifiers value.search_file_for_identifiers()— Provides the “search file for identifiers” logic.locate_loss_phase()— Looks up / reads the loss phase step._infer_class_from_filename()— (internal helper) Provides the “infer class from filename” logic._type_to_class()— (internal helper) Provides the “type to class” logic.build_diagnostic_prompt()— Builds / writes the diagnostic prompt step.invoke_diagnostic()— Runs the diagnostic value._parse_diagnostic_output()— (internal helper) Reads and cleans up the diagnostic output step.write_analysis_json()— Builds / writes the analysis data file step.write_analysis_report()— Builds / writes the analysis report step.main()— Runs the main value._get_finding_description()— (internal helper) Looks up / reads the finding description step.
harness/local_harness/benchmark/finding_history.py 86 LOCGlobal per-finding detection history tracker.
load_history()— Looks up / reads the history value.save_history()— Builds / writes the history value.update_history()— Adds detail to the history value.get_stable_findings()— Looks up / reads the stable findings step.
harness/local_harness/benchmark/judge.py 152 LOCLLM-as-judge: compare vulnhunter scan results against benchmark findings.
read_results_report()— Looks up / reads the results report step.judge_findings_batch()— Provides the “judge findings batch” logic._is_judge_rate_limited()— (internal helper) Checks / decides the judge rate limited step._parse_judge_output()— (internal helper) Reads and cleans up the judge output step.
harness/local_harness/benchmark/run.py 454 LOCBenchmark test harness for VulnHunter.
load_all_benchmarks()— Looks up / reads the all benchmarks step.deduplicate_targets()— Provides the “deduplicate targets” logic.load_state()— Looks up / reads the state value.save_state()— Builds / writes the state value.phase_clone()— Provides the “phase clone” logic.phase_scan()— Provides the “phase scan” logic.phase_judge()— Provides the “phase judge” logic.phase_tally()— Provides the “phase tally” logic.filter_targets_by_findings()— Checks / decides the targets by findings step.main()— Runs the main value.
harness/local_harness/benchmark/tally.py 264 LOCGenerate benchmark tally reports from state data.
_fmt_duration()— (internal helper) Provides the “fmt duration” logic.generate_tally()— Provides the “generate tally” logic.write_tally_json()— Builds / writes the tally data file step.write_tally_markdown()— Builds / writes the tally markdown step.print_summary()— Provides the “print summary” logic.
harness/local_harness/clone.py 150 LOCClone repositories at specific commit hashes for benchmarking.
parse_source_url()— Reads and cleans up the source url step.target_dir_name()— Provides the “target dir name” logic.is_at_commit()— Checks / decides the at commit step.clone_at_commit()— Provides the “clone at commit” logic.shallow_clone()— Provides the “shallow clone” logic.
harness/local_harness/config.py 68 LOCShared constants for the VulnHunter test harness.
atomic_write_json()— Provides the “atomic write data file” logic.
harness/local_harness/scan.py 367 LOCRun vulnhunt scans on cloned repos.
ts()— Provides the “timestamp” logic._tail_lines()— (internal helper) Provides the “tail lines” logic.find_results_dir()— Looks up / reads the results dir step.has_valid_results()— Checks / decides the valid results step.clean_incomplete_results()— Reads and cleans up the incomplete results step.clean_prior_results()— Reads and cleans up the prior results step.is_rate_limit_failure()— Checks / decides the rate limit failure step.extract_cost_from_log()— Reads and cleans up the cost from log step.scan_folder()— Runs the folder value.scan_folder_with_retry()— Runs the folder with retry step.scan_targets()— Runs the targets value.
vulnhunter-agent35 files · 13,259 LOC
vulnhunter-agent/agent/__init__.py 2 LOCVulnHunter agent: clone a repo and run /vulnhunt via Claude Agent SDK.
No top-level classes or functions.
vulnhunter-agent/agent/__main__.py 1320 LOCCLI entrypoint: ``--mode=scan`` clones a repo and runs /vulnhunt;
PreflightError— Represents the “PreflightError” data/behaviour._build_parser()— (internal helper) Builds / writes the parser value._configure_logging()— (internal helper) Sets up / maintains the logging value._short_sha()— (internal helper) Provides the “short content hash” logic._resolve_modes()— (internal helper) Checks / decides the modes value._validate_modes()— (internal helper) Checks / decides the modes value._required_roles()— (internal helper) Provides the “required roles” logic._preflight_standalone_tokens()— (internal helper) Provides the “preflight standalone tokens” logic._is_pat_on_app_endpoint()— (internal helper) Checks / decides the pat on app endpoint step._format_preflight_failure()— (internal helper) Builds / writes the preflight failure step._token_fingerprint()— (internal helper) Provides the “token fingerprint” logic._apply_audit_overrides()— (internal helper) Runs the audit overrides step._apply_issues_overrides()— (internal helper) Runs the issues overrides step._cli_repo_properties()— (internal helper) Provides the “command-line repository properties” logic._resolve_repo_properties()— (internal helper) Checks / decides the repository properties step._amain()— (internal helper) Provides the “amain” logic._run_scan_flow()— (internal helper) Runs the scan flow step._amain_verify()— (internal helper) Provides the “amain verify” logic._issue_url_to_repo_url()— (internal helper) Checks / decides the url to repository url step._audit_context_for_results()— (internal helper) Provides the “audit context for results” logic._repo_slug_for_audit()— (internal helper) Provides the “repository slug for audit” logic.main()— Runs the main value.
vulnhunter-agent/agent/_body_reconstruct.py 93 LOCRecover an issue body's original text from GitHub's edit history.
DiffApplyError— Represents the “DiffApplyError” data/behaviour.reconstruct_original()— Provides the “reconstruct original” logic.
vulnhunter-agent/agent/_github.py 63 LOCShared GitHub helpers used by the publish and issues stages.
GitHubURLError— Represents the “GitHubURLError” data/behaviour.api_base()— Provides the “api base” logic.parse_owner_repo()— Reads and cleans up the owner repository step.extract_timestamp()— Reads and cleans up the timestamp value.
vulnhunter-agent/agent/_github_verify.py 600 LOCGitHub REST + GraphQL surface used by ``--mode=verify``.
GitHubVerifyError— Represents the “GitHubVerifyError” data/behaviour.IssueRef— Represents the “IssueRef” data/behaviour.FetchedIssue— Represents the “FetchedIssue” data/behaviour.IssueComment— Represents the “IssueComment” data/behaviour.IssueEvent— Represents the “IssueEvent” data/behaviour.UserContentEdit— Represents the “UserContentEdit” data/behaviour._headers()— (internal helper) Provides the “headers” logic.parse_issue_url()— Reads and cleans up the issue url step.issue_host()— Checks / decides the host value._request_with_retry()— (internal helper) Provides the “request with retry” logic.get_issue()— Looks up / reads the issue value.list_comments()— Provides the “list comments” logic.list_events()— Provides the “list events” logic._next_link()— (internal helper) Provides the “next link” logic.list_user_content_edits()— Provides the “list user content edits” logic.post_comment()— Provides the “post comment” logic.reopen_issue()— Provides the “reopen issue” logic.make_client()— Builds / writes the client value.
vulnhunter-agent/agent/_llm.py 557 LOCLLM calls routed through the Claude Agent SDK.
LLMError— Represents the “LLMError” data/behaviour.TransientLLMError— Represents the “TransientLLMError” data/behaviour.CostStats— Represents the “CostStats” data/behaviour.add_result()— Adds detail to the result value.
_looks_transient_at_boundary()— (internal helper) Provides the “looks transient at boundary” logic._classify_boundary_error()— (internal helper) Provides the “classify boundary error” logic._is_transient()— (internal helper) Checks / decides the transient value._extract_json_block()— (internal helper) Reads and cleans up the data file block step._send_prompt()— (internal helper) Provides the “send prompt” logic._build_async_retrying()— (internal helper) Builds / writes the async retrying step._make_retry_logger()— (internal helper) Builds / writes the retry logger step.call_json()— Provides the “call data file” logic.call_json_with_fallback()— Provides the “call data file with fallback” logic.estimate_tokens()— Provides the “estimate tokens” logic.
vulnhunter-agent/agent/_stream_events.py 484 LOCShared SDK-event rendering and cumulative-totals logging.
SessionTotals— Represents the “SessionTotals” data/behaviour.set_verbosity()— Provides the “set verbosity” logic.get_verbosity()— Looks up / reads the verbosity value._truncate()— (internal helper) Provides the “truncate” logic._tool_brief()— (internal helper) Provides the “tool brief” logic._result_brief()— (internal helper) Provides the “result brief” logic._render_block()— (internal helper) Builds / writes the block value._agent_name_from_started()— (internal helper) Provides the “agent name from started” logic._log_per_turn_usage()— (internal helper) Provides the “log per turn usage” logic._log_assistant_message()— (internal helper) Provides the “log assistant message” logic._log_user_message()— (internal helper) Provides the “log user message” logic._log_task_started()— (internal helper) Provides the “log task started” logic._log_task_status()— (internal helper) Provides the “log task status” logic._log_system_message()— (internal helper) Provides the “log system message” logic._log_result()— (internal helper) Provides the “log result” logic.accumulate_result()— Provides the “accumulate result” logic.log_session_totals()— Provides the “log session totals” logic.
vulnhunter-agent/agent/_transient.py 102 LOCShared transient-error indicator regex + typed-first classifier.
is_transient_text()— Checks / decides the transient text step.is_transient_status()— Checks / decides the transient status step.classify()— Provides the “classify” logic.
vulnhunter-agent/agent/_url.py 127 LOCShared URL helpers for cloning and publishing.
redact()— Hides sensitive data in the secret hiding value._normalize_repo_path()— (internal helper) Reads and cleans up the repository path step._path_is_authorized()— (internal helper) Provides the “path is authorized” logic.inject_token()— Provides the “inject token” logic.
vulnhunter-agent/agent/audit.py 821 LOCJSONL audit + findings-event emission.
ULIDGenerator— Represents the “ULIDGenerator” data/behaviour.__init__()— Python built-in method (`__init__`).new()— Provides the “new” logic.
AuditPaths— Represents the “AuditPaths” data/behaviour.from_config()— Provides the “from config” logic.
AuditWriter— Represents the “AuditWriter” data/behaviour.__init__()— Python built-in method (`__init__`).emit_audit()— Builds / writes the audit value.emit_finding()— Builds / writes the finding value.close()— Provides the “close” logic._emit()— (internal helper) Builds / writes the emit value._get_handle()— (internal helper) Looks up / reads the handle value._handle_error()— (internal helper) Provides the “handle error” logic.
AuditWriteError— Represents the “AuditWriteError” data/behaviour._encode_ms()— (internal helper) Provides the “encode ms” logic._encode_rand()— (internal helper) Provides the “encode rand” logic.new_ulid()— Provides the “new ulid” logic.event_time_now()— Provides the “event time now” logic.report_id_from()— Provides the “report identifier from” logic.finding_id_for()— Looks up / reads the identifier for step.event_id()— Provides the “event identifier” logic._open_append()— (internal helper) Provides the “open append” logic._serialize()— (internal helper) Provides the “serialize” logic._clean()— (internal helper) Reads and cleans up the clean value._common_scan_fields()— (internal helper) Provides the “common scan fields” logic.build_scan_started()— Builds / writes the scan started step.build_model_fallback()— Builds / writes the model fallback step.build_model_unavailable()— Builds / writes the model unavailable step.build_scan_completed()— Builds / writes the scan completed step.build_verify_started()— Builds / writes the verify started step.build_verify_decision()— Builds / writes the verify decision step.build_verify_completed()— Builds / writes the verify completed step.build_finding_opened()— Builds / writes the finding opened step.build_clean_scan_notified()— Builds / writes the clean scan notified step._short_vuln()— (internal helper) Provides the “short vuln” logic._truncate_freetext()— (internal helper) Provides the “truncate freetext” logic.build_finding_event()— Builds / writes the finding event step.writer_from_config()— Builds / writes the from config step.
vulnhunter-agent/agent/audit_extract.py 160 LOCConvert a VulnHunter scan's extracted findings into audit-stream records.
count_findings_from_disk()— Provides the “count findings from disk” logic.build_finding_events()— Builds / writes the finding events step._one()— (internal helper) Provides the “one” logic.relativize()— Provides the “relativize” logic.
vulnhunter-agent/agent/auth.py 165 LOCAnthropic auth providers for the agent.
TokenProvider— Represents the “TokenProvider” data/behaviour.get_valid_token()— Looks up / reads the valid token step.
AuthTokenError— Represents the “AuthTokenError” data/behaviour.ApiKeyTokenManager— Represents the “ApiKeyTokenManager” data/behaviour.__init__()— Python built-in method (`__init__`).get_valid_token()— Looks up / reads the valid token step.
SigV4TokenManager— Represents the “SigV4TokenManager” data/behaviour.__init__()— Python built-in method (`__init__`).get_valid_token()— Looks up / reads the valid token step.
OAuthTokenManager— Represents the “OAuthTokenManager” data/behaviour.__init__()— Python built-in method (`__init__`).get_valid_token()— Looks up / reads the valid token step._refresh()— (internal helper) Provides the “refresh” logic.
resolve_verify()— Checks / decides the verify value.make_token_manager()— Builds / writes the token manager step.
vulnhunter-agent/agent/build_settings.py 224 LOCBuild the Claude Code settings JSON the SDK passes through to the CLI.
resolve_autocompact_pct()— Checks / decides the autocompact pct step._anthropic_host()— (internal helper) Provides the “anthropic host” logic._sandbox_allow_read_paths()— (internal helper) Provides the “sandbox allow read paths” logic._sandbox_allowed_domains()— (internal helper) Provides the “sandbox allowed domains” logic._build_sandbox()— (internal helper) Builds / writes the sandbox value.build_claude_settings()— Builds / writes the claude settings step.
vulnhunter-agent/agent/clone.py 291 LOCShallow-clone an arbitrary git URL into the configured clone base dir.
_reject_option_like()— (internal helper) Provides the “reject option like” logic._derive_repo_name()— (internal helper) Provides the “derive repository name” logic.shallow_clone()— Provides the “shallow clone” logic.clone_at_commit()— Provides the “clone at commit” logic.
vulnhunter-agent/agent/config.py 903 LOCConfiguration loader for the vulnhunter agent.
AnthropicConfig— Represents the “AnthropicConfig” data/behaviour.OAuthConfig— Represents the “OAuthConfig” data/behaviour.TLSConfig— Represents the “TLSConfig” data/behaviour.SandboxConfig— Represents the “SandboxConfig” data/behaviour.TelemetryConfig— Represents the “TelemetryConfig” data/behaviour.ScanConfig— Represents the “ScanConfig” data/behaviour.GitHubConfig— Represents the “GitHubConfig” data/behaviour.PublishConfig— Represents the “PublishConfig” data/behaviour.AuditConfig— Represents the “AuditConfig” data/behaviour.LoggingConfig— Represents the “LoggingConfig” data/behaviour.IssuesConfig— Represents the “IssuesConfig” data/behaviour.VerifyConfig— Represents the “VerifyConfig” data/behaviour.RepoPropertiesConfig— Represents the “RepoPropertiesConfig” data/behaviour.AgentConfig— Represents the “AgentConfig” data/behaviour._resolve_config_path()— (internal helper) Checks / decides the config path step._env_name()— (internal helper) Provides the “environment name” logic._coerce()— (internal helper) Reads and cleans up the coerce value._resolve()— (internal helper) Checks / decides the resolve value.load_config()— Looks up / reads the config value.
vulnhunter-agent/agent/issues.py 1089 LOCIssues stage entrypoint: extract → ensure labels → fetch → dedup → post.
IssuesStageError— Represents the “IssuesStageError” data/behaviour.IssuePostError— Represents the “IssuePostError” data/behaviour.PostedIssue— Represents the “PostedIssue” data/behaviour.SkippedIssue— Represents the “SkippedIssue” data/behaviour.FailedIssue— Represents the “FailedIssue” data/behaviour.CleanScanOutcome— Represents the “CleanScanOutcome” data/behaviour.PostSummary— Represents the “PostSummary” data/behaviour.any_failed()— Provides the “any failed” logic.
_is_retryable()— (internal helper) Checks / decides the retryable value._github_default_headers()— (internal helper) Provides the “github default headers” logic._emit_finding_opened()— (internal helper) Builds / writes the finding opened step._ensure_label()— (internal helper) Checks / decides the label value._ensure_all_labels()— (internal helper) Checks / decides the all labels step._create_issue()— (internal helper) Builds / writes the issue value._close_issue()— (internal helper) Provides the “close issue” logic._post_issue_comment()— (internal helper) Provides the “post issue comment” logic._iso_from_results_timestamp()— (internal helper) Checks / decides the from results timestamp step._build_clean_scan_ctx()— (internal helper) Builds / writes the clean scan context step._emit_clean_scan_notified()— (internal helper) Builds / writes the clean scan notified step._post_clean_scan_notice()— (internal helper) Provides the “post clean scan notice” logic._post_clean_scan_notice_inner()— (internal helper) Provides the “post clean scan notice inner” logic._issue_number_from_url()— (internal helper) Checks / decides the number from url step.post_issues()— Provides the “post issues” logic.print_summary()— Provides the “print summary” logic.build_report_url_for_local_scan()— Builds / writes the report url for local scan step.build_report_url_for_remote_report()— Builds / writes the report url for remote report step.
vulnhunter-agent/agent/issues_dedup.py 388 LOCDedup new findings against open GitHub issues.
DedupDecision— Represents the “DedupDecision” data/behaviour._extract_keys()— (internal helper) Reads and cleans up the keys value._key_pass()— (internal helper) Provides the “key pass” logic._summarize_finding()— (internal helper) Provides the “summarize finding” logic._summarize_issue()— (internal helper) Provides the “summarize issue” logic._build_user_msg()— (internal helper) Builds / writes the user msg step._budget_tokens()— (internal helper) Provides the “budget tokens” logic._per_issue_cost()— (internal helper) Provides the “per issue cost” logic._chunk_issues()— (internal helper) Provides the “chunk issues” logic._semantic_pass()— (internal helper) Provides the “semantic pass” logic.dedup()— Provides the “duplicate removal” logic.
vulnhunter-agent/agent/issues_extract.py 295 LOCExtract confirmed findings from a VulnHunter results README via Haiku.
Finding— Represents the “Finding” data/behaviour.to_dict()— Provides the “to dict” logic.
ExtractedReport— Represents the “ExtractedReport” data/behaviour._scan_date_from_dir()— (internal helper) Runs the date from dir step._compute_vulnfix_key()— (internal helper) Provides the “compute vulnfix key” logic._canonical_vuln_id()— (internal helper) Provides the “canonical vuln identifier” logic._discover_finding_files()— (internal helper) Looks up / reads the finding files step._coerce_finding()— (internal helper) Reads and cleans up the finding value.extract_findings()— Reads and cleans up the findings value.
vulnhunter-agent/agent/issues_fetch.py 184 LOCFetch open GitHub issues carrying a label, paginated.
IssuesFetchError— Represents the “IssuesFetchError” data/behaviour.OpenIssue— Represents the “OpenIssue” data/behaviour._is_retryable()— (internal helper) Checks / decides the retryable value.fetch_open_issues_with_label()— Looks up / reads the open issues with label step._get_with_retry()— (internal helper) Looks up / reads the with retry step._coerce()— (internal helper) Reads and cleans up the coerce value.
vulnhunter-agent/agent/issues_remote_report.py 285 LOCDownload the newest VulnHunter report for a source repo from the publish destination.
RemoteReportError— Represents the “RemoteReportError” data/behaviour.DownloadedReport— Represents the “DownloadedReport” data/behaviour.cleanup()— Reads and cleans up the cleanup value.
_run()— (internal helper) Runs the run value.download_latest_report()— Provides the “download latest report” logic.download_named_report()— Provides the “download named report” logic.
vulnhunter-agent/agent/issues_render.py 263 LOCRender a Finding into a GitHub issue title and body.
CleanScanContext— Represents the “CleanScanContext” data/behaviour._report_access_message()— (internal helper) Provides the “report access message” logic._github_anchor()— (internal helper) Provides the “github anchor” logic._build_report_url()— (internal helper) Builds / writes the report url step.render_title()— Builds / writes the title value._sanitize_for_issue_body()— (internal helper) Hides sensitive data in the for issue body step.render_body()— Builds / writes the body value._find_placeholders()— (internal helper) Looks up / reads the placeholders value.render_clean_scan_title()— Builds / writes the clean scan title step.render_clean_scan_body()— Builds / writes the clean scan body step.render_clean_scan_comment()— Builds / writes the clean scan comment step._render_clean_scan()— (internal helper) Builds / writes the clean scan step.
vulnhunter-agent/agent/manifest.py 117 LOCProducer-side writer for ``<results_dir>/scan_manifest.json``.
write_manifest()— Builds / writes the manifest value._load_schema()— (internal helper) Looks up / reads the schema value.
vulnhunter-agent/agent/publish.py 392 LOCPublish stage: push the VULNHUNT_RESULTS directory to a remote git repo.
PublishError— Represents the “PublishError” data/behaviour._parse_owner_repo()— (internal helper) Reads and cleans up the owner repository step.ensure_destination_repo()— Checks / decides the destination repository step._run()— (internal helper) Runs the run value._validate_token_compatibility()— (internal helper) Checks / decides the token compatibility step.publish_results()— Provides the “publish results” logic.
vulnhunter-agent/agent/repo_properties.py 236 LOCResolve optional per-repo metadata tags stamped onto findings records.
RepoProperties— Represents the “RepoProperties” data/behaviour.is_empty()— Checks / decides the empty value.get()— Looks up / reads the get value.
resolve()— Checks / decides the resolve value.fetch_from_github()— Looks up / reads the from github step._coerce_from_payload()— (internal helper) Reads and cleans up the from payload step._stringify()— (internal helper) Provides the “stringify” logic.
vulnhunter-agent/agent/runner.py 1271 LOCSDK runner: launch /vulnhunt against a clone via the Claude Agent SDK.
PriorResultsError— Represents the “PriorResultsError” data/behaviour.AuthRejectedError— Represents the “AuthRejectedError” data/behaviour.RateLimitError— Represents the “RateLimitError” data/behaviour._SessionResult— (internal) Represents the “SessionResult” data/behaviour._model_tag()— (internal helper) Provides the “model tag” logic._build_vulnhunt_prompt()— (internal helper) Builds / writes the vulnhunt prompt step._vulnhunt_skill_path()— (internal helper) Provides the “vulnhunt skill path” logic._find_results_dir()— (internal helper) Looks up / reads the results dir step._git_context()— (internal helper) Provides the “git context” logic._git_branch_label()— (internal helper) Provides the “git branch label” logic._git_repo_url()— (internal helper) Provides the “git repository url” logic._normalize_repo_url()— (internal helper) Reads and cleans up the repository url step._repo_slug_from_url()— (internal helper) Provides the “repository slug from url” logic._run_git()— (internal helper) Runs the git value._compute_results_dir()— (internal helper) Provides the “compute results dir” logic._check_no_prior_results()— (internal helper) Checks / decides the no prior results step.run_vulnhunt()— Runs the vulnhunt value._emit_scan_completed()— (internal helper) Builds / writes the scan completed step._emit_scan_completed_safely()— (internal helper) Builds / writes the scan completed safely step._build_scan_retrying()— (internal helper) Builds / writes the scan retrying step._log_scan_retry()— (internal helper) Provides the “log scan retry” logic._run_scan_session()— (internal helper) Runs the scan session step._is_auth_failure()— (internal helper) Checks / decides the auth failure step._is_rate_limit_system_message()— (internal helper) Checks / decides the rate limit system message step._is_rate_limit_result()— (internal helper) Checks / decides the rate limit result step.
vulnhunter-agent/agent/skill_version.py 29 LOCResolve the commit-level identity of this build.
resolve()— Checks / decides the resolve value.
vulnhunter-agent/agent/token_client.py 113 LOCAgent-side accessor for GitHub identity tokens.
BrokerTokenAuth— Represents the “BrokerTokenAuth” data/behaviour.__init__()— Python built-in method (`__init__`).auth_flow()— Provides the “auth flow” logic.
get_github_token()— Looks up / reads the github token step._read_broker_file()— (internal helper) Looks up / reads the broker file step._read_token_field()— (internal helper) Looks up / reads the token field step.
vulnhunter-agent/agent/verify.py 1221 LOC``--mode=verify`` orchestrator.
_FetchedRecord— (internal) Represents the “FetchedRecord” data/behaviour._RunState— (internal) Represents the “RunState” data/behaviour.run_verify()— Runs the verify value._fetch_all_issues()— (internal helper) Looks up / reads the all issues step._enforce_homogeneity()— (internal helper) Provides the “enforce homogeneity” logic._target_repo_url()— (internal helper) Provides the “target repository url” logic._target_repo_url_to_slug()— (internal helper) Provides the “target repository url to slug” logic._emit_verify_dispositions()— (internal helper) Builds / writes the verify dispositions step._map_verify_verdict()— (internal helper) Reads and cleans up the verify verdict step._contained_run_dir()— (internal helper) Provides the “contained run dir” logic._make_run_id()— (internal helper) Builds / writes the run identifier step._run_skill()— (internal helper) Runs the skill value._preflight_clone_requests()— (internal helper) Provides the “preflight clone requests” logic._build_preflight_text()— (internal helper) Builds / writes the preflight text step._neutralize_preflight_body()— (internal helper) Provides the “neutralize preflight body” logic._process_clone_request()— (internal helper) Runs the clone request step._sanitize_clone_subdir()— (internal helper) Hides sensitive data in the clone subdir step._verify_entry_count()— (internal helper) Checks / decides the entry count step._post_dispositions()— (internal helper) Provides the “post dispositions” logic._print_summary()— (internal helper) Provides the “print summary” logic.
vulnhunter-agent/agent/verify_extract.py 341 LOCExtract verify-mode inputs from a GitHub issue's content.
MarkerExtractionError— Represents the “MarkerExtractionError” data/behaviour.ExtractedMarkers— Represents the “ExtractedMarkers” data/behaviour.IssueNarrative— Represents the “IssueNarrative” data/behaviour._neutralize_markers()— (internal helper) Provides the “neutralize markers” logic.extract_markers()— Reads and cleans up the markers value._parse_iso()— (internal helper) Reads and cleans up the iso value._latest_close_timestamp()— (internal helper) Provides the “latest close timestamp” logic.build_narrative()— Builds / writes the narrative value.render_comments_file()— Builds / writes the comments file step.write_comments_file()— Builds / writes the comments file step.
vulnhunter-agent/agent/verify_post.py 231 LOCPost verify outcomes back to the source GitHub issues.
PostResult— Represents the “PostResult” data/behaviour._render_verdict_comment()— (internal helper) Builds / writes the verdict comment step.post_disposition()— Provides the “post disposition” logic.should_reopen()— Provides the “should reopen” logic.
vulnhunter-agent/agent/verify_refs.py 200 LOCPre-flight extraction of cross-repo references from developer comments.
extract_cross_repo_references()— Reads and cleans up the cross repository references step._coerce_sources()— (internal helper) Reads and cleans up the sources value.
vulnhunter-agent/agent/verify_resolve.py 256 LOCResolve verify-mode inputs that require git / GitHub operations.
ResolveError— Represents the “ResolveError” data/behaviour._hint_host()— (internal helper) Provides the “hint host” logic.resolve_repo_hint()— Checks / decides the repository hint step.authorized_token_path_prefixes()— Provides the “authorized token path prefixes” logic.clone_additional_repo()— Provides the “clone additional repository” logic.clone_target_repo()— Provides the “clone target repository” logic.stage_report()— Builds / writes the report value.
vulnhunter-agent/agent/verify_runner.py 428 LOCSDK driver for ``/vulnhunt-fix-verify`` skill invocations.
OutputKind— Represents the “OutputKind” data/behaviour.VerifySessionResult— Represents the “VerifySessionResult” data/behaviour._schema_root()— (internal helper) Provides the “schema root” logic.build_kickoff_prompt()— Builds / writes the kickoff prompt step.classify_output()— Provides the “classify output” logic._load_and_validate()— (internal helper) Looks up / reads the and validate step.run_verify_session()— Runs the verify session step._dispatch_event()— (internal helper) Runs the event value._event_summary()— (internal helper) Provides the “event summary” logic.
vulnhunter-agent/vulnhunter/__init__.py 2 LOC
No top-level classes or functions.
vulnhunter-agent/vulnhunter/app.py 6 LOC
main()— Runs the main value.
vulnhunter-fix39 files · 6,853 LOC
vulnhunter-fix/scripts/_skill_bootstrap.py 105 LOCSys.path + interpreter bootstrap for the installed skill layout.
_same_interpreter()— (internal helper) Provides the “same interpreter” logic._prepend_once()— (internal helper) Provides the “prepend once” logic.
vulnhunter-fix/scripts/anti-merge-check.py 94 LOCAnti-merge grouping check (REQ-GAT-006).
main()— Runs the main value.
vulnhunter-fix/scripts/build_graph.py 192 LOCBuild a graph for a repository and (optionally) per-finding sidecars.
_now()— (internal helper) Provides the “now” logic._sink_symbol_from_finding()— (internal helper) Provides the “sink symbol from finding” logic._build_sidecar()— (internal helper) Builds / writes the sidecar value.main()— Runs the main value.
vulnhunter-fix/scripts/check-body-completeness.py 160 LOCGate 2 — body completeness (REQ-GAT-003).
_fence_ranges()— (internal helper) Provides the “fence ranges” logic._mask_fences()— (internal helper) Hides sensitive data in the fences value._find_section_content()— (internal helper) Looks up / reads the section content step.check()— Checks / decides the check value.main()— Runs the main value.
vulnhunter-fix/scripts/check-committed-test-naming.py 158 LOCCommitted-test-naming gate (REQ-GAT-013).
offending_files()— Provides the “offending files” logic._git()— (internal helper) Provides the “git” logic._resolve_base()— (internal helper) Checks / decides the base value._added_files()— (internal helper) Adds detail to the files value.main()— Runs the main value.
vulnhunter-fix/scripts/check-idempotency.py 55 LOCGate 4 — idempotency (REQ-GAT-005).
check()— Checks / decides the check value.main()— Runs the main value.
vulnhunter-fix/scripts/check-scope.py 96 LOCGate 3 — scope (REQ-GAT-004).
_looks_like_ref()— (internal helper) Provides the “looks like ref” logic.check()— Checks / decides the check value.main()— Runs the main value.
vulnhunter-fix/scripts/check-severity-mask.py 121 LOCGate 1 — severity mask (REQ-GAT-002).
_normalize()— (internal helper) Reads and cleans up the normalize value._matches_safe_phrase()— (internal helper) Checks / decides the safe phrase step.scan()— Runs the scan value.main()— Runs the main value.
vulnhunter-fix/scripts/cluster_score.py 177 LOCScore clusters by risk-reduction weight.
Cluster— Represents the “Cluster” data/behaviour.score()— Checks / decides the score value.member_count()— Provides the “member count” logic.
is_generic_cluster_name()— Checks / decides the generic cluster name step.weight_for()— Provides the “weight for” logic.score_breakdown()— Checks / decides the breakdown value.sort_clusters()— Provides the “sort clusters” logic.annotate_clusters_json()— Adds detail to the clusters data file step.main_with_argv()— Runs the with argv step.main()— Runs the main value.
vulnhunter-fix/scripts/compute-completeness-tier.py 266 LOCDeterministic completeness-tier classifier.
_read_diff()— (internal helper) Looks up / reads the code change value._read_plan()— (internal helper) Looks up / reads the plan value._diff_added_lines()— (internal helper) Provides the “code change added lines” logic._diff_removed_lines()— (internal helper) Provides the “code change removed lines” logic._files_changed()— (internal helper) Provides the “files changed” logic._check_workaround_signals()— (internal helper) Checks / decides the workaround signals step._check_mitigation_signals()— (internal helper) Checks / decides the mitigation signals step._check_full_signals()— (internal helper) Checks / decides the full signals step.classify()— Provides the “classify” logic.main()— Runs the main value.
vulnhunter-fix/scripts/crypto-trust-chain-checkers.py 374 LOCMechanical crypto trust-chain checkers (REQ-CWE-009).
TrustChainResult— Represents the “TrustChainResult” data/behaviour._unquote()— (internal helper) Provides the “unquote” logic._strip_inline_comment()— (internal helper) Provides the “strip inline comment” logic._load_yaml_flat()— (internal helper) Looks up / reads the config file flat step._read_diff()— (internal helper) Looks up / reads the code change value._added_lines()— (internal helper) Adds detail to the lines value._token_present()— (internal helper) Provides the “token present” logic._strip_line_comment()— (internal helper) Provides the “strip line comment” logic._weak_key_parameter()— (internal helper) Provides the “weak key parameter” logic.check_algorithm_approved()— Checks / decides the algorithm approved step._annotation_within_window()— (internal helper) Provides the “annotation within window” logic.check_key_source_approved()— Checks / decides the key source approved step.check_key_rotation_present()— Checks / decides the key rotation present step.check_transport_encrypted()— Checks / decides the transport encrypted step.run_checkers()— Runs the checkers value.main()— Runs the main value.
vulnhunter-fix/scripts/heading-sync-lint.py 164 LOCHeading sync lint (REQ-GAT-003).
_extract_str_constant()— (internal helper) Reads and cleans up the str constant step._extract_tuple_constant()— (internal helper) Reads and cleans up the tuple constant step._heading_present()— (internal helper) Provides the “heading present” logic.main()— Runs the main value.
vulnhunter-fix/scripts/issue_intake.py 194 LOCIssue intake primitives for in-place mode.
MarkerExtractionError— Represents the “MarkerExtractionError” data/behaviour.ExtractedMarkers— Represents the “ExtractedMarkers” data/behaviour.DiffApplyError— Represents the “DiffApplyError” data/behaviour.IssueRecord— Represents the “IssueRecord” data/behaviour.extract_markers()— Reads and cleans up the markers value.reconstruct_original()— Provides the “reconstruct original” logic.enforce_homogeneity()— Provides the “enforce homogeneity” logic._primary_cwe()— (internal helper) Provides the “primary cwe” logic.compute_vulnfix_key()— Provides the “compute vulnfix key” logic.
vulnhunter-fix/scripts/language-detect.py 135 LOCDetect a target repo's primary programming language.
_manifest_present()— (internal helper) Provides the “manifest present” logic.detect()— Looks up / reads the detect value.main()— Runs the main value.
vulnhunter-fix/scripts/parse-tier-judgment.py 132 LOCParse tier_judgment.md LLM output into schema-conformant JSON.
_load_tier_judgment_validator()— (internal helper) Looks up / reads the tier judgment validator step.parse()— Reads and cleans up the parse value.main()— Runs the main value.
vulnhunter-fix/scripts/parse_results.py 375 LOCParse VulnHunter results directory into structured JSON.
primary_cwe()— Provides the “primary cwe” logic.compute_vulnfix_key()— Provides the “compute vulnfix key” logic.parse_summary_table()— Reads and cleans up the summary table step.parse_finding_detail()— Reads and cleans up the finding detail step.find_related_files()— Looks up / reads the related files step.discover_all_vuln_files()— Looks up / reads the all vuln files step._extract_smell_section()— (internal helper) Reads and cleans up the smell section step._parse_smells_per_section_format()— (internal helper) Reads and cleans up the smells per section format step._parse_smells_table_format()— (internal helper) Reads and cleans up the smells table format step.parse_code_smells()— Reads and cleans up the code smells step.parse_results()— Reads and cleans up the results value.
vulnhunter-fix/scripts/pr-body-check.py 153 LOCPR-body honesty check.
_run_suite()— (internal helper) Runs the suite value._parse_body_claims()— (internal helper) Reads and cleans up the body claims step.cmd_stats()— Provides the “cmd stats” logic.cmd_check()— Provides the “cmd check” logic.main()— Runs the main value.
vulnhunter-fix/scripts/preflight.py 481 LOCVulnHunter Fix — Preflight Check
check()— Checks / decides the check value.parse_version()— Reads and cleans up the version value.check_python()— Checks / decides the python value.check_git()— Checks / decides the git value.check_gh_cli()— Checks / decides the gh command-line step.check_claude_cli()— Checks / decides the claude command-line step._free_disk_bytes()— (internal helper) Provides the “free disk bytes” logic.check_disk_space()— Checks / decides the disk space step._total_memory_bytes()— (internal helper) Provides the “total memory bytes” logic.check_memory()— Checks / decides the memory value.check_git_clone_writable()— Checks / decides the git clone writable step._detect_in_place_root()— (internal helper) Looks up / reads the in place root step.check_in_place_mode()— Checks / decides the in place mode step.check_graphifyy()— Checks / decides the graphifyy value.check_backend_isolation()— Checks / decides the backend isolation step.check_jsonschema()— Checks / decides the jsonschema value.main()— Runs the main value._print_bootstrap_hint()— (internal helper) Provides the “print bootstrap hint” logic.
vulnhunter-fix/scripts/prompt-lint.py 76 LOCCWE-class prompt lint (REQ-CWE-010).
lint()— Provides the “lint” logic.main()— Runs the main value.
vulnhunter-fix/scripts/run-gates.py 320 LOCGate orchestrator (REQ-GAT-011).
GateContext— Represents the “GateContext” data/behaviour.GateInputError— Represents the “GateInputError” data/behaviour._build_gate1_invocations()— (internal helper) Builds / writes the gate1 invocations step._build_gate2_invocations()— (internal helper) Builds / writes the gate2 invocations step._build_gate3_invocations()— (internal helper) Builds / writes the gate3 invocations step._build_gate4_invocations()— (internal helper) Builds / writes the gate4 invocations step._build_gate5_invocations()— (internal helper) Builds / writes the gate5 invocations step._build_gate6_invocations()— (internal helper) Builds / writes the gate6 invocations step._build_gate7_invocations()— (internal helper) Builds / writes the gate7 invocations step._load_json()— (internal helper) Looks up / reads the data file value._run()— (internal helper) Runs the run value.main()— Runs the main value.
vulnhunter-fix/scripts/safe-phrase-sync-lint.py 61 LOCSafe-phrase sync lint (REQ-GAT-008).
_extract_constant()— (internal helper) Reads and cleans up the constant value.main()— Runs the main value.
vulnhunter-fix/scripts/sweep-root-causes.py 375 LOCRoot-cause sweep (Phase 3c).
_cwe_int()— (internal helper) Provides the “cwe int” logic._unquote()— (internal helper) Provides the “unquote” logic._strip_inline_comment()— (internal helper) Provides the “strip inline comment” logic._load_patterns()— (internal helper) Looks up / reads the patterns value._load_graph()— (internal helper) Looks up / reads the graph value._load_results()— (internal helper) Looks up / reads the results value._load_triage_sidecar()— (internal helper) Looks up / reads the triage sidecar step.pass1_symbol()— Provides the “pass1 symbol” logic._sweep_ok()— (internal helper) Provides the “sweep ok” logic.pass2_pattern()— Provides the “pass2 pattern” logic.sweep()— Provides the “sweep” logic.main()— Runs the main value.
vulnhunter-fix/scripts/validate-finding.py 73 LOCValidate a VulnHunter finding against references/finding-schema.json.
_format_error()— (internal helper) Builds / writes the error value.validate_file()— Checks / decides the file value.main()— Runs the main value.
vulnhunter-fix/scripts/validate-fix-plan.py 78 LOCValidate a fix_plan artifact against references/fix_plan-schema.json.
_build_registry()— (internal helper) Builds / writes the registry value._format_error()— (internal helper) Builds / writes the error value.validate_file()— Checks / decides the file value.main()— Runs the main value.
vulnhunter-fix/scripts/validate-result.py 71 LOCValidate a VulnHunter-Fix result.json against references/result-schema.json.
_format_error()— (internal helper) Builds / writes the error value.validate_file()— Checks / decides the file value.main()— Runs the main value.
vulnhunter-fix/scripts/validate-triage.py 62 LOCValidate a per-finding triage sidecar against references/triage-schema.json.
_format_error()— (internal helper) Builds / writes the error value.validate_file()— Checks / decides the file value.main()— Runs the main value.
vulnhunter-fix/scripts/validate-verification.py 302 LOCValidate the 9-column verification table in a PR body.
_parse_table()— (internal helper) Reads and cleans up the table value._check_header()— (internal helper) Checks / decides the header value._cell_kind()— (internal helper) Provides the “cell kind” logic._extract_citations()— (internal helper) Reads and cleans up the citations value._check_citation_exists()— (internal helper) Checks / decides the citation exists step._load_sidecar_for_vuln()— (internal helper) Looks up / reads the sidecar for vuln step._load_result()— (internal helper) Looks up / reads the result value._parse_column7_callers()— (internal helper) Reads and cleans up the column7 callers step._tokenize_caller()— (internal helper) Provides the “tokenize caller” logic._check_column7()— (internal helper) Checks / decides the column7 value.validate()— Checks / decides the validate value.main()— Runs the main value.
vulnhunter-fix/scripts/validate_findings_draft.py 166 LOCValidate the shape of findings.draft.json produced by Step 5a.
ValidationError— Represents the “ValidationError” data/behaviour.validate_payload()— Checks / decides the payload value._validate_finding()— (internal helper) Checks / decides the finding value.main_with_argv()— Runs the with argv step.main()— Runs the main value.
vulnhunter-fix/scripts/validate_pr_body.py 132 LOCValidate a cluster PR body has the right `Closes #N` references.
extract_closes()— Reads and cleans up the closes value.validate()— Checks / decides the validate value._parse_issue_list()— (internal helper) Reads and cleans up the issue list step.main_with_argv()— Runs the with argv step.main()— Runs the main value.
vulnhunter-fix/scripts/worker-preamble-sync-lint.py 140 LOCWorker-preamble sync lint.
_extract_blocks()— (internal helper) Reads and cleans up the blocks value.main()— Runs the main value.
vulnhunter-fix/scripts/worktree-reset.py 156 LOCWorktree reset before repair-loop retry (REQ-GAT-009 / REQ-GAT-010).
_git_bin()— (internal helper) Provides the “git bin” logic._git()— (internal helper) Provides the “git” logic._looks_like_sha_or_ref()— (internal helper) Provides the “looks like content hash or ref” logic._unsafe_worktree_reason()— (internal helper) Provides the “unsafe worktree reason” logic.reset()— Sets up / maintains the reset value.main()— Runs the main value.
vulnhunter-fix/vulnhunter_fix/__init__.py 2 LOC
No top-level classes or functions.
vulnhunter-fix/vulnhunter_fix/delivery.py 356 LOCDelivery-time honesty guards and helpers (REQ-HON-005..009).
HonestyGuardError— Represents the “HonestyGuardError” data/behaviour.HandWaveResidualError— Represents the “HandWaveResidualError” data/behaviour.EmptyResidualError— Represents the “EmptyResidualError” data/behaviour.FullTierWithResidualsError— Represents the “FullTierWithResidualsError” data/behaviour.check_hand_wave()— Checks / decides the hand wave step.check_tier_residual_consistency()— Checks / decides the tier residual consistency step.render_residual_risk_section()— Builds / writes the residual risk section step.render_pr_body_with_residuals()— Builds / writes the pr body with residuals step.pr_draft_state_for_tier()— Provides the “pr draft state for tier” logic._column7_cell()— (internal helper) Provides the “column7 cell” logic._derive_verdict()— (internal helper) Provides the “derive verdict” logic.render_verification_row()— Builds / writes the verification row step.render_verification_table()— Builds / writes the verification table step.cwe_to_descriptor()— Provides the “cwe to descriptor” logic.compute_idempotency_key()— Provides the “compute idempotency key” logic.compute_masked_branch_name()— Provides the “compute masked branch name” logic.
vulnhunter-fix/vulnhunter_fix/graph/__init__.py 25 LOCVulnHunter-Fix graph substrate.
No top-level classes or functions.
vulnhunter-fix/vulnhunter_fix/graph/build.py 340 LOCGraph builder — wraps graphify AST extraction into the VF schema.
_graphify_parallel()— (internal helper) Provides the “graphify parallel” logic._now()— (internal helper) Provides the “now” logic._content_hash()— (internal helper) Provides the “content hash” logic._load_cache_if_valid()— (internal helper) Looks up / reads the cache if valid step._save_cache()— (internal helper) Builds / writes the cache value._try_graphify_build()— (internal helper) Provides the “try graphify build” logic._parse_source_location()— (internal helper) Reads and cleans up the source location step._iter_normalized_graphify_edges()— (internal helper) Provides the “iter normalized graphify edges” logic._iter_normalized_graphify_entities()— (internal helper) Provides the “iter normalized graphify entities” logic.build_graph()— Builds / writes the graph value.build_or_load()— Builds / writes the or load step.
vulnhunter-fix/vulnhunter_fix/graph/config.py 134 LOCGraph substrate configuration.
cache_dir_for_repo()— Provides the “cache dir for repository” logic.graph_path_for_repo()— Provides the “graph path for repository” logic.check_backend_isolation()— Checks / decides the backend isolation step.language_for_path()— Provides the “language for path” logic.iter_source_files()— Provides the “iter source files” logic.safe_walk_files()— Provides the “safe walk files” logic.
vulnhunter-fix/vulnhunter_fix/graph/fallback.py 152 LOCGrep-based fallback for the graph query API.
_now()— (internal helper) Provides the “now” logic.build_fallback_graph()— Builds / writes the fallback graph step._enclosing_symbol()— (internal helper) Provides the “enclosing symbol” logic.grep_callers_of()— Provides the “grep callers of” logic.
vulnhunter-fix/vulnhunter_fix/graph/query.py 269 LOCGraph query API — the primitives VF phases (Plan, Implement, Verify, Sweep) call.
GraphQuery— Represents the “GraphQuery” data/behaviour.__init__()— Python built-in method (`__init__`).status()— Provides the “status” logic.context_for_file()— Provides the “context for file” logic._resolve_file_key()— (internal helper) Checks / decides the file key step.blast_radius()— Provides the “blast radius” logic.god_nodes()— Provides the “god nodes” logic.changed_impact()— Provides the “changed impact” logic.co_changes()— Provides the “co changes” logic.callers_of()— Provides the “callers of” logic.callees_of()— Provides the “callees of” logic.reachable_from()— Provides the “reachable from” logic._symbol_at_line()— (internal helper) Provides the “symbol at line” logic.
load_graph()— Looks up / reads the graph value.
vulnhunter-fix/vulnhunter_fix/graph/schema.py 131 LOCPublic graph schema — the shape VF code sees, decoupled from graphify.
Node— Represents the “Node” data/behaviour.Edge— Represents the “Edge” data/behaviour.GraphDocument— Represents the “GraphDocument” data/behaviour.to_dict()— Provides the “to dict” logic.from_dict()— Provides the “from dict” logic.
Generated by codeviz — a single-file, dependency-free tool.
Re-run on any repo: python codeviz.py --root . --name "Project"