agentleFS
firelock-aifirelock-ai/kin/AGENTS.md

kin

AGENTS.md68 starsChanged 49 days agoApache-2.0Archived repositoryView on GitHub

kin is the semantic system of record: repository format, CLI, daemon, MCP server, projections, reconcile, review, provenance, execution, and the bundled crates and packages under crates/ and packages/. Work belongs here when it changes local semantic repository truth, projections or reconcile, CLI, daemon or MCP behaviour, or provenance, review and execution semantics. Graph storage and retrieval live in the bundled crates/kin-db. Hosted collaboration lives in kinlab. Runtime query paths answer from the graph. They never grep, walk or rank raw…

1 other project uses a version of this.

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. kinlab-ai/kin★ 68100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • 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 33,398 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

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    When the Kin MCP server is available, use it to read this repository.

    line 19
  2. Very specific:

    Run targeted crate tests for a behaviour change, and leave the full-workspace run to CI.

    line 41
  3. Distinctive:

    Keep every tracked path a regular file.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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

kin

kin is the semantic system of record: repository format, CLI, daemon, MCP server, projections, reconcile, review, provenance, execution, and the bundled crates and packages under crates/ and packages/. Work belongs here when it changes local semantic repository truth, projections or reconcile, CLI, daemon or MCP behaviour, or provenance, review and execution semantics. Graph storage and retrieval live in the bundled crates/kin-db. Hosted collaboration lives in kinlab.

The graph is the authority

Runtime query paths answer from the graph. They never grep, walk or rank raw filesystem contents, and scripts/zero_file_search_guard.sh and scripts/check-io-lint.py enforce that. The second finds raw filesystem and process calls by name resolution and holds them to scripts/io-lint/allowed-sites.txt. New boundary code takes its access from the kin-io crate's capabilities. When the graph cannot produce an answer, return an error or report the gap rather than falling back to raw file search. Ingestion, import, reconcile, migration, projection, config and test IO may read files as explicit boundaries.

When the Kin MCP server is available, use it to read this repository. Find an entity with locate, by its name or by the behaviour, then take context on the best hit, and refs or impact before changing shared code. Read _kin.verdict and _kin.meaning on every answer: an empty result proves an absence only when the verdict is complete. docs/gemini-extension-context.md is the full tool guide, and the Gemini CLI extension loads it as context.

Checks

CI runs these, and .github/workflows/ci.yml holds the current flags and the jobs that apply to a change:

cargo fmt -- --check
cargo clippy --all-targets --all-features -- <the allow list ci.yml assembles>
cargo nextest run --locked --partition count:<n>/3   # three shards
cargo test --doc --locked                            # nextest does not run doctests
python3 scripts/check-quarantine.py
bash scripts/zero_file_search_guard.sh
python3 scripts/check-io-lint.py                     # after clippy; needs the toolchain

Run targeted crate tests for a behaviour change, and leave the full-workspace run to CI. Set KIN_EMBED_BACKEND=cpu for any gate. The default, auto, batches on the host's single Metal device, and concurrent gates that share it fail on host load rather than on their diff. CPU and Metal differ in the last ULPs of every vector, so a citable release-clean result never sets it.

Keep every tracked path a regular file. The release image promotion archives this source, and its bundle validator refuses any non-regular entry, including a symlink.

Non-obvious behaviours

Acceptance grades main, not your pull request. The Product Acceptance job in .github/workflows/acceptance.yml carries if: ${{ github.event_name != 'pull_request' }}, so it reports skipped on every PR. Main's own push run is the only grader, and a red one stops any release cut.

The daemon's default port is 4219 (crates/kin-daemon/src/bin/kin-daemon.rs), and a running daemon records the port it actually took in <kin_root>/daemon.port. A test that binds 4219 fails exactly like a real regression when a container or a stray daemon already holds the port, so read lsof -nP -iTCP:4219 -sTCP:LISTEN before believing a bind failure.

kin init exits 7 on a store that is fine. EXIT_ENRICHMENT_UNATTESTED in crates/kin-cli/src/commands/init.rs says the store is real, publishable and answering, and only that nobody can attest its enrichment finished, because a daemon was killed on the way. exit_code_for returns it whenever a daemon kill record exists for the store. Exit 8 is the same shape for a reopen-acceleration section that did not persist. Neither is a failed conversion, and neither is 1.

Register the MCP server by absolute path, never as a bare kin. The command is kin mcp start [--repo <path>], and the repository also resolves from KIN_MCP_REPO, then the working directory, then the client's workspace roots. A bare kin resolves against the caller's PATH, which inside a container carries neither ~/.kin/bin nor an npm prefix.

Trace response limits page the answer. Send its next_cursor back as cursor, alone or with a new byte budget, or pass kin trace --cursor. A cursor is a handle on the frozen answer, so a continuation need not repeat the query, and one that names its target must repeat the whole query. find_references and impact_analysis pages work the same way, and so does a machine semantic_locate answer too large for its budget, whose last page hands back the ranking's own next_cursor among its readings. Preserve absolute hop/parent ids across pages. An oversized semantic field uses record_fragment; concatenate its UTF-8 fragments before reading that field. A partial page never proves absence, and a stale/evicted cursor requires a fresh query. Source bodies and safety readings remain semantic records, never files.

The release version lives in several files at once. scripts/release-intent.mjs and scripts/check-release-version.mjs keep them in lockstep. The Release version gate job runs them on pull requests from automation/release-next or labelled release:automated, and an ordinary pull request is not graded by it. Its classifyPath treats .github/, docs/, AGENTS.md, any markdown, and anything under a test or fixture directory as non-release, so a docs-only change needs no version bump.

Landing

kin lands through a squash merge queue. Pull requests, export pull requests included, run a light admission set, and the queue runs the full CI, Acceptance, SAST, secret scan and RC Build on the exact commit that lands. Fourteen required contexts on main, read from /repos/kinlab-ai/kin/rules/branches/main: DCO Sign-off, PR text hygiene, cargo-deny, gitleaks (full history), Fast gate lint and policy, Fast gate build and tests, MCP surface contract, Check & Test (ubuntu-latest), Check & Test (macos-latest), Falsify guards, Feature permutation tests (ubuntu-latest), Feature permutation tests (macos-latest), Windows installer + vector release build and Product Acceptance. Commit with git commit -s, and keep assistant-session traces out of the PR title and body, which PR text hygiene refuses.

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.