Occlude
Book a call

See Occlude work

Six steps on a sample payments repository, as your engineer, a contractor and an AI agent. Nothing runs in your browser: the output is what Occlude returned for these commands on the sample, and the agent's tool calls are shown in short form.

View as

A full-access engineer, on their own clone

raj@agency.example, in VS Code over SSH

An agent working for raj@agency.example, over MCP

Steps

Step 1 / 6

Two views of one repository

Your engineer's clone holds the whole repository: the billing engine, the services, the seeds, the environment file. The contractor's side of the workspace holds the 47 files their task needs and one declaration. The rest is not there to list.

Step 2 / 6

A file they work on

The task is the invoice summary on the dashboard. summarizeInvoice.ts is Visible: the contractor reads it and edits it, and their editor treats it like any other file. Its first line imports calculateInvoice from the billing engine, which is Occluded.

Step 3 / 6

A signature where the body would be

Go to definition on calculateInvoice. Your engineer lands in the source: the rates, the settlement endpoint, the reserve account. The contractor lands in a declaration at the same path: the types and the signature their editor and compiler need, and no body.

Step 4 / 6

Asking for the file itself

The source file does not exist on the contractor's side, so every route to it gets the same answer: the terminal, the editor, a script, an agent. The attempt is on the record, and it alerts.

Step 5 / 6

The tests still run against the real code

npm test runs on the build's side, which holds the whole repository, so all 400 tests run, the billing engine's own included. One fails inside billing. The contractor sees that it failed past the boundary, and the one frame that is theirs: summarizeInvoice.ts, line 11. Your engineer's run shows the same failure with the billing code in it.

Step 6 / 6

Handing in the work

Git runs on the build's side too. occlude submit turns the contractor's change into a branch and a pull request on the real repository, holding only files they could see. Your reviewers take it from there, as with any pull request.

Files894 files47 files and 1 declaration

  • .github/
  • db/seeds
  • docs/
  • infra/secrets
  • node_modules/
  • src/
  • components/
  • lib/
  • audit/
  • billing/
  • __tests__/
  • calculateInvoice.ts
  • currency.ts
  • fraudRules.ts
  • types.ts
  • fx/
  • ledger/
  • payouts/
  • tax/
  • services/six services
  • web/
  • invoices/
  • summarizeInvoice.ts
  • .env
  • package-lock.json
  • package.json
  • README.md
  • vite.config.ts
  • node_modules/read-only
  • src/
  • components/the shared UI kit
  • lib/
  • billing/
  • calculateInvoice.d.tsdeclaration
  • web/
  • api/
  • invoices/
  • draft.ts
  • summarizeInvoice.ts
  • pages/
  • App.tsx
  • index.htmlread-only
  • package.jsonread-only
  • vite.config.tsread-only

No file open

src/web/invoices/summarizeInvoice.tsVisible

import { calculateInvoice, type InvoiceInput } from "@/lib/billing/calculateInvoice"; export interface InvoiceSummary {  headline: string;  currency: string;  total: number;  needsReview: boolean;} export function summarizeInvoice(input: InvoiceInput): InvoiceSummary {  const totals = calculateInvoice(input);  const count = input.lines.length;  return {    headline: `${count} ${count === 1 ? "line" : "lines"} for ${input.customerId}`,    currency: totals.currency,    total: totals.total,    needsReview: totals.flagged,  };}

src/lib/billing/calculateInvoice.tsFull access

import { minorUnits, toMinor } from "./currency";import { screenInvoice } from "./fraudRules";…// Rounding drift on cross-border batches is absorbed by the reserve ledger// under the Northwind Acquiring settlement side letter of March 2019.const INTERCHANGE_BLEND_RATE = 0.0187345;const SETTLEMENT_ENDPOINT = "https://settle.acme-internal.example.com/v2/batches";const LEDGER_SPOOL_PATH = "/var/acme/ledger/spool/invoices";const RESERVE_ACCOUNT_REF = "rsv-9fK2xQ7mLp4Tz8Wb";…export function calculateInvoice(input: InvoiceInput): InvoiceTotal {  if (input.lines.length === 0) throw new Error("invoice has no lines");  const rawSubtotal = input.lines.reduce((sum, line) => sum + line.quantity * line.unitPrice, 0);  const subtotal = roundMinor(rawSubtotal, input.currency);  const tax = roundMinor(subtotal * (input.taxRate ?? 0), input.currency);  const networkFee = roundMinor(subtotal * INTERCHANGE_BLEND_RATE, input.currency);  const total = roundMinor(subtotal + tax + networkFee, input.currency);  const screening = screenInvoice(input.customerId, toMinor(total, input.currency), input.lines.length);  return { currency: input.currency, subtotal, tax, networkFee, total, flagged: screening.flagged };}

src/lib/billing/calculateInvoice.d.tsDeclaration

