本文へ移動
cccskills
無料GitHub で公開

karpathy-patterns

Reference when designing autonomous agent systems or deciding agent freedom/safety/context management/collaboration infrastructure. 10 design principles distilled from Karpathy autoresearch (autonomous ML experiment loop) + AgentHub (agent-native Git DAG). Triggered by "autoresearch", "agenthub", "ratchet" ("래칫"), "context budget", "dumb platform", "program.md", "overnight", "autonomous experiment" ("자율 실험"), "branchless", "single-file constraint" ("단일 파일 제약"), "fixed time budget" ("고정 시간 예산") keywords.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md10.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Karpathy Patterns — Autonomous Agent Design Principles

Source: karpathy/autoresearch (Python, 3 files) + karpathy/agenthub (Go, single binary) Philosophy: Quality is guaranteed by constraints, not infrastructure. Historical provenance: Blog 22 (22-karpathy-autoresearch-autonomous-ml-loop.md) and Blog 23 (23-karpathy-agenthub-agent-native-infrastructure.md) are absent from this checkout; the former links are not maintained source references.

Current GEODE applicability — reviewed 2026-09-06

The upstream pattern notes below are conceptual references. Their GEODE counterpart paragraphs are historical, not current implementation instructions: old node paths, iteration limits, layer numbers, and event counts must not be copied into new work. Ground present-day application in AGENTS.md, code conventions, and runtime authority. core owns the runtime, evals measurement, and evolve scaffold search and promotion. Use the architecture roadmap for current GAP status; this skill is not another status ledger.

The upstream Git/reset and unattended-run examples do not authorize discarding user work or starting live experiments. GEODE's workflow and frozen evaluation contract govern those actions.

10 Pattern Overview

#PatternOne-line PrincipleFreedomSource
P1Constraint-based designDefine "what cannot be done" firstGuardrailautoresearch
P2Single-file constraintModification surface = 1 file (or minimal unit)Guardrailautoresearch
P3Fixed time budgetCompare fairly by wall clock, not stepsGuidelineautoresearch
P4Ratchet mechanismKeep only improvements, auto-revert on degradationGuardrailautoresearch
P5Git as State MachineCommit=experiment, reset=discard, tip=best solutionGuidelineautoresearch
P6Context Budget managementProtect context via redirect + selective extractionGuardrailautoresearch
P7program.md interfaceChanging agent behavior = editing the instruction documentInspirationautoresearch
P8Dumb PlatformPlatform only stores, orchestration goes in promptsInspirationAgentHub
P9Branchless DAGAgent collaboration via unnamed commit DAGsInspirationAgentHub
P10Simplicity SelectionCode deletion improvement > code addition improvementGuidelineautoresearch

Freedom legend: Guardrail = must follow for safety · Guideline = preferred but use judgment · Inspiration = conceptual reference


P1. Constraint-based Design

Restrict agent freedom to the necessary minimum. autoresearch constraints: 3 files, only train.py modifiable, 5-minute wall-clock, no package installation, single val_bpb metric.

Judgment: When designing an agent, did you define "what cannot be done" before "what can be done"?

