Module dependency graph
Drill-down — module → file → function
agents3 files · 784 LOC
strix/agents/__init__.py 1 LOC
No top-level classes or functions.
strix/agents/factory.py 672 LOCBuild SandboxAgents for root + child Strix runs.
_custom_tool_input_field()— (internal helper) Provides the “custom tool input field” logic._raw_input_schema()— (internal helper) Provides the “raw input schema” logic._extract_custom_input()— (internal helper) Reads and cleans up the custom input step._tool_output_limits()— (internal helper) Provides the “tool output limits” logic._bound_result()— (internal helper) Provides the “bound result” logic._format_tool_error()— (internal helper) Builds / writes the tool error step._with_bounded_result()— (internal helper) Provides the “with bounded result” logic._schema_types()— (internal helper) Provides the “schema types” logic._decode_structured()— (internal helper) Provides the “decode structured” logic._coerce_argument()— (internal helper) Reads and cleans up the argument value._coerce_arguments()— (internal helper) Reads and cleans up the arguments value._with_coerced_arguments()— (internal helper) Provides the “with coerced arguments” logic._function_tool_with_error_result()— (internal helper) Provides the “function tool with error result” logic._custom_tool_as_function_tool()— (internal helper) Provides the “custom tool as function tool” logic._bound_custom_tool()— (internal helper) Provides the “bound custom tool” logic._configure_filesystem_tools()— (internal helper) Sets up / maintains the filesystem tools step._make_filesystem_configurator()— (internal helper) Builds / writes the filesystem configurator step._decode_chars_escape()— (internal helper) Provides the “decode chars escape” logic._format_validation_error()— (internal helper) Builds / writes the validation error step._apply_shell_output_cap()— (internal helper) Runs the shell output cap step._wrap_exec_command()— (internal helper) Provides the “wrap exec command” logic._wrap_write_stdin()— (internal helper) Provides the “wrap write stdin” logic._configure_shell_tools()— (internal helper) Sets up / maintains the shell tools step._make_shell_configurator()— (internal helper) Builds / writes the shell configurator step._lifecycle_tool_completed()— (internal helper) Provides the “lifecycle tool completed” logic._wait_tool_parked()— (internal helper) Provides the “wait tool parked” logic._finish_tool_use_behavior()— (internal helper) Provides the “finish tool use behavior” logic._ensure_unique_tool_names()— (internal helper) Checks / decides the unique tool names step.register_agent_tools()— Sets up / maintains the agent tools step.registered_agent_tools()— Sets up / maintains the agent tools step.build_strix_agent()— Builds / writes the strix agent step.make_child_factory()— Builds / writes the child factory step.
strix/agents/prompt.py 111 LOCJinja-based system-prompt renderer.
_resolve_skills()— (internal helper) Checks / decides the skills value.render_system_prompt()— Builds / writes the system prompt step.
config7 files · 1,782 LOC
strix/config/__init__.py 42 LOCStrix application settings.
No top-level classes or functions.
strix/config/codex.py 404 LOCChatGPT (Codex) subscription auth: OAuth login, token refresh, and the OpenAI
CodexAuthError— Represents the “CodexAuthError” data/behaviour.__init__()— Python built-in method (`__init__`).
CodexContentGuardrailError— Represents the “CodexContentGuardrailError” data/behaviour.__init__()— Python built-in method (`__init__`).
_read_store()— (internal helper) Looks up / reads the store value._write_store()— (internal helper) Builds / writes the store value.read_record()— Looks up / reads the record value.is_authenticated()— Checks / decides the authenticated value.save_record()— Builds / writes the record value.logout()— Provides the “logout” logic._refresh_guard()— (internal helper) Provides the “refresh guard” logic.is_content_guardrail_error()— Checks / decides the content guardrail error step._b64url()— (internal helper) Provides the “b64url” logic.generate_pkce()— Provides the “generate pkce” logic.create_state()— Builds / writes the state value.build_authorize_url()— Builds / writes the authorize url step.parse_redirect_input()— Reads and cleans up the redirect input step._first()— (internal helper) Provides the “first” logic._post_form()— (internal helper) Provides the “post form” logic._record_from_token_response()— (internal helper) Provides the “record from token response” logic.exchange_code()— Provides the “exchange code” logic.refresh_tokens()— Provides the “refresh tokens” logic._account_id_from_jwt()— (internal helper) Provides the “account identifier from jwt” logic._near_expiry()— (internal helper) Provides the “near expiry” logic.get_valid_token()— Looks up / reads the valid token step.build_openai_client()— Builds / writes the openai client step.get_subscription_client()— Looks up / reads the subscription client step.subscription_model()— Provides the “subscription model” logic.auth_mode()— Provides the “auth mode” logic.
strix/config/loader.py 126 LOCSettings loader, override switch, and disk persistence.
load_settings()— Looks up / reads the settings value.apply_config_override()— Runs the config override step.persist_current()— Builds / writes the current value._aliases_for()— (internal helper) Provides the “aliases for” logic._read_json_overrides()— (internal helper) Looks up / reads the data file overrides step.
strix/config/models.py 888 LOCSDK model configuration helpers.
_CodexResponsesModel— (internal) Represents the “CodexResponsesModel” data/behaviour.__init__()— Python built-in method (`__init__`)._codex_settings()— (internal helper) Provides the “codex settings” logic._fetch_response()— (internal helper) Looks up / reads the response value._as_guardrail()— (internal helper) Provides the “as guardrail” logic._guarded()— (internal helper) Checks / decides the guarded value._aclose()— (internal helper) Provides the “aclose” logic.
_NonStreamingModel— (internal) Represents the “NonStreamingModel” data/behaviour.__init__()— Python built-in method (`__init__`).close()— Provides the “close” logic.get_retry_advice()— Looks up / reads the retry advice step.get_response()— Looks up / reads the response value.stream_response()— Provides the “stream response” logic.
_TurnGuardModel— (internal) Represents the “TurnGuardModel” data/behaviour.__init__()— Python built-in method (`__init__`)._limiter()— (internal helper) Provides the “limiter” logic._log_dropped()— (internal helper) Provides the “log dropped” logic.close()— Provides the “close” logic.get_retry_advice()— Looks up / reads the retry advice step.get_response()— Looks up / reads the response value.stream_response()— Provides the “stream response” logic.
StrixProvider— Represents the “StrixProvider” data/behaviour._resolve_prefixed_model()— (internal helper) Checks / decides the prefixed model step.get_model()— Looks up / reads the model value.
request_timeout_extra_args()— Provides the “request timeout extra args” logic._retry_statusless_provider_errors()— (internal helper) Provides the “retry statusless provider errors” logic._aclose()— (internal helper) Provides the “aclose” logic._with_idle_timeout()— (internal helper) Provides the “with idle timeout” logic._guard_event()— (internal helper) Checks / decides the event value._completed_stream_event()— (internal helper) Provides the “completed stream event” logic._response_usage()— (internal helper) Provides the “response usage” logic.configure_sdk_model_defaults()— Sets up / maintains the SDK connection model defaults step._mirror_api_key_to_provider_env()— (internal helper) Provides the “mirror api key to provider environment” logic._configure_litellm_compatibility()— (internal helper) Sets up / maintains the litellm compatibility step._install_openrouter_stream_cost_capture()— (internal helper) Provides the “install openrouter stream cost capture” logic.is_openrouter_model()— Checks / decides the openrouter model step._configure_openrouter_attribution()— (internal helper) Sets up / maintains the openrouter attribution step._configure_extra_headers()— (internal helper) Sets up / maintains the extra headers step._merge_litellm_headers()— (internal helper) Adds detail to the litellm headers step._register_openai_client_with_headers()— (internal helper) Sets up / maintains the openai client with headers step._register_litellm_cost_callback()— (internal helper) Sets up / maintains the litellm cost callback step._configure_litellm_default()— (internal helper) Sets up / maintains the litellm default step.uses_chat_completions_tool_schema()— Provides the “uses chat completions tool schema” logic.model_supports_reasoning()— Provides the “model supports reasoning” logic.is_recommended_or_frontier_model()— Checks / decides the recommended or frontier model step._normalized_model_name()— (internal helper) Reads and cleans up the model name step._split_model_provider()— (internal helper) Reads and cleans up the model provider step._matches_frontier_family()— (internal helper) Checks / decides the frontier family step._matches_model_prefix()— (internal helper) Checks / decides the model prefix step._model_name_candidates()— (internal helper) Provides the “model name candidates” logic._contains_provider_marker()— (internal helper) Provides the “contains provider marker” logic.is_known_openai_bare_model()— Checks / decides the known openai bare model step.is_claude_model()— Checks / decides the claude model step.is_bedrock_route()— Checks / decides the bedrock route step._prompt_cache_name_candidates()— (internal helper) Provides the “prompt cache name candidates” logic.bedrock_route_supports_prompt_caching()— Provides the “bedrock route supports prompt caching” logic.
strix/config/settings.py 157 LOCStrix application settings — pydantic-settings powered.
LlmSettings— Represents the “LlmSettings” data/behaviour.DedupeSettings— Represents the “DedupeSettings” data/behaviour.ContextSettings— Represents the “ContextSettings” data/behaviour.RuntimeSettings— Represents the “RuntimeSettings” data/behaviour.TelemetrySettings— Represents the “TelemetrySettings” data/behaviour.IntegrationSettings— Represents the “IntegrationSettings” data/behaviour.ViewerSettings— Represents the “ViewerSettings” data/behaviour.Settings— Represents the “Settings” data/behaviour.
strix/config/tool_call_ids.py 118 LOCKeep tool-call ids unique within a conversation.
TurnCallIdRewriter— Represents the “TurnCallIdRewriter” data/behaviour.__init__()— Python built-in method (`__init__`).rewrite_item()— Provides the “rewrite item” logic.rewrite_items()— Provides the “rewrite items” logic.
new_call_id()— Provides the “new call identifier” logic.collect_call_ids()— Looks up / reads the call ids step.dedupe_history_call_ids()— Provides the “dedupe history call ids” logic.dedupe_input()— Provides the “dedupe input” logic.
strix/config/tool_call_limits.py 47 LOCBound how many tool calls one assistant response may queue.
TurnToolCallLimiter— Represents the “TurnToolCallLimiter” data/behaviour.__init__()— Python built-in method (`__init__`).enabled()— Provides the “enabled” logic.allow()— Provides the “allow” logic.filter_items()— Checks / decides the items value.
core8 files · 2,900 LOC
strix/core/__init__.py 2 LOCStrix scan runtime core.
No top-level classes or functions.
strix/core/agents.py 537 LOCSDK-native state for Strix's addressable agent graph.
AgentRuntime— Represents the “AgentRuntime” data/behaviour.AgentCoordinator— Represents the “AgentCoordinator” data/behaviour.__init__()— Python built-in method (`__init__`).set_snapshot_path()— Provides the “set snapshot path” logic.mark_shutting_down()— Provides the “mark shutting down” logic.budget_stopped()— Provides the “budget stopped” logic.trigger_budget_stop()— Provides the “trigger budget stop” logic.reserve_stopped()— Provides the “reserve stopped” logic.budget_paused()— Provides the “budget paused” logic.set_budget_extender()— Provides the “set budget extender” logic.pause_for_budget()— Provides the “pause for budget” logic.resume_from_budget_pause()— Provides the “resume from budget pause” logic.reset_budget_stops()— Sets up / maintains the budget stops step.claim_reserve_notification()— Provides the “claim reserve notification” logic.
coordinator_from_context()— Provides the “coordinator from context” logic.
strix/core/execution.py 1033 LOCExecution loop for addressable SDK-backed Strix agents.
ProviderRefusalError— Represents the “ProviderRefusalError” data/behaviour._structured_provider_refusal()— (internal helper) Provides the “structured provider refusal” logic._run_config_model()— (internal helper) Runs the config model step._agent_instructions()— (internal helper) Provides the “agent instructions” logic._agent_tools_text()— (internal helper) Provides the “agent tools text” logic._compact_session()— (internal helper) Provides the “compact session” logic._model_error_status_code()— (internal helper) Provides the “model error status code” logic._is_transient_model_error()— (internal helper) Checks / decides the transient model error step._transient_model_retry_delay()— (internal helper) Provides the “transient model retry delay” logic._salvage_stream_to_session()— (internal helper) Provides the “salvage stream to session” logic._seed_and_prepare_first_input()— (internal helper) Provides the “seed and prepare first input” logic.run_agent_loop()— Runs the agent loop step.spawn_child_agent()— Provides the “spawn child agent” logic.respawn_subagents()— Provides the “respawn subagents” logic._run_until_lifecycle()— (internal helper) Runs the until lifecycle step._exhausted_recovery()— (internal helper) Provides the “exhausted recovery” logic._plain_waiting_timeout()— (internal helper) Provides the “plain waiting timeout” logic._run_cycle_parked()— (internal helper) Runs the cycle parked step._run_cycle()— (internal helper) Runs the cycle value._agent_status()— (internal helper) Provides the “agent status” logic._final_output_preview()— (internal helper) Provides the “final output preview” logic._append_tool_required_message()— (internal helper) Adds detail to the tool required message step._notify_parent_on_stall()— (internal helper) Provides the “notify parent on stall” logic.notify_parent_on_terminal()— Provides the “notify parent on terminal” logic._reserve_notice()— (internal helper) Provides the “reserve notice” logic._notify_root_on_budget_reserve()— (internal helper) Provides the “notify root on budget reserve” logic._notify_parent_on_exit()— (internal helper) Provides the “notify parent on exit” logic._start_child_runner()— (internal helper) Provides the “start child runner” logic.
strix/core/hooks.py 274 LOCSDK run hooks used by Strix orchestration.
BudgetExceededError— Represents the “BudgetExceededError” data/behaviour.SubagentBudgetReservedError— Represents the “SubagentBudgetReservedError” data/behaviour.BudgetPausedError— Represents the “BudgetPausedError” data/behaviour.ReportUsageHooks— Represents the “ReportUsageHooks” data/behaviour.__init__()— Python built-in method (`__init__`).extend_budget()— Provides the “extend budget” logic.on_llm_start()— Provides the “on AI model start” logic._maybe_warn_turns()— (internal helper) Provides the “maybe warn turns” logic._maybe_warn_budget()— (internal helper) Provides the “maybe warn budget” logic.on_llm_end()— Provides the “on AI model end” logic.
recomputed_budget_flags()— Provides the “recomputed budget flags” logic._crossed_stage()— (internal helper) Provides the “crossed stage” logic._wrapup_directive()— (internal helper) Provides the “wrapup directive” logic._urgency()— (internal helper) Provides the “urgency” logic.
strix/core/inputs.py 321 LOCPure input builders for Strix scan runs.
_accepts_required_tool_choice()— (internal helper) Provides the “accepts required tool choice” logic._render_diff_scope()— (internal helper) Builds / writes the code change scope step._render_api_spec()— (internal helper) Builds / writes the api spec step.build_root_task()— Builds / writes the root task step.build_scope_context()— Builds / writes the scope context step.make_model_settings()— Builds / writes the model settings step._request_headers()— (internal helper) Provides the “request headers” logic._reasoning_settings()— (internal helper) Provides the “reasoning settings” logic._prompt_cache_extra_args()— (internal helper) Provides the “prompt cache extra args” logic.child_initial_input()— Provides the “child initial input” logic.
strix/core/paths.py 41 LOCRun directory path helpers.
run_dir_for()— Runs the dir for step.runtime_state_dir()— Runs the state dir step.run_record_path()— Runs the record path step.runs_base_dir()— Runs the base dir step.latest_run_dir()— Provides the “latest run dir” logic.
strix/core/runner.py 477 LOCTop-level Strix scan runner.
_merge_root_prompt_context()— (internal helper) Adds detail to the root prompt context step._compose_root_instructions_override()— (internal helper) Builds / writes the root instructions override step.run_strix_scan()— Runs the strix scan step.
strix/core/sessions.py 215 LOCSDK session helpers for Strix agents.
_PooledConnectionSession— (internal) Represents the “PooledConnectionSession” data/behaviour._locked_connection()— (internal helper) Provides the “locked connection” logic.
open_agent_session()— Provides the “open agent session” logic.seed_initial_input()— Provides the “seed initial input” logic._output_has_image()— (internal helper) Provides the “output has image” logic._elided_output()— (internal helper) Provides the “elided output” logic.session_write_lock()— Provides the “session write lock” logic._rewrite_session()— (internal helper) Provides the “rewrite session” logic.replace_session_items()— Provides the “replace session items” logic.strip_all_images_from_session()— Provides the “strip all images from session” logic.enforce_image_budget()— Provides the “enforce image budget” logic.scrub_images_from_items()— Hides sensitive data in the images from items step.
interface28 files · 8,582 LOC
strix/interface/__init__.py 5 LOC
No top-level classes or functions.
strix/interface/auth_cli.py 420 LOC`strix auth` — ChatGPT subscription sign-in (login / status / logout).
_CallbackServer— (internal) Represents the “CallbackServer” data/behaviour.__init__()— Python built-in method (`__init__`).wait()— Provides the “wait” logic.shutdown()— Provides the “shutdown” logic.
run_auth()— Runs the auth value._login()— (internal helper) Provides the “login” logic._run_oauth_flow()— (internal helper) Runs the oauth flow step._finish()— (internal helper) Provides the “finish” logic._try_start_callback_server()— (internal helper) Provides the “try start callback server” logic._first()— (internal helper) Provides the “first” logic._status()— (internal helper) Provides the “status” logic._logout()— (internal helper) Provides the “logout” logic._fail()— (internal helper) Provides the “fail” logic._print_success()— (internal helper) Provides the “print success” logic._logo_img_tag()— (internal helper) Provides the “logo img tag” logic._render_callback_html()— (internal helper) Builds / writes the callback html step.
strix/interface/cli.py 231 LOC
_resolve_sandbox_image()— (internal helper) Checks / decides the sandbox image step.run_cli()— Runs the command-line value.
strix/interface/cli_args.py 381 LOCCommand-line argument parsing for the ``strix`` scan entrypoint.
get_version()— Looks up / reads the version value._positive_budget()— (internal helper) Provides the “positive budget” logic._positive_int()— (internal helper) Provides the “positive int” logic.parse_arguments()— Reads and cleans up the arguments value._load_resume_state()— (internal helper) Looks up / reads the resume state step.
strix/interface/environment.py 218 LOCStartup environment validation and Docker image management.
validate_environment()— Checks / decides the environment value.check_docker_installed()— Checks / decides the docker installed step.pull_docker_image()— Provides the “pull docker image” logic.
strix/interface/interactive.py 39 LOCLaunch the interactive terminal interface.
InteractiveSetupUnavailableError— Represents the “InteractiveSetupUnavailableError” data/behaviour.run_tui()— Runs the tui value.
strix/interface/main.py 502 LOCStrix Agent Interface
_exception_messages()— (internal helper) Provides the “exception messages” logic._provider_import_hint()— (internal helper) Provides the “provider import hint” logic._subscription_error_hint()— (internal helper) Provides the “subscription error hint” logic.warm_up_llm()— Provides the “warm up AI model” logic.display_completion_message()— Provides the “display completion message” logic._print_error_panel()— (internal helper) Provides the “print error panel” logic._print_model_connection_error()— (internal helper) Provides the “print model connection error” logic._bootstrap_scan()— (internal helper) Provides the “bootstrap scan” logic.main()— Runs the main value.
strix/interface/scan_setup.py 267 LOCScan bootstrap shared by the CLI entry point and the TUI setup flow.
ModelConnectionError— Represents the “ModelConnectionError” data/behaviour.__init__()— Python built-in method (`__init__`).
preflight_model_connection()— Provides the “preflight model connection” logic.build_targets_info()— Builds / writes the targets info step._resolve_api_spec()— (internal helper) Checks / decides the api spec step.prepare_run()— Provides the “prepare run” logic.attach_workspace_mount()— Adds detail to the workspace mount step.telemetry_start()— Provides the “telemetry start” logic._persist_run_record()— (internal helper) Builds / writes the run record step.
strix/interface/tui/__init__.py 7 LOCTerminal user interface: Go/Bubble Tea frontend plus its Python runtime and backend.
No top-level classes or functions.
strix/interface/tui/backend/__init__.py 8 LOCBackend bridge for external TUI clients.
No top-level classes or functions.
strix/interface/tui/backend/controller.py 489 LOCUI-independent state and command controller for interactive Strix clients.
TuiController— Represents the “TuiController” data/behaviour.__init__()— Python built-in method (`__init__`).set_change_callback()— Provides the “set change callback” logic.notify_changed()— Provides the “notify changed” logic.set_runtime()— Provides the “set runtime” logic.begin_preparation()— Provides the “begin preparation” logic.fail_preparation()— Provides the “fail preparation” logic.add_message()— Adds detail to the message value._append_message()— (internal helper) Adds detail to the message value.snapshot()— Provides the “snapshot” logic.collection()— Looks up / reads the collection value.collection_snapshot()— Looks up / reads the snapshot value.collection_changes()— Looks up / reads the changes value.
strix/interface/tui/backend/live_view.py 137 LOCGo-TUI event projection layered on the shared base projection.
TuiLiveView— Represents the “TuiLiveView” data/behaviour.__init__()— Python built-in method (`__init__`).upsert_agent()— Provides the “upsert agent” logic._append_event()— (internal helper) Adds detail to the event value._bump_event()— (internal helper) Provides the “bump event” logic._mark_event_changed()— (internal helper) Provides the “mark event changed” logic.event_snapshot()— Provides the “event snapshot” logic.event_changes_since()— Provides the “event changes since” logic.
strix/interface/tui/backend/messages.py 62 LOCConfirmed message delivery for non-Textual interactive clients.
send_user_message_to_agent()— Provides the “send user message to agent” logic._log_delivery_failure()— (internal helper) Provides the “log delivery failure” logic.
strix/interface/tui/backend/projection.py 183 LOCWire-safe projections of runtime state for the TUI backend.
sanitize_terminal_text()— Hides sensitive data in the terminal text step.terminal_projection()— Provides the “terminal projection” logic.collection_item_projection()— Looks up / reads the item projection step.bounded_state_projection()— Provides the “bounded state projection” logic.
strix/interface/tui/backend/protocol.py 41 LOCVersioned JSON protocol shared with the Go TUI.
ProtocolHandshakeError— Represents the “ProtocolHandshakeError” data/behaviour.envelope()— Provides the “envelope” logic.
strix/interface/tui/backend/server.py 532 LOCPrivate framed IPC connection used by the Go TUI.
_MessageTooLargeError— (internal) Represents the “MessageTooLargeError” data/behaviour._CollectionState— (internal) Represents the “CollectionState” data/behaviour.TuiBackendServer— Represents the “TuiBackendServer” data/behaviour.__init__()— Python built-in method (`__init__`).start()— Provides the “start” logic.close()— Provides the “close” logic._close_socket()— (internal helper) Provides the “close socket” logic.notify_changed()— Provides the “notify changed” logic._read_exactly()— (internal helper) Looks up / reads the exactly value._read_frame()— (internal helper) Looks up / reads the frame value._receive_ready()— (internal helper) Provides the “receive ready” logic._read_loop()— (internal helper) Looks up / reads the loop value._decode_message()— (internal helper) Provides the “decode message” logic._structured_error()— (internal helper) Provides the “structured error” logic._handle_message()— (internal helper) Provides the “handle message” logic.
strix/interface/tui/history.py 73 LOCHistorical SDK session loading for the TUI.
load_session_history()— Looks up / reads the session history step._sqlite_timestamp_to_iso()— (internal helper) Provides the “sqlite timestamp to iso” logic.
strix/interface/tui/live_view.py 510 LOCTUI-owned projection of SDK session history and stream events.
TuiLiveView— Represents the “TuiLiveView” data/behaviour.__init__()— Python built-in method (`__init__`).set_user_instruction()— Provides the “set user instruction” logic.flush_user_instruction()— Provides the “flush user instruction” logic.hydrate_from_run_dir()— Provides the “hydrate from run dir” logic._load_user_instruction()— (internal helper) Looks up / reads the user instruction step._hydrate_sdk_session_history()— (internal helper) Provides the “hydrate SDK connection session history” logic.upsert_agent()— Provides the “upsert agent” logic.record_agent_error()— Provides the “record agent error” logic.record_user_message()— Provides the “record user message” logic.ingest_sdk_event()— Provides the “ingest SDK connection event” logic.events_for_agent()— Provides the “events for agent” logic.has_events_for_agent()— Checks / decides the events for agent step.
_sdk_tool_call_data()— (internal helper) Provides the “SDK connection tool call data” logic._sdk_tool_output_data()— (internal helper) Provides the “SDK connection tool output data” logic._sdk_message_text()— (internal helper) Provides the “SDK connection message text” logic._session_message_text()— (internal helper) Provides the “session message text” logic._is_internal_agent_turn()— (internal helper) Checks / decides the internal agent turn step._message_content_text()— (internal helper) Provides the “message content text” logic._raw_field()— (internal helper) Provides the “raw field” logic._parse_json_object()— (internal helper) Reads and cleans up the data file object step._parse_json_value()— (internal helper) Reads and cleans up the data file value step._normalize_image_result()— (internal helper) Reads and cleans up the image result step._image_url_from_result()— (internal helper) Provides the “image url from result” logic._tool_status_from_result()— (internal helper) Provides the “tool status from result” logic.
strix/interface/tui/runtime.py 393 LOCLaunch and supervise the Bubble Tea TUI.
GoTuiPreActivationError— Represents the “GoTuiPreActivationError” data/behaviour.GoTuiRuntime— Represents the “GoTuiRuntime” data/behaviour.__init__()— Python built-in method (`__init__`).init_run_state()— Provides the “init run state” logic.start_from_setup()— Provides the “start from setup” logic.prepare_and_start()— Provides the “prepare and start” logic.start_scan()— Provides the “start scan” logic._run_scan()— (internal helper) Runs the scan value.capture_event()— Provides the “capture event” logic._sync_agent_state()— (internal helper) Provides the “sync agent state” logic._runtime_sync_fingerprint()— (internal helper) Runs the sync fingerprint step.sync_state()— Provides the “sync state” logic.quit()— Provides the “quit” logic.binary_command()— Provides the “binary command” logic.
run_go_tui()— Runs the go tui step.
strix/interface/tui/sidecar.py 192 LOCLaunch, authenticate, and supervise the Go TUI sidecar process.
tui_executable()— Provides the “tui executable” logic.project_root()— Provides the “project root” logic.tui_source_dir()— Provides the “tui source dir” logic.child_environment()— Provides the “child environment” logic._recv_exactly()— (internal helper) Provides the “recv exactly” logic._authenticate_connection()— (internal helper) Provides the “authenticate connection” logic._accept_authenticated_connection()— (internal helper) Provides the “accept authenticated connection” logic.wait_process()— Provides the “wait process” logic.terminate_process()— Provides the “terminate process” logic.launch_tui_process()— Provides the “launch tui process” logic._launch_posix_tui_process()— (internal helper) Provides the “launch posix tui process” logic._launch_windows_tui_process()— (internal helper) Provides the “launch windows tui process” logic.check_return_code()— Checks / decides the return code step.package_version()— Provides the “package version” logic.
strix/interface/update_check.py 397 LOCUpdate notifications and self-update for the strix CLI.
_is_disabled()— (internal helper) Checks / decides the disabled value.is_binary_install()— Checks / decides the binary install step.get_install_method()— Looks up / reads the install method step.get_upgrade_command()— Looks up / reads the upgrade command step._parse_version()— (internal helper) Reads and cleans up the version value._is_newer()— (internal helper) Checks / decides the newer value._fetch_latest_version()— (internal helper) Looks up / reads the latest version step._fetch_asset_digest()— (internal helper) Looks up / reads the asset digest step._sha256_file()— (internal helper) Provides the “sha256 file” logic._read_cache()— (internal helper) Looks up / reads the cache value._write_cache()— (internal helper) Builds / writes the cache value.skip_version()— Provides the “skip version” logic._refresh_cache()— (internal helper) Provides the “refresh cache” logic.start_background_check()— Provides the “start background check” logic.get_available_update()— Looks up / reads the available update step.notify_update()— Provides the “notify update” logic.run_package_upgrade()— Runs the package upgrade step.prompt_update_if_available()— Provides the “prompt update if available” logic._release_target()— (internal helper) Provides the “release target” logic._download_and_replace()— (internal helper) Provides the “download and replace” logic.self_update()— Provides the “self update” logic.
strix/interface/utils.py 1683 LOC
DiffEntry— Represents the “DiffEntry” data/behaviour.RepoDiffScope— Represents the “RepoDiffScope” data/behaviour.to_metadata()— Provides the “to metadata” logic.
DiffScopeResult— Represents the “DiffScopeResult” data/behaviour.get_severity_color()— Looks up / reads the severity color step.get_cvss_color()— Looks up / reads the cvss color step.format_token_count()— Builds / writes the token count step.format_vulnerability_report()— Builds / writes the vulnerability report step._build_vulnerability_stats()— (internal helper) Builds / writes the vulnerability stats step._llm_usage()— (internal helper) Provides the “AI model usage” logic.is_subscription_run()— Checks / decides the subscription run step._int_stat()— (internal helper) Provides the “int stat” logic._float_stat()— (internal helper) Provides the “float stat” logic._detail_value()— (internal helper) Provides the “detail value” logic.has_model_response()— Checks / decides the model response step._build_llm_usage_stats()— (internal helper) Builds / writes the AI model usage stats step.build_final_stats_text()— Builds / writes the final stats text step.build_live_stats_text()— Builds / writes the live stats text step.build_tui_stats_text()— Builds / writes the tui stats text step._slugify_for_run_name()— (internal helper) Provides the “slugify for run name” logic._derive_target_label_for_run_name()— (internal helper) Provides the “derive target label for run name” logic.generate_run_name()— Provides the “generate run name” logic._run_git_command()— (internal helper) Runs the git command step._run_git_command_raw()— (internal helper) Runs the git command raw step._is_ci_environment()— (internal helper) Checks / decides the ci environment step._is_pr_environment()— (internal helper) Checks / decides the pr environment step._is_git_repo()— (internal helper) Checks / decides the git repository step._is_repo_shallow()— (internal helper) Checks / decides the repository shallow step._git_ref_exists()— (internal helper) Provides the “git ref exists” logic._resolve_origin_head_ref()— (internal helper) Checks / decides the origin head ref step._extract_branch_name()— (internal helper) Reads and cleans up the branch name step._extract_github_base_sha()— (internal helper) Reads and cleans up the github base content hash step._resolve_default_branch_name()— (internal helper) Checks / decides the default branch name step._resolve_base_ref()— (internal helper) Checks / decides the base ref step._get_current_branch_name()— (internal helper) Looks up / reads the current branch name step._parse_name_status_z()— (internal helper) Reads and cleans up the name status z step._append_unique()— (internal helper) Adds detail to the unique value._classify_diff_entries()— (internal helper) Provides the “classify code change entries” logic._truncate_file_list()— (internal helper) Provides the “truncate file list” logic.build_diff_scope_instruction()— Builds / writes the code change scope instruction step._should_activate_auto_scope()— (internal helper) Provides the “should activate auto scope” logic._resolve_repo_diff_scope()— (internal helper) Checks / decides the repository code change scope step.resolve_diff_scope_context()— Checks / decides the code change scope context step._is_http_git_repo()— (internal helper) Checks / decides the http git repository step.infer_target_type()— Provides the “infer target type” logic.read_target_list_file()— Looks up / reads the target list file step.sanitize_name()— Hides sensitive data in the name value.derive_repo_base_name()— Provides the “derive repository base name” logic.derive_local_base_name()— Provides the “derive local base name” logic.assign_workspace_subdirs()— Provides the “assign workspace subdirs” logic.is_whitebox_scan()— Checks / decides the whitebox scan step.collect_local_sources()— Looks up / reads the local sources step._is_within()— (internal helper) Checks / decides the within value.check_mountable_dir()— Checks / decides the mountable dir step.dedupe_local_targets()— Provides the “dedupe local targets” logic._is_localhost_host()— (internal helper) Checks / decides the localhost host step.rewrite_localhost_targets()— Provides the “rewrite localhost targets” logic.write_fetched_collection()— Builds / writes the fetched collection step.stage_api_specs()— Builds / writes the api specs step.clone_repository()— Provides the “clone repository” logic.check_docker_connection()— Checks / decides the docker connection step.image_exists()— Provides the “image exists” logic.update_layer_status()— Adds detail to the layer status step.process_pull_line()— Runs the pull line step.validate_config_file()— Checks / decides the config file step.
strix/interface/viewer/__init__.py 13 LOCLocal web viewer for Strix runs.
No top-level classes or functions.
strix/interface/viewer/auth.py 263 LOCViewer email verification state and the relay client.
RelayError— Represents the “RelayError” data/behaviour.__init__()— Python built-in method (`__init__`).
read_auth()— Looks up / reads the auth value.parse_expiry()— Reads and cleans up the expiry value._expiry()— (internal helper) Provides the “expiry” logic._from_epoch()— (internal helper) Provides the “from epoch” logic.is_verified()— Checks / decides the verified value.write_auth()— Builds / writes the auth value.forget()— Provides the “forget” logic._app_url()— (internal helper) Provides the “app url” logic._post_json()— (internal helper) Provides the “post data file” logic._parse_body()— (internal helper) Reads and cleans up the body value.otp_start()— Provides the “otp start” logic.otp_verify()— Provides the “otp verify” logic.feedback_submit()— Provides the “feedback submit” logic.report_send()— Provides the “report send” logic.
strix/interface/viewer/cli.py 143 LOC`strix view [<run>]` command: serve a run's viewer UI locally.
run_view()— Runs the view value._resolve_run_dir()— (internal helper) Checks / decides the run dir step._fail_no_run()— (internal helper) Provides the “fail no run” logic.
strix/interface/viewer/report_pdf.py 673 LOCBuild and encrypt a branded PDF report for a run.
_NumberedCanvas— (internal) Represents the “NumberedCanvas” data/behaviour.__init__()— Python built-in method (`__init__`).showPage()— Provides the “showPage” logic.save()— Builds / writes the save value._draw_footer()— (internal helper) Provides the “draw footer” logic.
_LogoMark— (internal) Represents the “LogoMark” data/behaviour.__init__()— Python built-in method (`__init__`).draw()— Provides the “draw” logic.
_esc()— (internal helper) Provides the “esc” logic._styles()— (internal helper) Provides the “styles” logic._parse_time()— (internal helper) Reads and cleans up the time value._fmt_time()— (internal helper) Provides the “fmt time” logic._duration()— (internal helper) Provides the “duration” logic._severity_badge()— (internal helper) Provides the “severity badge” logic._severity_grid()— (internal helper) Provides the “severity grid” logic._section()— (internal helper) Provides the “section” logic._cover()— (internal helper) Provides the “cover” logic._inline_md()— (internal helper) Provides the “inline Markdown” logic._strip_leading_heading()— (internal helper) Provides the “strip leading heading” logic._markdown_flowables()— (internal helper) Provides the “markdown flowables” logic._strip_code_fence()— (internal helper) Provides the “strip code fence” logic._field_block()— (internal helper) Provides the “field block” logic._finding_flowables()— (internal helper) Looks up / reads the flowables value._overview_flowables()— (internal helper) Provides the “overview flowables” logic.generate_report_pdf()— Provides the “generate report pdf” logic.generate_password()— Provides the “generate password” logic.encrypt_pdf()— Provides the “encrypt pdf” logic.build_encrypted_report()— Builds / writes the encrypted report step.
strix/interface/viewer/server.py 615 LOCLocal HTTP server that serves the viewer SPA and a run's data from disk.
_ViewerState— (internal) Represents the “ViewerState” data/behaviour.__init__()— Python built-in method (`__init__`).
bundle_dir()— Provides the “bundle dir” logic.bundle_is_built()— Provides the “bundle is built” logic._iter_run_dirs()— (internal helper) Provides the “iter run dirs” logic.run_list_entry()— Runs the list entry step.build_runs_payload()— Builds / writes the runs payload step.resolve_run_dir()— Checks / decides the run dir step._make_handler()— (internal helper) Builds / writes the handler value.authorized_url()— Provides the “authorized url” logic.serve()— Provides the “serve” logic._open_browser()— (internal helper) Provides the “open browser” logic.
strix/interface/viewer/transcript.py 105 LOCBuild the JSON payloads the viewer SPA consumes from a run directory.
severity_counts()— Provides the “severity counts” logic.build_run_state()— Builds / writes the run state step.read_run_summary()— Looks up / reads the run summary step.primary_target()— Provides the “primary target” logic.read_vulnerabilities()— Looks up / reads the vulnerabilities value.read_report_markdown()— Looks up / reads the report markdown step._load_json()— (internal helper) Looks up / reads the data file value.
llm3 files · 478 LOC
strix/llm/__init__.py 2 LOCLLM-facing context management: model-aware budgets and history compaction.
No top-level classes or functions.
strix/llm/compaction.py 388 LOCProvider-agnostic conversation compaction.
is_context_overflow()— Checks / decides the context overflow step._content_text()— (internal helper) Provides the “content text” logic._truncate()— (internal helper) Provides the “truncate” logic._serialize_item()— (internal helper) Provides the “serialize item” logic._serialize_items()— (internal helper) Provides the “serialize items” logic._is_tool_call()— (internal helper) Checks / decides the tool call step._is_tool_output()— (internal helper) Checks / decides the tool output step._open_calls_at()— (internal helper) Provides the “open calls at” logic._select_split()— (internal helper) Checks / decides the split value._previous_summary()— (internal helper) Provides the “previous summary” logic._fit_to_tokens()— (internal helper) Provides the “fit to tokens” logic._summary_output_tokens()— (internal helper) Provides the “summary output tokens” logic._summary_input_budget()— (internal helper) Provides the “summary input budget” logic._build_summary_prompt()— (internal helper) Builds / writes the summary prompt step._checkpoint_item()— (internal helper) Checks / decides the item value._extract_text()— (internal helper) Reads and cleans up the text value._summarize()— (internal helper) Provides the “summarize” logic.maybe_compact()— Provides the “maybe compact” logic.
strix/llm/context_budget.py 88 LOCModel-aware token budgets, resolved from LiteLLM model metadata with a
_lookup_key()— (internal helper) Looks up / reads the key value._safe_get_model_info()— (internal helper) Provides the “safe get model info” logic._model_info()— (internal helper) Provides the “model info” logic.context_window()— Provides the “context window” logic.output_limit()— Provides the “output limit” logic.count_tokens()— Provides the “count tokens” logic.
report7 files · 2,843 LOC
strix/report/__init__.py 13 LOCReport/finding helpers.
No top-level classes or functions.
strix/report/dedupe.py 424 LOCSDK-native vulnerability-report deduplication.
_dedupe_extra_args()— (internal helper) Provides the “dedupe extra args” logic._dedupe_model_settings()— (internal helper) Provides the “dedupe model settings” logic._prepare_report_for_comparison()— (internal helper) Provides the “prepare report for comparison” logic._dependency_identity()— (internal helper) Provides the “dependency identity” logic._manifest_path()— (internal helper) Provides the “manifest path” logic._distinct_manifest_paths()— (internal helper) Provides the “distinct manifest paths” logic._report_cve()— (internal helper) Provides the “report cve” logic._legacy_report_mentions_package()— (internal helper) Provides the “legacy report mentions package” logic._check_dependency_duplicate()— (internal helper) Checks / decides the dependency duplicate step._parse_dedupe_response()— (internal helper) Reads and cleans up the dedupe response step._extract_text()— (internal helper) Reads and cleans up the text value.check_duplicate()— Checks / decides the duplicate value.
strix/report/pricing.py 55 LOCLiteLLM model-name resolution for local cost estimates.
resolve_litellm_model()— Checks / decides the litellm model step.
strix/report/sarif.py 1052 LOCSARIF 2.1.0 output for Strix vulnerability reports.
_stride_legs_for_cwe()— (internal helper) Provides the “stride legs for cwe” logic.build_sarif_report()— Builds / writes the sarif report step.write_sarif_report()— Builds / writes the sarif report step.write_sarif()— Builds / writes the sarif value.build_sarif_document()— Builds / writes the sarif document step._apply_repository_context()— (internal helper) Runs the repository context step._build_rule()— (internal helper) Builds / writes the rule value._build_result()— (internal helper) Builds / writes the result value._result_properties()— (internal helper) Provides the “result properties” logic._build_fixes()— (internal helper) Builds / writes the fixes value._synthetic_location()— (internal helper) Provides the “synthetic location” logic._build_locations()— (internal helper) Builds / writes the locations value._build_physical_locations()— (internal helper) Builds / writes the physical locations step._sarif_uri()— (internal helper) Provides the “sarif uri” logic._rule_id()— (internal helper) Provides the “rule identifier” logic._normalise_cwe()— (internal helper) Reads and cleans up the cwe value._primary_fingerprint()— (internal helper) Provides the “primary fingerprint” logic._first_physical_location()— (internal helper) Provides the “first physical location” logic._class_fingerprint()— (internal helper) Provides the “class fingerprint” logic._class_keyword()— (internal helper) Provides the “class keyword” logic._rule_name()— (internal helper) Provides the “rule name” logic._rule_tags()— (internal helper) Provides the “rule tags” logic._help_uri_for()— (internal helper) Provides the “help uri for” logic._sarif_level()— (internal helper) Provides the “sarif level” logic._security_severity()— (internal helper) Provides the “security severity” logic._help_text()— (internal helper) Provides the “help text” logic._dropped_location_summary()— (internal helper) Provides the “dropped location summary” logic._string_value()— (internal helper) Provides the “string value” logic._slugify()— (internal helper) Provides the “slugify” logic.
strix/report/state.py 732 LOC
ReportState— Represents the “ReportState” data/behaviour.__init__()— Python built-in method (`__init__`).get_run_dir()— Looks up / reads the run dir step.hydrate_from_run_dir()— Provides the “hydrate from run dir” logic.add_vulnerability_report()— Adds detail to the vulnerability report step.get_existing_vulnerabilities()— Looks up / reads the existing vulnerabilities step.record_sdk_usage()— Provides the “record SDK connection usage” logic.record_observed_llm_cost()— Provides the “record observed AI model cost” logic.get_total_llm_usage()— Looks up / reads the total AI model usage step.get_total_llm_cost()— Looks up / reads the total AI model cost step.update_scan_final_fields()— Adds detail to the scan final fields step.set_scan_config()— Provides the “set scan config” logic.save_run_data()— Builds / writes the run data step.
StreamedOpenRouterCosts— Represents the “StreamedOpenRouterCosts” data/behaviour.__init__()— Python built-in method (`__init__`).remember()— Provides the “remember” logic.take()— Provides the “take” logic.clear()— Provides the “clear” logic.
_strix_version()— (internal helper) Provides the “strix version” logic._parse_repo_full_name()— (internal helper) Reads and cleans up the repository full name step._git_head()— (internal helper) Provides the “git head” logic.get_global_report_state()— Looks up / reads the global report state step.set_global_report_state()— Provides the “set global report state” logic.openrouter_stream_cost()— Provides the “openrouter stream cost” logic._response_id()— (internal helper) Provides the “response identifier” logic.litellm_cost_callback()— Provides the “litellm cost callback” logic._usage_reported_cost()— (internal helper) Provides the “usage reported cost” logic._estimate_response_cost()— (internal helper) Provides the “estimate response cost” logic._usage_payload()— (internal helper) Provides the “usage payload” logic.
strix/report/usage.py 269 LOCSDK-native LLM usage aggregation for scan reports.
LLMUsageLedger— Represents the “LLMUsageLedger” data/behaviour.__init__()— Python built-in method (`__init__`).record()— Provides the “record” logic.record_observed_cost()— Provides the “record observed cost” logic.total_cost()— Provides the “total cost” logic.to_record()— Provides the “to record” logic.hydrate()— Provides the “hydrate” logic.
_resolve_total_tokens()— (internal helper) Checks / decides the total tokens step._usage_has_activity()— (internal helper) Provides the “usage has activity” logic._estimate_litellm_cost()— (internal helper) Provides the “estimate litellm cost” logic._estimate_litellm_entry_cost()— (internal helper) Provides the “estimate litellm entry cost” logic._litellm_model_name()— (internal helper) Provides the “litellm model name” logic._details_to_dict()— (internal helper) Provides the “details to dict” logic._int_or_zero()— (internal helper) Provides the “int or zero” logic._float_or_zero()— (internal helper) Provides the “float or zero” logic._round_cost()— (internal helper) Provides the “round cost” logic.
strix/report/writer.py 298 LOCArtifact writers for Strix scan reports.
safe_fence()— Provides the “safe fence” logic.parse_fenced_code()— Reads and cleans up the fenced code step.resolve_lexer()— Checks / decides the lexer value.guess_language_name()— Provides the “guess language name” logic.read_run_record()— Looks up / reads the run record step.write_run_record()— Builds / writes the run record step.write_executive_report()— Builds / writes the executive report step.write_vulnerabilities()— Builds / writes the vulnerabilities value._atomic_write_text()— (internal helper) Provides the “atomic write text” logic.render_vulnerability_md()— Builds / writes the vulnerability Markdown step.
runtime6 files · 754 LOC
strix/runtime/__init__.py 2 LOCPluggable sandbox lifecycle on top of the Agents SDK.
No top-level classes or functions.
strix/runtime/backends.py 106 LOCSandbox backend registry — selected via STRIX_RUNTIME_BACKEND (default: docker).
_docker_backend()— (internal helper) Provides the “docker backend” logic.get_backend()— Looks up / reads the backend value.register_backend()— Sets up / maintains the backend value.backend_supports_bind_mounts()— Provides the “backend supports bind mounts” logic.supported_backends()— Provides the “supported backends” logic.
strix/runtime/caido_bootstrap.py 110 LOCCaido client bootstrap.
_login_as_guest()— (internal helper) Provides the “login as guest” logic.bootstrap_caido()— Provides the “bootstrap caido” logic.
strix/runtime/docker_client.py 293 LOCStrixDockerSandboxClient — preserves the image's ENTRYPOINT and adds
StrixDockerSandboxSession— Represents the “StrixDockerSandboxSession” data/behaviour._resolve_exposed_port()— (internal helper) Checks / decides the exposed port step.
StrixDockerSandboxClient— Represents the “StrixDockerSandboxClient” data/behaviour._create_container()— (internal helper) Builds / writes the container value.create()— Builds / writes the create value.delete()— Sets up / maintains the delete value.
_sandbox_network()— (internal helper) Provides the “sandbox network” logic._apply_sandbox_network()— (internal helper) Runs the sandbox network step._apply_resource_limits()— (internal helper) Runs the resource limits step._apply_log_limits()— (internal helper) Runs the log limits step._apply_run_labels()— (internal helper) Runs the run labels step.
strix/runtime/session_manager.py 234 LOCPer-scan sandbox session lifecycle.
_host_identity_env()— (internal helper) Provides the “host identity environment” logic.build_bind_mounts()— Builds / writes the bind mounts step.build_manifest_entries()— Builds / writes the manifest entries step._metadata_mounts()— (internal helper) Provides the “metadata mounts” logic._gitdir_from_pointer()— (internal helper) Provides the “gitdir from pointer” logic.create_or_reuse()— Builds / writes the or reuse step.cleanup()— Reads and cleans up the cleanup value.
strix/runtime/status.py 9 LOCStartup phase reporting.
No top-level classes or functions.
scripts1 files · 59 LOC
scripts/tui_sidecar_hook.py 59 LOCHatchling build hook that compiles and bundles the Go TUI sidecar.
CustomBuildHook— Represents the “CustomBuildHook” data/behaviour.initialize()— Provides the “initialize” logic.
skills1 files · 300 LOC
strix/skills/__init__.py 300 LOC
_is_frontmatter_mapping()— (internal helper) Checks / decides the frontmatter mapping step.register_skill_dir()— Sets up / maintains the skill dir step.registered_skill_dirs()— Sets up / maintains the skill dirs step.skill_search_dirs()— Provides the “skill search dirs” logic._iter_user_skill_files()— (internal helper) Provides the “iter user skill files” logic._is_selectable_root_skill_file()— (internal helper) Checks / decides the selectable root skill file step._qualified_skill_file()— (internal helper) Provides the “qualified skill file” logic.get_all_skill_names()— Looks up / reads the all skill names step._get_all_skill_keys()— (internal helper) Looks up / reads the all skill keys step._get_ambiguous_skill_names()— (internal helper) Looks up / reads the ambiguous skill names step._qualified_skill_file_for_name()— (internal helper) Provides the “qualified skill file for name” logic._qualified_skill_files()— (internal helper) Provides the “qualified skill files” logic._bare_skill_files()— (internal helper) Provides the “bare skill files” logic._parse_skill_content()— (internal helper) Reads and cleans up the skill content step._read_skill_metadata()— (internal helper) Looks up / reads the skill metadata step.get_available_skills()— Looks up / reads the available skills step.validate_requested_skills()— Checks / decides the requested skills step._track_skill_loaded()— (internal helper) Provides the “track skill loaded” logic._candidate_skill_files()— (internal helper) Provides the “candidate skill files” logic.load_skills()— Looks up / reads the skills value.
strix1 files · 1 LOC
strix/__init__.py 1 LOC
No top-level classes or functions.
telemetry5 files · 605 LOC
strix/telemetry/__init__.py 8 LOC
No top-level classes or functions.
strix/telemetry/_common.py 57 LOC
get_version()— Looks up / reads the version value.is_first_run()— Checks / decides the first run step.base_props()— Provides the “base props” logic.
strix/telemetry/logging.py 184 LOCPer-scan logging setup.
_StrixContextFilter— (internal) Represents the “StrixContextFilter” data/behaviour.filter()— Checks / decides the filter value.
_StdoutQuietFilter— (internal) Represents the “StdoutQuietFilter” data/behaviour.filter()— Checks / decides the filter value.
set_scan_id()— Provides the “set scan identifier” logic.set_agent_id()— Provides the “set agent identifier” logic.configure_dependency_logging()— Sets up / maintains the dependency logging step._is_urllib3_closed_file_noise()— (internal helper) Checks / decides the urllib3 closed file noise step._silence_urllib3_finalizer_noise()— (internal helper) Provides the “silence urllib3 finalizer noise” logic.setup_scan_logging()— Sets up / maintains the scan logging step.
strix/telemetry/posthog.py 193 LOC
_is_enabled()— (internal helper) Checks / decides the enabled value._send()— (internal helper) Provides the “send” logic.start()— Provides the “start” logic.finding()— Looks up / reads the finding value.skill_loaded()— Provides the “skill loaded” logic.end()— Provides the “end” logic.viewer_opened()— Provides the “viewer opened” logic.viewer_cta_clicked()— Provides the “viewer cta clicked” logic.viewer_email_event()— Provides the “viewer email event” logic.viewer_feedback_submitted()— Provides the “viewer feedback submitted” logic.viewer_agent_steered()— Provides the “viewer agent steered” logic.error()— Provides the “error” logic.
strix/telemetry/scarf.py 163 LOC
_is_enabled()— (internal helper) Checks / decides the enabled value._send()— (internal helper) Provides the “send” logic.start()— Provides the “start” logic.finding()— Looks up / reads the finding value.skill_loaded()— Provides the “skill loaded” logic.end()— Provides the “end” logic.error()— Provides the “error” logic.
tools23 files · 4,142 LOC
strix/tools/__init__.py 12 LOCTool package.
No top-level classes or functions.
strix/tools/agents_graph/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/agents_graph/tools.py 741 LOCMulti-agent graph tools backed by AgentCoordinator.
_ctx()— (internal helper) Provides the “context” logic._render_completion_report()— (internal helper) Builds / writes the completion report step.view_agent_graph()— Provides the “view agent graph” logic.send_message_to_agent()— Provides the “send message to agent” logic._session_items_payload()— (internal helper) Provides the “session items payload” logic.wait_for_agents()— Provides the “wait for agents” logic.create_agent()— Builds / writes the agent value.agent_finish()— Provides the “agent finish” logic.stop_agent()— Provides the “stop agent” logic.
strix/tools/finish/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/finish/tool.py 292 LOC``finish_scan`` — root-agent termination + executive report persistence.
_do_finish()— (internal helper) Provides the “do finish” logic.finish_scan()— Provides the “finish scan” logic.
strix/tools/load_skill/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/load_skill/tool.py 37 LOC``load_skill`` — fetch skill reference material into the conversation.
load_skill()— Looks up / reads the skill value.
strix/tools/notes/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/notes/tools.py 490 LOCPer-run notes storage — mirrored to {state_dir}/notes.json.
_caller_identity()— (internal helper) Provides the “caller identity” logic._generate_note_id()— (internal helper) Provides the “generate note identifier” logic.hydrate_notes_from_disk()— Provides the “hydrate notes from disk” logic._persist()— (internal helper) Builds / writes the persist value._filter_notes()— (internal helper) Checks / decides the notes value._mark_authorship()— (internal helper) Provides the “mark authorship” logic._to_note_listing_entry()— (internal helper) Provides the “to note listing entry” logic._create_note_impl()— (internal helper) Builds / writes the note impl step._list_notes_impl()— (internal helper) Provides the “list notes impl” logic._get_note_impl()— (internal helper) Looks up / reads the note impl step._update_note_impl()— (internal helper) Adds detail to the note impl step._delete_note_impl()— (internal helper) Sets up / maintains the note impl step.create_note()— Builds / writes the note value.list_notes()— Provides the “list notes” logic.get_note()— Looks up / reads the note value.update_note()— Adds detail to the note value.delete_note()— Sets up / maintains the note value.
strix/tools/output_store.py 167 LOCBound oversized tool results before they enter agent history.
configure_spill_writer()— Sets up / maintains the spill writer step._byte_len()— (internal helper) Provides the “byte len” logic._take_prefix()— (internal helper) Provides the “take prefix” logic._take_suffix()— (internal helper) Provides the “take suffix” logic._head_tail()— (internal helper) Provides the “head tail” logic._join()— (internal helper) Provides the “join” logic.bound_text()— Provides the “bound text” logic.bound_and_store()— Provides the “bound and store” logic.
strix/tools/proxy/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/proxy/caido_api.py (parse error)
strix/tools/proxy/tools.py (parse error)
strix/tools/reporting/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/reporting/tool.py 1447 LOCReporting tools — file vuln findings (with dedup + CVSS) and read them back.
_validate_file_path()— (internal helper) Checks / decides the file path step._normalize_code_locations()— (internal helper) Reads and cleans up the code locations step._validate_code_locations()— (internal helper) Checks / decides the code locations step._extract_cve()— (internal helper) Reads and cleans up the cve value._validate_cve()— (internal helper) Checks / decides the cve value._extract_cwe()— (internal helper) Reads and cleans up the cwe value._validate_cwe()— (internal helper) Checks / decides the cwe value._calculate_cvss()— (internal helper) Provides the “calculate cvss” logic._do_create()— (internal helper) Provides the “do create” logic._caller_identity()— (internal helper) Provides the “caller identity” logic.create_vulnerability_report()— Builds / writes the vulnerability report step._dependency_severity()— (internal helper) Provides the “dependency severity” logic._validate_manifest_path()— (internal helper) Checks / decides the manifest path step._build_dependency_metadata()— (internal helper) Builds / writes the dependency metadata step._build_dependency_evidence()— (internal helper) Builds / writes the dependency evidence step._do_create_dependency()— (internal helper) Provides the “do create dependency” logic.create_dependency_report()— Builds / writes the dependency report step._report_severity_rank()— (internal helper) Provides the “report severity rank” logic._report_matches_filters()— (internal helper) Provides the “report matches filters” logic._mark_authorship()— (internal helper) Provides the “mark authorship” logic._to_report_summary_entry()— (internal helper) Provides the “to report summary entry” logic._severity_counts()— (internal helper) Provides the “severity counts” logic._run_report_reader()— (internal helper) Runs the report reader step._do_list_reports()— (internal helper) Provides the “do list reports” logic._do_get_report()— (internal helper) Provides the “do get report” logic.list_reports()— Provides the “list reports” logic.get_report()— Looks up / reads the report value.
strix/tools/respond/__init__.py 7 LOCUser-facing reply tool for interactive sessions.
No top-level classes or functions.
strix/tools/respond/tool.py 115 LOC``respond_to_user`` — deliver a reply and hand control back to the user.
_ctx()— (internal helper) Provides the “context” logic.respond_to_user()— Provides the “respond to user” logic.
strix/tools/thinking/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/thinking/tool.py 38 LOC``think`` — record a private chain-of-thought note with no side effects.
think()— Provides the “think” logic.
strix/tools/todo/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/todo/tools.py 607 LOCPer-agent todo tools — mirrored to {state_dir}/todos.json.
_todo_sort_key()— (internal helper) Provides the “todo sort key” logic.hydrate_todos_from_disk()— Provides the “hydrate todos from disk” logic._persist()— (internal helper) Builds / writes the persist value._agent_id_from()— (internal helper) Provides the “agent identifier from” logic._get_agent_todos()— (internal helper) Looks up / reads the agent todos step._normalize_priority()— (internal helper) Reads and cleans up the priority value._coerce_priority()— (internal helper) Reads and cleans up the priority value._sorted_todos()— (internal helper) Provides the “sorted todos” logic._normalize_todo_ids()— (internal helper) Reads and cleans up the todo ids step._normalize_bulk_updates()— (internal helper) Reads and cleans up the bulk updates step._normalize_bulk_todos()— (internal helper) Reads and cleans up the bulk todos step._apply_single_update()— (internal helper) Runs the single update step.create_todo()— Builds / writes the todo value.list_todos()— Provides the “list todos” logic.update_todo()— Adds detail to the todo value._mark()— (internal helper) Provides the “mark” logic.mark_todo_done()— Provides the “mark todo done” logic.mark_todo_pending()— Provides the “mark todo pending” logic.delete_todo()— Sets up / maintains the todo value.
strix/tools/web_search/__init__.py 1 LOC
No top-level classes or functions.
strix/tools/web_search/tool.py 180 LOC``web_search`` — Perplexity-backed security-focused web search.
_do_search()— (internal helper) Provides the “do search” logic.web_search()— Provides the “web search” logic.
utils4 files · 360 LOC
strix/utils/__init__.py 1 LOC
No top-level classes or functions.
strix/utils/api_spec.py 313 LOCRecognize API specifications and extract the hosts they declare.
SpecParseError— Represents the “SpecParseError” data/behaviour.load_spec()— Looks up / reads the spec value.classify_spec()— Provides the “classify spec” logic.detect_spec_format()— Looks up / reads the spec format step.spec_title()— Provides the “spec title” logic._absolute_urls()— (internal helper) Provides the “absolute urls” logic._resolve_server_url()— (internal helper) Checks / decides the server url step._openapi_base_urls()— (internal helper) Provides the “openapi base urls” logic._swagger_base_urls()— (internal helper) Provides the “swagger base urls” logic.postman_variables()— Provides the “postman variables” logic._resolve_postman_vars()— (internal helper) Checks / decides the postman vars step._postman_request_url()— (internal helper) Provides the “postman request url” logic._walk_postman_hosts()— (internal helper) Provides the “walk postman hosts” logic._postman_base_urls()— (internal helper) Provides the “postman base urls” logic.spec_base_urls()— Provides the “spec base urls” logic._postman_api_json()— (internal helper) Provides the “postman api data file” logic.fetch_postman_collection()— Looks up / reads the postman collection step.fetch_postman_environment()— Looks up / reads the postman environment step.
strix/utils/resource_paths.py 14 LOC
get_strix_resource_path()— Looks up / reads the strix resource path step.
strix/utils/secret_files.py 32 LOC
write_secret_text()— Builds / writes the secret text step.
Generated by codeviz — a single-file, dependency-free tool.
Re-run on any repo: python codeviz.py --root . --name "Project"