Skip to content

Instantly share code, notes, and snippets.

@VoidChecksum
Last active April 12, 2026 04:51
Show Gist options
  • Select an option

  • Save VoidChecksum/5c84571b60408ae9c4bf88809b2c12c9 to your computer and use it in GitHub Desktop.

Select an option

Save VoidChecksum/5c84571b60408ae9c4bf88809b2c12c9 to your computer and use it in GitHub Desktop.
Claude Code v2.1.87 — Complete ENV vars, feature flags, system prompt map, internal constants (binary extraction)

Claude Code v2.1.87 — Complete Environment Variables & Feature Flags

Binary: Bun-compiled ELF at ~/.local/share/claude/versions/2.1.87
Extracted: 2026-04-02
Method: Binary string extraction + regex analysis
Stats: 175 CLAUDE_CODE_* vars · 32 ANTHROPIC_* vars · 787 tengu_* feature flags


CLAUDE_CODE_* Environment Variables (175 total)

  • CLAUDE_CODE_ACCESSIBILITY
  • CLAUDE_CODE_ACCOUNT_TAGGED_ID
  • CLAUDE_CODE_ACCOUNT_UUID
  • CLAUDE_CODE_ACTION
  • CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD
  • CLAUDE_CODE_ADDITIONAL_PROTECTION
  • CLAUDE_CODE_AGENT_LIST_IN_MESSAGES
  • CLAUDE_CODE_AGENT_NAME
  • CLAUDE_CODE_AGENT_RULE_DISABLED
  • CLAUDE_CODE_ALWAYS_ENABLE_EFFORT
  • CLAUDE_CODE_API_BASE_URL
  • CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR
  • CLAUDE_CODE_API_KEY_HELPER_TTL_MS
  • CLAUDE_CODE_ATTRIBUTION_HEADER
  • CLAUDE_CODE_AUTO_COMPACT_WINDOW
  • CLAUDE_CODE_AUTO_CONNECT_IDE
  • CLAUDE_CODE_BASE_REF
  • CLAUDE_CODE_BASH_SANDBOX_SHOW_INDICATOR
  • CLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE
  • CLAUDE_CODE_BRIEF
  • CLAUDE_CODE_BRIEF_UPLOAD
  • CLAUDE_CODE_BUBBLEWRAP
  • CLAUDE_CODE_CLIENT_CERT
  • CLAUDE_CODE_CLIENT_KEY
  • CLAUDE_CODE_CLIENT_KEY_PASSPHRASE
  • CLAUDE_CODE_COMMIT_LOG
  • CLAUDE_CODE_CONTAINER_ID
  • CLAUDE_CODE_CUSTOM_OAUTH_URL
  • CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS
  • CLAUDE_CODE_DEBUG_LOGS_DIR
  • CLAUDE_CODE_DEBUG_LOG_LEVEL
  • CLAUDE_CODE_DEBUG_REPAINTS
  • CLAUDE_CODE_DIAGNOSTICS_FILE
  • CLAUDE_CODE_DISABLE_1M_CONTEXT
  • CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING
  • CLAUDE_CODE_DISABLE_ADVISOR_TOOL
  • CLAUDE_CODE_DISABLE_ATTACHMENTS
  • CLAUDE_CODE_DISABLE_AUTO_MEMORY
  • CLAUDE_CODE_DISABLE_BACKGROUND_TASKS
  • CLAUDE_CODE_DISABLE_CLAUDE_MDS
  • CLAUDE_CODE_DISABLE_COMMAND_INJECTION_CHECK
  • CLAUDE_CODE_DISABLE_CRON
  • CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS
  • CLAUDE_CODE_DISABLE_FAST_MODE
  • CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY
  • CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING
  • CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
  • CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP
  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC
  • CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK
  • CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL
  • CLAUDE_CODE_DISABLE_PRECOMPACT_SKIP
  • CLAUDE_CODE_DISABLE_TERMINAL_TITLE
  • CLAUDE_CODE_DISABLE_THINKING
  • CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL
  • CLAUDE_CODE_DONT_INHERIT_ENV
  • CLAUDE_CODE_EAGER_FLUSH
  • CLAUDE_CODE_EFFORT_LEVEL
  • CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS
  • CLAUDE_CODE_EMIT_TOOL_USE_SUMMARIES
  • CLAUDE_CODE_ENABLE_CFC
  • CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING
  • CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION
  • CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING
  • CLAUDE_CODE_ENABLE_TASKS
  • CLAUDE_CODE_ENABLE_TELEMETRY
  • CLAUDE_CODE_ENABLE_TOKEN_USAGE_ATTACHMENT
  • CLAUDE_CODE_ENABLE_XAA
  • CLAUDE_CODE_ENHANCED_TELEMETRY_BETA
  • CLAUDE_CODE_ENTRYPOINT
  • CLAUDE_CODE_ENVIRONMENT_KIND
  • CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION
  • CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER
  • CLAUDE_CODE_EXIT_AFTER_STOP_DELAY
  • CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
  • CLAUDE_CODE_EXTRA_BODY
  • CLAUDE_CODE_EXTRA_METADATA
  • CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS
  • CLAUDE_CODE_FORCE_FULL_LOGO
  • CLAUDE_CODE_FORCE_GLOBAL_CACHE
  • CLAUDE_CODE_FORCE_SANDBOX
  • CLAUDE_CODE_FRAME_TIMING_LOG
  • CLAUDE_CODE_GIT_BASH_PATH
  • CLAUDE_CODE_GLOB_HIDDEN
  • CLAUDE_CODE_GLOB_NO_IGNORE
  • CLAUDE_CODE_GLOB_TIMEOUT_SECONDS
  • CLAUDE_CODE_HOST_HTTP_PROXY_PORT
  • CLAUDE_CODE_HOST_PLATFORM
  • CLAUDE_CODE_HOST_SOCKS_PROXY_PORT
  • CLAUDE_CODE_IDE_HOST_OVERRIDE
  • CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL
  • CLAUDE_CODE_IDE_SKIP_VALID_CHECK
  • CLAUDE_CODE_IDLE_THRESHOLD_MINUTES
  • CLAUDE_CODE_IDLE_TOKEN_THRESHOLD
  • CLAUDE_CODE_INCLUDE_PARTIAL_MESSAGES
  • CLAUDE_CODE_IS_COWORK
  • CLAUDE_CODE_MAX_OUTPUT_TOKENS
  • CLAUDE_CODE_MAX_RETRIES
  • CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY
  • CLAUDE_CODE_MCP_INSTR_DELTA
  • CLAUDE_CODE_MCP_SERVER_NAME
  • CLAUDE_CODE_MCP_SERVER_URL
  • CLAUDE_CODE_NEW_INIT
  • CLAUDE_CODE_OAUTH_CLIENT_ID
  • CLAUDE_CODE_OAUTH_REFRESH_TOKEN
  • CLAUDE_CODE_OAUTH_SCOPES
  • CLAUDE_CODE_OAUTH_TOKEN
  • CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR
  • CLAUDE_CODE_ORGANIZATION_UUID
  • CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS
  • CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS
  • CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS
  • CLAUDE_CODE_PERFETTO_TRACE
  • CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE
  • CLAUDE_CODE_PLAN_MODE_REQUIRED
  • CLAUDE_CODE_PLAN_V2_AGENT_COUNT
  • CLAUDE_CODE_PLAN_V2_EXPLORE_AGENT_COUNT
  • CLAUDE_CODE_PLUGIN_CACHE_DIR
  • CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS
  • CLAUDE_CODE_PLUGIN_SEED_DIR
  • CLAUDE_CODE_PLUGIN_USE_ZIP_CACHE
  • CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2
  • CLAUDE_CODE_PROFILE_QUERY
  • CLAUDE_CODE_PROFILE_STARTUP
  • CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST
  • CLAUDE_CODE_PROXY_RESOLVES_HOSTS
  • CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS
  • CLAUDE_CODE_QUESTION_PREVIEW_FORMAT
  • CLAUDE_CODE_REMOTE
  • CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE
  • CLAUDE_CODE_REMOTE_MEMORY_DIR
  • CLAUDE_CODE_REMOTE_SEND_KEEPALIVES
  • CLAUDE_CODE_REMOTE_SESSION_ID
  • CLAUDE_CODE_RESUME_INTERRUPTED_TURN
  • CLAUDE_CODE_SAVE_HOOK_ADDITIONAL_CONTEXT
  • CLAUDE_CODE_SEARCH_HINTS_IN_LIST
  • CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS
  • CLAUDE_CODE_SESSION_ACCESS_TOKEN
  • CLAUDE_CODE_SHELL
  • CLAUDE_CODE_SHELL_PREFIX
  • CLAUDE_CODE_SIMPLE
  • CLAUDE_CODE_SKIP_BEDROCK_AUTH
  • CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS
  • CLAUDE_CODE_SKIP_FOUNDRY_AUTH
  • CLAUDE_CODE_SKIP_PROMPT_HISTORY
  • CLAUDE_CODE_SKIP_VERTEX_AUTH
  • CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS
  • CLAUDE_CODE_SSE_PORT
  • CLAUDE_CODE_STALL_TIMEOUT_MS_FOR_TESTING
  • CLAUDE_CODE_SUBAGENT_MODEL
  • CLAUDE_CODE_SUBPROCESS_ENV_SCRUB
  • CLAUDE_CODE_SYNC_PLUGIN_INSTALL
  • CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS
  • CLAUDE_CODE_SYNTAX_HIGHLIGHT
  • CLAUDE_CODE_TAGS
  • CLAUDE_CODE_TASK_LIST_ID
  • CLAUDE_CODE_TEAMMATE_COMMAND
  • CLAUDE_CODE_TEAM_NAME
  • CLAUDE_CODE_TEST_FIXTURES_ROOT
  • CLAUDE_CODE_TMPDIR
  • CLAUDE_CODE_TMUX_PREFIX
  • CLAUDE_CODE_TMUX_PREFIX_CONFLICTS
  • CLAUDE_CODE_TMUX_SESSION
  • CLAUDE_CODE_TMUX_TRUECOLOR
  • CLAUDE_CODE_U
  • CLAUDE_CODE_USER_EMAIL
  • CLAUDE_CODE_USE_BEDROCK
  • CLAUDE_CODE_USE_CCR_V2
  • CLAUDE_CODE_USE_COWORK_PLUGINS
  • CLAUDE_CODE_USE_FOUNDRY
  • CLAUDE_CODE_USE_POWERSHELL_TOOL
  • CLAUDE_CODE_USE_VERTEX
  • CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR
  • CLAUDE_CODE_WORKER_EPOCH
  • CLAUDE_CODE_WORKSPACE_HOST_PATHS

