@potential-agents/cli
v0.1.7
Published
Declarative GitOps CLI for Potential Agents
Readme
Potential Agents CLI
p-agents turns a reviewed potential.md into a managed Potential Agent revision. The bundle
contains only logical agent intent; runtime profile IDs, cloud infrastructure, secrets, images,
and IAM never enter the repository.
Install
After publication to npm:
npm install -g @potential-agents/cli
p-agents validateCI should pin the version it executes:
npx --yes @potential-agents/[email protected] validateBundle
---
apiVersion: potentialagents/v1alpha1
id: research-agent
name: Research Agent
engine: claude
model: claude-sonnet-4-6
tools: [Read, Glob, Grep]
browser: false
skills: []
---
Use evidence and identify uncertainty.Run p-agents validate without credentials. Connected commands use the stable public Control
endpoint https://agents.potencialventures.cl and use the default potencial-agents
organization. Configure only the credential outside the bundle:
export POTENTIAL_AGENTS_TOKEN=opaque_service_credential
p-agents plan
p-agents applyPOTENTIAL_AGENTS_API_URL or --api-url remains an explicit override for a local fixture or a
future non-production control plane; it is not required for the standard CLI or GitOps workflow.
POTENTIAL_AGENTS_ORGANIZATION or --organization is an optional future override; do not set it
for the current single-organization deployment.
apply writes potential.lock. Commit that generated identity with the reviewed source bundle.
The credential is intentionally kept out of potential.md and potential.lock; set it via a
local secret manager or a GitHub deployment-environment secret.
Architecture
The implementation is intentionally hexagonal:
src/domain: immutable values, invariants and deterministic hashes.src/application: SOLID use cases and small ports.src/adapters: Commander/terminal inbound adapter plus filesystem, YAML, HTTPS and runtime outbound adapters.src/composition-root.ts: the only place concrete adapters are injected.
No application or domain code depends on Commander, Node filesystem APIs, fetch, environment
variables, or cloud SDKs.
Development
npm ci
npm run typecheck
npm run build
npm test
npm pack --dry-runThe black-box test starts a disposable control-plane fixture and executes the compiled binary. It verifies create, readiness, generated lockfile, no-op and run without a real cloud account.
Releases
Tags in the form v* invoke .github/workflows/publish.yml. Configure npm Trusted Publishing
for shinsekai-dev/potential-agents-cli and publish.yml; the workflow uses GitHub OIDC and has
no long-lived npm publish token. The first package publication requires the npm scope to have
been claimed by a maintainer.
