Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Version holds the semantic version string. Version = "dev" // Commit holds the short git commit SHA. Commit = "dev" // BuildTime holds the UTC build timestamp (e.g. "2025-06-01T00:00:00Z"). BuildTime = "" )
Build-time configurable variables, overridable via -ldflags.
Functions ¶
func Identity ¶
func Identity() string
Identity is the build identity the commands report: Version, followed by the commit and build time when the build set them, as in "v1.4.1 (commit 94f3890, built 2026-10-14T06:33:13Z)". A build that left Version at "dev" reports the module version go install recorded instead, when there is one.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package afspec is the reference Go library for the agent-fox specification format, version 2.
|
Package afspec is the reference Go library for the agent-fox specification format, version 2. |
|
cmd
|
|
|
spec
command
Command spec turns a product idea into a complete, validated version 2 specification package.
|
Command spec turns a product idea into a complete, validated version 2 specification package. |
|
speca
command
Command speca reports the state of a version 2 specification package, moves the state of its tasks, and moves the package through its lifecycle.
|
Command speca reports the state of a version 2 specification package, moves the state of its tasks, and moves the package through its lifecycle. |
|
specr
command
Command specr renders a version 2 specification package as Markdown: the whole package, or the package scoped to one of its tasks.
|
Command specr renders a version 2 specification package as Markdown: the whole package, or the package scoped to one of its tasks. |
|
Package envelope defines the JSON that the spec, specr and speca commands write to stdout, as Go types a program can decode it into.
|
Package envelope defines the JSON that the spec, specr and speca commands write to stdout, as Go types a program can decode it into. |
|
examples
|
|
|
create
command
Command create shows how to build a spec package with the afspec library: start from a scaffold, add requirements, an execution path, tests and tasks with the builders and the Add… functions, validate the result, save it and activate it.
|
Command create shows how to build a spec package with the afspec library: start from a scaffold, add requirements, an execution path, tests and tasks with the builders and the Add… functions, validate the result, save it and activate it. |
|
tasks
command
Command tasks shows how a coding agent works through a spec package with the afspec library: pick the next task, mark it in progress, render the package scoped to it, do the work, then record the task as done in tasks.json.
|
Command tasks shows how a coding agent works through a spec package with the afspec library: pick the next task, mark it in progress, render the package scoped to it, do the work, then record the task as done in tasks.json. |
|
validate
command
Command validate shows how to read a spec package with the afspec library and check it: load the artifacts, run schema and cross-file validation, and report the coverage and traceability the format derives from them.
|
Command validate shows how to read a spec package with the afspec library and check it: load the artifacts, run schema and cross-file validation, and report the coverage and traceability the format derives from them. |
|
internal
|
|
|
agentrun
Package agentrun runs one model phase of the spec pipeline on AgentKit's driver.
|
Package agentrun runs one model phase of the spec pipeline on AgentKit's driver. |
|
agentrun/indextest
Package indextest holds a recording tools.Index double: a test checks that a run builds one code-search index, hands the same instance to its Runner and to specgen's Options, and closes it once on every exit path.
|
Package indextest holds a recording tools.Index double: a test checks that a run builds one code-search index, hands the same instance to its Runner and to specgen's Options, and closes it once on every exit path. |
|
cli
Package cli is the shell of the spec command: one positional input, one JSON envelope on stdout, progress on stderr, the shared flags, and the checks that refuse a run before a token is spent.
|
Package cli is the shell of the spec command: one positional input, one JSON envelope on stdout, progress on stderr, the shared flags, and the checks that refuse a run before a token is spent. |
|
issuex
Package issuex is the spec CLI's forge client: it reads a GitHub or GitLab issue, pull request or merge request with its comments, which is one of the inputs the CLI accepts, and posts a comment back for --comment.
|
Package issuex is the spec CLI's forge client: it reads a GitHub or GitLab issue, pull request or merge request with its comments, which is one of the inputs the CLI accepts, and posts a comment back for --comment. |
|
project
Package project detects what a repository is written in and how it is checked, so that a plan naming another ecosystem's tooling can be refused in code rather than found in review.
|
Package project detects what a repository is written in and how it is checked, so that a plan naming another ecosystem's tooling can be refused in code rather than found in review. |
|
repomap
Package repomap builds the token-budgeted repository map that every phase carries in its user prompt.
|
Package repomap builds the token-budgeted repository map that every phase carries in its user prompt. |
|
skillgen
command
Command skillgen renders the af-* skills under skills/ for each coding agent that loads skills from a directory, and installs them into that agent's skill directory.
|
Command skillgen renders the af-* skills under skills/ for each coding agent that loads skills from a directory, and installs them into that agent's skill directory. |
|
specpkg
Package specpkg is what the commands that work on a spec package on disk share: spec, specr and speca each need to find a package from a reference, show where it is, list its tasks and describe how it validates, and none of them should carry a copy.
|
Package specpkg is what the commands that work on a spec package on disk share: spec, specr and speca each need to find a package from a reference, show where it is, list its tasks and describe how it validates, and none of them should carry a copy. |
|
Package specgen turns a product idea into a complete, validated version 2 specification package.
|
Package specgen turns a product idea into a complete, validated version 2 specification package. |