Repository navigation
agent-costbook v1.1.0
Developer Experience Release 1.1.0
Status: GitHub v1.1.0 released on 2026-10-06. PyPI publication is pending maintainer Trusted Publisher configuration.
Version 1.1.0 focuses on developer experience, interactive exploration, and external agent integration for agent-costbook (ac), while maintaining complete backward compatibility with v1.0 data schemas and API endpoints.
Highlights
1. Synthetic demo (ac demo)
Run a synthetic estimation directly after installation without local configuration, a running service, creating a database, or contacting the network:
ac demoEvaluates a bundled synthetic test fixture, outputting an M4 estimate of 0.0177 USD with synthetic: true (result excerpt). Alternatively, run via uvx --from git+https://github.com/JarvanAI/agent-costbook.git@v1.1.0 ac demo.
2. Streamlined setup and diagnostics (setup, serve, doctor)
ac setup: Generates a standard configuration file (Linux default:~/.config/agent-costbook/config.json; other platforms unverified) with random admin and read tokens, and initializes an empty SQLite database. Re-runningsetupis idempotent and preserves existing data; setup never rotates existing tokens.ac serve --setup: Single command to generate configuration and start the local loopback service onhttp://127.0.0.1:8080in the foreground.ac servebinds only loopback hosts (127.0.0.1,localhost,::1).ac doctor: Outputs machine-readable JSON diagnosing server connectivity, credentials, and catalog coverage without exposing secret tokens.- Distinguishes local SQLite record counts in
coveragefrom verified HTTP counts inservice_coverage(service_coverageisnullwhen the service is unreachable or down, and partial when capabilities endpoints are unauthorized). - Verifies that both generated
admin_tokenandread_tokenauthenticate successfully against the running service for doctor success (status: "ok"). Status does not silently pass a wrong read token (reportsstatus: "auth").
- Distinguishes local SQLite record counts in
3. Consumption query CLI (ac query)
Query prices, recorded Agent capabilities, model-effort tiers, and provenance evidence directly from the command line:
ac query prices --provider openai --model openai/gpt-4o-mini
ac query agents --agent-id agent-1
ac query model-efforts --provider openai --model openai/gpt-4o-mini
ac query evidence --id EVIDENCE_ID
ac query research --id RESEARCH_IDOutputs structured JSON by default, with optional --format table. Falls back to ACB_SERVER, then config.server, then http://127.0.0.1:8080 when --server is omitted.
4. Read-only token permissions
Introduces ACB_READ_TOKEN (configured in config.json or environment). Read tokens allow:
GET /v1/capabilities/*(agents and model-effort tiers).- Capability-enriched estimates in
POST /v1/estimates(methods M0–M6). - Rejects catalog mutations (
POST /v1/contributions,PUT /v1/capabilities/*) and private task observations (M7).
5. Online estimation CLI (ac estimate --server)
ac estimate supports online estimation against a running service in addition to offline snapshot evaluation:
ac estimate --server http://127.0.0.1:8080 --request request.jsonThe --server and --snapshot options are mutually exclusive. Online estimation requires an explicit --server argument.
6. Command alias and version flag
- Long-form alias
agent-costbookis registered alongsideac. ac --versionreports the current package version.
7. Read-only query Skill (skills/costbook-query/)
A standard, self-contained Codex/Cursor skill for querying prices and capabilities:
npx skills add JarvanAI/agent-costbook --skill costbook-query --agent codex --globalThree Skills are discovered across the repository (skills/costbook-query/, skills/costbook-contribute/, skills/costbook-initialize/). Actual query Skill evaluation is running separately in background.
8. New documentation and issue templates
- Getting started: Beginner onboarding from installation to query.
- Agent integration guide: Integration patterns for
agent-routerand autonomous frameworks. - Catalog maintenance guide: Complete batch update and backup workflow.
- Structured GitHub issue templates for first-run failures and data corrections.
Backward compatibility
- Storage & APIs: Database schema 2 and API v1 contracts are unchanged.
- Formulas:
ac-formulas-v2andac-formulas-v1remain supported with identical calculation behavior. - Existing workflows: Legacy uvicorn factory invocation, offline
--snapshotestimates, andac databatch workflows remain fully supported.
Validation
The source tree has been verified:
- Source test suite: 223 passed with one existing Starlette deprecation warning (
uv run pytest -q). - Package build & installation: Wheel build (
uv build) and installation outside the checkout directory succeeded. - Skill discovery: Three Skills discovered (
skills/costbook-query/,skills/costbook-contribute/,skills/costbook-initialize/). Actual query Skill evaluation is running separately in background (not claimed as complete yet). - Documentation links: Validated with
python scripts/check-docs.py. - Demo validation: Tested with
python scripts/check-demo.py.
Release preparation & PyPI Trusted Publishing
GitHub source release and its wheel/sdist are published. PyPI is a separate channel and remains pending. Pinned Git installation is available:
uv tool install git+https://github.com/JarvanAI/agent-costbook.git@v1.1.0Never claim uv tool install agent-costbook works before a publish receipt is available.
The GitHub repository environment pypi has been configured. To configure PyPI Trusted Publishing for the initial package release:
- Open PyPI publishing management:
https://pypi.org/manage/account/publishing/
(Official guide: https://docs.pypi.org/trusted-publishers/creating-a-project-through-oidc/) - Under "Add a pending publisher", enter the following exact fields:
- PyPI Project Name:
agent-costbook - Owner:
JarvanAI - Repository name:
agent-costbook - Workflow name:
publish.yml - Environment name:
pypi
- PyPI Project Name:
- After saving the pending publisher on PyPI, trigger the
.github/workflows/publish.ymlworkflow via GitHub Actionsworkflow_dispatchon the release tag withpublish_pypi=true. Parent will update release receipts once publication completes.
Publication receipts
- Release tag
v1.1.0resolves to18366457e02f51c9f66efde51ad0932ca216ff0f. - Main CI, tag CI, and Publish workflow succeeded for that commit. These checks ran on Linux/Python 3.12.
- GitHub Release is public, not a draft or prerelease, with
agent_costbook-1.1.0-py3-none-any.whlandagent_costbook-1.1.0.tar.gz. - The documented remote
uvx --from git+https://github.com/JarvanAI/agent-costbook.git@v1.1.0 ac demowas executed successfully. Remote skills CLI discovery found all three Skills. - Local and Agent acceptance: 223 passing tests, installation outside the checkout, and read-only Skill consumption against synthetic data.
- PyPI job was skipped on tag push as designed. It needs the maintainer's pending publisher before an explicit tagged workflow dispatch with
publish_pypi=true; no password or API token should be sent to an Agent.