Historical GEODE counterpart — not current: Node contracts (output keys restriction, core/nodes/*.py), Clean Context (analyses blocked, analysts.py:417), Confidence Gate ≥ 0.7 + max 5 iter (graph.py:66-68).


P2. Single-file Constraint

autoresearch: train.py (~630 lines) = the only modification target
→ Entire code fits in context window, holistic understanding, diff=experiment record

Judgment:

ScenarioApplicable?
Autonomous experiment / config optimizationO
Large-scale refactoring / multi-module changesX

Historical GEODE counterpart — not current: Each Analyst/Evaluator had independent prompts + independent output models. One node did not modify another node's prompts.


P3. Fixed Time Budget

TRAINING_BUDGET_SECONDS = 300  # Efficient architecture = more steps (automatic reward)

Instead of "N iterations," use "do your best within T minutes" → the agent optimizes its own efficiency.

Historical GEODE counterpart — not current: Then iteration-based (max 5); the note proposed node timeout + partial-result handling before wall-clock control.


P4. Ratchet Mechanism

LOOP:
  modify → evaluate → if better: keep, else: revert

Strength: Safe for unattended overnight execution. Weakness: Can get stuck in local optima.

Mitigation: Diversity Forcing (5 consecutive same type → forced switch), Simulated Annealing, Multi-branch (AgentHub DAG), Meta-optimization (program.md self-modification).

Historical GEODE counterpart — not current: 5-Phase RLHF feedback loop (automation/feedback_loop.py). Broader exploration than ratchet (expert panel) + weaker convergence guarantee.


P5. Git as State Machine

Commit = experiment record     Branch tip = best solution     git reset = discard failure

Zero infrastructure cost. Weakness: git reset loses failure records → risk of repeating the same failures.

Historical GEODE counterpart — not current: 3-Tier Memory (memory/organization.py, project.py, session.py) was presented as retaining failure history via hierarchical TTL.


P6. Context Budget Management

uv run train.py > run.log 2>&1   # L1: Block (0 context consumption)
grep "^val_bpb:" run.log          # L2: Extract (only 2 lines)
                                  # L3: Summarize → 1-bit judgment (improved/degraded)

Historical GEODE counterpart — not current: Clean Context — existing analyses excluded from Send API (analysts.py:418-434). Session TTL (session.py:43-51). PromptAssembler assembled selected information per node (prompt_assembler.py:48-110).


P7. program.md Interface

program.md = agent instruction document. Composed of Setup (initialization) + Experimentation (loop protocol) + Constraints (prohibitions) + Preferences (direction) + Style (quality standards).

Key point: The quality of program.md determines the quality of the agent's research. To change behavior, modify the instruction document, not the code.

Historical GEODE counterpart — not current inventory: CLAUDE.md (project instruction document) + skill system (domain-specific expert instruction documents) + HookSystem 26 events (hooks.py:19-62).


P8. Dumb Platform

Smart Platform (GEODE/OpenClaw): Platform = routing + concurrency + events + orchestration
Dumb Platform (AgentHub):        Platform = storage + delivery only, orchestration in prompts

Judgment:

ScenarioRecommendation
Deterministic ordering / SLASmart
Frequent orchestration changes / open-ended explorationDumb
HybridPipeline is Smart, inter-agent discussion is Dumb

Historical GEODE counterpart — not current: Classified as Smart Platform; the note proposed partial Dumb elements with a future L6 Custom Agent layer. That layer map is not the current architecture.


P9. Branchless DAG

A DAG where commits branch out in all directions, without branches/PRs/merges. Core operations: leaves (frontier), lineage (ancestor path), children (direct descendants).

Historical GEODE counterpart — not current: TaskSystem's get_ready_tasks() (task_system.py:116-120) was compared with leaves — pending tasks with fulfilled dependencies as frontier nodes.


P10. Simplicity Selection

program.md: "Add 20 lines for 0.001 improvement? Reject. Delete code for 0.001 improvement? Always accept."
ChangeImprovementVerdict
Code deletionMarginalAccept
Clean additionMeaningfulAccept
Hacky additionMarginalReject

LLMs are inherently biased toward adding code. The instruction document must explicitly include "prefer simple solutions."

Historical GEODE counterpart — not current prompt text: Compared with the system prompt's "Avoid over-engineering. Only make changes that are directly requested" principle.


Pattern Relationships

P1 Constraint-based design ─── Top-level principle
  ├── P2 Single file     (code level)
  ├── P3 Fixed time      (resource level)
  └── P10 Simplicity     (quality criteria)

P4 Ratchet ─── Safe autonomous execution
  └── P5 Git State Machine (implementation mechanism)

P6 Context Budget ─── Sustained long-running execution
  └── P7 program.md    (human-agent interface)

P8 Dumb Platform ─── Multi-agent scaling
  └── P9 Branchless DAG (implementation pattern)

Scale-based Application Guide

ScaleApplicable PatternsNot Applicable
Single agent, single taskP1, P2, P4, P5P8, P9
Single agent, overnight autonomousP1-P7, P10P8, P9
Multi-agent, exploratoryP1, P4, P6, P8, P9P2
Multi-agent, productionP1, P3, P4, P6 + SmartP8

Anti-patterns

Anti-patternViolatesSymptom
"All files modifiable"P2Fragmented changes, broken dependencies
"Unlimited execution"P3Cost explosion, meaningless exploration
"All results into context"P6Context exhaustion, early termination
"Platform controls everything"P8Lost flexibility, deployment bottleneck
"Accept any improvement"P10Complexity accumulation
"Failure records not preserved"P5Repeating the same failures

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Audit agent runtimes and their tests for lifecycle inference, capability overload, context pollution, correlated verification, prompt-only control, false success, dead compatibility paths, test-only seams, and complexity without contribution. Use for whole-repository agent audits, slop or dead-code triage, test contribution reviews, large refactors, tool/context simplification, and cleanup requests that need proof before deleting code or tests.

日本語の概要は準備中です。原文の説明を表示しています。

mangowhoiscloud/geode152026年10月12日 更新

Diagnose agent operational failures through default-policy checks, multi-gap analysis, explicit service ownership, request-context lifetime, and degradation-versus-correctness checks.

日本語の概要は準備中です。原文の説明を表示しています。

mangowhoiscloud/geode152026年10月12日 更新

Align, run, audit, and publish GEODE benchmark comparisons against Agent-World arXiv 2604.18292v1 across MCP-Mark, BFCL V4, and tau2-bench. Use for Agent-World or AgentWorld comparison requests, cross-suite agent benchmark design, Tau2 comparator/profile diagnosis, paired thin-runtime-versus-GEODE experiments, mean-accuracy@8 replication, or benchmark comparability and artifact reviews.

日本語の概要は準備中です。原文の説明を表示しています。

mangowhoiscloud/geode152026年10月12日 更新

Verification checklist to prevent fake success. Detects test deletion/disabling, coverage regression, lint bypass, secret exposure. Triggered by "deception", "fake" ("가짜"), "fake success", "verification" ("검증"), "checklist" ("체크리스트"), "deletion detection" ("삭제 탐지"), "regression" keywords.

日本語の概要は準備中です。原文の説明を表示しています。

mangowhoiscloud/geode152026年10月12日 更新

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use when architecting complex backend systems or refactoring existing applications for better maintainability.

日本語の概要は準備中です。原文の説明を表示しています。

mangowhoiscloud/geode152026年10月12日 更新

Auto-search and summarize latest AI/agent papers.

日本語の概要は準備中です。原文の説明を表示しています。

mangowhoiscloud/geode152026年10月12日 更新

mangowhoiscloud のスキルをすべて見る

このスキルの問題を報告する