8000 GitHub - mo-haggag/claude-code-induced-introspection: Claude Code explaining itself through Induced Introspection.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mo-haggag/claude-code-induced-introspection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Claude Code: Induced Introspection

This repository contains a comprehensive extraction and analysis of Claude Code's system prompt, along with detailed explanations of inferred key subsystems and tools, and an architectural analysis using a prompting technique we call "Induced Introspection", which systematically prompts the system to articulate its own "self-image" through structured dialogue. This allows us to document how Claude Code functions as an agentic system for software engineering tasks.


Table of Contents

  1. About
  2. Purpose
  3. Repository Structure
  4. Methodology
  5. Architecture Overview
  6. Key Architectural Components
  7. Subsystems Integration
  8. Documentation Contents

About

Rather than reverse engineering from external artifacts, we guided Claude Code to reflect upon and document how it conceptualizes its own internal mechanisms. This approach offers unique insights into how agentic LLM-based systems represent their own operational models.

Note: This documentation represents Claude Code's self-conceptualization, not a definitive description of the actual implementation.


Purpose

This repository serves as a reference for:

  1. Understanding Claude's capabilities and limitations
  2. Learning about Claude Code's available tools
  3. Improving Claude interactions by aligning with its parameters
  4. Academic research on LLM agent frameworks
  5. Studying agentic LLM system design principles
  6. Exploring patterns for building similar systems

Repository Structure

claude-code-docs/
├── docs/
│   ├── architecture/       # High-level architectural analysis
│   ├── subsystems/         # Detailed subsystem explanations
│   └── system-prompt/      # Raw system prompt files
├── METHODOLOGY.md          # Induced Introspection technique details
└── README.md               # This file

Methodology

The complete methodology is detailed in METHODOLOGY.md.


Architecture Overview

Claude Code Architecture


Key Architectural Components

Claude Code implements a multi-layered system:

  1. Central Reasoning Engine: Claude LLM for interpreting requests and decision-making
  2. Tool Orchestration Layer: Manages specialized tool interactions
  3. Hierarchical Delegation System: Assigns complex subtasks to sub-agents
  4. Persistent State Management: Maintains state across interactions
  5. Structured Workflows: Formalizes procedures for common operations

The system follows a TOSPO (Thought, Observation, Selection, Planning, Operation) execution loop with safety mechanisms and clear design principles.


Subsystems Integration

  1. Task Planning: Todo system for planning multi-step operations
  2. Search and Discovery: Glob and Grep tools locate relevant files and content
  3. Code Understanding: Read tools provide context for modifications
  4. Precise Modification: Edit tools enable careful code changes
  5. Execution: Bash tools run commands, tests, and builds
  6. Version Control: Git workflows manage code systematically
  7. External Knowledge: Web tools access documentation and information

Documentation Contents

System Prompt

Subsystem Documentation

Architectural Analysis

About

Claude Code explaining itself through Induced Introspection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0