Parity Overview

Claw Code Agent is a ground-up Python reimplementation of Claude Code’s npm-based agent architecture. The PARITY_CHECKLIST.md tracks implementation status across every feature surface. The project spans ~21,000 lines across 51 source files, achieving strong core parity while significant gaps remain in interactive features and infrastructure.

What’s Fully Implemented

Core Agent Runtime

FeatureStatus
One-shot agent loopsComplete
Iterative tool callingComplete
Streaming output (token-by-token)Complete
Local model execution (vLLM, Ollama, LiteLLM, OpenRouter)Complete
Session persistence and resumptionComplete
Cost tracking and budget enforcementComplete
File history journaling with snapshotsComplete
Nested agent delegation with topological batchingComplete
Context compaction (auto-snip and auto-compact)Complete
Structured JSON schema output modeComplete
Truncation continuationComplete

CLI and Commands

FeatureStatus
Python CLI (python3 -m src.main)Complete
agent / agent-chat / agent-resume commandsComplete
Background sessions (agent-bg, agent-ps, agent-logs, agent-attach, agent-kill)Complete
Diagnostic commands (summary, manifest, parity-audit, command-graph)Complete
37 slash commands (of ~80+ upstream)Complete

Prompt and Context

FeatureStatus
Structured system prompt builder (21 sections)Complete
CLAUDE.md discovery (global, directory, rules)Complete
Git state detection (branch, status, recent commits)Complete
Tokenizer-aware context accountingComplete
Environment snapshot (platform, shell, date)Complete

Tools

FeatureStatus
58 built-in tools implementedComplete
File operations (read, write, edit, list, glob, grep)Complete
Shell execution with full security validationComplete
MCP resource access and tool invocationComplete
Account, config, search, remote managementComplete
Task/plan/team/workflow/worktree managementComplete
Nested agent delegationComplete

Security

FeatureStatus
Bash security (18 validators, 163 tests)Complete
Permission tiers (read/write/shell/unsafe)Complete
Hook policy manifestsComplete
Tool blocking (exact and prefix match)Complete
Destructive command detection (20+ patterns)Complete

What’s Partially Implemented

CLI Modes (Partial)

Working: local background sessions, daemon wrapper, agent-chat interactive mode.

Missing: remote-control/bridge runtime mode (30+ files in npm), browser/native-host runtime, computer-use MCP mode, template jobs, environment runners.

Slash Commands (Partial)

Implemented (37 commands): /help, /context, /prompt, /permissions, /model, /tools, /memory, /status, /clear, /config, /account, /search, /mcp, /remote, /tasks, /plan, /hooks, and others.

Missing (43+ commands): /add-dir, /bridge, /chrome, /desktop, /ide, /install-github-app, /keybindings, /plugin, /release-notes, /sandbox-toggle, /theme, /upgrade, /voice, /vim, plus feature-gated and internal variants.

Tools (Partial)

Core tools have full fidelity. Gaps exist in:

Missing ToolPurpose
AgentTool (full)Sub-agent spawning with built-in agent types
SkillToolSkill loading and execution
LSPToolLanguage Server Protocol diagnostics
PowerShellToolPowerShell with security validators
REPLToolInteractive REPL execution
MCPTool (full)Complete MCP execution beyond stdio

What’s Not Implemented

Remote and Team Infrastructure

The npm Claude Code implementation includes a bridge subsystem (30+ files) for real remote session management with WebSocket infrastructure, shared remote state, and upstream proxy. None of this is implemented — the Python version has local remote profile management only.

Interactive UI / REPL

The npm implementation includes an Ink/TUI framework with 40+ files, 100+ React-style components, a screen system, virtual scrolling, approval UI flows, keyboard interaction, and rich incremental rendering. The Python version provides functional CLI execution but no interactive TUI parity.

MCP / Plugin / Skill Services

Local MCP resource access works over stdio. Missing: full MCP service (25+ files covering auth, permissions, config, registry, OAuth), plugin discovery/loading/installation, bundled skill support, and plugin lifecycle management.

Services Layer

The npm implementation includes extensive backend services not present in Python:

ServicePurpose
AnalyticsUsage tracking and telemetry
LSPLanguage Server Protocol integration
Auto-dreamBackground task generation
Agent summaryConversation summarization
Magic docsDocumentation generation
Session memoryCross-session knowledge persistence
Prompt suggestionContextual prompt recommendations
Memory extractionAutomatic insight extraction
OAuthAuthentication flow management
Rate limitingAPI throttling
Settings syncCross-device configuration

Platform Integration

FeatureStatus
Voice modeNot implemented
VIM modeNot implemented
Keybinding system (13 files)Not implemented
IDE integration (VS Code, JetBrains)Not implemented
Notification hooksNot implemented
Chrome extensionNot implemented

Enterprise Features

FeatureStatus
Coordinator modeNot implemented
Buddy/companion system (6 files)Not implemented
Migration system (11 scripts)Not implemented
Growthbook feature flagsNot implemented
Internal logging infrastructureNot implemented

Development Roadmap

The PARITY_CHECKLIST.md defines a tiered priority system:

Tier 1 — High Priority

  • LSP tool integration for code intelligence
  • Full AgentTool with built-in agent types (Explore, Plan, etc.)
  • Auto-compact and context collapse improvements
  • Interactive REPL enhancements

Tier 2 — Medium Priority

  • SkillTool implementation
  • Full MCP service beyond stdio transport
  • Plugin discovery, loading, and installation
  • Real remote session management
  • Implementation of remaining 43+ slash commands

Tier 3 — Nice to Have

  • TUI components and interactive rendering
  • Voice and VIM modes
  • IDE integrations (VS Code, JetBrains)

Tier 4 — Enterprise / Platform

  • Bridge subsystem for remote sessions
  • OAuth and rate limiting services
  • Auto-dream and consolidation tasks
  • Analytics and telemetry

Architecture Comparison

DimensionClaude Code (npm)Claw Code Agent (Python)
LanguageTypeScript/Node.jsPython 3.10+
Dependenciesnpm ecosystemZero (stdlib only)
Model backendAnthropic API onlyAny OpenAI-compatible endpoint
UI frameworkInk (React for CLI)Plain stdout/stdin
Codebase size~100K+ lines~21K lines
Tools80+60+
Slash commands80+37
Source filesHundreds51
MCP transportstdio, SSE, WebSocketstdio only
Plugin systemFull lifecycle managementManifest-based hooks and aliases
Remote sessionsWebSocket bridge (30+ files)Local profile management
TUIInk components (100+)None
PlatformmacOS, Linux, WindowsmacOS, Linux

Key Design Differences

  1. Zero dependencies — Where Claude Code relies on hundreds of npm packages, Claw Code Agent uses only Python’s standard library. This is a deliberate architectural choice for portability, auditability, and simplicity.

  2. Backend agnosticism — The OpenAI-compatible client abstracts away model-specific details. Switching from vLLM to Ollama requires only changing three environment variables.

  3. Immutable state patterns — The AgentManager uses frozen dataclasses and reconstruction-based updates rather than mutation, providing stronger auditability guarantees.

  4. Reactive context management — Rather than proactively managing context, the agent reacts to prompt-length errors with snipping and compaction, then retries.

  5. Functional CLI — No attempt to replicate the Ink-based TUI. The focus is on correctness of the agent loop rather than interactive aesthetics.

References