Skip to main content

Core Concepts

IronShift is built on three foundational pillars: flexible operation modes, human-in-the-loop safety, and a structured tool system. Understanding these concepts will help you get the most out of IronShift.


Three Operation Modes

IronShift offers three distinct operation modes, each designed for different workflows:

ModeDescriptionBest ForTool Access
ChatConversational Q&A — explains HOW to do things. Shows Terraform code, CLI commands, and step-by-step instructions without executing anything.Learning, quick answers, code snippetsNone (explanatory only)
PlanStep-by-step planning — shows reasoning process, clarifies ambiguities, breaks tasks into numbered steps before execution.Complex multi-step operationsFull tools
AgentMaximum autonomy — clarifies once upfront, then chains multiple actions automatically, fixes errors autonomously (max 2 retries).Hands-free automationFull tools

Human-in-the-Loop Safety

IronShift never runs a command without your explicit approval. Every action goes through a safety review:

  1. Request Analysis — IronShift understands your request and determines the best approach
  2. Command Preview — You see the exact command(s) that will run, with full parameter transparency
  3. Risk Assessment — Each operation includes a risk indicator so you understand the impact
  4. Your Decision — Approve, modify, or reject. Complete control at every step
  5. Live Execution — Approved commands execute with real-time output streaming
important

CLI commands are used only for read-only discovery (list, describe, show). All infrastructure changes go through the generate_infra tool which generates IaC files for your review before any modification.


The Tool System

IronShift uses a structured tool system to interact with your infrastructure:

ToolPurposeExecution
execute_terminal_commandRun read-only CLI commands to discover and query existing resourcesOn your machine via IDE terminal
generate_infraGenerate IaC files (Terraform, Ansible, Kubernetes) for creating, configuring, or deploying resourcesFiles generated → you review → you confirm → commands execute
analyze_workspace_projectScan your IDE workspace to analyze project structure, tech stack, and deployment filesRead-only analysis on your machine

IaC Generation: Two-Phase Flow

Infrastructure as Code generation follows a safe, two-phase process:

  1. IaC files are generated and saved to .ironshift/infra/<timestamp>/
  2. Files are opened in the editor with a summary of each file's purpose
  3. You review and confirm before any command executes (terraform init/apply, etc.)
  4. If existing Terraform files are detected, new files go into a separate folder — nothing is overwritten
  5. If execution fails, IronShift self-heals: diagnoses the error and regenerates fixed code automatically