@zenera/meta 1.3.0 → 1.3.1
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 +131 -26
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,43 +1,136 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img
|
|
3
|
+
src="https://raw.githubusercontent.com/zenera-ai/ZeneraNeo/main/docs/imgs/zenera-logo-with-media-queries.svg"
|
|
4
|
+
alt="Zenera Logo"
|
|
5
|
+
width="20"
|
|
6
|
+
/>
|
|
7
|
+
<div>Powered By Zenera</div>
|
|
8
|
+
</div>
|
|
9
|
+
<br>
|
|
10
|
+
|
|
11
|
+
<div align="center">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/zenera-ai/ZeneraNeo/main/docs/imgs/banner-meta-with-media-queries.svg" alt="ZENERA META" width="801">
|
|
13
|
+
|
|
14
|
+
[](https://www.npmjs.com/package/@zenera/meta)
|
|
15
|
+
[](https://github.com/zenera-ai/ZeneraNeo/blob/main/LICENSE)
|
|
16
|
+
[](https://nodejs.org)
|
|
17
|
+
[](https://github.com/zenera-ai/ZeneraNeo/actions/workflows/ci.yml)
|
|
18
|
+
|
|
19
|
+
[Install](#install) · [Use](#use) · [Commands](#commands) · [Models](#models) · [Credentials](#credentials) · [Family](#the-rest-of-the-family) · [License](#license)
|
|
20
|
+
|
|
21
|
+
</div>
|
|
22
|
+
|
|
1
23
|
# @zenera/meta
|
|
2
24
|
|
|
3
|
-
The meta-agent
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
25
|
+
**The meta-agent: a coding agent pointed _at_ a zen project, on your own keys.
|
|
26
|
+
`zen run` runs the agents a project describes; `zen meta` runs an agent over
|
|
27
|
+
the project to change it - generate it from its specification, review it,
|
|
28
|
+
build its evaluation dataset and fine-tune its prompts against that dataset.**
|
|
29
|
+
|
|
30
|
+
It drives [GitHub Copilot CLI](https://github.com/github/copilot-cli) with your
|
|
31
|
+
provider keys, never a Copilot subscription.
|
|
32
|
+
|
|
33
|
+
> Part of [ZeneraNeo](https://github.com/zenera-ai/ZeneraNeo). It ships no
|
|
34
|
+
> binary of its own: installing it adds a `meta` **subcommand** to
|
|
35
|
+
> [`zen`](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/cli/README.md),
|
|
36
|
+
> which is also where the credentials already are.
|
|
7
37
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
38
|
+
## What you get
|
|
39
|
+
|
|
40
|
+
- **Specification-driven builds** - `/spec-sync-project` reads
|
|
41
|
+
`SPECIFICATION.md` and writes the agents, prompts, tools and skills, then asks
|
|
42
|
+
what it could not decide in `SPECIFICATION-FEEDBACK.md`.
|
|
43
|
+
- **Commands from the project** - every `.github/skills/<name>/SKILL.md` the
|
|
44
|
+
project carries is a `/<name>` you can run from the terminal, the same ones
|
|
45
|
+
the editor offers.
|
|
46
|
+
- **Runs that survive** - a rate limit or provider outage is waited out and the
|
|
47
|
+
session resumed; `zen meta resume` picks up one that stopped for any other
|
|
48
|
+
reason.
|
|
49
|
+
- **A dataset and a tuning loop** - `zen meta dataset` keeps the cases a project
|
|
50
|
+
is evaluated on; `zen meta finetune` runs them, analyzes each run and edits
|
|
51
|
+
the project's prose until the cases pass. No model weights are touched.
|
|
52
|
+
- **Accounting** - tokens are counted per call as it runs; in a project being
|
|
53
|
+
tuned every call lands in `finetune/usage/ledger.jsonl`.
|
|
11
54
|
|
|
12
55
|
## Install
|
|
13
56
|
|
|
14
|
-
|
|
57
|
+
Node.js 24+. Install it alongside the CLI:
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
npm i -g @zenera/cli @zenera/meta
|
|
61
|
+
zen key add openai # the keyring `zen` already uses
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Copilot CLI is used from `PATH` when it is there (`npm i -g @github/copilot`)
|
|
65
|
+
and fetched with `npx` otherwise. `zen version` shows which, and every
|
|
66
|
+
`@zenera/*` package version beside it.
|
|
67
|
+
|
|
68
|
+
## Use
|
|
15
69
|
|
|
16
70
|
```sh
|
|
17
|
-
|
|
71
|
+
zen meta model --pick # choose the model once
|
|
72
|
+
zen meta run "what does this project do?" # ask it something
|
|
73
|
+
zen meta run acme /spec-sync-project # run one of the project's commands
|
|
74
|
+
git diff | zen meta run "what broke?" --allow-tool read
|
|
75
|
+
zen meta resume acme # carry on the last session
|
|
18
76
|
```
|
|
19
77
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
78
|
+
The answer goes to stdout and the progress to stderr, so `> out.md` keeps the
|
|
79
|
+
answer alone. The whole run - prompt, every step, the answer - is logged under
|
|
80
|
+
`<project>/.tmp/logs/`, and the answer is saved beside it as markdown.
|
|
81
|
+
|
|
82
|
+
It may use every tool without asking: a prompt written for an editor expects
|
|
83
|
+
to read, write and run things, and a terminal has nobody watching to answer.
|
|
84
|
+
Narrow it with `--allow-tool`, or restore the asking with `--ask`.
|
|
85
|
+
|
|
86
|
+
The editor files `zen init` writes (`.vscode/` and the `.github/` tree) are
|
|
87
|
+
refreshed in the project before each run, because they are the brief the agent
|
|
88
|
+
works from and they describe this version of `zen`.
|
|
24
89
|
|
|
25
90
|
## Commands
|
|
26
91
|
|
|
27
92
|
```
|
|
28
|
-
zen meta run [project] "<question>"
|
|
29
|
-
zen meta run [project] /<name> [words]
|
|
30
|
-
zen meta run [project]
|
|
31
|
-
zen meta prompts [project]
|
|
32
|
-
zen meta resume [project] [session]
|
|
33
|
-
zen meta model [ref]
|
|
34
|
-
zen meta dataset <verb>
|
|
35
|
-
zen meta finetune <verb>
|
|
93
|
+
zen meta run [project] "<question>" Ask it something.
|
|
94
|
+
zen meta run [project] /<name> [words] Run .github/skills/<name>/SKILL.md.
|
|
95
|
+
zen meta run [project] Pick one of those commands.
|
|
96
|
+
zen meta prompts [project] List those commands.
|
|
97
|
+
zen meta resume [project] [session] Carry on a session that stopped.
|
|
98
|
+
zen meta model [ref] Show or set the model it uses.
|
|
99
|
+
zen meta dataset <verb> The cases a project is evaluated on.
|
|
100
|
+
zen meta finetune <verb> Tune the project on those cases.
|
|
36
101
|
```
|
|
37
102
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
103
|
+
Useful options: `--project`, `--model`, `--provider`, `--prompt-file`,
|
|
104
|
+
`--agent`, `--effort`, `--allow-tool`, `--ask`, `--add-dir`, `--retries`,
|
|
105
|
+
`--share`, `--events`, `--dry-run` (print the command, secrets masked),
|
|
106
|
+
`--json`. `zen meta --help`, `zen meta run --help`, `zen meta dataset --help`
|
|
107
|
+
and `zen meta finetune --help` print the full tables. The tuning loop is
|
|
108
|
+
described in [docs/finetuning.md](https://github.com/zenera-ai/ZeneraNeo/blob/main/docs/finetuning.md).
|
|
109
|
+
|
|
110
|
+
## Models
|
|
111
|
+
|
|
112
|
+
The model is looked for in this order: `--model`, `ZENERA_META_MODEL` in the
|
|
113
|
+
shell, `ZENERA_META_MODEL` in the project's `.env`, what `zen meta model`
|
|
114
|
+
stored, then the project's `agents.yaml`. With none set it uses the best model
|
|
115
|
+
it knows of for a provider you hold a key for - through a gateway, the best one
|
|
116
|
+
the gateway serves - and says which on stderr.
|
|
117
|
+
|
|
118
|
+
`zen meta model <provider>/<id>` asks the provider a one-word question before
|
|
119
|
+
storing it, so a model that will not answer is never kept; one whose API
|
|
120
|
+
rejects Copilot's tools (gpt-4o and older) is refused. `--force` skips both.
|
|
121
|
+
|
|
122
|
+
## Credentials
|
|
123
|
+
|
|
124
|
+
The keyring is `zen`'s, so there is nothing new to configure:
|
|
125
|
+
|
|
126
|
+
```sh
|
|
127
|
+
zen key add openai
|
|
128
|
+
zen key ls --check
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Every credential reaches Copilot through its environment, never on a command
|
|
132
|
+
line, where other processes could read it. Vertex Claude goes through a local
|
|
133
|
+
relay that signs each request with your service account.
|
|
41
134
|
|
|
42
135
|
## Design
|
|
43
136
|
|
|
@@ -45,8 +138,20 @@ It reaches `zen` only through [src/host.ts](src/host.ts), which imports
|
|
|
45
138
|
`@zenera/cli/lib` and nothing else; [test/meta-boundary.test.ts](test/meta-boundary.test.ts)
|
|
46
139
|
holds that line. The CLI keeps what `zen init` and `zen open` also need - the
|
|
47
140
|
`.github/` editor tree and its templates, and the usage ledger. See §7.6 of the
|
|
48
|
-
[CLI design notes](
|
|
141
|
+
[CLI design notes](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/cli/DESIGN.md).
|
|
142
|
+
|
|
143
|
+
## The rest of the family
|
|
144
|
+
|
|
145
|
+
| Package | What it is |
|
|
146
|
+
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
|
|
147
|
+
| [`@zenera/cli`](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/cli/README.md) | `zen` - agent projects on the command line |
|
|
148
|
+
| [`@zenera/neo`](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/neo/README.md) | the runtime - agents, models, tools, skills, memory |
|
|
149
|
+
| **`@zenera/meta`** | `zen meta` - the meta-agent that builds and tunes a project |
|
|
150
|
+
| [`@zenera/gym`](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/gym/README.md) | `zen gym` - a mock API from an openapi/swagger document |
|
|
151
|
+
| [`@zenera/rag`](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/rag/README.md) | `zen rag` - indexing and search for documents and API schemas |
|
|
152
|
+
| [`@zenera/view`](https://github.com/zenera-ai/ZeneraNeo/blob/main/packages/view/README.md) | `zen view` - a live local viewer for a folder |
|
|
49
153
|
|
|
50
154
|
## License
|
|
51
155
|
|
|
52
|
-
|
|
156
|
+
Early days and moving fast - issues, questions and pull requests are welcome.
|
|
157
|
+
[MIT](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenera/meta",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "The meta agent for zen: GitHub Copilot over a zen project on your own keys, plus the dataset and fine-tuning loop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"prepack": "tsc -b"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@zenera/cli": "^1.3.
|
|
47
|
-
"@zenera/engine": "^1.3.
|
|
48
|
-
"@zenera/neo": "^1.3.
|
|
49
|
-
"@zenera/view": "^1.3.
|
|
46
|
+
"@zenera/cli": "^1.3.1",
|
|
47
|
+
"@zenera/engine": "^1.3.1",
|
|
48
|
+
"@zenera/neo": "^1.3.1",
|
|
49
|
+
"@zenera/view": "^1.3.1",
|
|
50
50
|
"google-auth-library": "^10.0.0",
|
|
51
51
|
"ink": "^7.1.1",
|
|
52
52
|
"react": "^19.2.8",
|