ANTHROPIC_* Environment Variables (32 total)

  • ANTHROPIC_API_KEY
  • ANTHROPIC_AUTH_TOKEN
  • ANTHROPIC_BASE_URL
  • ANTHROPIC_BEDROCK_BASE_URL
  • ANTHROPIC_BETAS
  • ANTHROPIC_CUSTOM_HEADERS
  • ANTHROPIC_CUSTOM_MODEL_OPTION
  • ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION
  • ANTHROPIC_CUSTOM_MODEL_OPTION_NAME
  • ANTHROPIC_DEFAULT_HAIKU_MODEL
  • ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION
  • ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME
  • ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES
  • ANTHROPIC_DEFAULT_OPUS_MODEL
  • ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION
  • ANTHROPIC_DEFAULT_OPUS_MODEL_NAME
  • ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES
  • ANTHROPIC_DEFAULT_SONNET_MODEL
  • ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION
  • ANTHROPIC_DEFAULT_SONNET_MODEL_NAME
  • ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES
  • ANTHROPIC_FOUNDRY_API_KEY
  • ANTHROPIC_FOUNDRY_AUTH_TOKEN
  • ANTHROPIC_FOUNDRY_BASE_URL
  • ANTHROPIC_FOUNDRY_RESOURCE
  • ANTHROPIC_LOG
  • ANTHROPIC_MODEL
  • ANTHROPIC_SMALL_FAST_MODEL
  • ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION
  • ANTHROPIC_UNIX_SOCKET
  • ANTHROPIC_VERTEX_BASE_URL
  • ANTHROPIC_VERTEX_PROJECT_ID

