@interf/compiler 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -25
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Interf prepares portable context for your agents.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Hallucinations aren't an agent problem. They're a data preparation problem.**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
You ask your agent to analyze every file, miss nothing. It skims, guesses, answers anyway — often with confident answers that are wrong.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The fix is a map your agent navigates — the full picture of your files, organized for this work. You tell Interf how to build it, in plain English — that's a compilation workflow.
|
|
10
|
+
|
|
11
|
+
`Interf Compiler` is the local runtime that runs it. It enforces every stage and records proof of work — what ran, what was read, what was produced. The output is portable context — a local folder your agent reads. If the first build misses your questions, Interf improves the workflow and builds again.
|
|
10
12
|
|
|
11
13
|
```text
|
|
12
14
|
project-root/
|
|
13
15
|
bristol-office-analysis/
|
|
14
|
-
report.
|
|
16
|
+
report.md
|
|
15
17
|
notes.md
|
|
16
18
|
exports/
|
|
17
19
|
interf.json # main config: works, source paths, questions, workflow choices, and defaults
|
|
@@ -24,11 +26,13 @@ project-root/
|
|
|
24
26
|
bristol-office-analysis/ # saved source-files vs portable-context comparisons
|
|
25
27
|
```
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
Your agent starts from `interf/<work>/` when the source files are not enough.
|
|
28
30
|
|
|
29
31
|
## What a Run Looks Like
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
Same files, same questions. What changes is whether the portable context was prepared first.
|
|
34
|
+
|
|
35
|
+
A recent public run — one market report, two questions, two agents on the same setup — produced:
|
|
32
36
|
|
|
33
37
|
<!-- PUBLIC_BENCHMARK_TABLE:START -->
|
|
34
38
|
| Agent | Source files | Portable context |
|
|
@@ -41,15 +45,16 @@ Codex passed on the raw files; Claude Code only passed after Interf prepared the
|
|
|
41
45
|
|
|
42
46
|
That gives you a readiness signal for the work and a fair comparison on the same files.
|
|
43
47
|
|
|
44
|
-
The table is a sample, not a leaderboard. Run it on your own files. If you run more than one local agent,
|
|
48
|
+
The table is a sample, not a leaderboard. Run it on your own files. If you run more than one local agent, one `interf test` pass scores each of them.
|
|
45
49
|
|
|
46
50
|
## Design Choices
|
|
47
51
|
|
|
48
|
-
- `
|
|
49
|
-
- `
|
|
50
|
-
- `
|
|
52
|
+
- `Per-work`: every portable context is built for one specific piece of agent work, not a generic index over your files.
|
|
53
|
+
- `Deterministic`: the compilation workflow is your method. Interf Compiler enforces every stage and records proof of work — no runtime discovery, no guessing.
|
|
54
|
+
- `Local-first and private`: your files, your questions, and your agent runs stay on your machine. No cloud, no uploads, no telemetry.
|
|
51
55
|
- `Bring your own AI`: use Claude Code, Codex, or another local agent.
|
|
52
|
-
- `
|
|
56
|
+
- `File over app`: the portable context is a local folder next to the source files — no hidden store, no hidden index. Inspect it, diff it, version it.
|
|
57
|
+
- `Scored on your own questions`: every build is checked against questions you wrote from the files. If the portable context does not help, `interf test` tells you.
|
|
53
58
|
|
|
54
59
|
## Install
|
|
55
60
|
|
|
@@ -75,7 +80,7 @@ Requires Node.js 20+ and a local coding agent such as Claude Code or Codex. Run
|
|
|
75
80
|
|
|
76
81
|
## Portable Context
|
|
77
82
|
|
|
78
|
-
`interf/<work>/` is the local folder Interf Compiler builds from your files — a
|
|
83
|
+
`interf/<work>/` is the local folder Interf Compiler builds from your files — a map your agent navigates, not a replacement for your files. For the built-in `interf-default`, it includes:
|
|
79
84
|
|
|
80
85
|
```text
|
|
81
86
|
interf/bristol-office-analysis/
|
|
@@ -89,11 +94,11 @@ interf/bristol-office-analysis/
|
|
|
89
94
|
|
|
90
95
|
The source files stay the source of truth. Interf builds next to them; it does not replace them.
|
|
91
96
|
|
|
92
|
-
The portable context is
|
|
97
|
+
The portable context is self-contained — it carries its own `raw/` snapshot, so the evidence the agent works from stays attached to the result. Hand it to a different agent and the folder stands on its own.
|
|
93
98
|
|
|
94
99
|
## Workflow Packages
|
|
95
100
|
|
|
96
|
-
A compilation workflow is how you tell Interf Compiler to organize and structure your files so your agents can reliably work from them.
|
|
101
|
+
A compilation workflow is how you tell Interf Compiler to organize and structure your files so your agents can reliably work from them. The built-in `interf-default` lives at `interf/workflows/interf-default/`. Fork it with `interf create workflow` when you need a different method, a different output, or both.
|
|
97
102
|
|
|
98
103
|
```text
|
|
99
104
|
interf/workflows/interf-default/
|
|
@@ -110,17 +115,15 @@ interf/workflows/interf-default/
|
|
|
110
115
|
improve/ # how Interf revises this compilation workflow if questions still fail
|
|
111
116
|
```
|
|
112
117
|
|
|
113
|
-
Think of it as method -> output shape.
|
|
114
|
-
|
|
115
118
|
- `workflow.json` describes the method: expected inputs, stages, and how the files should be processed.
|
|
116
119
|
- `workflow.schema.json` describes the output contract: what files and folders the output must contain. Technically, this is the `context interface`, declared in `workflow.schema.json` and enforced by the compiler.
|
|
117
120
|
- `compile/stages/<stage>/` is where you author one folder per stage — a small, specific phase like `summarize` or `structure`. You write the instructions; the compiler runs them with your local agent.
|
|
118
121
|
- `use/query/` holds the instructions your agent follows when it reads the portable context for live work.
|
|
119
122
|
- `improve/` holds the instructions Interf follows when the first build misses and the compilation workflow itself needs editing.
|
|
120
123
|
|
|
121
|
-
A workflow package bundles a compilation workflow. Interf Compiler runs it on your files
|
|
124
|
+
A workflow package bundles a compilation workflow. Interf Compiler runs it on your files and enforces each stage. The result is a local folder your agents can read.
|
|
122
125
|
|
|
123
|
-
##
|
|
126
|
+
## Workflow Improvement
|
|
124
127
|
|
|
125
128
|
When the first build still misses questions, Interf edits the workflow package itself and compiles again. Same files, same questions, different preparation.
|
|
126
129
|
|
|
@@ -128,12 +131,7 @@ Interf saves every scored run under `interf/tests/<work>/`. You can inspect what
|
|
|
128
131
|
|
|
129
132
|
## How the Pieces Fit
|
|
130
133
|
|
|
131
|
-
|
|
132
|
-
- A workflow package bundles a compilation workflow.
|
|
133
|
-
- `workflow.json` defines the method.
|
|
134
|
-
- `workflow.schema.json` defines the output contract, or context interface, the compiler must build.
|
|
135
|
-
- `Interf Compiler` is the local runtime. It runs the compilation workflow, your agent runs each stage, and the portable context lands next to the source files.
|
|
136
|
-
- The portable context is the local folder built for your agents. Technically, that folder is the compiled context.
|
|
134
|
+
`interf.json` names the work and selects the compilation workflow. `Interf Compiler` runs that workflow and writes the portable context — technically, the compiled context — as a local folder next to your source files.
|
|
137
135
|
|
|
138
136
|
## interf.json
|
|
139
137
|
|
|
@@ -155,7 +153,7 @@ Interf saves every scored run under `interf/tests/<work>/`. You can inspect what
|
|
|
155
153
|
}
|
|
156
154
|
```
|
|
157
155
|
|
|
158
|
-
The `workflow` field is the key choice per work. It points to a folder id under `interf/workflows/`. Set it to `interf-default` (the built-in default
|
|
156
|
+
The `workflow` field is the key choice per work. It points to a folder id under `interf/workflows/`. Set it to `interf-default` (the built-in default) or to a compilation workflow you have authored. A different compilation workflow is a different method and a different output. Same files, different portable context.
|
|
159
157
|
|
|
160
158
|
## Questions
|
|
161
159
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interf/compiler",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Local, open-source context compiler for agent work. Build portable context from your files with a compilation workflow you define. Check on your own questions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|