Wiki / Project

Contributing#

PortCode is a Rust workspace. This page is the short version; AGENTS.md in the repository is the full guide for people and agents.

Layers#

evidence (L0) → port, llm (L1) → agent (L2) → cli (L3)

Lower layers never import higher ones. See Architecture.

Rules that matter#

Before you push#

cargo fmt --all && cargo clippy --workspace --all-targets && cargo test --workspace

If you changed how output is drawn, rerun scripts/make_screenshots.sh and examples/wordstat/demo.sh. If you changed the docs, rerun scripts/build_site.sh.

Where the docs come from#

The wiki pages are Markdown in wiki/ (and a few in docs/). scripts/build_wiki.py turns them into docs/wiki/. The slash-command table, the tool table and the command-line page are generated from the code, so they stay correct. Do not edit the generated HTML.

Releases#

Pushing a v* tag runs the release workflow, which builds the four archives with checksums and publishes them. install.sh must keep verifying sha256; test it with PORTCODE_DOWNLOAD_URL against a local packaging/package.sh archive.

Edit this page on GitHub