スキル一覧に戻る
clocksmith

reploid-debug

by clocksmith

Model CPS-9204

2🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: reploid-debug description: Debug Reploid agent issues. Use when investigating agent loop problems, tool execution failures, VFS issues, or state management bugs in the browser-based RSI substrate. (project) metadata: short-description: Debug Reploid agent issues

Reploid Debug Skill

You are debugging Reploid, a browser-native self-modifying AI agent.

Quick Start

# Run all tests
npm test

# Run specific test suites
npm test -- --unit
npm test -- --integration
npm test -- --e2e

# Debug mode
npm run debug
npm run debug -- --goal "test vfs operations"

# Benchmarks
npm run bench

# Start dev server
npm start

Key Paths (from reploid root)

PathDescription
core/Agent loop, VFS, LLM client, tool runner
infrastructure/EventBus, DI container, HITL controller
tools/Agent tools (CamelCase naming)
ui/Proto UI components
tests/Test suites

Debug Commands

# Testing (unified CLI)
npm test                        # Run all tests
npm test -- --unit              # Unit tests only
npm test -- --integration       # Integration tests
npm test -- --e2e               # Playwright E2E
npm test -- --e2e --headed      # E2E with visible browser
npm test -- --watch             # Watch mode
npm test -- --coverage          # With coverage

# Debug mode
npm run debug                   # Interactive debug console
npm run debug -- --headed       # With visible browser
npm run debug -- --goal "chat"  # Debug specific goal

# Benchmarks
npm run bench                   # Performance benchmarks

# Development
npm start                       # Start dev server
npm run cli                     # Start Reploid CLI

# Ouroboros integration (from ouroboros root)
npm run bench -- memory         # Memory benchmarks
npm run bench -- atomics        # Atomics performance
npm run db validate -- --shards reploid  # Validate shards

Debug Checklist

Agent Loop Issues

  • Check core/agent-loop.js for stuck awaits
  • Inspect EventBus listeners for circular events
  • Verify LLM client responses
DEBUG=reploid:agent-loop npm test

Tool Failures

  • Check core/tool-runner.js execution path
  • Verify tool schema in tools/
  • Check tool dependencies
npm run test:unit -- --filter ToolRunner

VFS Issues

  • Check IndexedDB in browser devtools
  • Verify capabilities/system/substrate-loader.js
  • Check VFS initialization
# List VFS contents
npm run cli -- --command "VFS.list('/')"

State Problems

  • Check core/state-manager.js
  • Inspect EventBus for missed events
  • Verify state snapshots
DEBUG=reploid:state npm test

Architecture

User Input -> AgentLoop -> LLMClient -> Tool Selection
                  |             |
            StateManager   ToolRunner -> VFS (IndexedDB)
                  |             |
            ContextManager  SchemaRegistry
                  |
            EventBus <-> HITL Controller
                  |
            GenesisSnapshot (rollback)

Async Utilities

Tools now include timeout and retry support:

import { withTimeout, withRetry, withTimeoutAndRetry } from '../core/async-utils.js';

// Timeout protection
const result = await withTimeout(operation(), 30000, 'MyOperation');

// Retry with exponential backoff
const result = await withRetry(async () => operation(), {
  maxAttempts: 3,
  initialDelayMs: 1000
});

// Combined
const result = await withTimeoutAndRetry(operation, {
  timeoutMs: 30000,
  maxAttempts: 3
});

Common Issues

SymptomLikely CauseFix
Agent loop hangsStuck await in LLM clientCheck timeout config
Tool timeoutMissing timeout wrapperAdd withTimeout()
VFS not foundIndexedDB not initializedCheck substrate loader
State corruptionMissing rollbackUse GenesisSnapshot
  • doppler-debug: Debug WebGPU inference issues
  • doppler-benchmark: Run performance benchmarks
  • ouroboros: Maintain feature database

Documentation

  • docs/TESTING.md - Full testing guide
  • ARCHITECTURE.md - System architecture
  • core/async-utils.js - Timeout/retry utilities

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です