counterfact-repl
OfficialControl Counterfact mocks in real time.
Authorcounterfact
Version1.0.0
Installs0
System Documentation
What problem does it solve?
AI agents often need to interact with a live API mock to inspect and adjust runtime state, proxy decisions, and endpoint behavior without restarting servers.
Core Features & Use Cases
- Admin API access to health, contexts, config, routes, and proxy for on-demand management.
- A JavaScript REPL to modify mock state and script behavior at runtime.
- Proxy mode to selectively route paths to real backends while maintaining mocked responses.
- Hierarchical contexts with smart diffing for efficient updates across nested paths. Use cases include inspecting current state, simulating failures, switching between mock and proxy, and batch data setup.
Quick Start
Start a Counterfact server, then call GET /_counterfact/api/health to verify it is running and begin manipulating state.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: counterfact-repl Download link: https://github.com/counterfact/api-simulator/archive/main.zip#counterfact-repl Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.