agni

package module
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Agni

CI Go Reference Go Report Card Go 1.27

Agni checks schematics and boards for design mistakes, such as an I2C bus with no pull-up, a power rail with no decoupling, a USB connector with no ESD protection, or a track narrower than the board's own rules. It reads KiCad, OrCAD Capture, EDIF, xschem and gEDA schematics, and KiCad, Allegro, Altium, ODB++ and IPC-2581 boards. Every finding names the net or part it fired on and locates it on the schematic.

Open the demo in your browser and drop a KiCad or EDIF design on the page, or open one of the example boards. The engine runs in the page as WebAssembly, so your design is never uploaded.

Watch a walkthrough

A 33-second walkthrough on Antmicro's open-source Jetson AGX Thor baseboard. It finds a resistor by name, and the schematic and the board beside it both go to it. Then a click on a test point on the board takes the schematic to that point's page. make try JOURNEY=find-a-part HEADED=0 records it.

https://github.com/user-attachments/assets/b399f9d5-5440-4de5-8c01-5e1742dbefdf

A 92-second walkthrough of what changed between two revisions of the same board, Antmicro's rev 1.1.0 and rev 1.1.3. It steps through one change of each kind, an added, a removed and a changed part, a new, a deleted and a renamed net, and a net whose connections changed, and each step says what that kind means. make try JOURNEY=compare-revisions HEADED=0 records it.

https://github.com/user-attachments/assets/1ff74453-c8a3-4b29-8727-99e301f905f8

A 43-second walkthrough that follows a signal outwards from a part on the same board. It starts at R361, a pull-up on the I2C connector's data line, and walks one hop through small parts, where it stops at the 3.3 V rail. One hop wider it crosses the level shifter U80 to the module's 1.8 V side, and then it asks for the route to the rail. make try JOURNEY=walk-a-signal HEADED=0 records it.

https://github.com/user-attachments/assets/eb9f4803-4316-4d4b-8de4-8aa52e9484a0

What does it do

  • Runs ERC/DRC-like structural checks. They catch missing I2C pull-ups, unprotected exposed signals, power rails without decoupling, and boards that fail track-width rules. Findings come out in plain language and cite the net or component they fire on.
  • Runs a browser viewer. agni open <design> serves one board and prints its URL; agni serve opens a tree of them. Either renders the design, runs the checks, and locates each finding on the canvas.
  • Runs in the browser with nothing installed. The engine also compiles to WebAssembly, so the public demo opens a KiCad or EDIF design you drop on the page, checks it, queries it and saves a report, without sending the design anywhere.
  • Walks a review checklist and traces signals. agni review scores a design against a team's checklist and saves the page, and agni trace --from U7.3 --to U12.4 follows a signal through the series parts between two pins.
  • Checks against datasheets. It joins a design against extracted datasheet limits and checks, for example, that a rail is inside a part's recommended operating range.
  • Diffs revisions over the IR. It compares two revisions structurally (components, nets, connectivity), not as a text diff of the source files, so it survives reformatting and rename churn.
  • Renders to SVG or a WebGL canvas, drawing either the faithful schematic and board geometry or an auto-laid-out netlist graph.
  • Answers datalog queries. agni query asks arbitrary questions of the design fact base. The rules are built on the same fact base, and the engine is jaala.
  • Reads many formats into one IR. EDIF netlists and schematics, KiCad schematics and boards, IPC-2581, xschem, and gEDA all parse into the same ir.Design. Adding a reader is one entry in readers/formats/registry.go.
  • Serves the same answers to other tools. The CLI calls a set of services, and agni serve exposes the same services as Connect rpcs. --remote sends query, check, trace and review to a running server, and clients/python is a typed Python client over the CLI or a server.

Try it in 60 seconds

With nothing installed, the public demo checks a seed board or a file you drop on it, in your browser.

To run the CLI, install it one of three ways:

go install github.com/panyam/agni/cmd/agni@latest

or download the archive for your platform from the latest release, a tarball for macOS and Linux or a zip for Windows, and put agni on your PATH, or run the container image with no install at all:

docker run --rm -v "$PWD":/work -w /work ghcr.io/panyam/agni check <board>.kicad_sch

Then check the demo board, which has deliberate design issues:

curl -sLO https://raw.githubusercontent.com/panyam/agni/main/demo/showcase.fires.kicad_pro
curl -sLO https://raw.githubusercontent.com/panyam/agni/main/demo/showcase.fires.kicad_sch
agni check showcase.fires.kicad_pro
findings by rule:
  bulk-cap               2
  decoupling-present     2
  esd-protection         2
  i2c-pull-up            1
  input-protection       1
  reverse-blocking-absent 1
  test-point-coverage    2