Internal Feature Flags — tengu_* (787 total)

These are telemetry/analytics event names that map to internal feature switches and code paths.

  • tengu_accept_feedback_mode_collapsed
  • tengu_accept_feedback_mode_entered
  • tengu_accept_submitted
  • tengu_advisor_tool_call
  • tengu_advisor_tool_interrupted
  • tengu_advisor_tool_token_usage
  • tengu_agent_color_set
  • tengu_agent_created
  • tengu_agent_definition_generated
  • tengu_agent_flag
  • tengu_agent_list_attach
  • tengu_agent_memory_loaded
  • tengu_agent_name_set
  • tengu_agent_parse_error
  • tengu_agent_stop_hook_error
  • tengu_agent_stop_hook_max_turns
  • tengu_agent_stop_hook_success
  • tengu_agent_tool_completed
  • tengu_agent_tool_selected
  • tengu_agent_tool_terminated
  • tengu_agentic_search_cancelled
  • tengu_amber_flint
  • tengu_amber_prism
  • tengu_amber_quartz_disabled
  • tengu_amber_wren
  • tengu_api_after_normalize
  • tengu_api_before_normalize
  • tengu_api_cache_breakpoints
  • tengu_api_error
  • tengu_api_key_saved_to_config
  • tengu_api_opus_fallback_triggered
  • tengu_api_persistent_retry_wait
  • tengu_api_query
  • tengu_api_retry
  • tengu_api_success
  • tengu_ask_user_question_accepted
  • tengu_ask_user_question_finish_plan_interview
  • tengu_ask_user_question_rejected
  • tengu_ask_user_question_respond_to_claude
  • tengu_at_mention_agent_not_found
  • tengu_at_mention_agent_success
  • tengu_at_mention_extracting_directory_success
  • tengu_at_mention_extracting_filename_error
  • tengu_at_mention_extracting_filename_success
  • tengu_at_mention_mcp_resource_error
  • tengu_at_mention_mcp_resource_success
  • tengu_atomic_write_error
  • tengu_attachment_compute_duration
  • tengu_attachment_file_too_large
  • tengu_attachments
  • tengu_attribution_header
  • tengu_auto_background_agents
  • tengu_auto_compact_setting_changed
  • tengu_auto_compact_succeeded
  • tengu_auto_connect_ide_changed
  • tengu_auto_dream_completed
  • tengu_auto_dream_failed
  • tengu_auto_dream_fired
  • tengu_auto_dream_toggled
  • tengu_auto_install_ide_extension_changed
  • tengu_auto_memory_toggled
  • tengu_auto_mode_config
  • tengu_auto_mode_decision
  • tengu_auto_mode_denial_limit_exceeded
  • tengu_auto_mode_malformed_tool_input
  • tengu_auto_mode_opt_in_dialog_accept
  • tengu_auto_mode_opt_in_dialog_accept_default
  • tengu_auto_mode_opt_in_dialog_decline
  • tengu_auto_mode_opt_in_dialog_shown
  • tengu_auto_mode_outcome
  • tengu_auto_updater_fail
  • tengu_auto_updater_lock_contention
  • tengu_auto_updater_success
  • tengu_auto_updater_windows_npm_in_wsl
  • tengu_autoupdate_channel_changed
  • tengu_autoupdate_enabled
  • tengu_bad_survey_transcript_ask_config
  • tengu_bash_ast_too_complex
  • tengu_bash_command_explicitly_backgrounded
  • tengu_bash_command_timeout_backgrounded
  • tengu_bash_prefix
  • tengu_bash_security_check_triggered
  • tengu_bash_tool_command_executed
  • tengu_bash_tool_reset_to_original_dir
  • tengu_bash_tool_simple_echo
  • tengu_began_setup
  • tengu_binary_content_persisted
  • tengu_binary_download_attempt
  • tengu_binary_download_failure
  • tengu_binary_download_success
  • tengu_binary_manifest_fetch_failure
  • tengu_binary_platform_not_found
  • tengu_birch_trellis
  • tengu_bramble_lintel
  • tengu_bridge_command
  • tengu_bridge_fatal_error
  • tengu_bridge_heartbeat_error
  • tengu_bridge_heartbeat_mode_entered
  • tengu_bridge_heartbeat_mode_exited
  • tengu_bridge_initial_history_cap
  • tengu_bridge_message_received
  • tengu_bridge_min_version
  • tengu_bridge_multi_session_denied
  • tengu_bridge_poll_give_up
  • tengu_bridge_poll_interval_config
  • tengu_bridge_reconnected
  • tengu_bridge_registration_failed
  • tengu_bridge_repl_connect_timeout
  • tengu_bridge_repl_env_expired_fresh_session
  • tengu_bridge_repl_env_lost
  • tengu_bridge_repl_env_registered
  • tengu_bridge_repl_fatal_error
  • tengu_bridge_repl_history_capped
  • tengu_bridge_repl_poll_error
  • tengu_bridge_repl_poll_give_up
  • tengu_bridge_repl_reconnect_failed
  • tengu_bridge_repl_reconnected_in_place
  • tengu_bridge_repl_session_failed
  • tengu_bridge_repl_skipped
  • tengu_bridge_repl_started
  • tengu_bridge_repl_suspension_detected
  • tengu_bridge_repl_teardown
  • tengu_bridge_repl_work_received
  • tengu_bridge_repl_work_secret_failed
  • tengu_bridge_repl_ws_closed
  • tengu_bridge_repl_ws_connected
  • tengu_bridge_session_done
  • tengu_bridge_session_started
  • tengu_bridge_session_timeout
  • tengu_bridge_shutdown
  • tengu_bridge_spawn_mode_chosen
  • tengu_bridge_spawn_mode_toggled
  • tengu_bridge_started
  • tengu_bridge_system_init
  • tengu_bridge_token_refreshed
  • tengu_bridge_work_secret_failed
  • tengu_brief_mode_enabled
  • tengu_brief_mode_toggled
  • tengu_brief_send
  • tengu_bug_report_description
  • tengu_bug_report_submitted
  • tengu_builtin_mcp_toggle
  • tengu_bypass_permissions_mode_dialog_accept
  • tengu_bypass_permissions_mode_dialog_shown
  • tengu_cache_eviction_hint
  • tengu_cancel
  • tengu_ccr_bridge
  • tengu_ccr_bridge_multi_session
  • tengu_ccr_bundle_max_bytes
  • tengu_ccr_bundle_seed_enabled
  • tengu_ccr_bundle_upload
  • tengu_ccr_unsupported_default_mode_ignored
  • tengu_chain_parallel_tr_recovered
  • tengu_chain_parent_cycle
  • tengu_chair_sermon
  • tengu_chomp_inflection
  • tengu_chrome_auto_enable
  • tengu_cicada_nap_ms
  • tengu_claude_in_chrome_onboarding_shown
  • tengu_claude_in_chrome_setting_changed
  • tengu_claude_in_chrome_setup
  • tengu_claude_in_chrome_setup_failed
  • tengu_claude_install_command
  • tengu_claude_md_external_includes_dialog_accepted
  • tengu_claude_md_external_includes_dialog_declined
  • tengu_claude_md_includes_dialog_shown
  • tengu_claude_md_permission_error
  • tengu_claude_rules_md_permission_error
  • tengu_claudeai_limits_status_changed
  • tengu_claudeai_mcp_auth_completed
  • tengu_claudeai_mcp_auth_started
  • tengu_claudeai_mcp_clear_auth_completed
  • tengu_claudeai_mcp_clear_auth_started
  • tengu_claudeai_mcp_eligibility
  • tengu_claudeai_mcp_reconnect
  • tengu_claudeai_mcp_toggle
  • tengu_claudemd__initial_load
  • tengu_cobalt_frost
  • tengu_cobalt_lantern
  • tengu_code_indexing_tool_used
  • tengu_code_prompt_ignored
  • tengu_compact
  • tengu_compact_cache_prefix
  • tengu_compact_cache_sharing_fallback
  • tengu_compact_cache_sharing_success
  • tengu_compact_failed
  • tengu_compact_line_prefix_killswitch
  • tengu_compact_ptl_retry
  • tengu_compact_streaming_retry
  • tengu_concurrent_onquery_detected
  • tengu_concurrent_onquery_enqueued
  • tengu_concurrent_sessions
  • tengu_config_auth_loss_prevented
  • tengu_config_cache_stats
  • tengu_config_changed
  • tengu_config_lock_contention
  • tengu_config_model_changed
  • tengu_config_parse_error
  • tengu_config_stale_write
  • tengu_context_size
  • tengu_context_window_exceeded
  • tengu_continue
  • tengu_continue_print
  • tengu_conversation_forked
  • tengu_conversation_rewind
  • tengu_copper_bridge
  • tengu_copy
  • tengu_coral_fern
  • tengu_cost_threshold_acknowledged
  • tengu_cost_threshold_reached
  • tengu_custom_keybindings_loaded
  • tengu_deep_link_opened
  • tengu_deep_link_registered
  • tengu_default_view_setting_changed
  • tengu_deferred_tool_schema_not_sent
  • tengu_deferred_tools_pool_change
  • tengu_desktop_upsell
  • tengu_desktop_upsell_shown
  • tengu_destructive_command_warning
  • tengu_diff_tool_changed
  • tengu_dir_search
  • tengu_disable_bypass_permissions_mode
  • tengu_disable_keepalive_on_econnreset
  • tengu_disable_streaming_to_non_streaming_fallback
  • tengu_doctor_command
  • tengu_dynamic_skills_changed
  • tengu_editor_mode_changed
  • tengu_effort_command
  • tengu_event_sampling_config
  • tengu_exit
  • tengu_exit_plan_mode_called_outside_plan
  • tengu_ext_at_mentioned
  • tengu_ext_diff_accepted
  • tengu_ext_diff_rejected
  • tengu_ext_ide_command
  • tengu_ext_install_error
  • tengu_ext_installed
  • tengu_ext_will_show_diff
  • tengu_external_editor_hint_shown
  • tengu_external_editor_used
  • tengu_extract_memories_coalesced
  • tengu_extract_memories_error
  • tengu_extract_memories_extraction
  • tengu_extract_memories_skipped_direct_write
  • tengu_fast_mode_fallback_triggered
  • tengu_fast_mode_overage_rejected
  • tengu_fast_mode_picker_shown
  • tengu_fast_mode_toggled
  • tengu_feedback_survey_config
  • tengu_feedback_survey_event
  • tengu_fgts
  • tengu_file_changed
  • tengu_file_history_backup_deleted_file
  • tengu_file_history_backup_file_created
  • tengu_file_history_backup_file_failed
  • tengu_file_history_resume_copy_failed
  • tengu_file_history_rewind_failed
  • tengu_file_history_rewind_restore_file_failed
  • tengu_file_history_rewind_success
  • tengu_file_history_snapshot_failed
  • tengu_file_history_snapshot_success
  • tengu_file_history_snapshots_setting_changed
  • tengu_file_history_track_edit_failed
  • tengu_file_history_track_edit_success
  • tengu_file_operation
  • tengu_file_read_dedup
  • tengu_file_read_limits_override
  • tengu_file_suggestions_git_ls_files
  • tengu_file_suggestions_query
  • tengu_file_suggestions_ripgrep
  • tengu_file_upload_failed
  • tengu_filtered_orphaned_thinking_message
  • tengu_filtered_trailing_thinking_block
  • tengu_filtered_whitespace_only_assistant
  • tengu_fixed_empty_assistant_content
  • tengu_flicker
  • tengu_fork_agent_query
  • tengu_frond_boric
  • tengu_git_index_lock_error
  • tengu_git_operation
  • tengu_good_survey_transcript_ask_config
  • tengu_grove_policy_dismissed
  • tengu_grove_policy_escaped
  • tengu_grove_policy_exited
  • tengu_grove_policy_submitted
  • tengu_grove_policy_toggled
  • tengu_grove_policy_viewed
  • tengu_grove_print_viewed
  • tengu_grove_privacy_settings_viewed
  • tengu_guest_passes_link_copied
  • tengu_guest_passes_upsell_shown
  • tengu_guest_passes_visited
  • tengu_harbor
  • tengu_harbor_ledger
  • tengu_harbor_permissions
  • tengu_hawthorn_steeple
  • tengu_hawthorn_window
  • tengu_headless_latency
  • tengu_headless_plugin_install
  • tengu_heap_dump
  • tengu_help_toggled
  • tengu_herring_clock
  • tengu_hooks_command
  • tengu_idle_return_action
  • tengu_image_api_validation_failed
  • tengu_image_compress_failed
  • tengu_image_resize_failed
  • tengu_image_resize_fallback
  • tengu_immediate_command_executed
  • tengu_immediate_model_command
  • tengu_init
  • tengu_input_bash
  • tengu_input_command
  • tengu_input_prompt
  • tengu_input_slash_invalid
  • tengu_input_slash_missing
  • tengu_install_github_app_completed
  • tengu_install_github_app_error
  • tengu_install_github_app_started
  • tengu_install_github_app_step_completed
  • tengu_install_slack_app_clicked
  • tengu_iron_gate_closed
  • tengu_kairos_brief
  • tengu_kairos_brief_config
  • tengu_kairos_cron
  • tengu_kairos_cron_config
  • tengu_kairos_cron_durable
  • tengu_keybinding_customization_release
  • tengu_keybinding_fallback_used
  • tengu_language_changed
  • tengu_lapis_finch
  • tengu_legacy_opus_migration
  • tengu_lodestone_enabled
  • tengu_log_datadog_events
  • tengu_login_from_refresh_token
  • tengu_malort_pedway
  • tengu_managed_settings_loaded
  • tengu_managed_settings_security_dialog_accepted
  • tengu_managed_settings_security_dialog_rejected
  • tengu_managed_settings_security_dialog_shown
  • tengu_marble_sandcastle
  • tengu_marketplace_added
  • tengu_marketplace_background_install
  • tengu_marketplace_removed
  • tengu_marketplace_updated
  • tengu_marketplace_updated_all
  • tengu_max_tokens_context_overflow_adjustment
  • tengu_max_tokens_reached
  • tengu_max_version_config
  • tengu_mcp_add
  • tengu_mcp_auth_config_authenticate
  • tengu_mcp_auth_config_clear
  • tengu_mcp_channel_enable
  • tengu_mcp_channel_flags
  • tengu_mcp_channel_gate
  • tengu_mcp_channel_message
  • tengu_mcp_delete
  • tengu_mcp_dialog_choice
  • tengu_mcp_elicitation_response
  • tengu_mcp_elicitation_shown
  • tengu_mcp_get
  • tengu_mcp_ide_server_connection_failed
  • tengu_mcp_ide_server_connection_succeeded
  • tengu_mcp_instructions_pool_change
  • tengu_mcp_large_result_handled
  • tengu_mcp_list
  • tengu_mcp_list_changed
  • tengu_mcp_multidialog_choice
  • tengu_mcp_oauth_flow_error
  • tengu_mcp_oauth_flow_failure
  • tengu_mcp_oauth_flow_start
  • tengu_mcp_oauth_flow_success
  • tengu_mcp_oauth_refresh_failure
  • tengu_mcp_oauth_refresh_success
  • tengu_mcp_reset_mcpjson_choices
  • tengu_mcp_server_connection_failed
  • tengu_mcp_server_connection_succeeded
  • tengu_mcp_server_needs_auth
  • tengu_mcp_servers
  • tengu_mcp_session_expired
  • tengu_mcp_start
  • tengu_mcp_tool_call_auth_error
  • tengu_mcp_tools_commands_loaded
  • tengu_memdir_accessed
  • tengu_memdir_disabled
  • tengu_memdir_file_edit
  • tengu_memdir_file_read
  • tengu_memdir_file_write
  • tengu_memdir_loaded
  • tengu_memdir_prefetch_collected
  • tengu_message_actions_enter
  • tengu_message_level_tool_result_budget_enforced
  • tengu_message_selector_cancelled
  • tengu_message_selector_opened
  • tengu_message_selector_restore_option_selected
  • tengu_message_selector_selected
  • tengu_migrate_autoupdates_error
  • tengu_migrate_autoupdates_to_settings
  • tengu_migrate_bypass_permissions_accepted
  • tengu_migrate_mcp_approval_fields_error
  • tengu_migrate_mcp_approval_fields_success
  • tengu_migrate_reset_auto_opt_in_for_default_offer
  • tengu_miraculo_the_bard
  • tengu_mode_cycle
  • tengu_model_command_inline
  • tengu_model_command_inline_help
  • tengu_model_command_menu
  • tengu_model_command_menu_effort
  • tengu_model_fallback_triggered
  • tengu_model_picker_hotkey
  • tengu_model_whitespace_response
  • tengu_moth_copse
  • tengu_native_auto_updater_fail
  • tengu_native_auto_updater_lock_contention
  • tengu_native_auto_updater_start
  • tengu_native_auto_updater_success
  • tengu_native_auto_updater_up_to_date
  • tengu_native_install_binary_failure
  • tengu_native_install_binary_success
  • tengu_native_install_package_failure
  • tengu_native_install_package_success
  • tengu_native_staging_cleanup
  • tengu_native_stale_locks_cleanup
  • tengu_native_temp_files_cleanup
  • tengu_native_update_complete
  • tengu_native_update_lock_failed
  • tengu_native_update_skipped_max_version
  • tengu_native_update_skipped_minimum_version
  • tengu_native_version_cleanup
  • tengu_node_warning
  • tengu_nonstreaming_fallback_error
  • tengu_nonstreaming_fallback_started
  • tengu_notification_method_used
  • tengu_oauth_api_key
  • tengu_oauth_auth_code_received
  • tengu_oauth_automatic_redirect
  • tengu_oauth_automatic_redirect_error
  • tengu_oauth_claudeai_forced
  • tengu_oauth_claudeai_selected
  • tengu_oauth_console_forced
  • tengu_oauth_console_selected
  • tengu_oauth_error
  • tengu_oauth_flow_start
  • tengu_oauth_manual_entry
  • tengu_oauth_platform_selected
  • tengu_oauth_profile_fetch_success
  • tengu_oauth_roles_stored
  • tengu_oauth_storage_warning
  • tengu_oauth_success
  • tengu_oauth_token_exchange_error
  • tengu_oauth_token_exchange_success
  • tengu_oauth_token_refresh_completed
  • tengu_oauth_token_refresh_failure
  • tengu_oauth_token_refresh_lock_acquired
  • tengu_oauth_token_refresh_lock_acquiring
  • tengu_oauth_token_refresh_lock_error
  • tengu_oauth_token_refresh_lock_released
  • tengu_oauth_token_refresh_lock_releasing
  • tengu_oauth_token_refresh_lock_retry
  • tengu_oauth_token_refresh_lock_retry_limit_reached
  • tengu_oauth_token_refresh_race_recovered
  • tengu_oauth_token_refresh_race_resolved
  • tengu_oauth_token_refresh_starting
  • tengu_oauth_token_refresh_success
  • tengu_oauth_tokens_inference_only
  • tengu_oauth_tokens_not_claude_ai
  • tengu_oauth_tokens_save_exception
  • tengu_oauth_tokens_save_failed
  • tengu_oauth_tokens_saved
  • tengu_off_switch_query
  • tengu_official_marketplace_auto_install
  • tengu_onboarding_step
  • tengu_onyx_plover
  • tengu_org_penguin_mode_fetch_failed
  • tengu_orphaned_messages_tombstoned
  • tengu_output_style_changed
  • tengu_overage_credit_upsell_shown
  • tengu_paper_halyard
  • tengu_partial_compact
  • tengu_partial_compact_failed
  • tengu_passport_quail
  • tengu_paste_image
  • tengu_paste_text
  • tengu_pasted_image_resize_attempt
  • tengu_pdf_page_extraction
  • tengu_pdf_reference_attachment
  • tengu_pebble_leaf_prune
  • tengu_penguins_off
  • tengu_permission_explainer_error
  • tengu_permission_explainer_generated
  • tengu_permission_explainer_shortcut_used
  • tengu_permission_request_escape
  • tengu_permission_request_option_selected
  • tengu_pewter_ledger
  • tengu_pid_based_version_locking
  • tengu_plan_enter
  • tengu_plan_exit
  • tengu_plan_external_editor_used
  • tengu_plan_mode_interview_phase
  • tengu_plugin_command_failed
  • tengu_plugin_disable_command
  • tengu_plugin_disabled_all_cli
  • tengu_plugin_disabled_cli
  • tengu_plugin_enable_command
  • tengu_plugin_enabled_cli
  • tengu_plugin_enabled_for_session
  • tengu_plugin_hint_detected
  • tengu_plugin_hint_response
  • tengu_plugin_install_command
  • tengu_plugin_installed
  • tengu_plugin_installed_cli
  • tengu_plugin_list_command
  • tengu_plugin_load_failed
  • tengu_plugin_official_mkt_git_fallback
  • tengu_plugin_remote_fetch
  • tengu_plugin_uninstall_command
  • tengu_plugin_uninstalled_cli
  • tengu_plugin_update_command
  • tengu_plugin_updated_cli
  • tengu_plugins_loaded
  • tengu_post_autocompact_turn
  • tengu_post_compact_file_restore_error
  • tengu_post_compact_file_restore_success
  • tengu_post_compact_survey
  • tengu_post_compact_survey_event
  • tengu_post_tool_failure_hook_error
  • tengu_post_tool_failure_hooks_cancelled
  • tengu_post_tool_hook_error
  • tengu_post_tool_hooks_cancelled
  • tengu_powershell_command_explicitly_backgrounded
  • tengu_powershell_command_interrupt_backgrounded
  • tengu_powershell_command_timeout_backgrounded
  • tengu_powershell_tool_command_executed
  • tengu_pr_status_footer_setting_changed
  • tengu_pre_stop_hooks_cancelled
  • tengu_pre_tool_hook_error
  • tengu_pre_tool_hooks_cancelled
  • tengu_preflight_check_failed
  • tengu_prompt_suggestion
  • tengu_prompt_suggestion_init
  • tengu_quartz_lantern
  • tengu_query_after_attachments
  • tengu_query_before_attachments
  • tengu_query_error
  • tengu_quiet_fern
  • tengu_quiet_hollow
  • tengu_rate_limit_options_menu_cancel
  • tengu_rate_limit_options_menu_select_extra_usage
  • tengu_rate_limit_options_menu_select_upgrade
  • tengu_read_dedup_killswitch
  • tengu_reduce_motion_setting_changed
  • tengu_refusal_api_response
  • tengu_reject_feedback_mode_collapsed
  • tengu_reject_feedback_mode_entered
  • tengu_reject_submitted
  • tengu_relink_walk_broken
  • tengu_remote_backend
  • tengu_remote_create_session
  • tengu_remote_create_session_error
  • tengu_remote_create_session_success
  • tengu_remote_setup_result
  • tengu_remote_setup_started
  • tengu_repl_hook_finished
  • tengu_reset_pro_to_opus_default
  • tengu_respect_gitignore_setting_changed
  • tengu_resume_consistency_delta
  • tengu_resume_print
  • tengu_review_bughunter_config
  • tengu_review_overage_dialog_shown
  • tengu_review_overage_low_balance
  • tengu_review_overage_not_enabled
  • tengu_review_remote_launched
  • tengu_review_remote_precondition_failed
  • tengu_review_remote_teleport_failed
  • tengu_ripgrep_availability
  • tengu_ripgrep_eagain_retry
  • tengu_run_hook
  • tengu_sage_compass
  • tengu_satin_quoll
  • tengu_scheduled_task_expired
  • tengu_scheduled_task_fire
  • tengu_scheduled_task_missed
  • tengu_scratch
  • tengu_session_all_projects_toggled
  • tengu_session_branch_filter_toggled
  • tengu_session_file_read
  • tengu_session_forked_branches_fetched
  • tengu_session_group_expanded
  • tengu_session_linked_to_pr
  • tengu_session_memory
  • tengu_session_memory_accessed
  • tengu_session_memory_extraction
  • tengu_session_memory_file_read
  • tengu_session_memory_loaded
  • tengu_session_persistence_failed
  • tengu_session_preview_opened
  • tengu_session_rename_started
  • tengu_session_renamed
  • tengu_session_resumed
  • tengu_session_search_toggled
  • tengu_session_tag_filter_changed
  • tengu_session_tagged
  • tengu_session_title_generated
  • tengu_session_worktree_filter_toggled
  • tengu_sessions_elevated_auth_enforcement
  • tengu_setup_github_actions_completed
  • tengu_setup_github_actions_failed
  • tengu_setup_github_actions_started
  • tengu_setup_token_command
  • tengu_shell_completion_failed
  • tengu_shell_set_cwd
  • tengu_shell_snapshot_error
  • tengu_shell_snapshot_failed
  • tengu_shell_unknown_error
  • tengu_show_turn_duration_setting_changed
  • tengu_single_word_prompt
  • tengu_skill_file_changed
  • tengu_skill_improvement_survey
  • tengu_skill_loaded
  • tengu_skill_tool_invocation
  • tengu_skill_tool_slash_prefix
  • tengu_slash_command_forked
  • tengu_slate_heron
  • tengu_slate_prism
  • tengu_slate_thimble
  • tengu_slim_subagent_claudemd
  • tengu_sm_compact
  • tengu_sm_compact_config
  • tengu_sm_compact_empty_template
  • tengu_sm_compact_error
  • tengu_sm_compact_no_session_memory
  • tengu_sm_compact_resumed_session
  • tengu_sm_compact_summarized_id_not_found
  • tengu_sm_compact_threshold_exceeded
  • tengu_sm_config
  • tengu_snip_resume_filtered
  • tengu_speculation
  • tengu_started
  • tengu_startup_manual_model_config
  • tengu_startup_perf
  • tengu_startup_telemetry
  • tengu_status_line_mount
  • tengu_stdin_interactive
  • tengu_stop_hook_error
  • tengu_stream_loop_exited_after_watchdog
  • tengu_stream_no_events
  • tengu_streaming_error
  • tengu_streaming_fallback_to_non_streaming
  • tengu_streaming_idle_timeout
  • tengu_streaming_stall
  • tengu_streaming_stall_summary
  • tengu_streaming_tool_execution_not_used
  • tengu_streaming_tool_execution_used
  • tengu_structured_output_enabled
  • tengu_structured_output_failure
  • tengu_subagent_at_mention
  • tengu_surreal_dali
  • tengu_switch_to_subscription_notice_shown
  • tengu_sync_plugin_install_timeout
  • tengu_sysprompt_block
  • tengu_sysprompt_boundary_found
  • tengu_sysprompt_missing_boundary_marker
  • tengu_sysprompt_using_tool_based_cache
  • tengu_system_prompt_global_cache
  • tengu_tag_command_add
  • tengu_tag_command_remove_cancelled
  • tengu_tag_command_remove_confirmed
  • tengu_tag_command_remove_prompt
  • tengu_team_created
  • tengu_team_deleted
  • tengu_team_mem_accessed
  • tengu_team_mem_entries_capped
  • tengu_team_mem_file_edit
  • tengu_team_mem_file_read
  • tengu_team_mem_file_write
  • tengu_team_mem_push_suppressed
  • tengu_team_mem_secret_skipped
  • tengu_team_mem_sync_pull
  • tengu_team_mem_sync_push
  • tengu_team_mem_sync_started
  • tengu_team_memdir_disabled
  • tengu_teammate_default_model_changed
  • tengu_teammate_mode_changed
  • tengu_teleport_bundle_mode
  • tengu_teleport_cancelled
  • tengu_teleport_error_branch_checkout_failed
  • tengu_teleport_error_git_not_clean
  • tengu_teleport_error_repo_mismatch_sessions_api
  • tengu_teleport_error_repo_not_in_git_dir_sessions_api
  • tengu_teleport_errors_detected
  • tengu_teleport_errors_resolved
  • tengu_teleport_first_message_error
  • tengu_teleport_first_message_success
  • tengu_teleport_interactive_mode
  • tengu_teleport_print
  • tengu_teleport_resume_error
  • tengu_teleport_resume_session
  • tengu_teleport_source_decision
  • tengu_teleport_started
  • tengu_terminal_progress_bar_setting_changed
  • tengu_tern_alloy
  • tengu_thinkback
  • tengu_thinking_toggled
  • tengu_thinking_toggled_hotkey
  • tengu_tide_elm
  • tengu_timber_lark
  • tengu_time_based_microcompact
  • tengu_timer
  • tengu_tip_shown
  • tengu_tips_setting_changed
  • tengu_toggle_todos
  • tengu_toggle_transcript
  • tengu_tool_empty_result
  • tengu_tool_pear
  • tengu_tool_result_pairing_repaired
  • tengu_tool_result_persisted
  • tengu_tool_result_persisted_message_budget
  • tengu_tool_search_mode_decision
  • tengu_tool_search_outcome
  • tengu_tool_search_unsupported_models
  • tengu_tool_use_can_use_tool_allowed
  • tengu_tool_use_can_use_tool_rejected
  • tengu_tool_use_cancelled
  • tengu_tool_use_denied_in_config
  • tengu_tool_use_diff_computed
  • tengu_tool_use_error
  • tengu_tool_use_granted_by_classifier
  • tengu_tool_use_granted_by_permission_hook
  • tengu_tool_use_granted_in_config
  • tengu_tool_use_granted_in_prompt_permanent
  • tengu_tool_use_granted_in_prompt_temporary
  • tengu_tool_use_progress
  • tengu_tool_use_rejected_in_prompt
  • tengu_tool_use_show_permission_request
  • tengu_tool_use_success
  • tengu_tool_use_tool_result_mismatch_error
  • tengu_trace_lantern
  • tengu_transcript_accessed
  • tengu_transcript_exit
  • tengu_transcript_input_to_teammate
  • tengu_transcript_parent_cycle
  • tengu_transcript_toggle_show_all
  • tengu_transcript_view_enter
  • tengu_transcript_view_exit
  • tengu_tree_sitter_load
  • tengu_tree_sitter_parse_abort
  • tengu_tree_sitter_security_divergence
  • tengu_tree_sitter_shadow
  • tengu_trust_dialog_accept
  • tengu_trust_dialog_shown
  • tengu_turtle_carbon
  • tengu_ultraplan_approved
  • tengu_ultraplan_create_failed
  • tengu_ultraplan_failed
  • tengu_ultraplan_launched
  • tengu_ultraplan_model
  • tengu_ultrathink
  • tengu_unary_event
  • tengu_uncaught_exception
  • tengu_unexpected_tool_result
  • tengu_unhandled_rejection
  • tengu_unknown_model_cost
  • tengu_update_check
  • tengu_version_check_failure
  • tengu_version_check_success
  • tengu_version_config
  • tengu_version_lock_acquired
  • tengu_version_lock_failed
  • tengu_voice_recording_completed
  • tengu_voice_recording_started
  • tengu_voice_silent_drop_replay
  • tengu_voice_stream_early_retry
  • tengu_voice_toggled
  • tengu_vscode_cc_auth
  • tengu_vscode_onboarding
  • tengu_vscode_review_upsell
  • tengu_watched_file_compression_failed
  • tengu_willow_mode
  • tengu_worktree_cleanup
  • tengu_worktree_created
  • tengu_worktree_detection
  • tengu_worktree_kept
  • tengu_worktree_removed
  • tengu_write_claudemd
  • tengu_ws_transport_closed
  • tengu_ws_transport_reconnected
  • tengu_ws_transport_reconnecting

