Overview

Teach turns one demonstration into a reusable skill. You do the task once while Allternit records. A model then writes a goal and an editable list of steps, marks the values that change between runs as inputs, and lets you save the result as a skill, run it on a schedule, or replay it now. Teach started as Site APIs (capture a HAR, get a typed API). That still works: when the recording contains API calls, the steps prefer calling those endpoints with your session over clicking through the page. Open it from the shell or the app launcher:

Record

On Desktop

Press Cmd+Shift+R (macOS) or Ctrl+Shift+R (Windows and Linux) from anywhere, or press Record in Teach. A small always-on-top record bar shows a timer, a mic toggle and Stop. Press the shortcut again, or Stop, to finish. Allternit comes to the front on the Review step. Desktop records an activity timeline next to the network traffic: What is not recorded: clicks and keystrokes inside other apps. Outside apps show up as app switches plus screenshots. Screenshots stay on your device. They appear on the timeline in the editor and are never sent to the model or to the server.

Narration

Turn the mic on in the record bar and say what you are doing and why (“this is the weekly report, I always pick last week”). Speech is transcribed locally. Say which values change; the model uses that to pick inputs.

On the web, in the extension, and on the phone

The web app does not bind Cmd+Shift+R, because browsers use it for a hard reload. Record with the button instead.
  • Record with the Allternit browser extension, or import a .har file exported from DevTools.
  • Phone: the Teach sheet uses the same view, with stacked panels and large tap targets.
  • Every surface has a Note for the agent field. Use it to say what the task is for or what to watch out for. It is sent with the recording.

Privacy check

Before anything is analyzed, Teach scans the recording on your machine and shows what will leave it: the number of events, the number of endpoints, the characters of narration, and 0 screenshots - kept on this device. Secrets found in narration, notes and events are listed. You can strike out any event before sending. Nothing leaves your device until you press Analyze: the endpoint count in Review is worked out locally, and the network recording is uploaded only then. The server redacts again before it calls the model, and the draft reports how many redactions were made.

Edit the draft

After Analyze you get an editor:
  • Title and goal. One line each. The goal is what the skill is for.
  • Steps. Edit, reorder, delete or add steps. A step is one of api (call an endpoint), ui (click or type), shell, or note.
  • Inputs. Values that change between runs. Each has a name, a label, a type and the example seen in the recording. Reference an input in step text with a double-brace placeholder such as {{customer_name}}. See Typed inputs.
  • Timeline. The recording strip, with local screenshots on Desktop.
Edits are kept when you click Save changes. Run on a schedule saves pending edits first. Replay and Save skill use the edits on screen.

Typed inputs

Every input has a type. Analyze guesses it from the example you typed during the recording. Values are entered in a neutral form (an ISO date, a plain number) and formatted for the target field when the skill runs. Inputs are required unless you turn required off; a step can be skipped when an optional input is empty. A secret input is never typed into a recording or stored in the skill. When a step needs it, the run pauses and asks you.

Business profile

The Business profile holds values you set once and reuse in many skills, such as erp_url or reports_root. There is one profile per user. Reference a value as {{profile.erp_url}}. Secrets cannot be stored in it.

Placeholders and saving

The only way a run varies is a placeholder. These are the forms:
  • {{name}}: a declared input.
  • {{profile.key}}: a value from the business profile.
  • {{var.name}}: a value read from the page by an earlier extract step.
  • {{item}} or {{item.field}}: the current element inside a loop (for_each), under the name the loop gives it.
Saving a skill is blocked while any of these is true, and the editor lists each problem next to its step:
  • A placeholder does not match any of the forms above, for example {{customer}} with no input named customer. Nothing is ever filled in by guesswork at run time.
  • An input is declared but never used.
  • {{var.name}} is used before a step that extracts name.
  • A {{profile.key}} value is missing from the profile. This is only a warning when saving; the run is blocked until you set it.
