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.
Inspect symbols and roles
Section titled “Inspect symbols and roles”wysna graph --manifest examples/architecture/wysna.toml --role Repository --output-format=json-v1wysna inspect examples/architecture/src/main.wysna --symbols InvoiceController,InvoiceService --with-deps --max-bytes 2048 --output-format=json-v1The 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.
Preview a patch
Section titled “Preview a patch”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.
wysna patch --manifest examples/architecture/wysna.toml --edits edits.json --output-format=json-v1wysna patch --manifest examples/architecture/wysna.toml --edits edits.json --expect-plan-hash "$PLAN_HASH" --apply --output-format=json-v1Read architecture results
Section titled “Read architecture results”wysna project check --manifest examples/architecture/wysna.toml --output-format=json-v1W6101 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.