ES
AI & Agent-First EcosystemMCP · Graph · Sandbox

Inspect and edit a Wysna project

Query the semantic graph, inspect symbols, and verify Wysna patches.

Run the following commands from a checkout of the Wysna 1.1.0 source. The example checks a controller, service, and repository.

Terminal window
wysna graph --manifest examples/architecture/wysna.toml --role Repository --output-format=json-v1
wysna inspect examples/architecture/src/main.wysna --symbols InvoiceController,InvoiceService --with-deps --max-bytes 2048 --output-format=json-v1

The role query returns classes in the selected target. Batch inspection shares a 2,048-byte context budget across both symbols. Consult the agent guide for resumable excerpts and qualified symbol IDs.

Use a workspace edit request in edits.json. Preview first. Set PLAN_HASH to result.plan_hash from the successful preview before applying. Run project tests separately when the project defines them.

Terminal window
wysna patch --manifest examples/architecture/wysna.toml --edits edits.json --output-format=json-v1
wysna patch --manifest examples/architecture/wysna.toml --edits edits.json --expect-plan-hash "$PLAN_HASH" --apply --output-format=json-v1
Terminal window
wysna project check --manifest examples/architecture/wysna.toml --output-format=json-v1

W6101 identifies a verified forbidden dependency. W6102 means a configured rule could not be verified. The report includes the rule ID and diagnostic facts. Architecture contracts.