# Camlet Camlet is a correctness-, automation-, and interoperability-oriented command-line client for Tangled. It is designed for humans, scripts, and coding agents working across Tangled, Radicle, Git, Jujutsu, and optional downstream forge mirrors. Camlet is experimental. It prioritizes protocol-correct repository context, explicit authority and consistency semantics, stable machine output, and safe multi-forge coordination. ## Available commands The available command surface is: ```console camlet version camlet version --json camlet context camlet context --json camlet context --repo PATH camlet repo view camlet repo view --json camlet repo view did:plc:... camlet repo view --repo PATH camlet repo list camlet repo list --json camlet repo list did:plc:... camlet repo list --repo PATH camlet issue list camlet issue list --json camlet issue list did:plc:... camlet issue list --repo PATH camlet issue list --state open camlet issue view at://did:plc:.../sh.tangled.repo.issue/... camlet issue view --json at://did:plc:.../sh.tangled.repo.issue/... ``` `-j` is the short form of `--json`. Commands that accept a local repository path also accept `-C PATH` as the short form of `--repo PATH`. `camlet context` works offline. It inspects Git and, when present, Jujutsu; recognizes Tangled and Radicle repository identities from configured remotes; and compares Git `HEAD` with existing local tracking refs. It does not fetch, contact a forge, or claim that its observations reflect current remote state. Colocated Jujutsu workspaces with a detached Git `HEAD` are supported: Camlet reports the Jujutsu change and bookmarks, retains recognized forge identities, and marks branch-specific tracking observations incomplete. `camlet repo view` resolves a `did:plc` repository through the fixed PLC directory, asks the declared knot for the current owner and record key, and reads the matching public repository record from the owner's PDS. With no explicit DID it discovers a unique Tangled repository DID from local Git remotes. The command does not depend on Bobbin index coverage and rejects inconsistent identities or service authorities instead of returning partial metadata. `camlet repo list` follows an owner's PDS pagination for `sh.tangled.repo` records and verifies every repository against its DID-bound knot before returning a result. The positional DID identifies the owner; with no explicit owner the command discovers it from a local Tangled repository. Bobbin is not consulted because its per-owner index can be incomplete even when it reports ready. Pagination is complete but non-atomic: the owner's repository can change while pages and repository identities are being verified. `camlet issue list` reads repository-scoped issue observations from Bobbin. It follows every supported cursor, brackets the traversal with index-coverage observations, and labels the result as aggregated, non-atomic, and non-authoritative for absence. With no explicit repository DID it discovers one from local Tangled remotes. An empty result means that Bobbin returned no indexed observations; it does not prove that no issue records exist. `camlet issue view` reads the current issue record from its author's PDS, verifies the repository identity, and then follows Bobbin's complete state and comment pagination. State records that may control the issue and every returned comment are checked against their source-author PDS. Related records remain index-limited and the combined observation is non-atomic; an empty comment set does not prove that no comments exist. See [ROADMAP.md](ROADMAP.md) for delivery phases and [docs/design/high-level-design.md](docs/design/high-level-design.md) for the intended system. ## Development Enter the pinned Nix environment: ```console nix develop ``` The default shell contains the pinned compiler, build system, formatter, and project dependencies. `nix develop .#full` adds the language server and API documentation generator. See [docs/development.md](docs/development.md) for toolchain and package-metadata details. Build the reproducible package and run its installed executable: ```console nix build ./result/bin/camlet version ``` For a faster incremental development build inside `nix develop`: ```console dune build @install ./_build/install/default/bin/camlet context ``` Run the complete repository gate before presenting a change as complete: ```console scripts/check ``` Camlet uses Tangled for repository hosting and pull-based collaboration, with Radicle providing sovereign replication and patch continuity. GitHub may be configured as a downstream mirror. ## License Camlet is licensed under the [Apache License 2.0](LICENSE). ## Project surfaces - Tangled: [dc-tec.tngl.sh/camlet](https://tangled.org/dc-tec.tngl.sh/camlet) - Radicle: `rad:z2Xvmqh4146DHcGgmTCZ645qhvqnA` - GitHub: not configured