first 11:
  [warning] bulk-cap: +3V3 (power rail has no bulk capacitor)
  ...
  [error] i2c-pull-up: /SCL (I2C net has no pull-up resistor to a rail)
  [warning] input-protection: VBUS (connector feeds a power input with no fuse or TVS in the path)
  ...

agni open showcase.fires.kicad_sch serves the board in the browser viewer and prints its URL. Press Run checks and click a finding to locate its net on the schematic. A release binary carries the viewer, and a go install build downloads it from its release the first time it needs it.

From a checkout, make agni builds the same binary into bin/, and make demo opens both demo boards, the clean one and the one with issues. See demo/README.md.

Each GitHub release attaches a compose bundle pinned to it. The bundle runs the ghcr.io/panyam/agni image over your own boards:

AGNI_DESIGNS=./designs docker compose up -d     # the viewer at http://localhost:8080
docker compose run --rm trial /designs/<board>  # a trial report that holds nothing from the board

How it works

Agni normalizes design formats the way a compiler normalizes languages into one AST, so every analysis downstream is written once and works on all of them. The protobuf IR is the one contract in the middle. It is defined in protos/ and generated into gen/. Readers are the only code that knows a file format, and they produce ir.Design. They are readers/edif/, readers/kicad/, readers/ipc2581/, and the xschem/gEDA readers. Everything else consumes the IR and never looks at a source file. That includes core/check/, core/diff/, core/render/, the query engine and the web service.

The same shape repeats at two more contracts. N producers fill a geometry IR and N renderers draw it. N datasheet extractors fill a parameter IR and the checks read it.

Philosophy

  • One neutral IR serves every format. A schematic is a schematic whether it came from KiCad, EDIF, or IPC-2581. Normalize each format once, and write every analysis once against the IR. Add a reader and every check, diff, render, and query works on the new format; add an analysis and it works on every format.
  • Format-neutrality is enforced in CI. Analyses read the IR, never source files, and the IR carries no field a second format could not populate. Architectural constraints checked in CI keep the core from accreting format-specific special cases.
  • Silence is never coverage. A check that cannot evaluate reports "not applicable" or flags what it could not model; it never returns a false pass. Findings cite the net, component, or datasheet page they come from, and unverified data is marked as such. You can always tell "clean" from "not checked".
  • Verify against reality. Readers and rules are checked against the native tools (kicad-cli ERC/DRC) and real design exports, not only hand-written fixtures. A feature is done when it works on a real file.
  • The core is open, with a clear boundary. The engine is shareable under Apache-2.0. Proprietary formats, house rules, and confidential designs live in a private extension that depends on the engine without forking it.
  • Agni is written to be legible to software engineers. EDA carries decades of domain vocabulary. Agni maps that vocabulary to concepts software engineers already know (an IR, a linter, a semantic diff, a lockfile), so you can contribute without an EE degree. See the software-analogy map.

Formats read today

Format Extensions Netlist Faithful geometry
EDIF 2.0.0 .edn .edf .edif (netlist), .eds (schematic) yes schematic
KiCad .kicad_sch .kicad_pcb .kicad_pro yes schematic + board
IPC-2581 .xml .cvg yes board
xschem .sch (sniffed) yes schematic
gEDA gschem and Lepton .sch (sniffed) yes schematic
Telesis .tel yes none
OrCAD Capture .dsn yes schematic
Cadence Allegro .brd, from Allegro 16.6 and 17.2 yes board
Altium Designer .PcbDoc yes board
ODB++ a job directory, or an archive of one (.zip, .tar, .7z, compressed tar) yes board

A hierarchical EDIF netlist reads its top cell by default and says which blocks it left out. To read every block it places, pass --flatten-hierarchy, set flatten_hierarchy: true in the design's design.yaml, or press Read every block in the viewer.

Documentation

Full documentation lives at panyam.github.io/agni.

  • Getting started covers installing, a first check, reading the report, and gating CI.
  • User guide covers concepts, the CLI, checks, diff, and the query language, for someone new to the tool.
  • Software-analogy map maps hardware ideas onto software ones. If you read code but not schematics, start here.
  • Overview opens the engineering docs on IR and ingestion, geometry and rendering, semantic diff, and the format primers.
  • examples/README.md lists runnable walkthroughs, one per feature.
  • CONSTRAINTS.md holds the enforceable architectural rules. Read it before proposing changes.
  • SECURITY.md says how to report a vulnerability.
  • Open core explains the split between this public engine and a private extension that adds proprietary readers and rules without forking it.