// defined in a protected module; it exists at runtime, call itexport type InvoiceCurrency = "USD" | "EUR" | "GBP" | "JPY";export interface InvoiceInput {    customerId: string;    currency: InvoiceCurrency;    lines: InvoiceLine[];    taxRate?: number;}export interface InvoiceTotal {    currency: InvoiceCurrency;    subtotal: number;    tax: number;    networkFee: number;    total: number;    flagged: boolean;}export declare function calculateInvoice(input: InvoiceInput): InvoiceTotal;

Terminal

Step 1, Your engineer

$ ls -A.env  .env.example  .github  .gitignore  README.md  db  docs  index.html  infranode_modules  package-lock.json  package.json  src  tsconfig.json  tsconfig.node.json  vite.config.ts

Step 1, Contractor

$ ls -Aindex.html  node_modules  package.json  src  tsconfig.json  tsconfig.node.json  vite.config.ts

Step 1, AI agent

→ list_files .index.html  node_modules  package.json  src  tsconfig.json  tsconfig.node.json  vite.config.ts

Step 2, Your engineer

$ 

Step 2, Contractor

$ 

Step 2, AI agent

→ read_file src/web/invoices/summarizeInvoice.ts(the file above)

Step 3, Your engineer

$ 

Step 3, Contractor

$ 

Step 3, AI agent

→ read_file src/lib/billing/calculateInvoice.d.ts(the declaration above)

Step 4, Your engineer

$ head -n 2 src/lib/billing/calculateInvoice.tsimport { minorUnits, toMinor } from "./currency";import { screenInvoice } from "./fraudRules";

Step 4, Contractor

$ cat src/lib/billing/calculateInvoice.tscat: src/lib/billing/calculateInvoice.ts: No such file or directory

Step 4, AI agent

→ read_file src/lib/billing/calculateInvoice.tserror: No such file or directory

Step 5, Your engineer

$ npm test FAIL  src/lib/billing/__tests__/calculateInvoice.test.ts > calculateInvoice > summarizes a JPY invoice the way the dashboard requests itRangeError: cannot settle JPY: zero-decimal rounding is not implemented ❯ roundMinor src/lib/billing/calculateInvoice.ts:41:11     39|     // Zero-decimal settlement still goes through the cent factor; bat…     40|     // these currencies were never migrated off the legacy rounding pa…     41|     throw new RangeError(`cannot settle ${currency}: zero-decimal roun…       |           ^ ❯ calculateInvoice src/lib/billing/calculateInvoice.ts:50:20 ❯ summarizeInvoice src/web/invoices/summarizeInvoice.ts:11:18 ❯ src/lib/billing/__tests__/calculateInvoice.test.ts:26:21  Test Files  1 failed | 25 passed (26)      Tests  1 failed | 399 passed (400)

Step 5, Contractor

$ npm test FAIL  <protected module>RangeError: <protected module> ❯ <protected module> ❯ summarizeInvoice src/web/invoices/summarizeInvoice.ts:11:18 ❯ <protected module>  Test Files  1 failed | 25 passed (26)      Tests  1 failed | 399 passed (400)

Step 5, AI agent

→ run_command test FAIL  <protected module>RangeError: <protected module> ❯ <protected module> ❯ summarizeInvoice src/web/invoices/summarizeInvoice.ts:11:18 ❯ <protected module>  Test Files  1 failed | 25 passed (26)      Tests  1 failed | 399 passed (400)

Step 6, Your engineer

Your engineers push from their own clone, as they do today. Occlude changes nothing for them.

Step 6, Contractor

$ occlude submitsubmitted 1 file(s) as <commit> on <branch>

Step 6, AI agent

→ run_command submitsubmitted 1 file(s) as <commit> on <branch>
A workspace on the sample repository acme/payments-platform: the file tree, the editor and the terminal for the chosen viewer and step, and under it the rows the session's record holds so far.

The record

What your admin sees for the same session

Your engineer works on their own clone, outside Occlude, so there is nothing here for them.

  1. sessionSession started under the frontend-contractor profile, for 8 hoursStarted
  2. opensrc/web/invoices/summarizeInvoice.tsVisible
  3. resolutionsrc/lib/billing/calculateInvoiceDeclaration served, no alert
  4. attemptsrc/lib/billing/calculateInvoice.ts (Occluded)Refused, alert sent
  5. buildnpm test on the build's side: 1 failed, 399 passedFull output kept for authorised staff
  6. submitsrc/web/invoices/summarizeInvoice.tsPull request opened
  1. sessionAgent session started under the same grant, for 8 hoursStarted
  2. opensrc/web/invoices/summarizeInvoice.tsVisible
  3. resolutionsrc/lib/billing/calculateInvoiceDeclaration served, no alert
  4. attemptsrc/lib/billing/calculateInvoice.ts (Occluded)Refused, alert sent
  5. buildnpm test on the build's side: 1 failed, 399 passedFull output kept for authorised staff
  6. submitsrc/web/invoices/summarizeInvoice.tsPull request opened

What you just saw

  • The contractor and the agent had the files their task needed, and the rest did not exist for them.
  • Their editor and compiler resolved the billing engine through a declaration with no body.
  • The tests ran against the real code, and the output came back without it.
  • Every refusal and every build is on the record, with the full output kept for your staff.

See it on your own repository