The same rules run in the editor and on the server, so a skill saved from another client is held to them too.

Save skill

Save skill previews a SKILL.md and writes it to ~/.allternit/skills/<slug>/SKILL.md, the same place Customize, then Skills uses. The preview is exactly the file:

Run on a schedule

Run on a schedule creates a routine in Automation Tasks. You need a bot to run it: pick one, choose hourly, daily at 9:00, weekdays at 9:00 or a custom cron, and fill in the input values. Steps that submit, pay, send or delete still ask for approval.

Run and Replay

A skill has two ways to run now.
  • Run needs no model. It is available on Desktop for skills that were compiled from the recording into exact steps (go to a page, click an element, fill a field, wait for text, read a value). Each step finds its element several ways (selector, id, name, label, then visible text), checks what should be true afterwards, and moves on without fixed waits. The editor shows each step’s progress live and logs which way found the element.
  • Replay asks for the input values, then starts a computer session in which an agent follows the written steps. It works for every skill, including ones without compiled steps.
Steps that submit, pay, send or delete are marked as unsafe to repeat. They are never retried automatically, and an attended Run asks once (Allow or Deny) before the first one. An unattended run pauses and notifies you unless the skill has been approved to run them.

When a step fails

Run stops at the failed step and posts a message into the session: the skill, the step, what was tried and the page address. It then hands over to the agent, which finishes from there. Nothing is repeated that could have side effects.

Site APIs underneath

A recording that includes network traffic is also turned into a contract. This part works as before.
  • Capture session. One recording of HTTP traffic from the browser, ACI, or an uploaded HAR.
  • Contract. All endpoints seen for one domain (id, domain, derived_at, endpoints).
  • Endpoint. One request pattern: method, path_template with {name} path params, query_params, headers, body_template, body_params, hit_count.
  • Replay. Edit path, query, headers and body for an endpoint and send it live.
  • Clients. Generate Python (python), TypeScript (typescript) or cURL (curl) code from endpoints.

API reference

All routes are under /api/har-derived-api and need a bearer token.

Timeline events

t is milliseconds since the recording started. Snapshot events carry only an id; the image stays on the device.

Distill

POST /api/har-derived-api/teach/distill
contract_id, narration and note are optional. At least one of events, narration, note or a contract is required. The server redacts text with its DLP patterns, loads the contract’s endpoints when given, and asks a model for a draft. If no model answers, it returns a rule-based draft with "source": "rules".
The model is asked to type each input from its example (a date comes back as date with the format seen, amounts as number, uploads as file). The rule-based fallback does the same for dates, numbers, emails and links. Key presses, choices, uploads, downloads, copies and pastes are included in the timeline the model sees; copied text and file names are redacted like other text. A draft has at most 40 steps and 12 inputs.

Taught skills

GET /teach/skills returns { "skills": TeachSkill[] }. PUT /teach/skills/:id upserts the body and returns the stored skill; the id may use letters, digits, -, _ and .. DELETE returns 204, or 404 if the skill is not yours.
Fields the server does not know, such as workflow, are kept and returned as sent. PUT /teach/skills/:id checks the placeholders in the goal, the step text and the compiled workflow steps (including steps inside loops). When the skill breaks a rule it answers 422 and stores nothing:
step_id is left out when a problem belongs to the skill as a whole. Missing profile values are not errors; the save succeeds and the response carries an x-teach-warnings header with the notes.

Business profile

GET /teach/profile returns your profile, or an empty one. PUT /teach/profile replaces it and returns the stored copy with a new updated_at. Keys use letters, digits, _ and - (at most 100 keys); a value of type secret is rejected with 400.

Limits

  • Replaying a recorded endpoint sends a live request, so the target host’s own limits and CORS rules apply.
  • Desktop only: the global shortcut, the record bar, local narration, app switches and screenshots.
  • Clicks are recorded only inside Allternit’s browser.