Agentic Praxis Grimoire
What is Agentic Praxis Grimoire?
Agentic Praxis Grimoire (APGR) is a provider-neutral toolkit and skill corpus for bounded agent engineering. It provides coding-agent platforms, LLM harnesses, and agentic workflows with deterministic primitives for selecting task-scoped guidance, collecting immutable evidence, capturing curated environments, inspecting repository structures, and measuring context footprints without dictating an orchestration workflow.
APGR includes:
- 39 canonical agent skills across 14 stable and 25 provisional leaves;
- Context-footprint accounting for measuring, comparing, and projecting context budgets across descriptions, bodies, and support material;
- Reusable Go packages for schemas, canonical reports, skill bundles, strict environment snapshots, structural hotspot analysis, and footprint accounting;
- The
apgrcommand-line interface for direct terminal and script use; - Thin Python and npm distribution adapters providing binary-backed compatibility without rewriting portable logic; and
- Deterministic verification tooling ensuring reproducible outputs and uncompromising safety boundaries.
Who is APGR for?
- AI Agent System Engineers: Embed deterministic skills and context accounting directly into agent runtimes and harnesses.
- Coding Agent Platform Teams: Supply bounded, task-specific instructions to coding models rather than dumping exhaustive, token-heavy global prompts.
- Tool and Harness Authors: Leverage strict, allowlisted environment snapshots and structural hotspot analysis to prepare clean agent workspaces.
- Auditors and Evaluators: Verify exact, canonical operational records, evidence bundles, and cryptographic hashes.
What APGR is not
APGR is an engineering toolkit, not an autonomous agent or orchestrator. It does not:
- Select models, prompt templates, or inference providers;
- Make autonomous decisions about retries, task loops, or self-healing;
- Act as a background daemon or cloud service; or
- Execute arbitrary code or mutate system configuration outside caller-specified targets.
Orchestrators such as Joint Agentic Command Aegis (JACA) or custom agent frameworks invoke APGR as an in-process library or CLI subprocess.
Core capabilities
- Task-scoped skill selection: Resolve only the guidance relevant to the immediate task rather than injecting global instruction sets into every session.
- Context-footprint accounting: Measure exact byte and UTF-8 character sizes
of prompts, skill bodies, and support documents with versioned
apg.context-footprint/v1schemas; compare compatible records; and create source-bound projections with explicit fidelity and omission disclosure. - Deterministic evidence: Produce canonical Show, Diff, and Operational records with stable domain-separated cryptographic digests.
- Strict environment snapshots: Capture allowlisted, non-secret environment variables and resolve isolated or overlay execution environments with recorded provenance.
- Structural hotspot analysis: Rank complex or structurally critical files before bounded refactoring while clearly separating deep metrics, structural metrics, and unavailable capabilities.
- Portable Go core: Portable logic is authored in standalone, dependency-free Go packages; Python and npm packages serve as thin, verified distribution front doors.
Skill corpus and maturity
APG has 39 canonical leaves: 14 stable and 25 provisional. Canonical Markdown
under skills/ is the maintained body authority; embedded metadata and package
resources are verified projections of it:
- Corpus topology: 39 canonical / 39 catalog / 39 projections / 39 discoverable
- Maturity: 14 stable / 25 provisional
Quick start
The public release remains v0.8.0 on Git and the Go module proxy. GitHub Releases, PyPI, and npm do not contain v0.8.1. This documentation covers the prepared v0.8.1 source candidate; it is not a publication claim.
Source checkout first
Run these commands from the physical root of your prepared v0.8.1 source checkout. A fresh public clone currently retrieves the v0.8.0 release line, not this unpublished candidate:
go run ./cmd/apgr --version
go run ./cmd/apgr skills list
The prepared source candidate is pending the separate source-freeze and production qualification boundary. Do not use an unpublished registry version as a dependency or claim that these commands prove publication.
Supported platforms
The prepared distribution targets include:
- macOS Apple Silicon:
darwin/arm64 - Linux x86_64:
linux/amd64(linux/x64) - Linux ARM64:
linux/arm64
First use
The examples below use a small source-checkout runner. Set APGR_BIN to an
installed native Go/npm executable when one is available; otherwise the helper
builds and runs the checkout's Go command. Each input file is absolute and
owner-only (0600) because the CLI treats the records as caller-owned data.
set -eu
apgr() {
if [ -n "${APGR_BIN:-}" ]; then
"$APGR_BIN" "$@"
else
go run ./cmd/apgr "$@"
fi
}
apgr skills list
set -eu
apgr() {
if [ -n "${APGR_BIN:-}" ]; then
"$APGR_BIN" "$@"
else
go run ./cmd/apgr "$@"
fi
}
apgr --repository "$PWD" analyze hotspots --include-path cmd/apgr
The Python frontend uses a different global root option for this command:
apgr --project-root "$PWD" analyze hotspots --include-path cmd/apgr.
The skills and footprint commands below use the same arguments on both frontends.
set -eu
apgr() {
if [ -n "${APGR_BIN:-}" ]; then
"$APGR_BIN" "$@"
else
go run ./cmd/apgr "$@"
fi
}
tmp_root="${TMPDIR:-/tmp}"
tmp_root="${tmp_root%/}"
workdir="$(mktemp -d "$tmp_root/apgr-readme.XXXXXX")"
workdir="$(cd "$workdir" && pwd -P)"
trap 'rm -rf "$workdir"' EXIT
request="$workdir/request.json"
treatment_request="$workdir/treatment-request.json"
control="$workdir/control.json"
treatment="$workdir/treatment.json"
comparison="$workdir/comparison.json"
projection="$workdir/projection.json"
python3 - "$request" "$treatment_request" <<'PY'
import json
import pathlib
import sys
base = {
"schema_version": "apg.context-footprint/v1",
"observation": {
"harness": "cli",
"method": "direct",
"provider": "local",
"quality": "verified",
"repetitions": 1,
"study_design": "single_run",
"tokenizer": "none",
"variant": "first-use",
"workload": "skill-body",
"availability": "available",
"basis": "direct_measurement",
},
"components": [{
"kind": "selected_body",
"name": "implementing-with-test-discipline",
"unit": "bytes",
"text": "Write a failing test before writing production code.\n",
}],
"sensitivity": "public",
"retention": "ephemeral",
}
treatment = json.loads(json.dumps(base))
treatment["components"][0]["text"] += "Keep the test focused.\n"
for path, value in zip(sys.argv[1:], (base, treatment)):
pathlib.Path(path).write_text(json.dumps(value) + "\n", encoding="utf-8")
PY
chmod 600 "$request" "$treatment_request"
apgr footprint measure --input "$request" > "$control"
apgr footprint measure --input "$treatment_request" > "$treatment"
chmod 600 "$control" "$treatment"
apgr footprint compare --control "$control" --treatment "$treatment" > "$comparison"
apgr footprint project --source "$treatment" --fidelity exact > "$projection"
chmod 600 "$comparison" "$projection"
python3 - "$control" "$comparison" "$projection" <<'PY'
import json
import pathlib
import sys
control, comparison, projection = (json.loads(pathlib.Path(p).read_text()) for p in sys.argv[1:])
assert control["schema_version"] == "apg.context-footprint/v1"
assert comparison["schema_version"] == "apg.context-comparison/v1"
assert comparison["delta"] > 0
assert projection["schema_version"] == "apg.context-projection/v1"
assert projection["fidelity"] == "exact"
assert projection["omitted_fields"] == []
print("footprint measure, compare, and project examples passed")
PY
Context-footprint walkthrough
The footprint subsystem enables principled, reproducible accounting of agent
context budgets. It treats context as a scarce, measurable resource with distinct
components and explicitly tracks unavailable metrics rather than reporting
misleading zeroes.
1. Measure (apgr footprint measure)
Measure converts a strict measurement request into a validated apg.context-footprint/v1
canonical record with exact byte and character metrics. It accepts --stdin or --input FILE
(requiring an absolute, clean, owner-only 0600 file):
The marked first-use fence above is the executable owner for this walkthrough. It creates complete disposable fixtures, runs all three footprint actions, and asserts the schema, positive comparison delta, exact projection fidelity, and empty omission disclosure.
Key principles of measurement:
- Separation of components: Selected descriptions, selected bodies, support material, repository references, and provider prompt overhead are measured as distinct components.
- Honest metrics: Bytes and UTF-8 characters are measured locally. Provider-specific token estimates are marked explicitly as unavailable unless an observed value is provided by the caller.
2. Compare (apgr footprint compare)
Compare computes treatment-minus-control deltas between two context footprint
records using the apg.context-comparison/v1 schema. Both records must be
clean, owner-only 0600 files with matching observation dimensions:
The same executable fence runs footprint compare with absolute 0600
records and checks the canonical comparison output.
Comparison outputs highlight:
- Net byte and character changes per component;
- Added or removed components; and
- Deterministic comparison digests (
cmp-sha256:...).
3. Project (apgr footprint project)
Project creates a bounded, source-bound canonical projection retaining source
identity, fidelity level, and explicit omission disclosure using the
apg.context-projection/v1 schema:
The same executable fence runs footprint project with an exact fidelity
request and checks the source-bound projection fields. A projection records
fidelity and omitted fields; it is not a capacity estimate or an exhaustion
control.
Projection discloses structural fidelity and omitted fields; it creates a deterministic, source-bound representation rather than a capacity estimate.
Go library integration
APGR is designed to be imported directly into Go applications and orchestration adapters.
package main
import (
"context"
"fmt"
"log"
"github.com/Knowledge-Forge-AI/agentic-praxis-grimoire/footprint"
"github.com/Knowledge-Forge-AI/agentic-praxis-grimoire/skills"
)
func main() {
ctx := context.Background()
// Deterministically resolve a curated skill bundle
req := skills.BundleRequest{
SchemaVersion: skills.BundleRequestSchemaV1,
ExplicitSkillIDs: []string{"implementing-with-test-discipline"},
Consumer: skills.Consumer{
Kind: skills.ConsumerGo,
MaterializationForm: skills.MaterializationInMemory,
ProviderConstraints: []string{"in_process_library"},
},
}
result, err := skills.Resolve(ctx, req)
if err != nil {
log.Fatalf("failed to resolve skills: %v", err)
}
// Calculate its deterministic context footprint record
record, err := skills.Footprint(req, result)
if err != nil {
log.Fatalf("failed to calculate footprint: %v", err)
}
fmt.Printf("Resolved %d skills; footprint components: %d\n",
len(result.SelectedSkillIDs), len(record.Components))
// Create a source-bound projection with fidelity and omission disclosure
proj, err := footprint.Project(ctx, footprint.ProjectRequest{
Source: record,
Fidelity: footprint.FidelityLosslessStructural,
})
if err != nil {
log.Fatalf("failed to project footprint: %v", err)
}
fmt.Printf("Projected fidelity: %s; canonical digest: %s\n",
proj.Fidelity, proj.CanonicalSourceDigest)
}
See the Go library reference for full package documentation.
Upgrade guidance and release recovery
Upgrading from v0.7.0 to the prepared v0.8.1 source
The v0.8 series introduces the complete context-footprint subsystem (footprint
Go package introduced in v0.8.0 and apgr footprint CLI command family), refined
skill metadata, and multi-surface distribution packages with packaged
documentation and rich project metadata.
- Go Consumers: Keep released consumers on the exact published version they
already qualify. To exercise the prepared source, use a checkout-local Go
module and the source-build path above; do not add an unpublished
v0.8.1requirement. - CLI / Python / npm Users: Use the source-checkout command while v0.8.1 remains pending freeze and publication. Registry installation is deferred.
Truthful v0.8.0 release status & v0.8.1 recovery
During the initial publication of v0.8.0 on 2026-08-31:
- Git commit
fc0fd99b41d24951d7db3535402c46ef9c671143was pushed tomain; - Annotated tag
v0.8.0was pushed; and - The Go module proxy (
proxy.golang.org) successfully indexed and authenticatedv0.8.0.
However, downstream publication to GitHub Releases, PyPI, and npm was not completed due to credential and interactive TTY requirements. In strict adherence to public-registry immutability and zero-overwrite policies:
- The immutable
v0.8.0tag and Go proxy entries are preserved as historical immutable predecessor state without force-pushing, retagging, or deletion. - v0.8.1 is a prepared multi-surface recovery candidate pending source freeze and publication. It is not published to GitHub Releases, PyPI, or npm, and no release page, package install, or module requirement should imply otherwise.
For technical details, see the v0.8.1 release notes and qualification exit record.
Security and trust boundaries
APGR is engineered with strict operational boundaries:
- No Shell Execution: Subprocess adapters execute binaries directly using
exact argument vectors (
execve), never passing strings through a shell. - Secret-Rejecting Environment Snapshots: Environment profiles enforce strict allowlists. Secret-like variables (containing tokens, keys, passwords, or credentials) are rejected fail-closed.
- Filesystem Isolation: Materialized skill bundles and scratch operations are confined to caller-owned, disposable directories. APGR never mutates user-global skill roots or configuration without explicit flags.
- Zero Telemetry / Offline Operation: All local commands operate completely offline with no telemetry, tracking, or unexpected network requests.
- Reproducible Builds: All distribution archives, Go binaries, and package manifests are bit-for-bit reproducible under fixed release epochs.
Documentation index
- Task-Oriented Documentation Index
- CLI Reference
- Go Library Reference
- Skill Context Bundles Guide
- Environment Snapshots Guide
- Hotspot Analysis Guide
- Distribution and Packaging
- APG–JACA Integration Architecture
- Context Footprint & Skill Inventory
- Project Model & Governance
- Provenance Policy
- Status and Exit Records
- Release Notes (v0.8.1)
Contributing and licensing
Read CONTRIBUTING.md before submitting contributions. Contributions require adherence to the project contribution terms in CLA.md.
Agentic Praxis Grimoire is free software licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). Commercial licensing options and enterprise support are available from the Project Steward at Knowledge Forge AI.
Third-party copyright notices and attributions are recorded in NOTICE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentic_praxis_grimoire-0.8.1.tar.gz.
File metadata
- Download URL: agentic_praxis_grimoire-0.8.1.tar.gz
- Upload date:
- Size: 412.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90fa5fd66f72e0bafa8814fec4b3ad8abce1084423f7fed2049b49347ba5ed1c
|
|
| MD5 |
266a2c4d88ff8294a08448ca845d258e
|
|
| BLAKE2b-256 |
6c5f7487d889afa4e64d58c0ec410f5e793e0a972ff2d4a2ff8bf87a4efe6c99
|
Provenance
The following attestation bundles were made for agentic_praxis_grimoire-0.8.1.tar.gz:
Publisher:
release.yml on Knowledge-Forge-AI/agentic-praxis-grimoire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_praxis_grimoire-0.8.1.tar.gz -
Subject digest:
90fa5fd66f72e0bafa8814fec4b3ad8abce1084423f7fed2049b49347ba5ed1c - Sigstore transparency entry: 2741750285
- Sigstore integration time:
-
Permalink:
Knowledge-Forge-AI/agentic-praxis-grimoire@565f924aa8fda9551da8732cceb5708db069e127 -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/Knowledge-Forge-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@565f924aa8fda9551da8732cceb5708db069e127 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d7343d8495bf3a4e0a68490e89c49cc45b3c50e235625b5399bfdf526080b2d
|
|
| MD5 |
364b5723f0723cc8568f9338df8b5c1d
|
|
| BLAKE2b-256 |
266756e6c8cf12b9bc4651464b39cd45e3141629de8b16ac28d6f1300d1c1c80
|
Provenance
The following attestation bundles were made for agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_x86_64.whl:
Publisher:
release.yml on Knowledge-Forge-AI/agentic-praxis-grimoire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_x86_64.whl -
Subject digest:
3d7343d8495bf3a4e0a68490e89c49cc45b3c50e235625b5399bfdf526080b2d - Sigstore transparency entry: 2741750473
- Sigstore integration time:
-
Permalink:
Knowledge-Forge-AI/agentic-praxis-grimoire@565f924aa8fda9551da8732cceb5708db069e127 -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/Knowledge-Forge-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@565f924aa8fda9551da8732cceb5708db069e127 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 3.5 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ac51c75dc1f9d6f364e5e3fb200b9b7bee6ea363c0d6887e859e4a48d21b03a
|
|
| MD5 |
4b9ae59e0d3a399b5c098bcc351a1ad9
|
|
| BLAKE2b-256 |
5a58a162379d1de6f4a3cd64435bf1d51e2938bbe78592816f3af146de2d3219
|
Provenance
The following attestation bundles were made for agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_aarch64.whl:
Publisher:
release.yml on Knowledge-Forge-AI/agentic-praxis-grimoire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_praxis_grimoire-0.8.1-py3-none-manylinux_2_17_aarch64.whl -
Subject digest:
2ac51c75dc1f9d6f364e5e3fb200b9b7bee6ea363c0d6887e859e4a48d21b03a - Sigstore transparency entry: 2741750393
- Sigstore integration time:
-
Permalink:
Knowledge-Forge-AI/agentic-praxis-grimoire@565f924aa8fda9551da8732cceb5708db069e127 -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/Knowledge-Forge-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@565f924aa8fda9551da8732cceb5708db069e127 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agentic_praxis_grimoire-0.8.1-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: agentic_praxis_grimoire-0.8.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad41152a3c3bb08bdd4e69b6ccc578ed7d27e5ac7a51fecdc0c788141c8493a4
|
|
| MD5 |
dccad7ceca9e0b4a6019f6c1a49f4945
|
|
| BLAKE2b-256 |
c3924f120aa5e468de8332eb721685e63d4e2379c12984ec6d34a0d8dfd5df5b
|
Provenance
The following attestation bundles were made for agentic_praxis_grimoire-0.8.1-py3-none-macosx_11_0_arm64.whl:
Publisher:
release.yml on Knowledge-Forge-AI/agentic-praxis-grimoire
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentic_praxis_grimoire-0.8.1-py3-none-macosx_11_0_arm64.whl -
Subject digest:
ad41152a3c3bb08bdd4e69b6ccc578ed7d27e5ac7a51fecdc0c788141c8493a4 - Sigstore transparency entry: 2741750562
- Sigstore integration time:
-
Permalink:
Knowledge-Forge-AI/agentic-praxis-grimoire@565f924aa8fda9551da8732cceb5708db069e127 -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/Knowledge-Forge-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@565f924aa8fda9551da8732cceb5708db069e127 -
Trigger Event:
release
-
Statement type: