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.
- uteke-memorySkill
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
- Very specific: line 11
Every new session/round: read & understand the team knowledge rooms (codecora-workflow-standard, uteke-conventions) before doing any work.
- Distinctive: line 26
Message & PR standard: keep commit messages, PR titles/bodies, comments and release notes clean — no third-party trailers, no …
- Distinctive: line 43
CI is green + Cora bot clean: before merge; never trust one gate alone.
- Very specific: line 105
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 …
- Very specific: line 148
Read it before touching any HTTP/MCP/CLI surface: uteke doc get kontrak-core-cloud (children: uteke doc get …
- Very specific: line 171
Standard: read Uteke room uteke-conventions (namespace important.
- Distinctive: line 202
Do not write what git, the issue tracker or this file already record (diffs, PR bodies, logs).
≈ “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.
Files
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_BACKENDenv or[vector] backendin 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/xand bare names are rejected. - main only accepts PRs from
developorchore/release-*(Source Branch check). - No main→develop sync PR. The repository rejects merge commits and
mainonly receives squash commits, somainnever becomes an ancestor ofdevelopthrough a PR (a squash/rebase merge drops the-s oursmerge 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/## Testingheaders 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 toorigin/develop, so PRs intomainwere 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.mdis GENERATED (cargo run -p docgen) — never hand-edit.
Release procedure (develop → main)
- 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.diffthencargo mutants -p uteke-core -p uteke-privacy --in-diff /tmp/rel.diff -j 2 --timeout 120(the secret detector moved touteke-privacyin #1732, so its diff is in scope) (install withcargo install cargo-mutants --locked; checkdf -hfirst). 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. - Release-prep PR into
develop(chore(release): vX.Y.Z - version bump, changelog, docs sync): workspaceCargo.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.mdandcrates/uteke-cli/assets/uteke-memory-skill.md, enforced by tests),docs/core-contract.json(regenerate withcargo run -p docgen), theversioninserver.jsonandgemini-extension.json(both enforced byregistry_manifests_match_workspace_version;server.jsonis the MCP Registry entryapp.uteke/uteke-memory; theMCP Registryworkflow publishes it on the tag withmcp-publisher login dns(domainuteke.app, key in the repository secretMCP_DNS_PRIVATE_KEY_HEX, since #1802) and fails if the secret is empty or the version does not match the tag; the oldio.github.codecoradev/utekeentry is deprecated by hand with theMCP Registry Deprecate Legacy Entryworkflow), the version indocs/install.mdanddocs/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. - Release branch.
git checkout -b chore/release-vX.Y.Z-main origin/develop, then mergemainkeeping develop's side. First provemainhas no contentdeveloplacks:git diff <develop's previous release commit> origin/mainis empty andgit diff --name-status origin/develop origin/main | awk '$1=="A"'lists nothing. Thengit merge -s ours origin/mainand checkgit diff origin/develop HEADis empty (in a shallow clone git says "unrelated histories":git fetch --unshallowfirst). IfmainDOES carry unique content, resolve by hand instead (never server-side: protected branch). Push the branch. - 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 intodevelop, then bring the release branch up to date withgit merge origin/develop(no force-push) and re-run the gate. - Tag only after the merge. Verify
origin/mainis the merge commit and its tree equalsdevelop, then create an ANNOTATED tag on that commit (git tag -a vX.Y.Z <sha>) and push it; pushing av*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. - Check the signature (no manual signing). The Release workflow signs
checksums-sha256.txtkeyless with cosign and publisheschecksums-sha256.txt.bundle;uteke upgradeverifies 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 therelease-tags-protectedruleset onv*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 withbrew upgradeorcargo install uteke-cli). - 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), thenbrew 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 legacyuteke.ajianaz.devserver is a read-only fallback for old memories that is not upgraded per release. Do not runuteke-mcp --version/uteke-serve --versionin 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-cloudon 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_recallon roomutekewith a one-line summary of the task (limit3 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, tagsproject:uteke(+tool:<nama>), and a fittingtype(decision,procedure,fact, orcontextfor 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.
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
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.

