# Braintrust
<!--
ref: @integrations/braintrust
tags: [freelance, marketplace, authentication, session management]
triggers: [manual login required, session frequently expires, applications not visible, need to draft proposals]
trigger_prompt: When the user needs to apply for freelance jobs on Braintrust but faces issues with session timeouts or hidden application history.
version: 3
updated_at: 2026-10-24T21:13:09.651Z
-->
Read and draft Braintrust applications through Test-Chrome — session-only access, frequent re-login, answers in contenteditable, and a collapsed toggle that hides most of the history.
Braintrust (`app.usebraintrust.com`) is a freelance talent marketplace. **No public API** — every useful
surface is behind a session, so all access goes through `@integrations/agent-browser` against Test-Chrome.
**Hard boundary: DRAFT, NEVER SUBMIT.** Submitting an application is irreversible and goes out under the
account holder's name. An agent prepares text and surfaces it; a human presses the button.
## Auth
Session-cookie only, and **short-lived — expect to re-authenticate almost every session.** Budget a human
handshake into every task here; do not design a flow that assumes a warm session.
The handshake, per `@integrations/agent-browser` §Auth:
1. Agent navigates Test-Chrome to the target URL and calls `bringToFront()`.
2. **The account holder authenticates manually in that window.** Email + password, or *Sign in with LinkedIn*.
An emailed verification code is common.
3. Session persists in `$PROFILE_DIR` until it expires. The agent detects the wall and reports; it never
guesses credentials and never automates the code.
Detect the wall by URL, not page text: an unauthenticated request to any `/talent/...` path lands on
`/auth/login/?next=<original-path>`, title `Braintrust | Sign in`.
**`bringToFront()` has a side effect:** it makes Chrome frontmost and takes focus from whoever is using the
machine. If your setup guards the browser with a lease that treats a frontmost window as human-occupied,
fronting a page for a login **blocks your own follow-up scrape** until the human clicks away.
Front the page, say so, and wait for a go-ahead rather than looping on a busy lease.
## Cheat sheet
| What | Where |
|---|---|
| Applications / proposals | `/talent/dashboard/my_jobs/my_proposals/` |
| A single application | `/jobs/<jobId>/proposals/<proposalId>/edit/` |
| Login (redirect target) | `/auth/login/?next=<path>` |
| Tabs on the proposals page | Invites · Applications · Job Offers · My Jobs · Invoices |
React-rendered; allow ~4–5s after `domcontentloaded` before reading. No stable class-based selectors worth
pinning to — parse `document.body.innerText`.
Per-application list fields, in render order: company · engagement type (`Freelance` / `Employee`) · category ·
role title · location constraint · timezone-overlap requirement · hours/wk · status (absent when live) · rate.
**Question/answer extraction** (the part worth automating): on an application's `/edit/` page the client's
question follows the marker `Please answer this question from the Client`, and **the submitted answer lives in
a `contenteditable` div — NOT in `innerText`, NOT in `textarea.value`.** A scrape that reads only text or form
values finds the questions and silently returns no answers.
```javascript
const answers = [...document.querySelectorAll('[contenteditable="true"]')]
.map(el => (el.innerText || '').trim()).filter(Boolean);
```
## Patterns
**Status vocabulary:** *(none — still live)*, `On hold`, `Not selected`, `Closed`, `Job filled`,
`You're hired 🎉`. `Job filled` and `Closed` mean the role died, not that the candidate was rejected — do not
read them as signal about application quality.
**Rate shapes are three different units in one column** — hourly (`$X/hr`), annual salary (`$X/yr`, on
`Employee` rows) and fixed-price (`$X` bare). Any analysis that averages them without separating units is
wrong. `Employee` rows are salaried positions, not freelance engagements, and change what an application
should say.
**Rate is a judgment call, never an auto-filled constant.** Applicants commonly set it per-role against the
posted budget band, which the form displays.
## Gotchas
1. **Closed applications are hidden by default, and they are most of the history.** The page ships with a
`Show closed applications` toggle collapsed; clicking it roughly tripled the captured text in testing —
about two-thirds of the record is invisible until you click. **A scrape that skips the toggle silently
reports a fraction of the truth with no error.** This is the `@integrations/agent-browser` "a 200 is not
proof you saw everything" failure occurring *inside* an authenticated page. Always click it, then verify
the count grew.
2. **Re-login is the normal case**, not an exception. See Auth.
3. **Session death is lossy.** If Test-Chrome dies ungracefully, HttpOnly+SameSite+Secure cookies never flush
and the session dies with it. Never `pkill -9` the browser.
4. **Answers are in `contenteditable`, not form fields.** See Cheat sheet.
## Related
`@integrations/agent-browser` (transport — all access goes through it) · `@integrations/index` (catalog and the
four-section shape this follows)
---
*Related: `@content/youtube/sean-kochel/5-claude-cheat-codes-only-the-top-1-use` · `@content/youtube/langchain/managed-deep-agents-deploying-mission-critical-agents-to-production` · `@integrations/airtable` · `@wildeagency-public/memento-notes`*
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*