Status

Agni reads real exports from every listed format and runs its full analysis over them. It is young, with bounded format coverage (see each reader's notes), a growing rule catalog, and an early datasheet extraction pipeline. The architecture is settled and the breadth is still growing. Issues and readers for new formats are welcome.

Building

make build requires Go 1.27.4 and pnpm (for the web viewer bundle). make testall also needs buf 1.61 on your PATH, python3, a Chromium for the browser tests, and network access to fetch the pinned sample corpus. CONTRIBUTING.md has the details.

pnpm install                      # once: the web workspace (web/, web-shared/, datasheet/web/)
make build                        # web bundle + go build ./...
make install                      # install the agni CLI to $GOBIN
make testall                      # the full gate: vet, lint, gosec, gitleaks, Go, wasm, web, browser and Python tests, docs checks

License

Apache-2.0. See LICENSE and NOTICE.

Documentation

Overview

Package agni composes the engine for a program that embeds Agni as a library rather than running the `agni` binary. One call produces the composed rule catalog, the relation registry, and the services that run over them.

There are FOUR global registration hooks and three fail quietly when a binary misses one. Without stdlib/rules/builtin the catalog is empty. Without stdlib/relations the fact base is empty. Either one reports every design clean, so New refuses both at startup. See docsite/content/build/extending.md#compose-in-main.

Every option takes a VALUE (a loaded profile set, a parsed declaration, an fs.FS), never a path. Reading files is the caller's job (C22, C13).

Index

Constants

This section is empty.

Variables

View Source
var MissingBuiltinsError = errors.New(
	`agni: the built-in rule catalog is not installed, so none of the shipped EE rules will run and a ` +
		`design is checked only against whatever this program composed itself. ` +
		`Add: import _ "github.com/panyam/agni/stdlib/rules/builtin"`)

MissingBuiltinsError reports that the built-in rule source was never installed, so the shipped EE rule catalog is absent and a run reports only whatever the caller composed itself.

The check asks check.BuiltinRules rather than measuring the composed catalog. stdlib/profiles registers its own source from an init and this package imports it, so a program missing the built-ins still composes a NON-EMPTY catalog holding the interface-profile rules alone.

View Source
var MissingRelationsError = errors.New(
	`agni: no fact relations are installed, so every datalog rule matches nothing and reports clean. ` +
		`Add: import _ "github.com/panyam/agni/stdlib/relations"`)

MissingRelationsError reports that no relation catalog was installed, so the fact base is empty and every datalog-authored rule matches nothing. Without this error the mistake neither fails to build nor errors at runtime.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine holds one rule catalog, one relation registry, and the project-resolution ports the services run against. New builds it once and nothing mutates it, so two surfaces built from one Engine agree about which rules are in effect.

func New

func New(opts ...Option) (*Engine, error)

New composes an Engine from the registered built-ins plus the options given. It fails when a registration hook is unpopulated, returning MissingBuiltinsError or MissingRelationsError, each naming the import that fixes it.

It returns an error where check.CatalogWith and facts.NewRegistry panic. Those run from an init or a composing main, where a startup panic is the convention. New runs inside an embedder's program, and that program has to decide for itself what to do about a bad composition.

func (*Engine) Catalog

func (e *Engine) Catalog() *check.Catalog

Catalog returns the composed rule catalog, holding the built-ins, every RegisterSource'd suite, and the profile, intent and ad-hoc sources the options supplied. Callers must not mutate the rules it holds.

func (*Engine) ProfileIndex

func (e *Engine) ProfileIndex() map[string][]profiles.Profile

ProfileIndex returns the by-name interface-profile index, which the review's absence gate reads. An interface counts as evaluating when any profile under its name is in the run, and the item scoped to it unions their nets.

A caller running a review itself needs it, and it MUST come from the same call that built the catalog. A separately built index can silently disagree. It can clear the gate on an interface after the catalog dropped that interface's rules, and the item then scores a clean pass on an interface nothing checked.

func (*Engine) ProjectResolver

func (e *Engine) ProjectResolver() *service.ProjectResolver

ProjectResolver returns the resolver the rule-running services use to find a design's project and compose that project's config into a run. It is nil when no project store or config resolver was supplied, and the services accept nil by running on the engine's composed defaults.

func (*Engine) ProjectService

func (e *Engine) ProjectService() *service.ProjectService

ProjectService returns the project/design listing service, or nil when no store was supplied.

func (*Engine) Registry

func (e *Engine) Registry() *facts.Registry

Registry returns the composed relation registry, for a caller running its own queries through core/query's *From entry points rather than through a service.

func (*Engine) RuleServices

RuleServices builds the two services that RUN rules from this Engine's one catalog. They are the CheckService behind a check panel and ListRules, and the ReviewService behind the review resources.

They come back TOGETHER and the catalog is not a parameter, so a caller cannot hand the two surfaces different catalogs (WS3-048). A rule missing from the check panel's catalog looks exactly like a rule that ran and found nothing.

func (*Engine) Warnings

func (e *Engine) Warnings() []string

Warnings reports compositions that are legitimate but worth saying out loud, each naming the import that would change it. An embedder may want the engine without one of these pieces, and nothing else reports their absence. An empty catalog or fact base gets an error from New instead.

type Option

type Option func(*builder)

Option configures New. Every option carries a VALUE rather than a path, since reading config is the caller's business (C22).

func WithConfigResolver

func WithConfigResolver(c service.ConfigResolver) Option

WithConfigResolver supplies the resolver that turns an analysis config's URIs into engine values, such as a project's interface profiles, its seeded parameters, its symbol paths and a design's intent. Per-design config enters a run here, so a server serving several projects composes each one's own rules rather than applying one team's config to every design.

func WithFSProjectStore

func WithFSProjectStore(trees ...Tree) Option

WithFSProjectStore supplies the shipped project store, which walks each tree for descriptors. It takes an fs.FS rather than a path because an fs.FS has no parent to climb into, so a resolution walk stops at the tree root.

It exposes the default store without making internal/projects public API. A caller that outgrows the directory shape implements service.ProjectStore and passes WithProjectStore instead.

func WithProducerVersion

func WithProducerVersion(v string) Option

WithProducerVersion stamps the build identity onto every results document the engine writes, a stored review run and a saved check report alike. The document then records which engine produced it. An embedder passes its own version string, and the CLI passes the engine's.

func WithProfiles

func WithProfiles(ps []profiles.Profile) Option

WithProfiles composes interface profiles into the catalog. A profile whose Name matches a built-in SUPERSEDES that built-in's rules rather than running alongside them, and the review's profile index tracks that, so an item scoped to the interface cannot pass on rules no longer in the run.

Load them with profiles.LoadDir for a directory of YAML, or build the values in Go.

func WithProjectResolver

func WithProjectResolver(r *service.ProjectResolver) Option

WithProjectResolver supplies an already-composed resolver. A caller may build one to share with services this package does not construct, since the design, diff, query, check and review services all take the same resolver. It is the composed form of WithProjectStore plus WithConfigResolver and wins over both, so one run cannot resolve projects two ways.

func WithProjectStore

func WithProjectStore(s service.ProjectStore) Option

WithProjectStore supplies the store that answers which projects and designs exist and which design an artifact belongs to. A deployment backed by a PLM system, an index, or a database implements service.ProjectStore and passes it here; WithFSProjectStore is the shipped directory-walking one.

func WithRelations

func WithRelations(opts ...facts.Option) Option

WithRelations composes extra fact relations into the registry, for an overlay that projects its own tuples out of the Model. The built-in relation catalog arrives through the blank import of stdlib/relations rather than through this option, because it installs as one bulk payload.

func WithSources

func WithSources(srcs ...check.RuleSource) Option

WithSources composes arbitrary rule sources into the catalog, such as a house suite built in Go, a naming convention's rules, or anything satisfying check.RuleSource. They compose after the profile sources, and a source implementing check.SupersedingSource replaces what it names.

func WithoutDatalogRules

func WithoutDatalogRules() Option

WithoutDatalogRules declares that shipping with no datalog-authored rule suite is intended, and drops the warning New would otherwise record. It changes nothing about the composition. The warning exists because the absence is invisible from a report.

type RuleLoader

type RuleLoader interface {
	service.Loader
	service.ReviewLoader
	service.ConventionLoader
}

RuleLoader is the union of the loader interfaces CheckService and ReviewService take, so one call can build both without widening either service's own contract.

type RuleServiceDeps

type RuleServiceDeps struct {
	Loader         RuleLoader
	ReviewStore    service.ReviewStore
	Specs          param.ParamProvider
	BaseConvention string
}

RuleServiceDeps holds the per-deployment I/O a rule-running service needs and the Engine does not hold. It covers where designs are read from, where stored runs live, the seeded datasheet corpus, and the name of the deployment's base naming convention.

type Tree

type Tree struct {
	Mount string
	FS    fs.FS
}

Tree is one named filesystem. WithFSProjectStore searches it for project and design descriptors. A mount:// URI addresses the tree by Mount, and FS is its root.

Directories

Path Synopsis
Package census is the element-coverage guard (WS6-011).
Package census is the element-coverage guard (WS6-011).
clients
examples/go command
Command go is the Go reference for `make exercise-clients` (agni issue 1628).
Command go is the Go reference for `make exercise-clients` (agni issue 1628).
cmd
agni command
Command agni is the CLI for the EDA tooling engine.
Command agni is the CLI for the EDA tooling engine.
agni-wasm command
agni-wasm is the engine as WebAssembly, for a browser to run with no server (agni issue 178).
agni-wasm is the engine as WebAssembly, for a browser to run with no server (agni issue 178).
core
check
Package check runs rule checks over a netlist IR Design.
Package check runs rule checks over a netlist IR Design.
check/naming
Package naming compiles an operator-supplied net-naming convention into a check.RuleSource (WS3-015).
Package naming compiles an operator-supplied net-naming convention into a check.RuleSource (WS3-015).
classify
Package classify holds the format-neutral ingestion passes that stamp derived facts onto the IR, so check reads a data fact instead of re-parsing vendor strings on every model build.
Package classify holds the format-neutral ingestion passes that stamp derived facts onto the IR, so check reads a data fact instead of re-parsing vendor strings on every model build.
diff
Package diff computes a semantic diff between two netlist IR Designs.
Package diff computes a semantic diff between two netlist IR Designs.
facts
Package facts is the fact/relation layer.
Package facts is the fact/relation layer.
graph
Package graph builds a netlist-graph view of a design from the core IR alone, for formats that carry no schematic page (IPC-2581, a bare netlist, a board-only export).
Package graph builds a netlist-graph view of a design from the core IR alone, for formats that carry no schematic page (IPC-2581, a bare netlist, a board-only export).
ident
Package ident compares identifiers that name the same thing in two documents that spell it differently.
Package ident compares identifiers that name the same thing in two documents that spell it differently.
mesh
Package mesh holds a part model's triangles and fits them to a triangle budget (agni issue 1652).
Package mesh holds a part model's triangles and fits them to a triangle budget (agni issue 1652).
model
Package model is the design read-surface CONTRACT.
Package model is the design read-surface CONTRACT.
num
Package num narrows integers for the wire, saturating rather than wrapping.
Package num narrows integers for the wire, saturating rather than wrapping.
param
Package param loads and validates parameter-IR PartSpecs (agni.v1.param), the datasheet-parameter contract in docsite/content/architecture/datasheet-layer.md#the-parameter-contract.
Package param loads and validates parameter-IR PartSpecs (agni.v1.param), the datasheet-parameter contract in docsite/content/architecture/datasheet-layer.md#the-parameter-contract.
query
Package query is the design query surface (WS3-029).
Package query is the design query surface (WS3-029).
render
Package render turns the geometry sidecar (agni.v1.geom) into drawable output.
Package render turns the geometry sidecar (agni.v1.geom) into drawable output.
report
Package report aggregates a check run for a person to read.
Package report aggregates a check run for a person to read.
results
Package results reads and writes the check-result document (agni.v1.checks.CheckResults), the artifact half of the checks contract (WS3-103).
Package results reads and writes the check-result document (agni.v1.checks.CheckResults), the artifact half of the checks contract (WS3-103).
results/foreign
Package foreign imports a check-result document from another tool's report (WS3-104).
Package foreign imports a check-result document from another tool's report (WS3-104).
review
Package review runs a project's design-review checklist against one design.
Package review runs a project's design-review checklist against one design.
stackup
Package stackup reads a board's physical layer stack (geom.Stackup) for a person or a check: it describes a row in words, sums the rows' thicknesses, and says when that sum disagrees with the board thickness the file states (agni 1592).
Package stackup reads a board's physical layer stack (geom.Stackup) for a person or a check: it describes a row in words, sums the rows' thicknesses, and says when that sum disagrees with the board thickness the file states (agni 1592).
svg
Package svg is a zero-dependency SVG element writer.
Package svg is a zero-dependency SVG element writer.
timing
Package timing records where one request's time went (agni issue 914): its stages, which cache layer answered each read, how long each rule took, and the plan of each query evaluated.
Package timing records where one request's time went (agni issue 914): its stages, which cache layer answered each read, how long each rule took, and the plan of each query evaluated.
validate
Package validate holds the reader-health invariants behind `agni validate` (WS6-007).
Package validate holds the reader-health invariants behind `agni validate` (WS6-007).
Package feedback builds the report a trial of agni sends back.
Package feedback builds the report a trial of agni sends back.
gen
Package intake produces a SANITIZED, deterministic summary of a design (WS3-091).
Package intake produces a SANITIZED, deterministic summary of a design (WS3-091).
internal
archivefs
Package archivefs presents an archive as the folder it was made from (agni issue 1591).
Package archivefs presents an archive as the folder it was made from (agni issue 1591).
authgate
Package authgate asks every caller of an agni server for a token (agni issues 1627 and 1765).
Package authgate asks every caller of an agni server for a token (agni issues 1627 and 1765).
boardlayer
Package boardlayer names a board's copper layers in the contract's KiCad-style vocabulary, so every board reader renames its source's layers the same way and the renderer and board rules read every format alike.
Package boardlayer names a board's copper layers in the contract's KiCad-style vocabulary, so every board reader renames its source's layers the same way and the renderer and board rules read every format alike.
cfb
Package cfb reads a Microsoft Compound File Binary container, after Microsoft's published [MS-CFB] specification.
Package cfb reads a Microsoft Compound File Binary container, after Microsoft's published [MS-CFB] specification.
constraints
Package constraints sweeps the repo's SOURCE for CONSTRAINTS.md rules that no single package owns, so `go test ./...` (and therefore `make testall`) enforces them.
Package constraints sweeps the repo's SOURCE for CONSTRAINTS.md rules that no single package owns, so `go test ./...` (and therefore `make testall`) enforces them.
copperraster
Package copperraster draws one layer of copper into a bitmap, from a board's geometry or from a Gerber film, so a reader's copper can be scored against the artwork the board's own tool plotted.
Package copperraster draws one layer of copper into a bitmap, from a board's geometry or from a Gerber film, so a reader's copper can be scored against the artwork the board's own tool plotted.
credentials
Package credentials keeps the token `agni login` gets from each server, by the server's URL, in the user's config folder (agni issue 1772).
Package credentials keeps the token `agni login` gets from each server, by the server's URL, in the user's config folder (agni issue 1772).
expect
Package expect loads a test design's expected findings from a sidecar file, so one artifact drives both the conformance harness (this repo) and, later, the web viewer's expectations panel (roadmap WS9-018).
Package expect loads a test design's expected findings from a sidecar file, so one artifact drives both the conformance harness (this repo) and, later, the web viewer's expectations panel (roadmap WS9-018).
geomath
Package geomath is the shared geometry math for the geom sidecar, mapping symbol-local coordinates into sheet (world) coordinates under a placement Transform.
Package geomath is the shared geometry math for the geom sidecar, mapping symbol-local coordinates into sheet (world) coordinates under a placement Transform.
latin1
Package latin1 decodes single-byte text, as binary EDA formats (Allegro, Altium) store names, into a Go string.
Package latin1 decodes single-byte text, as binary EDA formats (Allegro, Altium) store names, into a Go string.
mcpserver
Package mcpserver serves agni's analysis to an LLM client over the Model Context Protocol (agni issue 910).
Package mcpserver serves agni's analysis to an LLM client over the Model Context Protocol (agni issue 910).
native
Package native shells out to a format's own CLI to produce a golden reference render (SVG).
Package native shells out to a format's own CLI to produce a golden reference render (SVG).
netgraph
Package netgraph assembles a pin-level netlist from schematic geometry.
Package netgraph assembles a pin-level netlist from schematic geometry.
opscmd
Package opscmd holds the operational subcommands every agni binary carries, `version` and `healthcheck`, so agni and agnids report their build and answer a container's probe the same way rather than each keeping a copy (C33, agni issue 744).
Package opscmd holds the operational subcommands every agni binary carries, `version` and `healthcheck`, so agni and agnids report their build and answer a container's probe the same way rather than each keeping a copy (C33, agni issue 744).
paramclient
Package paramclient reaches a published PartSpec corpus over the contract's PartSpecService, as a param.Fetcher (agni issue 749).
Package paramclient reaches a published PartSpec corpus over the contract's PartSpecService, as a param.Fetcher (agni issue 749).
projects
Package projects is the filesystem-backed implementation of service.ProjectStore.
Package projects is the filesystem-backed implementation of service.ProjectStore.
records
Package records keeps the small records a server writes under --store (agni issue 1733).
Package records keeps the small records a server writes under --store (agni issue 1733).
records/gaerecords
Package gaerecords keeps a server's records in Google Cloud Datastore, or Firestore in Datastore mode, for `--store datastore://` (agni issue 1733).
Package gaerecords keeps a server's records in Google Cloud Datastore, or Firestore in Datastore mode, for `--store datastore://` (agni issue 1733).
records/recordstest
Package recordstest runs a records.Store through its contract, and picks the backend a store's own tests run against.
Package recordstest runs a records.Store through its contract, and picks the backend a store's own tests run against.
records/sqlrecords
Package sqlrecords keeps a server's records in a SQL database through GORM, for `--store sqlite://` and `--store postgres://` (agni issue 1733).
Package sqlrecords keeps a server's records in a SQL database through GORM, for `--store sqlite://` and `--store postgres://` (agni issue 1733).
refdes
Package refdes holds what a reference designator MEANS, for the layers that have to agree on it.
Package refdes holds what a reference designator MEANS, for the layers that have to agree on it.
server
Package server is the Connect translation layer over the transport-neutral service implementations (CONSTRAINTS C13), with one adapter per service and each method a pure unwrap/call/wrap plus the sentinel-to-code mapping in toConnectErr.
Package server is the Connect translation layer over the transport-neutral service implementations (CONSTRAINTS C13), with one adapter per service and each method a pure unwrap/call/wrap plus the sentinel-to-code mapping in toConnectErr.
sexpr
Package sexpr is the shared s-expression parser for the format readers (KiCad, EDIF) and the coverage census.
Package sexpr is the shared s-expression parser for the format readers (KiCad, EDIF) and the coverage census.
storeurl
Package storeurl reads the --store and --uploads URLs that agni serve, agnids and `agni token` share (agni issues 1732, 1733, 1739, 1735).
Package storeurl reads the --store and --uploads URLs that agni serve, agnids and `agni token` share (agni issues 1732, 1733, 1739, 1735).
symread
Package symread is the shared netlist-tier logic of the symbol-file schematic readers (xschem, gEDA gschem, and any future dialect such as Lepton EDA).
Package symread is the shared netlist-tier logic of the symbol-file schematic readers (xschem, gEDA gschem, and any future dialect such as Lepton EDA).
teamca
Package teamca lets the agni CLI trust a team's own certificate authority (agni issue 1800).
Package teamca lets the agni CLI trust a team's own certificate authority (agni issue 1800).
version
Package version reports the engine build's identity, so an artifact the engine writes can name what produced it.
Package version reports the engine build's identity, so an artifact the engine writes can name what produced it.
viewerrooms
Package viewerrooms lets an agent drive a viewer tab that the reader has open (agni issue 1154).
Package viewerrooms lets an agent drive a viewer tab that the reader has open (agni issue 1154).
wasmengine
Package wasmengine composes the services the browser engine serves (agni issue 178).
Package wasmengine composes the services the browser engine serves (agni issue 178).
webbundle
Package webbundle finds the viewer for an agni binary that runs outside a checkout (agni WS16-003).
Package webbundle finds the viewer for an agni binary that runs outside a checkout (agni WS16-003).
yamlpb
Package yamlpb binds a YAML document to a protobuf message.
Package yamlpb binds a YAML document to a protobuf message.
Package mountset is the set of mounts an agni server or CLI serves, over goapplib storage's mounts registry (agni issue 1759).
Package mountset is the set of mounts an agni server or CLI serves, over goapplib storage's mounts registry (agni issue 1759).
readers
allegro
Package allegro reads a Cadence Allegro board database, a binary `.brd`, into the neutral IR and the board geometry sidecar.
Package allegro reads a Cadence Allegro board database, a binary `.brd`, into the neutral IR and the board geometry sidecar.
altium
Package altium reads an Altium Designer board, a binary .PcbDoc, into the neutral IR and the board geometry sidecar.
Package altium reads an Altium Designer board, a binary .PcbDoc, into the neutral IR and the board geometry sidecar.
edif
Package edif parses EDIF 2.0.0 netlists into the agni IR.
Package edif parses EDIF 2.0.0 netlists into the agni IR.
formats
Package formats is the single registry of design-file formats the engine reads.
Package formats is the single registry of design-file formats the engine reads.
geda
Package geda reads gEDA gschem schematic (.sch) and symbol (.sym) files into the agni IR.
Package geda reads gEDA gschem schematic (.sch) and symbol (.sym) files into the agni IR.
gltf
Package gltf reads a glTF 2.0 model's triangles and colours (agni issues 1687 and 1652).
Package gltf reads a glTF 2.0 model's triangles and colours (agni issues 1687 and 1652).
ipc2581
Package ipc2581 reads IPC-2581 (revision A/B/C) interchange XML into the neutral IR (agni.v1.ir).
Package ipc2581 reads IPC-2581 (revision A/B/C) interchange XML into the neutral IR (agni.v1.ir).
kicad
Package kicad reads KiCad s-expression files (.kicad_pcb, .kicad_sch) into the neutral IR (agni.v1.ir).
Package kicad reads KiCad s-expression files (.kicad_pcb, .kicad_sch) into the neutral IR (agni.v1.ir).
odb
Package odb reads an ODB++ job into the neutral IR (agni.v1.ir) and the board-geometry sidecar (agni.v1.geom).
Package odb reads an ODB++ job into the neutral IR (agni.v1.ir) and the board-geometry sidecar (agni.v1.geom).
orcad
Package orcad reads an OrCAD Capture design (.DSN) into the neutral IR.
Package orcad reads an OrCAD Capture design (.DSN) into the neutral IR.
step
Package step reads where a STEP model's shape reaches, without tessellating it (agni 1652).
Package step reads where a STEP model's shape reaches, without tessellating it (agni 1652).
telesis
Package telesis reads the flat Telesis netlist (`.tel`) that the Mentor/Siemens schematic flow emits into the neutral IR.
Package telesis reads the flat Telesis netlist (`.tel`) that the Mentor/Siemens schematic flow emits into the neutral IR.
wrl
Package wrl reads a VRML97 (.wrl) model's triangles and colours (agni issue 1652).
Package wrl reads a VRML97 (.wrl) model's triangles and colours (agni issue 1652).
xschem
Package xschem reads xschem schematic (.sch) and symbol (.sym) files into the agni IR.
Package xschem reads xschem schematic (.sch) and symbol (.sym) files into the agni IR.
Package service holds the importable, transport-neutral service implementations (CONSTRAINTS C13).
Package service holds the importable, transport-neutral service implementations (CONSTRAINTS C13).
stdlib
lib
Package lib is the shipped library of derived relations.
Package lib is the shipped library of derived relations.
profiles
Package profiles turns a declarative interface definition into check rules (WS3-034).
Package profiles turns a declarative interface definition into check rules (WS3-034).
relations
Package relations is the standard EDB relation catalog.
Package relations is the standard EDB relation catalog.
reviewquery
Package reviewquery registers the datalog engine as the compiler for a review manifest's inline query bindings.
Package reviewquery registers the datalog engine as the compiler for a review manifest's inline query bindings.
ruledef
Package ruledef reads and writes rule DEFINITIONS (WS3-103).
Package ruledef reads and writes rule DEFINITIONS (WS3-103).
rules/builtin
Package builtin is the standard EE rule catalog.
Package builtin is the standard EE rule catalog.
rules/datalog
Package datalog holds check rules authored as datalog queries (via query.RuleFromQuery, WS3-038) rather than as Go or Spec.
Package datalog holds check rules authored as datalog queries (via query.RuleFromQuery, WS3-038) rather than as Go or Spec.
rules/intent
Package intent checks a loaded design against a DESIGN-INTENT declaration, an authored statement of what a design is SUPPOSED to contain.
Package intent checks a loaded design against a DESIGN-INTENT declaration, an authored statement of what a design is SUPPOSED to contain.
tools
catalogdocs command
Command catalogdocs generates the docsite's rule and relation catalog (issue 14) from the composed engine catalog and the embedded per-rule and per-relation Detail markdown.
Command catalogdocs generates the docsite's rule and relation catalog (issue 14) from the composed engine catalog and the embedded per-rule and per-relation Detail markdown.
clientexercise command
Command clientexercise is mission #1625's exercise, `make exercise-clients` (agni issue 1628).
Command clientexercise is mission #1625's exercise, `make exercise-clients` (agni issue 1628).
coldparse command
coldparse times the first board read of fresh `agni serve` processes (agni issue 1531).
coldparse times the first board read of fresh `agni serve` processes (agni issue 1531).
fakegithub command
Command fakegithub serves goapplib's fake GitHub for the browser walk that links a design from a repo (agni issue 1727).
Command fakegithub serves goapplib's fake GitHub for the browser walk that links a design from a repo (agni issue 1727).
kicadcut command
Command kicadcut cuts a hierarchical KiCad project down to a few parts, for a fixture that keeps a real board's drawing and copper without its size (agni issue 1323).
Command kicadcut cuts a hierarchical KiCad project down to a few parts, for a fixture that keeps a real board's drawing and copper without its size (agni issue 1323).
wasmbench command
Command wasmbench measures the engine the browser runs, natively, over one board (agni issue 852).
Command wasmbench measures the engine the browser runs, natively, over one board (agni issue 852).
Package web embeds the viewer's built assets in a release binary (agni WS16-003).
Package web embeds the viewer's built assets in a release binary (agni WS16-003).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL