{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "How to Speed Up Python Code with an AI Agent: Profiling and Rewriting the Hot 5%",
    "canonical_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
    "language": "en",
    "article_type": "guide",
    "published_at": null,
    "updated_at": "2026-11-22T00:00:00+00:00"
  },
  "summary": "Time to complete: 45 minutes Difficulty: Intermediate",
  "topics": [
    "как ускорить Python код",
    "профилирование Python",
    "оптимизация кода с помощью ИИ",
    "как найти узкие места в коде"
  ],
  "entities": [
    {
      "id": "E1",
      "name": "как ускорить Python код",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E2",
      "name": "профилирование Python",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E3",
      "name": "оптимизация кода с помощью ИИ",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E4",
      "name": "как найти узкие места в коде",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E5",
      "name": "Python",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E6",
      "name": "Git",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    }
  ],
  "claims": [
    {
      "id": "AR-GUIDE-KAKUSKORIT-001",
      "statement": "Time to complete: 45 minutes",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Time to complete: 45 minutes"
    },
    {
      "id": "AR-GUIDE-KAKUSKORIT-002",
      "statement": "Difficulty: Intermediate",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Difficulty: Intermediate"
    },
    {
      "id": "AR-GUIDE-KAKUSKORIT-003",
      "statement": "You will need: Python 3 with the standard library (cProfile, pstats, timeit) — run python3 -V to confirm; a git repository with a clean working tree; one slow script or function plus a way to run it; a coding AI agent (CLI or chat) that can read the files you paste or point it at.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "You will need: Python 3 with the standard library (cProfile, pstats, timeit) — run python3 -V to confirm; a git repository with a clean working tree; one slow script or function plus a way to run it; a coding AI agent (CLI or chat) that can read the files you paste or point it at."
    },
    {
      "id": "AR-GUIDE-KAKUSKORIT-004",
      "statement": "Linux, macOS, or Windows with a shell; commands below are written for bash.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Linux, macOS, or Windows with a shell; commands below are written for bash."
    },
    {
      "id": "AR-GUIDE-KAKUSKORIT-005",
      "statement": "Python 3 installed: python3 -V must print a version. Any version supported by python.org works — check the documentation for the current release notes.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Python 3 installed: python3 -V must print a version. Any version supported by python.org works — check the documentation for the current release notes."
    },
    {
      "id": "AR-GUIDE-KAKUSKORIT-006",
      "statement": "git installed and the project committed, so git diff shows only the agent's change.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "git installed and the project committed, so git diff shows only the agent's change."
    }
  ],
  "relationships": [
    {
      "subject": "Guide",
      "predicate": "describes",
      "object": "How to Speed Up Python Code with an AI Agent: Profiling and Rewriting the Hot 5%",
      "claim_id": "AR-GUIDE-KAKUSKORIT-001"
    },
    {
      "subject": "Guide",
      "predicate": "includes step",
      "object": "Step 1. Lock a baseline and capture the profile",
      "claim_id": "AR-GUIDE-KAKUSKORIT-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is required?",
      "answer": "Linux, macOS, or Windows with a shell; commands below are written for bash.; Python 3 installed: python3 -V must print a version. Any version supported by python.org works — check the documentation for the current release notes.; git installed and the project committed, so git diff shows only the agent's change.; A…",
      "claim_ids": [
        "AR-GUIDE-KAKUSKORIT-003"
      ],
      "article_anchor": "#requirements"
    },
    {
      "question": "How to do it?",
      "answer": "Step 1. Lock a baseline and capture the profile → Step 2. Build the hot-slice packet and hand it to the agent → Step 3. Apply, verify, and keep the change",
      "claim_ids": [
        "AR-GUIDE-KAKUSKORIT-004"
      ],
      "article_anchor": "#step-1"
    },
    {
      "question": "Which topics does it cover?",
      "answer": "как ускорить Python код, профилирование Python, оптимизация кода с помощью ИИ, как найти узкие места в коде",
      "claim_ids": [
        "AR-GUIDE-KAKUSKORIT-002"
      ],
      "article_anchor": "#entities"
    },
    {
      "question": "What are the key points?",
      "answer": "Time to complete: 45 minutes Difficulty: Intermediate",
      "claim_ids": [
        "AR-GUIDE-KAKUSKORIT-007"
      ],
      "article_anchor": "#tldr"
    }
  ],
  "limitations": [
    "Current versions, prices and limits.",
    "Independent benchmarks and quality checks.",
    "Terms of use and data policy."
  ],
  "citation": {
    "preferred_citation": "AI Release. Как ускорить Python-код с помощью ИИ-агента: профилирование и переписывание горячих 5%. https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
    "canonical_url": "https://ai-release.org/guides/kak-uskorit-python-kod-s-pomoschyu-ii-agenta-profilirov_en.html",
    "publisher": "AI Release"
  }
}