agentleFS
codecoradevcodecoradev/uteke/AGENTS.md

uteke

AGENTS.md294 starsChanged 4 days agoApache-2.0View on GitHub

Uteke — local-first memory engine for AI agents. Rust workspace: uteke-privacy (secret detector, regex only, shared with tole), uteke-core (engine), uteke-cli, uteke-server, uteke-mcp, docgen. - Every new session/round: read & understand the team knowledge rooms (codecora-workflow-standard, uteke-conventions) before doing any work. - Save every decision or important outcome back to the responsible room (this repo: uteke) during or at the end of the session. - Handing over mid-task: leave a [HANDOFF] entry (current state, next step, blockers). - Rust (workspace,…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every new session/round: read & understand the team knowledge rooms (codecora-workflow-standard, uteke-conventions) before doing any work.

    line 11
  2. Distinctive:

    Message & PR standard: keep commit messages, PR titles/bodies, comments and release notes clean — no third-party trailers, no …

    line 26
  3. Distinctive:

    CI is green + Cora bot clean: before merge; never trust one gate alone.

    line 43
  4. Very specific:

    Tag only after the merge: Verify origin/main is the merge commit and its tree equals develop, then create an ANNOTATED tag on that commit …

    line 105
  5. Very specific:

    Read it before touching any HTTP/MCP/CLI surface: uteke doc get kontrak-core-cloud (children: uteke doc get …

    line 148
  6. Very specific:

    Standard: read Uteke room uteke-conventions (namespace important.

    line 171
  7. Distinctive:

    Do not write what git, the issue tracker or this file already record (diffs, PR bodies, logs).

    line 202

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — uteke

Project

Uteke — local-first memory engine for AI agents. Rust workspace: uteke-privacy (secret detector, regex only, shared with tole), uteke-core (engine), uteke-cli, uteke-server, uteke-mcp, docgen.

Session start (continuity ritual)

  • Every new session/round: read & understand the team knowledge rooms (codecora-workflow-standard, uteke-conventions) before doing any work.
  • Save every decision or important outcome back to the responsible room (this repo: uteke) during or at the end of the session.
  • Handing over mid-task: leave a [HANDOFF] entry (current state, next step, blockers).

Stack

  • Rust (workspace, single version in root Cargo.toml)
  • Storage: SQLite (rusqlite bundled) + dual-engine vector index
  • Vector engines: usearch (default, C++ FFI) OR vecq (quantized, zero C++ dep) — runtime-selected via UTEKE_VECTOR_BACKEND env or [vector] backend in uteke.toml (#1168)
  • Embeddings: EmbeddingGemma Q4 ONNX (default) / OpenAI / Ollama
  • Package manager: BUN for any JS/tooling (not npm). Rust uses cargo.
  • Git author: email MUST be ajianaz@users.noreply.github.com
  • Message & PR standard: keep commit messages, PR titles/bodies, comments and release notes clean — no third-party trailers, no generated-with lines (ecosystem message standard; enforced by tooling). See the team knowledge rooms.

Branch & release rules (STANDARD — applies to all CodeCora repos)

  • Branches: develop = integration, main = release (tags cut from main).
  • Branch naming: feat/, fix/, docs/, chore/, perf/, security/, refactor/, test/, build/, ci/. release/x and bare names are rejected.
  • main only accepts PRs from develop or chore/release-* (Source Branch check).
  • No main→develop sync PR. The repository rejects merge commits and main only receives squash commits, so main never becomes an ancestor of develop through a PR (a squash/rebase merge drops the -s ours merge and changes nothing, #1381). The divergence is resolved inside each release branch instead — see "Release procedure" below. Skipping that makes the develop→main PR conflict in ~30 files (merge-base stays at v0.13.2).
  • PR body: ## What / ## Why / ## Testing headers are REQUIRED (CI enforces).
  • CI is green + Cora bot clean before merge; never trust one gate alone. "Clean" means a REAL verdict ("✅ No issues found" or concrete findings): "Review could not complete" / "empty result" is a blocker. Since #1386 the Cora job diffs against the PR's own base branch (base-branch: origin/${{ github.base_ref }}); before that it defaulted to origin/develop, so PRs into main were reviewed against an empty diff. Re-run the job once; if it is still empty, investigate instead of accepting.
  • Version: single workspace version in root Cargo.toml; internal deps (uteke-privacy/ uteke-core/uteke-mcp) must be bumped to the same version in the release commit.
  • docs/api-reference.md is GENERATED (cargo run -p docgen) — never hand-edit.

Release procedure (develop → main)

  1. Pre-flight. The owner approves the version number: propose minor vs patch with the rationale and wait (never decide and tag in the same run). Check the CORE contract: every CORE behaviour change in the release needs a uteke-cloud contract issue, and its answer should be read first. Run the pre-release mutation gate (owner rule 2026-08-19, local only; the CI workflow only triggers on develop* head branches, so release PRs never run it) against the code changed since the previous release: git diff vPREV..develop -- crates/uteke-core crates/uteke-privacy > /tmp/rel.diff then cargo mutants -p uteke-core -p uteke-privacy --in-diff /tmp/rel.diff -j 2 --timeout 120 (the secret detector moved to uteke-privacy in #1732, so its diff is in scope) (install with cargo install cargo-mutants --locked; check df -h first). Measured on v0.20.0..develop: 38 mutants, about 5 minutes. A missed mutant in changed code gets a killing test (exact-value assertions); a miss only reachable by tests that need the ONNX runtime (absent in CI) is listed in the release PR. The full crate (cargo mutants -p uteke-core -j 2, 2058 mutants, an estimated 8 hours, not measured) is optional. If the owner explicitly releases without the gate, say so in the PR body.
  2. Release-prep PR into develop (chore(release): vX.Y.Z - version bump, changelog, docs sync): workspace Cargo.toml, the internal deps in the four crates (uteke-core on uteke-privacy; cli, mcp and server on uteke-core/mcp), Cargo.lock, both READMEs' version line, the version line of both skill copies (.agents/skills/uteke-memory/SKILL.md and crates/uteke-cli/assets/uteke-memory-skill.md, enforced by tests), docs/core-contract.json (regenerate with cargo run -p docgen), the version in server.json and gemini-extension.json (both enforced by registry_manifests_match_workspace_version; server.json is the MCP Registry entry app.uteke/uteke-memory; the MCP Registry workflow publishes it on the tag with mcp-publisher login dns (domain uteke.app, key in the repository secret MCP_DNS_PRIVATE_KEY_HEX, since #1802) and fails if the secret is empty or the version does not match the tag; the old io.github.codecoradev/uteke entry is deprecated by hand with the MCP Registry Deprecate Legacy Entry workflow), the version in docs/install.md and docs/docker.md, and the CHANGELOG entry (the new [X.Y.Z] section goes under an empty [Unreleased]; a schema bump needs a rollback note in its upgrade notes, since an older binary refuses the newer schema). Merge it with the normal merge gate.
  3. Release branch. git checkout -b chore/release-vX.Y.Z-main origin/develop, then merge main keeping develop's side. First prove main has no content develop lacks: git diff <develop's previous release commit> origin/main is empty and git diff --name-status origin/develop origin/main | awk '$1=="A"' lists nothing. Then git merge -s ours origin/main and check git diff origin/develop HEAD is empty (in a shallow clone git says "unrelated histories": git fetch --unshallow first). If main DOES carry unique content, resolve by hand instead (never server-side: protected branch). Push the branch.
  4. PR into main (chore: release vX.Y.Z to main), squash merge (the ruleset rejects merge commits). Apply the full merge gate; do not accept an empty Cora result without a written justification on the PR. This is the first review that sees the whole release, so it can block with real findings (v0.24.2 got one valid privacy finding and one the registry run refuted): answer each on the PR, fix what is valid through a normal PR into develop, then bring the release branch up to date with git merge origin/develop (no force-push) and re-run the gate.
  5. Tag only after the merge. Verify origin/main is the merge commit and its tree equals develop, then create an ANNOTATED tag on that commit (git tag -a vX.Y.Z <sha>) and push it; pushing a v* tag needs the Admin role (an agent session gets HTTP 403, so the owner pushes it). Tagging before the merge once pointed the tag at the previous release (v0.15.0). The Release workflow takes ~35 min (the legacy-ORT build is the long pole) and publishes GitHub assets, crates.io (uteke-privacy, uteke-core, uteke-mcp, uteke-cli, uteke-server, in dependency order), Docker tags and opens the Homebrew tap PR.
  6. Check the signature (no manual signing). The Release workflow signs checksums-sha256.txt keyless with cosign and publishes checksums-sha256.txt.bundle; uteke upgrade verifies that bundle itself (#1610), so nothing is signed by hand any more. After the workflow is green, confirm the release carries the bundle and that it verifies: cosign verify-blob --bundle checksums-sha256.txt.bundle --certificate-identity https://github.com/codecoradev/uteke/.github/workflows/release.yml@refs/tags/vX.Y.Z --certificate-oidc-issuer https://token.actions.githubusercontent.com checksums-sha256.txt. The control behind it is the release-tags-protected ruleset on v* tags (creation, update and deletion restricted, bypass for the Admin role only): tag with your own admin account, never loosen the ruleset, and treat adding a repository admin as a release-signing decision. The Sigstore roots are embedded in the binary (crates/uteke-cli/trust/); a root rotation needs a uteke release that carries the new root before the old one expires (Fulcio root: 2031-10-05). Builds before v0.22.1 verified an offline minisign signature and cannot upgrade to a keyless-signed release: say so in the release notes (reinstall once with brew upgrade or cargo install uteke-cli).
  7. After the tag. Merge the homebrew-tap PR the workflow opened (its title/body follow the tap's rules since #1384, and the job already re-verified every SHA256 against checksums-sha256.txt; Cora there was fixed in homebrew-tap#6), then brew update && brew upgrade codecoradev/tap/uteke. Verify crates.io and the Docker tags. There is no self-hosted production server to upgrade: the owner's agents use the Uteke Cloud MCP (owner decision 2026-11-05), and the legacy uteke.ajianaz.dev server is a read-only fallback for old memories that is not upgraded per release. Do not run uteke-mcp --version / uteke-serve --version in a shell: they start a server and hang.

CORE/LAB contract — source of truth (MUST READ before API-surface work)

Uteke OSS ships a written compatibility contract to uteke-cloud: CORE endpoints must stay semantically compatible; everything else is LAB (free to evolve, no port promise). The canonical contract (CORE/LAB lists, change-control rules, anti-drift mechanism, backlog) lives in the PROD uteke document tree kontrak-core-cloud with sub-docs 01-aturan-perubahan, 02-daftar-core, 03-daftar-lab, 04-anti-drift.

  • Read it before touching any HTTP/MCP/CLI surface: uteke doc get kontrak-core-cloud (children: uteke doc get kontrak-core-cloud/01-aturan-perubahan … /04-anti-drift).
  • Change control (LOCKED): the contract changes ONLY on an explicit owner (ajianaz) order, quoted in the parent doc's change history. Agents may draft amendment proposals as issues/room notes but must NOT edit the contract unprompted.
  • Changing CORE semantics in OSS requires a contract issue on uteke-cloud FIRST. Execution backlog: cloud #81–#85; analysis archive: cloud issue #69.
  • uteke-cloud's tracker is Gitea (codecoradev/uteke-cloud on gitea.azfirazka.com, e.g. tea issues list --login <your-gitea-login> --repo codecoradev/uteke-cloud). The GitHub repo of the same name is a stale mirror whose issue numbers do not match.

Source of truth for workflow standards

The canonical workflow SOP (merge gate, release flow, governance) lives in the uteke room codecora-workflow-standard (namespace codecora) on the shared store. This file is the repo-enforced subset — when rules disagree, the room wins, and this file gets updated in the same commit that changes the rule.

Uteke memory conventions (Uteke Conventions v1, 2026-10-07)

Standard: read Uteke room uteke-conventions (namespace important; full docs: slugs uteke-conventions and uteke-project-registry) BEFORE reading or writing any memory. Claude Code sessions write to namespace default (owner amendment 2026-10-21); older notes stay in macmini, which recall may still read, but never write there. Tag project memories project:<nama> per the registry (component + parent tags when both apply, e.g. project:samson-mobile + project:samson), plus tool:<nama> when the memory is specific to a tool. The uteke project room is uteke (namespace hermes). No tokens or credentials in memories.

Project room protocol (room uteke)

The room uteke on the shared store holds the decisions, release state and gotchas that are not in the repo. Reach it through the shared store (MCP server uteke-remote in Claude Code), not a local uteke CLI store, which is a different database. Room recall is cross-namespace, so a note written to default with room: "uteke" is found by every agent.

  • Before non-trivial work (feature, bug, refactor, release step, contract question): run uteke_room_recall on room uteke with a one-line summary of the task (limit 3 to 5), and read the documents linked to the room (uteke_room_list_documents). Treat the results as history, not fact: verify files, flags and versions against the code before relying on them.
  • After a step lands (a PR merges, a release step completes, an owner decision is made, a non-obvious bug is understood): write one note with uteke_remember, room: "uteke", the namespace from the standard above, tags project:uteke (+ tool:<nama>), and a fitting type (decision, procedure, fact, or context for a state update). Start a state update with [STATE YYYY-MM-DD] and say what is done, what is next and what waits on the owner, so the next session can pick up from it. Recall afterwards to confirm the note is found.
  • Do not write what git, the issue tracker or this file already record (diffs, PR bodies, logs); write why, what was decided and what is still open.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.