Permission / Approval Modes

Mode Description
default Prompt for each tool use
acceptEdits Auto-accept file edits; prompt for bash/network
bypassPermissions Skip all user prompts (danger: full auto)
plan Read-only planning mode

Effort Levels (CLAUDE_CODE_EFFORT_LEVEL)

Level Description
low Quick implementation, minimal verification
medium Balanced — default for most models
high Comprehensive with testing
max Maximum effort (claude-opus-4.6 recommended)

Tool Names (internal)

Tool Class Name
Bash shell Bash / BashOutputTool
File read Read / FileReadTool
File write Write / FileWriteTool
File edit Edit / FileEditTool
Glob Glob
Grep Grep
Sub-agent Agent / AgentOutputTool
Task Task
Skill Skill
System SystemTool
Web fetch WebFetch
Web search WebSearch
MCP list ListMcpResourcesTool
MCP read ReadMcpResourceTool

Companion System (Easter Egg)

  • Species: duck, goose, blob, cat, dragon, crab, owl, penguin, frog, snail, ghost, axolotl, capybara, fox, robot, rabbit, longcat, chonk
  • Rarities: common (60%), uncommon (25%), rare (10%), epic (4%), legendary (1%)
  • Shiny: 1% chance
  • Seed: hash(userUUID + "friend-2026-401")
  • Attribution salt: 59cf53e54c78

System Prompt Assembly (function Dj)

The system prompt is assembled from these functions in order:

  1. fH_() → Identity + coding instructions
  2. _H_()# System (tool use, permissions, hooks)
  3. qH_()# Doing tasks
  4. MH_()# Executing actions with care
  5. KH_()# Using your tools
  6. zH_()# Tone and style
  7. wH_()# Output efficiency

Dynamic injections: memory, ant_model_override, env_info_simple, language, output_style, mcp_instructions, scratchpad, frc, summarize_tool_results, brief


Internal Constants

Constant Value
VERSION 2.1.87
BUILD_TIME 2026-03-25T05:15:24Z
MEMORY_INDEX MEMORY.md
MEMORY_MAX_LINES 200
MEMORY_MAX_BYTES 25000
MAX_INCLUDE_DEPTH 5

Extracted via binary string analysis. All vars reflect what's compiled into the binary — not all are documented in official docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment