Metadata-Version: 2.4
Name: recipe360
Version: 0.1.0rc16
Summary: A layer between your data and your AI agent: recipes that run the same way on any model, with proof.
Author: Sebastián Arango Uribe
Classifier: Programming Language :: Python :: 3
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML>=6.0
Requires-Dist: openpyxl>=3.1
Requires-Dist: cryptography>=42
Dynamic: license-file

# Recipe360

**Your data workflows, run the same way every time, by any AI agent, with proof.**

Recipe360 is a layer between your data and your AI agent. You describe each workflow once, as a recipe: the
steps, the rules and what it must deliver. Your agent runs it through Recipe360, and the code does every
calculation. The same data and the same recipe give the same result, byte for byte, whatever the model, and
every run leaves a record that anyone can check.

Produced by Sebastián Arango Uribe. Commercialized by Pulso360.

> Release candidate 0.1.0rc16, for early access; see [Status and licence](#status-and-licence).

## Why Recipe360

- **The same answer, every time.** Same data, same recipe, same parameters: the same deliverables, byte for
  byte, on any model, any agent program and any operating system. One fingerprint per step proves it.
- **Cheaper and faster AI.** In our internal tests, runs with a recipe processed 62% to 93% fewer tokens, for
  an estimated 43% to 97% lower API cost, and finished 4 to 13 times faster than the same work without one.
- **Small models are enough.** With a recipe, every model we tested was correct in 100% of its runs, small
  open-weight models included. Without one, only 39% of runs were correct on the same 13-step workflow.
- **Built for protocols and audits.** Every run follows the recipe's steps in order and leaves a run record
  (PDF, text, CSV or JSON) with who ran it, its inputs, each step's fingerprint and the result. Records form a
  chain that shows any later change (`recipe360 verify`), can be signed, and any run can be run again and
  compared (`recipe360 replay`). A recipe can hold every run until a person approves it at a terminal
  (`recipe360 approve`), and `recipe360 sheet` gives one page about each recipe for a register of automated
  processes.
- **Your data stays with you.** The model receives counts, fingerprints and a fixed message, never rows of
  data. Sensitive columns are masked or removed before anything is saved.

## How it works

```mermaid
flowchart LR
    P([Person]) -- "Run the card review on this folder,<br/>cut-off October 31" --> A["AI agent<br/>(any model that can call tools)"]
    A -- "one call: recipe, folder, parameters" --> R[["Recipe360"]]
    D[("Data files<br/>CSV · Excel · JSON")] --> R
    C[/"Recipe<br/>steps and rules"/] --> R
    R -- "deliverables and run record" --> F[("Run folder")]
    R -- "counts, fingerprints,<br/>closing message" --> A
    A -- "closing message" --> P
```

The code computes; the model conducts. The agent picks the recipe, passes the folder and the parameters, and
gives the person the closing message. It never does the math and never sees the rows. That is why the result
does not depend on the model, and why a small model does as well as a large one.

## Quick start

**1. Install.** With [uv](https://docs.astral.sh/uv/), which brings its own Python when the machine has none
recent enough, from [PyPI](https://pypi.org/project/recipe360/), for your user only (no administrator rights):

```bash
uv tool install --native-tls --python 3.12 recipe360   # uv: winget install --id astral-sh.uv -e --source winget (Windows), brew install uv (Mac)
recipe360 setup                           # connects the Claude and ChatGPT apps, then checks everything
recipe360 activate                        # prints a link: open it and type the activation code of your e-mail
```

`recipe360 activate` returns at once; once the page says Done, run it again (or the next licence check finishes
it). Or the one-command installer, which sets up uv itself:

| System | Command |
| --- | --- |
| macOS, Linux | `curl -LsSf https://recipe.pulso360.ai/install.sh \| sh` |
| Windows | `irm https://recipe.pulso360.ai/install.ps1 \| iex` |

Until the first release gives the installers an address, install from a copy of this repository:
`RECIPE360_SOURCE=. sh install.sh` on macOS and Linux, or `$env:RECIPE360_SOURCE="."; Get-Content install.ps1 -Raw |
Invoke-Expression` in PowerShell on Windows.

The installer always takes the latest version published (a release candidate included), and then connects
Recipe360 with the agents it finds on the computer (`recipe360 connect`). The Claude desktop app: it opens
Recipe360's Claude extension, and Claude asks for one click on "Install" and a restart; the extension reaches its
chat, Cowork and its Code tab. Claude Code on its own: Recipe360 goes in its user settings. ChatGPT (and Codex): it
adds Recipe360 to `~/.codex/config.toml`, and it is there in the next conversation in Work mode. Recipe360's skill
goes where Claude Code and Codex read skills.

**Your AI agent installs it; you type the code on a page.** The licence e-mail brings a one-time **activation
code** (`A360-XXXX-XXXX-XXXX`) and one sentence to paste into Claude (the Code tab, Cowork or the app) or ChatGPT /
Codex. The sentence holds no code and no key: it asks the agent to install uv (winget, Homebrew or astral.sh) and
Recipe360 (`uv tool install --python 3.12 recipe360`, from PyPI), then run `recipe360 setup` and `recipe360
activate` and show you the link it prints. You open the link, a Pulso360 page that names your computer, and type
the code there; the agent then runs `recipe360 activate` once more, which finishes the activation and installs every
pack of recipes Pulso360 has prepared for your company (the recipes, their Word and Excel models and a Claude skill).
No secret ever passes through the agent, and nothing is downloaded from a site it does not know, so agents do this
with your approval where they rightly refuse to type a code for you or to pipe an installer into a shell. The code
works once and for 30 days.

**Plan B: one paste in PowerShell or Terminal** installs, activates, installs the packs and connects the apps in
one go:

| System | Command |
| --- | --- |
| macOS, Linux | `curl -LsSf https://recipe.pulso360.ai/install.sh \| RECIPE360_CODE=A360-XXXX-XXXX-XXXX sh` |
| Windows | `$env:RECIPE360_CODE="A360-XXXX-XXXX-XXXX"; irm https://recipe.pulso360.ai/install.ps1 \| iex` |

`RECIPE360_KEY` (the licence key) still works in place of the code, and `RECIPE360_PACK=name` installs only that
pack. The recipes are saved as any recipe is, so each one runs once you have read its rules and confirmed them (ask
Claude to go through them). The skill goes to Claude Code (`~/.claude/skills`) and, as a `.zip` on your Desktop,
ready to upload in the Claude app (Settings → Capabilities → Skills). `recipe360 pack install --all` brings the
latest versions later; `recipe360 pack list` shows the packs your licence has. Another computer needs a new code:
ask Pulso360 for one.

At the end, if Claude shows a Recipe360 window, click Install, then quit Claude completely and open it again.

**If something did not work**, ask your agent to run `recipe360 doctor` (or run it yourself): one line per check,
✓ or ✗, and the exact next step for each ✗ (the licence, the Claude extension, Claude Code, Codex, the skill, the
path). The installer ends with the same checklist and keeps everything it did in a log, made anew on each run,
with codes and keys hidden: `%TEMP%\recipe360-install.log` on Windows, `$TMPDIR/recipe360-install.log` (or
`/tmp/recipe360-install.log`) on macOS and Linux. Send both to Pulso360.

**2. Try the example.** Recipe360 ships with one example: a 13-step card portfolio risk and compliance review,
on 400 invented cards.

```bash
recipe360 example
recipe360 run card-review --data ~/.recipe360/examples/card-review --param cutoff=2026-10-31
recipe360 record --format pdf
```

`recipe360 example` copies the recipe, its test sample and its data into your workspace and prints the exact
commands. `recipe360 test card-review` checks the recipe against six hand-made cards whose answers were worked
out by hand.

**3. Connect your agent** (next section) and ask it: "Run the card portfolio review on
~/.recipe360/examples/card-review with cut-off October 31, 2026."

## Connect your agent

Recipe360 serves its tools over MCP (`recipe360 mcp`, stdio), so any agent program that speaks MCP can use it.

| Agent program | How to connect |
| --- | --- |
| Claude Code | `claude mcp add recipe360 -- recipe360 mcp` |
| Codex | in `~/.codex/config.toml`: `[mcp_servers.recipe360]` with `command = "recipe360"` and `args = ["mcp"]` |
| Cursor | in `.cursor/mcp.json`: `{"mcpServers": {"recipe360": {"command": "recipe360", "args": ["mcp"]}}}` |
| Hermes | in `config.yaml`: `mcp_servers: {recipe360: {command: recipe360, args: [mcp]}}`, plus `tools: {tool_search: {enabled: "off"}}` so the tools stay visible to the model |

Then install the skill, which teaches the agent when and how to use the tools:
`recipe360 skill --dest <your agent's skills folder>`.

Recipes live in `~/.recipe360/recipes` (or the folder in `RECIPE360_HOME`), and each run gets its own folder
in `runs`. Every action also exists on the command line: `recipe360 --help`.

### Keep the data away from the model

Recipe360 never hands rows to the model. An agent program, though, has tools of its own (reading files, a
terminal, running code), and Recipe360 cannot see or stop what the model does with them. The skill and the
server tell the model never to open the data. When the data is sensitive, also close the folder in the agent
program itself: the model then cannot read it even if it tries, while Recipe360, which runs as its own
process, still can.

| Agent program | How to close the data folder to the model |
| --- | --- |
| Claude Code | in `.claude/settings.json`: `{"permissions": {"deny": ["Read(//path/to/data/**)", "Bash"]}}` (two slashes start an absolute path) |
| Codex | in `~/.codex/config.toml`: `default_permissions = "recipe360"` and, under `[permissions.recipe360]`, `filesystem = { "/path/to/data" = "none" }` |
| Hermes | run with Recipe360's tools only: `hermes -z "..." -t recipe360` |

With Hermes this also makes each run cheaper, because the model receives far fewer tool descriptions.

## What you can ask your agent

You talk to your own agent, in your own words and language.

| You say | You get | Tool |
| --- | --- | --- |
| "Run the monthly reconciliation on this folder, cut-off October 31." | The deliverables, a fixed-wording summary with the figures, and one fingerprint per step | `recipe360_run` |
| "Which recipes do I have?" | Each recipe with what it needs and delivers | `recipe360_list` |
| "What does the payroll check do?" | The steps in plain words | `recipe360_describe` |
| "Why was invoice 4521 flagged?" | What happened to that record at each step, sensitive fields left out | `recipe360_explain` |
| "Send me the record of yesterday's run as a PDF." | The run record: inputs, steps, fingerprints and result | `recipe360_runs`, `recipe360_record` |
| "Make a recipe for our supplier reconciliation." | An interview, then a recipe tested on a sample that runs once you confirm it rule by rule | `recipe360_columns`, `_guide`, `_save`, `_test`, `_rules` |
| "Is this recipe ready to use?" | Errors and ambiguities in plain words, before anything runs | `recipe360_check` |

## Build your own recipes

You do not need to know anything technical. Ask your agent to make a recipe and it follows eight steps:

1. **Look at the file without opening it:** the column names in order, how dates and amounts are written and
   how many values are empty (`recipe360 columns`). The agent never sees a value.
2. **Interview.** What must come out, and every rule in your words.
3. **Questions about every rule that can be read two ways.** An amount or a count? A count or a yes/no? Is the
   limit included? Which date counts? What does an empty value mean? Nothing is guessed.
4. **Write the recipe** in the format of the guide (`recipe360 guide`).
5. **Save it.** It is checked first; a change needs a higher version, and the old one is kept.
6. **Test it** on a small sample whose answers you know (`recipe360 test`).
7. **Read every rule back** in plain words, with the points to confirm, and record that you agree
   (`recipe360 rules`). A recipe does not run until you have confirmed it, and each new version needs its
   own confirmation.
8. **Use it.**

## The recipe

A recipe is a plain text file (YAML or JSON) that describes one workflow, step by step. It holds rules and
formulas, never program code, and you can have as many as you need. Each recipe carries a seal, so every run
records exactly which version ran. A recipe has four parts: the **card** that people read (name, purpose,
what it needs and delivers, sensitive fields, stages and the closing message), its **inputs and outputs**,
**constants** such as limits or lookup tables, and the **steps**.

One step of the example, as it is written:

```yaml
- id: expiry
  title: Expiry of each card
  do:
    - classify:
        table: protected
        column: validity
        rules:
          - {if: "month(expires) < month(cutoff)", value: expired}
          - {if: "month(expires) <= month(cutoff) + 3", value: expiring_soon}
        otherwise: valid
  save: {file: 04_expiry.json, form: map, table: protected, key: id, value: validity}
```

Steps are built from 12 building blocks:

| Block | What it does |
| --- | --- |
| `read` | Loads a data file into a table, checks the expected columns and fingerprints the file |
| `require` | Stops the run with a clear message when a condition is not met |
| `compute` | Adds or changes columns with a formula, row by row |
| `classify` | Sets a value from the first rule that matches, in priority order |
| `score` | Adds points for each signal that applies, with an optional cap |
| `filter` | Keeps the rows that meet a condition, in a new table |
| `protect` | Masks or tokenizes sensitive columns, then removes them from every table |
| `group` | Counts or sums by a column |
| `join` | Brings columns from another table through a shared key |
| `summarize` | Builds the summary document: counts, sums, lists and parameters |
| `letters` | Writes one message per person from fixed templates |
| `verify` | Checks the deliverables, for example that no card number is left, and gives a verdict |

Formulas can only call a fixed list of 25 functions, such as `number`, `date`, `days`, `money`, `mask` and
`lookup`. Nothing else can run. The full format is in [the recipe reference](src/recipe360/skill/reference.md).

## Results

We repeated our internal tests through Recipe360 itself, with nothing else between the agent and the data:
the same 13-step workflow, the same data and the same request, in three agent programs.

| Agent program | Provider | Models | Correct with a recipe |
| --- | --- | --- | --- |
| Claude Code | Anthropic | Claude Haiku 5.5, Sonnet 5.5, Opus 5.5 | 100% |
| Codex | OpenAI | gpt-6.1-sol, gpt-6-astra, gpt-6-luna | 100% |
| Hermes | NVIDIA | Nemotron 3.5 Lightning 30B, gpt-oss-20b, MiniMax M3.1 Flash, Nemotron 3 Ultra 550B | 100% |

Every model, in every program, produced the same deliverables with the same fingerprint, in one call to the
recipe. Nine of the ten models finished a run in 12 to 32 seconds. These are internal tests: the saving and
the speed-up depend on the workflow, the model and the agent program, so each customer's will differ.

## Who it is for

- **Industries bound by protocols:** finance, health, insurance, pharmaceuticals and food, where a process
  only counts as finished when every required step was done, in order, and can be shown.
- **Operations and finance teams:** credit and card-portfolio reviews, collections and aging,
  reconciliations, payroll checks, inventory counts.
- **People paying for AI by the token:** far fewer tokens per run, or a small, open-source or low-reasoning
  model that can call tools in place of a large one.
- **Developers building agents:** fixed, testable steps inside an agent that otherwise improvises.

It is not for one-off exploration where the question changes every time, for creative writing, or, in
version 1, for acting on outside systems (it produces files) or reading live databases (it reads files).

## Rules Recipe360 never breaks

1. **The code computes; the model conducts.** The model never calculates a figure.
2. **Same data and same recipe give the same result, byte for byte, on any model.** One fingerprint per step
   proves it.
3. **The data stays on your machine.** The model gets the summary, never the rows; sensitive fields never
   reach the model, the deliverables or the record.
4. **A recipe is rules, not code.** Nothing outside the 12 blocks and 25 functions can run.
5. **Ambiguity is asked, never guessed.** A rule that can be read two ways stops the build until you choose.
6. **Every run leaves a record** that anyone can check later.
7. **It works offline.** Only the model you already use needs a connection.

## Data and limits

Recipe360 reads CSV (any separator and encoding), Excel and JSON files, and reads numbers and dates the
way each region writes them: `number(amount)` for `$1,234.56`, `number(amount, ',')` for `1.234,56 €`,
`date(due, 'MM/DD/YYYY')` or `date(due, 'DD.MM.YYYY')`. An amount or a date in the other convention is
refused, never misread.

Measured on a laptop with `bench/limits.py` (a typical recipe):

| Rows | File | Time | Memory |
| --- | --- | --- | --- |
| 10,000 | 0.6 MB | 0.2 s | 31 MB |
| 100,000 | 5.7 MB | 1.9 s | 140 MB |
| 1,000,000 | 60 MB | 20 s | 1.2 GB |

Time and memory grow in a straight line: about 20 seconds and 1.2 GB per million rows.

## Use it from Python

```python
import recipe360

recipe = recipe360.load_recipe("card-review.yaml")   # checked and sealed before anything runs
record = recipe360.run_recipe(recipe, "data/", "out/", {"cutoff": "2026-10-31"})
print(record["closing"])          # the fixed message for the person, with this run's figures
print(record["fingerprint"])      # identical for identical data, recipe and parameters
```

## Documentation

| Guide | What it covers |
| --- | --- |
| [Quick start](docs/quick-start.md) | Install, run the example, connect your agent |
| [Agent programs](docs/agents.md) | Setup for Claude Code, the Claude and ChatGPT desktop apps, Codex, Hermes, Cursor and other MCP programs |
| [Building recipes](docs/building-recipes.md) | From an interview with your agent to a tested recipe |
| [Recipe reference](src/recipe360/skill/reference.md) | The format: 12 building blocks, 25 functions, values and save forms |
| [Run records](docs/run-records.md) | What every run leaves behind and how to verify it |
| [Security and data flow](docs/security.md) | What reaches the model, what leaves the computer, pinning the MCP tools |
| [Recipe360 for IT](docs/for-it.md) · [para TI](docs/para-ti.md) | One page for IT: install paths, every connection and program, uninstalling, checking a download |
| [Results](docs/results.md) | Results by agent program, provider and model |
| [Troubleshooting](docs/troubleshooting.md) | The usual messages and what to do |
| [Change log](CHANGELOG.md) | What changed in each version |

## Development

```bash
python -m unittest discover -s tests
```

Requires Python 3.11 or newer, PyYAML, openpyxl and cryptography; the tests run on the source, and building
the package also needs Cython and a C compiler (`RECIPE360_PURE=1` builds a plain-Python package instead, for
development only). GitHub Actions runs every test on Windows and Linux with Python 3.11, 3.12 and 3.13 and on
macOS with Python 3.12, checks what the package ships, tries the compiled wheel as a customer gets it, and
installs it with the one-command installer on all three before running the quick start. A tag `v*` builds and
tries the wheels for every system and publishes them (see `.github/workflows/release.yml`); `site/` is the
website at https://recipe.pulso360.ai, assembled by `tools/make_site.py`.

**PyPI.** When the repository variable `PYPI_ENABLED` is `true`, the release also publishes the Linux and Windows
wheels to https://pypi.org/project/recipe360/ with trusted publishing (the job `pypi`, GitHub environment `pypi`,
no token stored anywhere). Only wheels go to PyPI, never an sdist: the source is not public. The macOS wheels,
built on the Mac, are uploaded from there after `tools/smoke_wheel.py` passed, with a PyPI API token scoped to the
project that stays in the Mac's keychain (never in the repository, never printed):

```bash
# once: security add-generic-password -a "$USER" -s pypi-recipe360 -w   (paste the token when asked)
UV_PUBLISH_TOKEN="$(security find-generic-password -a "$USER" -s pypi-recipe360 -w)" \
  uv publish --check-url https://pypi.org/simple/ dist/recipe360-0.1.0rc15-*macosx*.whl
```

Upload the Mac wheels before the licence e-mails of that version go out: without them, `uv tool install recipe360`
on a Mac finds only an older version (or none).

## Status and licence

Release candidate 0.1.0rc16, for early access. Recipe360 is sold as a subscription: a licence key activates it on the
computers your plan covers, and it renews itself while the subscription is paid. The example runs without a
licence. When a licence ends, your recipes and run records stay yours and readable; only running stops. See
[Your licence](docs/licence.md). The code is private, and the licence terms are "All rights reserved" for
now (see [LICENSE](LICENSE)).

Produced by Sebastián Arango Uribe. Commercialized by Pulso360.
