agentic-pi 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/README.md +42 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -85,14 +85,50 @@ outcome programmatically without parsing stderr.
85
85
 
86
86
  `--model provider/id` (e.g. `anthropic/claude-opus-4-5`, `openai/gpt-4o`).
87
87
  Credentials come from environment variables (`OPENAI_API_KEY`,
88
- `ANTHROPIC_API_KEY`, `OPENROUTER_API_KEY`) or Pi's `~/.pi/agent/auth.json`
89
- if you've logged in interactively. Provider/id mapping is delegated to
90
- `@earendil-works/pi-ai`'s `getModel()`.
88
+ `ANTHROPIC_API_KEY`, `OPENROUTER_API_KEY`, `FIREWORKS_API_KEY`, …) or Pi's
89
+ `~/.pi/agent/auth.json` if you've logged in interactively. Provider/id mapping
90
+ is delegated to `@earendil-works/pi-ai`'s `getModel()`.
91
91
 
92
92
  `--thinking <level>` maps directly to Pi's `thinkingLevel`
93
93
  (`off`/`minimal`/`low`/`medium`/`high`/`xhigh`). Per-provider effort is
94
94
  handled by Pi.
95
95
 
96
+ **Fireworks AI** is supported out of the box — it's a first-class provider in
97
+ `@earendil-works/pi-ai`. Set `FIREWORKS_API_KEY` and select a model with the
98
+ `fireworks/` prefix and Fireworks' fully-qualified id:
99
+
100
+ ```bash
101
+ echo "summarize this repo" | agentic-pi run \
102
+ --model fireworks/accounts/fireworks/models/glm-5p2 \
103
+ --no-session
104
+ ```
105
+
106
+ The provider id is everything after the first `/`, so the `accounts/…` path
107
+ (which itself contains slashes) is preserved intact. pi-ai talks to Fireworks
108
+ over its Anthropic-compatible endpoint (`https://api.fireworks.ai/inference`),
109
+ so tool-calling, streaming, and thinking all work as they do for first-party
110
+ Anthropic models.
111
+
112
+ Models in pi-ai's curated catalog ship with accurate context-window, max-token,
113
+ and cost metadata. At the time of writing that includes (run a recent build for
114
+ the current list):
115
+
116
+ | Model | `--model` value |
117
+ | --- | --- |
118
+ | GLM 5.2 | `fireworks/accounts/fireworks/models/glm-5p2` |
119
+ | DeepSeek V4 Pro | `fireworks/accounts/fireworks/models/deepseek-v4-pro` |
120
+ | Kimi K2.7 Code | `fireworks/accounts/fireworks/models/kimi-k2p7-code` |
121
+ | MiniMax M3 | `fireworks/accounts/fireworks/models/minimax-m3` |
122
+ | GPT-OSS 120B | `fireworks/accounts/fireworks/models/gpt-oss-120b` |
123
+
124
+ > The catalog is curated and shifts each pi-ai release (newer models added,
125
+ > retired ones dropped). To use a Fireworks model that isn't curated yet —
126
+ > or to correct its metadata — declare it in `~/.pi/agent/models.json` under a
127
+ > `fireworks` provider (`api: "anthropic-messages"`, `baseUrl:
128
+ > "https://api.fireworks.ai/inference"`, `apiKey: "FIREWORKS_API_KEY"`); see
129
+ > Pi's `docs/models.md`. agentic-pi resolves custom models from there
130
+ > automatically via Pi's `ModelRegistry`.
131
+
96
132
  ### 6. Defaults that match a containerized sandbox
97
133
 
98
134
  - **`--no-session`** is intended to be the default in sandboxed runs (state
@@ -476,10 +512,11 @@ echo "list open PRs on owner/repo" | agentic-pi run \
476
512
  Required env (one of):
477
513
 
478
514
  ```bash
479
- # Anthropic/OpenAI/OpenRouter — at least one matching your --model
515
+ # Model provider — at least one matching your --model
480
516
  ANTHROPIC_API_KEY=sk-ant-…
481
517
  OPENAI_API_KEY=sk-…
482
518
  OPENROUTER_API_KEY=sk-or-…
519
+ FIREWORKS_API_KEY=fw-…
483
520
 
484
521
  # GitHub — App credentials preferred over static token
485
522
  GITHUB_APP_ID=…
@@ -493,7 +530,7 @@ GITHUB_TOKEN=ghp_…
493
530
 
494
531
  | Flag | Description |
495
532
  | --- | --- |
496
- | `--model <provider/id>` | Required. e.g. `anthropic/claude-opus-4-5`, `openai/gpt-4o`. |
533
+ | `--model <provider/id>` | Required. e.g. `anthropic/claude-opus-4-5`, `openai/gpt-4o`, `fireworks/accounts/fireworks/models/glm-5p2`. See section 5. |
497
534
  | `--thinking <level>` | `off` \| `minimal` \| `low` \| `medium` \| `high` \| `xhigh`. |
498
535
  | `--profile <name>` | `read` \| `issues-write` \| `review-write` \| `repo-write`. Omit to disable GitHub tools entirely. |
499
536
  | `--cwd <path>` | Working directory for the agent. Default: `$PWD`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-pi",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "A drop-in coding-agent harness built on earendil-works/pi, designed to replace opencode in workflow-driven systems like lastlight.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@earendil-works/gondolin": "^0.12.0",
47
- "@earendil-works/pi-ai": "^0.75.4",
48
- "@earendil-works/pi-coding-agent": "^0.75.4",
47
+ "@earendil-works/pi-ai": "^0.79.8",
48
+ "@earendil-works/pi-coding-agent": "^0.79.8",
49
49
  "@ff-labs/pi-fff": "^0.9.4",
50
50
  "@octokit/auth-app": "^7.1.4",
51
51
  "@octokit/rest": "^21.0.2",