f0173440e4
Piggy was a hand-rolled OpenAI tool loop. It is now a Prime Agent session — Prime Intellect's own harness, embedded as a Node library — answering from PIG's tools and, for the first time, able to put information into the CRM rather than only read it out. The harness is a coding agent, so the first job was taking the coding agent away from it. `noTools: 'all'` plus an explicit allowlist leaves the model with PIG's ten `pig_*` tools and no bash, no filesystem, no IPython. That holds under attack: a hostile extension, a skill and a settings file planted in the agent's own directory, then `setActiveToolsByName` called with every built-in, still leaves ten tools, all ours. Both lines are load-bearing — `noTools` alone registers nothing, and the allowlist is what admits our own. Writing is gated rather than assumed. A change is proposed, not made: the tool returns a description, the transcript renders a diff card, and nothing reaches the database until someone presses Apply. Contracts, commitments, allocations and compliance always stop for a human whatever the mode. Every write runs through `executeMutation` as the calling user, so their capabilities and the audit trail apply exactly as they would to a human's. Four things about the SDK are wrong in its own documentation and cost a debugging cycle each: models.json does not resolve an env var name for `apiKey`, it sends the literal string; there is no built-in prime-inference provider in 0.84.1; a ResourceLoader you pass in is never reloaded for you; and the stock system prompt is a coding-assistant prompt that must be replaced — but replacing it also silently removes the tool list, because the harness only renders that section when it owns the prompt. AGENTS.md records all four. The expensive one was thinking level. The harness defaults to `medium`, and nemotron spent an entire 4,096-token budget reasoning and returned an empty answer. `low` was worse; `off` omits the parameter so the endpoint's default wins. An explicit `reasoning_effort: none` via `thinkingLevelMap` took a turn from 6,195 output tokens to 149. And a turn is now bounded. The harness loop is `while (true)` with no iteration cap; a runaway on a frontier model would have eaten the credit it is supposed to report on. Ceilings on model calls and tokens, enforced both through the harness hook and independently from the event stream, plus a per-user daily spend limit — and the ledger now records spend on turns that fail, which it previously discarded. Signing in lands on /piggy, which is a workspace: conversations down one side, the agent in the middle, what it did and what it cost beside it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
62 lines
2.3 KiB
Plaintext
62 lines
2.3 KiB
Plaintext
PIG — Prime Intellect Growth
|
|
Copyright 2026 The PIG Authors
|
|
|
|
This product includes software developed by The PIG Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
---
|
|
|
|
ACKNOWLEDGEMENTS
|
|
|
|
One architectural idea in this project was studied from, and is gratefully
|
|
credited to, the following open-source project. No source code was copied
|
|
from it; the debt is one of design.
|
|
|
|
Buzz (https://github.com/block/buzz) — Apache License 2.0.
|
|
The agent-as-workspace-member model that informed PIG's treatment of
|
|
agents as first-class principals with their own identity and audit trail.
|
|
|
|
---
|
|
|
|
BUNDLED THIRD-PARTY SOFTWARE
|
|
|
|
Piggy, PIG's assistant, runs on Prime Intellect's own coding-agent harness,
|
|
embedded as a library rather than invoked as a tool. It is a direct runtime
|
|
dependency of a distributed artefact and is named here for that reason; the
|
|
rest of the dependency tree is declared in the lockfile and carries its own
|
|
licences.
|
|
|
|
@earendil-works/pi-coding-agent — MIT License.
|
|
Copyright (c) Earendil Works.
|
|
Together with its sibling packages @earendil-works/pi-ai and
|
|
@earendil-works/pi-agent-core, also MIT. Full licence text ships inside
|
|
each package under node_modules.
|
|
|
|
PIG configures the harness with no shell, filesystem or code-execution tools;
|
|
see AGENTS.md for how that boundary is imposed and tested.
|
|
|
|
---
|
|
|
|
DATA PROVENANCE
|
|
|
|
PIG ships with seed data describing publicly documented people and companies.
|
|
Every seeded person record carries a `confidence` grade and a `source_url`
|
|
citing where the claim came from. No email addresses are included, inferred,
|
|
or generated: none were published by the subjects, and guessing them would be
|
|
both unreliable and inappropriate.
|
|
|
|
Seed data reflects public sources as of August 2026 and will go stale. It is
|
|
provided to make the application legible on first run, not as an assertion of
|
|
fact about any individual. See docs/seed-data.md.
|