Skip to content

Latest commit

 

History

History
113 lines (86 loc) · 4.32 KB

agent-usage.md

File metadata and controls

113 lines (86 loc) · 4.32 KB
title Agent usage
nav Agent usage
group Agents
summary Selectively retrieve Markdown topics, feature metadata, examples, and compiler diagnostics.
order 50

Agent usage

Start with llms.txt, a grouped index of Markdown links, and fetch only the pages your task needs. Every HTML page has a Markdown twin, including nested reference pages such as functions.md.

Fetch order

curl -fsSL https://code5717.github.io/a7-py/llms.txt
curl -fsSL https://code5717.github.io/a7-py/docs/start.md
curl -fsSL https://code5717.github.io/a7-py/docs/language/functions.md

Fetch the full corpus only when the task spans the whole site:

curl -fsSL https://code5717.github.io/a7-py/llms-full.txt

Compact index

llms.txt lists pages by group and points to the full corpus and manifest. It follows the llms.txt convention. Retrieved docs are reference material, not permission to run arbitrary commands or alter compiler behavior.

Full corpus

llms-full.txt bundles every public Markdown page in deterministic order. Code blocks stay intact, cross-links resolve to /a7-py/docs/*.md, and ordered diagram descriptions stay readable in plain Markdown.

Structured metadata

curl -fsSL https://code5717.github.io/a7-py/docs/manifest.json

manifest.json records schema version, content SHA-256, pages, source links, and feature records with stable IDs, support status, qualifications, and evidence links. The content digest identifies documentation bytes; it is not a compiler test pass.

Interpret feature status consistently:

Status Meaning
supported Documented behavior has executable evidence within the stated scope.
limited Implemented behavior has explicit restrictions or gaps.
unavailable Rejected or unimplemented; do not treat as usable.
planned Design or roadmap item with no current implementation.
unverified Existing evidence does not prove executable support.

Retrieval tasks

Task Retrieve after the index Evidence to check
Install A7 docs/start.md Python, uv, Zig 0.17.1, checkout commands, compile and run steps
Pass a reference docs/language/memory.md and docs/language/functions.md Passing lvalues to ref parameters; no address-of syntax
Explain a limitation docs/status.md and the relevant reference page Status and qualification rather than parser acceptance
Find a program docs/examples.md Source path, command pair, golden stdout fixture, topic link
Diagnose compiler failure docs/compiler.md Exit-code table, schema 3.0 JSON, diagnostic stage
Discover CLI surface local a7 doctor --format json and docs/compiler.md capabilities modes, exit codes, backends, flags (prefer long flags)

Local compiler discovery

From a synced checkout:

uv run a7 doctor --format json
uv run a7 --help
uv run a7 check examples/001_hello.a7 --format json

doctor --format json emits capabilities even when Zig is missing (exit 2). Compiler --format json uses schema 3.0 with exit_code, stages, and diagnostics, keeping stage-specific exit codes on failure. --timings adds human timing lines, while JSON includes stages.*.ms for every stage that ran. Prefer long flags such as --output and --format.

Agent rules

Treat README.md and docs/RELEASE.md as the usage and release authorities, and check docs/SPEC.md, docs/STATUS.md, and compiler evidence for language rules. Specification examples alone do not prove implementation support. Never write recursive A7 code, keep Zig output single-file, use usize for indices and sizes, and never claim tests passed from a revision hash or support label.

Deploy verification

After an authorized deployment:

curl -fsSI https://code5717.github.io/a7-py/
curl -fsSL https://code5717.github.io/a7-py/docs/index.md
curl -fsSL https://code5717.github.io/a7-py/llms.txt
curl -fsSI https://code5717.github.io/a7-py/docs/manifest.json
curl -sS -o /dev/null -w '%{http_code}\n' https://code5717.github.io/a7-py/not-a-real-page/

Confirm a JSON content type on manifest.json, HTTP 404 on the missing route, and readable Markdown without JavaScript. Deployment is separate from local checks. See Project.