# Use Filibuster with a coding agent

Canonical entry: https://filibuster.cloud/agent/
Source pins: https://filibuster.cloud/agent/private-source.json

These are generic bootstrap instructions for an existing application. They contain no application fixture, test path, expected business outcome or repair recipe. Once the tool is installed, its versioned shared skill owns the testing workflow.

## Current distribution: authenticated private source

The maintained controller, executable and CLI/MCP are Rust, in `filibuster-testing/filibuster-core`. The Go repository provides a client and instrumentation generator; its retired controller and historical `go install .../cmd/filibuster` instructions are not an installation route. Do not wait for an unpublished public tag or ask for a maintainer's prebuilt binary when the account can read the private source.

Use the user's existing GitHub authentication, for example `gh auth status` and `gh repo clone`. Never ask the user to paste access tokens into a conversation, URL or application file. The website supplies instructions and repository locations, not credentials or access. A real permission failure must be reported accurately.

Use the exact reviewed source pair in `private-source.json`, not an unrelated npm package or a guessed release URL. These are private-source candidates, not published releases. Rust's selected toolchain and a system compiler are build prerequisites; Node integrations need Node 22. Use the application's documented dependency/runtime prerequisites.

## Bootstrap the Rust executable

Choose a new absolute local tools directory, outside synced folders and honoring the user's storage constraints. Below, `TOOLS_ROOT` is that directory and `APP_ROOT` is the current application. Do not reuse an unrelated checkout, fixture or continuation to manufacture a successful setup.

Read the source pins and substitute the `core.ref` value as `CORE_REF`:

```sh
gh repo clone filibuster-testing/filibuster-core "$TOOLS_ROOT/src/filibuster-core" -- --filter=blob:none --no-checkout
git -C "$TOOLS_ROOT/src/filibuster-core" checkout --detach "$CORE_REF"
```

From that Rust checkout, build the actual CLI:

```sh
cd "$TOOLS_ROOT/src/filibuster-core"
export CARGO_TARGET_DIR="$TOOLS_ROOT/build/filibuster-core"
cargo build --locked --release -p fb-cli
mkdir -p "$TOOLS_ROOT/bin"
install -m 755 "$CARGO_TARGET_DIR/release/filibuster" "$TOOLS_ROOT/bin/filibuster"
export PATH="$TOOLS_ROOT/bin:$PATH"
export FILIBUSTER_CORE="$TOOLS_ROOT/bin/filibuster"
filibuster version -json
```

Retain the actual source commit, build result and executable identity. A successful build/version response alone is not proof that the application was tested.

## Load the shared harness in the current conversation

The executable exports the authoritative, version-matched skill. For Claude Code, export it to a NEW project skill directory:

```sh
cd "$APP_ROOT"
filibuster agent skill -out "$APP_ROOT/.claude/skills/filibuster"
```

For Codex, use a new directory under `.agents/skills/` instead. Both hosts use the same exported skill, core and protocol; do not create a separate host controller. Preserve unrelated host configuration. If a project already has a Filibuster skill, driver, agent configuration or store, inspect its version and continue its history rather than overwriting it.

Read the exported `SKILL.md` and its required references immediately in the same conversation. Do not ask the user to repeat the request or provide the workflow in their prompt. Follow the selected host's actual skill/MCP discovery rules; writing files is not proof that the host discovered them. CLI use is supported while the agent reads the skill; an MCP registration has its own connection/verification gate.

## Install the application's matching SDK

Inspect the application's language, package metadata, service construction and ORIGINAL test commands. Select an actually supported SDK/adapter. Source locations and paired revisions are in `private-source.json`.

For Node/TypeScript, clone the paired `filibuster-testing/filibuster-typescript` revision using authenticated GitHub access. Package that checkout with `npm pack --ignore-scripts --json --pack-destination <local-package-directory>` and install the resulting local tarball into the application with its normal package manager. Record source and archive hashes. This is private-source installation, not npm publication. Verify the selected Rust executable with the SDK's `verifyCore` handshake before launching native work.

For a Go application, use the Go CLIENT's current source instructions and the same Rust executable. Do not build the retired Go controller. Do not claim support for another framework or language by substituting a different test runner.

## Let the shared harness drive the application workflow

Follow the installed shared skill, rather than inventing a second workflow here. In particular:

- Discover existing E2E entry points, their ordinary commands, assertions and lifecycle from source. Start with existing tests in their discovered order. Preserve them; do not add demo journeys or replace them with a script that always passes.
- Derive app-owned instrumentation, configuration, dependency lifecycle and independent observations from that application's source. Keep application-specific material in that application. No application-specific policy, expected sequence, fixture or repair recipe belongs in Filibuster or its host harness.
- Run the ordinary test and qualify its native adapter/reference before claiming fault testing. A static test with no eligible downstream interactions must be reported as such, not silently counted as fault coverage; continue ordinary discovery to the first eligible existing test.
- Use the normal agent check. Surface the FIRST actual counterexample and pause for the user's decision. Invalid setup/capture is an instrumentation blocker, not an application bug.
- Show the controller's real witness cards and paired execution visualization. Start the actual review/export workflow and expose the real result URL through the host's supported interface. A summary, invented graph or screenshot of text is not the recorded flow.
- Explain the observed consequence, recommend code-informed options and ask what behavior the developer wants before the repair. Keep established intent and new choices distinct. Do not invent approval.
- After the choice, propose/apply the repair and verify the original witness plus the retained regressions through the same supported continuation. The controller's verdict, source guards and actual receipts decide whether it worked. Do not continue a new campaign merely to turn a first-fault session into an application-improvement project.

The user should be able to ask to test the app with Filibuster. Repository discovery, installation, setup, test discovery, fault display and the decision loop belong to the harness, not to a long task prompt.

## Evidence and limits

Report installation, host discovery, healthy test, valid fault finding, proposed repair and replay verification separately. If any step fails, retain the actual failure and stop claiming readiness. Preserve original witness IDs, assertions and independent effect observations. Never hide a missing dependency, invalid receipt, unreached fault, partial check or unfinished command behind a success message.

This page is the private-source bootstrap entry. Its existence is not a claim that every application or host has passed fresh-clone onboarding. Qualification remains application/host/version specific, and public publication is separate from source access.
