AgentBisect MCP server
2026년 11월 7일 커밋AI 코딩 에이전트가 이진 탐색 디버깅과 워크스페이스 포킹을 수행하여, 다단계 작업 과정에서 발생하는 오류를 정확히 찾아내고 복구할 수 있도록 지원합니다.
다른 이름 test-bit-sys/agentbisect
- 스타
- 3
- Tools
- 5
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 7일
- 라이선스
- MIT
AgentBisect MCP란?
AgentBisect은(는) MCP server입니다. AI 코딩 에이전트가 이진 탐색 디버깅과 워크스페이스 포킹을 수행하여, 다단계 작업 과정에서 발생하는 오류를 정확히 찾아내고 복구할 수 있도록 지원합니다. 5개 도구를 제공합니다. 예: agentbisect_snapshot, agentbisect_bisect, agentbisect_rewind.
프로젝트 README에서 생성된 요약
AgentBisect MCP server 정보
Claude Code, Cursor Agent 또는 Aider와 같은 자율 코딩 에이전트를 사용하는 개발자는 AgentBisect를 사용하여 복잡한 다단계 코딩 트래젝토리를 디버깅할 수 있습니다. 에이전트가 긴 세션 도중 실수를 했을 때, 이 도구를 사용하면 로그를 수동으로 검색하며 비싼 API 토큰을 낭비하거나 처음부터 다시 시작할 필요가 없습니다. 실제 git 히스토리를 오염시키지 않고 shadow git ledger를 사용하여 워크스페이스 체크포인트를 스냅샷으로 저장합니다.
AI 클라이언트는 agentbisect_bisect 도구를 실행하여 기록된 단계들 사이에서 이진 탐색을 수행하고 회귀 오류가 발생한 정확한 시점을 찾을 수 있습니다. 오류 위치가 파악되면 agentbisect_rewind 도구가 파일 시스템을 검증된 정상 상태로 복구하고, 에이전트가 작업을 올바르게 재개할 수 있도록 복구 프롬프트를 생성합니다. 이 시스템은 CLI를 통해 로컬에서 사용하거나 Claude Desktop 또는 Windsurf와 같은 데스크톱 환경에 통합된 MCP server로 사용할 수 있도록 설계되었습니다.
활용 사례
- 1첫 번째 오류 단계 식별이진 탐색을 사용하여 에이전트 작업의 긴 시퀀스 중 버그가 도입된 정확한 지점을 찾습니다.
- 2에이전트 오류 복구워크스페이스를 검증된 정상 상태로 되돌리고, 에이전트가 실수를 반복하지 않고 작업을 계속할 수 있도록 프롬프트를 제공합니다.
- 3에이전트 성능 시각적 분석웹 대시보드를 사용하여 단계별 그래프, diff, 그리고 전체 재시작을 피함으로써 절약한 토큰 양을 확인합니다.
- 4디버깅 증거 공유결함이 있는 에이전트 세션을 단일 파일로 패키징하여 다른 developer와 검토를 위해 공유합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
AgentBisect MCP 도구 5
README에서 감지됨agentbisect_snapshotagentbisect_bisectagentbisect_rewindagentbisect_get_diffagentbisect_status
| agentbisect_snapshot | — | |
| agentbisect_bisect | — | |
| agentbisect_rewind | — | |
| agentbisect_get_diff | — | |
| agentbisect_status | — |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능test-bit-sys/agentbisect is public and reachablegithub.com/test-bit-sys/agentbisect ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-07github.com/test-bit-sys/agentbisect ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음5 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기💥 The Problem: "Compounding Agent Drift"
When you ask an autonomous coding agent (Claude Code, Cursor Agent, Google Antigravity, Devin, Cline, or Aider) to implement a multi-file feature or perform a large refactor, it executes 20 to 50 sequential steps (tool calls, file edits, bash commands).
Inevitably:
- At Step 12, the agent makes a subtle semantic error (e.g., inverts an authorization check or changes a function signature).
- Steps 13 to 40 turn into compounding hallucinations, writing broken patches on top of invalid assumptions.
- At the end of the session, the test suite is completely broken.
Today, developers face a frustrating dilemma:
- Guess manually by reading through a 2,000-line JSON transcript.
- Or run
git checkout .— wasting 40,000+ API tokens, $1.50+ in costs, and 30 minutes of waiting.
Traditional: [Step 1] ────────────────► [Step 12: BUG] ────────────────► [Step 40: FAIL] ❌
└─── Wipe whole session (git checkout .)! 40k tokens wasted!
AgentBisect: [Step 1] ───► [Step 12: FIRST BAD] ───► [Step 11: FORK HERE] ───► [SUCCESS] ✅
└─── Bisect isolated Step 12 in 5 test runs! Saved 28k tokens!
🚀 The Solution: AgentBisect
AgentBisect brings deterministic binary search and time-travel trajectory debugging to AI coding agents:
- Non-Polluting Shadow Git Ledger: Automatically snapshots workspace checkpoints inside
.agentbisect/shadow_git/without polluting your real.gitlog or creating unwanted branches. - Binary Search Trajectory Engine (
agentbisect find): Locates the exact first broken step in $\mathcal{O}(\log_2 N)$ test executions (just 5 test runs for 32 steps). - Workspace & Context Forking (
agentbisect fork <step>): Rewinds your filesystem to the last verified good step and synthesizes an intelligent post-mortem prompt (AGENT_FORK_PROMPT.md) for the agent to resume without repeating the error. - Self-Healing MCP Server & Skill: Agents running inside Cursor, Claude Desktop, or Antigravity can invoke
agentbisect_bisectto autonomously debug and rewind themselves. - Interactive Local Web Dashboard (
agentbisect ui): Full-featured dark-mode web dashboard with visual step graphs, side-by-side diffs, and token waste analytics. - Zero-Overhead Portable Evidence Bundles (
agentbisect bundle export/import): Package faulty sessions as.bisect.zipfor instant sharing and post-mortem review.
⚡ 10-Second Playground Demo
Try AgentBisect immediately without configuring any transcript or repo:
pip install agentbisect
agentbisect demo
(Also supports Node.js microservices via agentbisect demo --lang node)
This launches a pre-packaged simulation of an autonomous agent session, executes binary search live in your terminal, pinpoints the exact line broken at Step 12, and produces an interactive HTML report!
📦 Installation
Install via pip:
pip install agentbisect
Or install latest from source:
git clone https://github.com/test-bit-sys/agentbisect.git
cd agentbisect
pip install -e .
🔌 10-Second Setup on ANY Agent
AgentBisect can automatically configure itself for your preferred agent with a single command:
# 🎯 1-Click Auto Configuration:
agentbisect setup --agent cursor --write # Configures .cursor/mcp.json
agentbisect setup --agent antigravity --write # Installs skill in .gemini/skills/
agentbisect setup --agent claude --write # Configures Claude Desktop
agentbisect setup --agent cline --write # Configures .cline/mcp.json
agentbisect setup --agent windsurf --write # Configures Windsurf MCP
# Or view snippets for all agents without writing:
agentbisect setup
🛠️ CLI Quick Reference
| Command | Description |
|---|---|
agentbisect setup --agent <name> |
Automatically configure MCP server & skills for any agent |
agentbisect find "<test_cmd>" |
Binary search across agent steps to locate regression step |
agentbisect fork <step_num> |
Rewind workspace to <step_num> and generate AGENT_FORK_PROMPT.md |
agentbisect ui |
Launch the local web UI dashboard with interactive visual diffs |
agentbisect snapshot "<msg>" |
Create an immediate shadow git snapshot of current workspace |
agentbisect wrap "<cmd>" |
Execute command transparently and auto-record a shadow step |
agentbisect doctor |
Run pre-flight environment, dependency, and permission diagnostics |
agentbisect bundle export |
Package current session into a portable .bisect.zip bundle |
agentbisect bundle import <pkg> |
Import and inspect a .bisect.zip evidence bundle |
agentbisect mcp |
Launch the stdio Model Context Protocol (MCP) server |
🤖 MCP Server Setup (Self-Healing Agent)
Enable your agent in Cursor, Claude Desktop, or Antigravity to debug itself:
Add to your MCP configuration (claude_desktop_config.json or Cursor Settings):
{
"mcpServers": {
"agentbisect": {
"command": "agentbisect",
"args": ["mcp"]
}
}
}
Available MCP Tools:
| Tool Name | Parameters | Description |
|---|---|---|
agentbisect_snapshot |
summary, files? |
Snapshots current workspace to shadow git |
agentbisect_bisect |
test_command, timeout_seconds? |
Runs binary search over recorded steps |
agentbisect_rewind |
target_step, hint? |
Rewinds workspace and generates recovery prompt |
agentbisect_get_diff |
step_number |
Retrieves unified git diff of any step |
agentbisect_status |
none | Returns active session metadata and step count |
🛡️ Reliability & Correctness Guarantees
AI agent trajectories often break traditional debugging assumptions. AgentBisect incorporates formal reliability boundaries:
1. Explicit Regression Oracle
Every test evaluation distinguishes between:
PASS: Exit code 0, test assertions satisfied.FAIL: Non-zero exit code indicating code assertion failure.INCONCLUSIVE: Command timed out or process hung without deterministic conclusion.ERROR: Infrastructure/environment defect (missing binary, permissions, OS failure). Infrastructure errors are never conflated with code regressions.
2. Non-Monotonic Trajectory Detection
Agents often introduce a bug at step $k$, partially patch it at step $m$, and break something else at step $n$. AgentBisect automatically monitors and detects non-monotonic inversions:
CONFIRMED_FIRST_REGRESSION(95–99% confidence): Monotonicity holds, step $k-1$ passed, step $k$ failed.PROBABLE_FIRST_REGRESSION(80–90% confidence): Boundary identified with skipped unverified steps.EARLIEST_OBSERVED_FAILURE(65% confidence): Non-monotonic trajectory detected; identifies the earliest observed failure while highlighting that subsequent steps passed.INCONCLUSIVE: Infrastructure failures or flapping tests prevented deterministic diagnosis.
3. Flaky Test Mitigation & Stability Policies
Run tests with configurable retries (--retries N) and stability policies (--stability-policy majority or require_all_pass). Intermittent failures are never hidden; all execution attempts are recorded with timestamps, exit codes, and stdout/stderr.
4. Transactional Workspace Restoration
During bisection, files are safely evaluated. Your working tree—including uncommitted changes and untracked files—is transactionally stashed and guaranteed to be restored upon completion or keyboard interrupt. User .git directories and configurations are strictly protected from deletion.
5. Hardened Security & Isolation
- Zip-Slip Protection: Evidence bundle import validates every archive path against path traversal attacks (
../), disallowing arbitrary file overwrites and symlinks outside.agentbisect/. - Advisory File Locking: High-concurrency environments use atomic file locks (
agentbisect.lock) to prevent concurrent ledger corruption between CLI, MCP, and Web UI. - Atomic Persistence: Session metadata writes use atomic rename replacement to eliminate partial file corruption.
📊 Feature Comparison
| Feature | Standard git bisect |
LLM Tracing (Langfuse/Arize) | AgentBisect |
|---|---|---|---|
| Target Unit | Human git commits | API prompt logs | Agent trajectory steps |
| Workspace Isolation | ❌ Pollutes user .git |
❌ No workspace control | ✅ Shadow Git (Zero pollution) |
| Autonomous Search | ❌ Manual marking | ❌ No regression search | ✅ Autonomous $\mathcal{O}(\log_2 N)$ Search |
| Context Forking | ❌ None | ❌ None | ✅ Workspace Rollback + Guidance Prompt |
| Agent Self-Healing (MCP) | ❌ None | ❌ None | ✅ Native MCP Server & Skill |
| Token Waste Analytics | ❌ None | ✅ Logs tokens only | ✅ Calculates compounding waste saved |
🤝 Supported Agent Frameworks
- Google Antigravity & Gemini CLI (
transcript.jsonl) - Claude Code (
.claude/session transcripts) - Cursor Agent / Composer
- Cline
- OpenHands / SWE-bench format
- Aider
- Generic JSON / JSONL Trajectories
🧪 Running Tests
pytest tests/ -v
📄 License
Distributed under the MIT License. See LICENSE for details.
AgentBisect MCP 질문
AgentBisect MCP는 어떤 도구를 제공하나요?
5개 도구를 제공합니다. 예: agentbisect_snapshot, agentbisect_bisect, agentbisect_rewind, agentbisect_get_diff, agentbisect_status.
AgentBisect는 에이전트가 실패한 정확한 단계를 어떻게 찾아내나요?
O(log N)번의 테스트 실행만으로 첫 번째 오류 단계를 찾아내는 이진 탐색 트래젝토리 엔진을 사용합니다.
AgentBisect를 사용하면 기존 Git 저장소에 영향을 주나요?
아니요, 실제 .git 로그에 영향을 주지 않고 특정 디렉토리 내의 체크포인트를 스냅샷으로 저장하는 비오염 방식의 shadow Git ledger를 사용합니다.
AI 에이전트가 스스로를 수정하기 위해 AgentBisect를 사용할 수 있나요?
네, Cursor 또는 Claude Desktop과 같은 환경에서 실행되는 에이전트는 이 MCP server를 사용하여 자신의 세션을 자율적으로 디버깅하고 되돌릴 수 있습니다.
회귀 오류가 발견된 후에는 어떻게 되나요?
워크스페이스를 마지막으로 검증된 정상 단계로 포킹할 수 있으며, 에이전트가 오류를 반복하지 않고 작업을 재개할 수 있도록 지능형 프롬프트를 생성합니다.