osaurus
AGENTS.md8k starsChanged 3 months agoMITView on GitHub
See ~/AGENTS.md for the global Codex environment, wiki protocol, hard rules, machine context, and useful commands. Running tests and builds is encouraged — they're how we keep quality high. The canonical lanes live in Makefile: - make test — swift test --package-path Packages/OsaurusCore (fast unit loop). - make ci-test — mirrors the CI test-core xcodebuild job (xcbeautify output, xcresult bundle at build/Tests.xcresult). - make cli / make app — build the CLI and the embedded app via xcodebuild against osaurus.xcworkspace.…
Trending
Quiet since September.about the whole repository
Who's talking about osaurus-ai/osaurus
- @osaurus.ai“You've been renting your AI. This is what owning it looks like. Local model. No account. No API key. Free. …”Bluesky · Jul 4, 2026 · 34 likes
- @osaurus.ai“Most Macs have 8 or 16GB. Model releases pretend they don't. Raptor 0.5: a local agent model built for the …”Bluesky · Sep 3, 2026 · 16 likes
- @osaurus.ai“Qwen3.8 27B, hours after the weights dropped: writing and testing its own code, fully local on a Mac. Pure …”Bluesky · Aug 14, 2026 · 9 likes
- @osaurus.ai“Osaurus now has an Orchestrator. Talk to it and it configures the app, creates agents, and schedules work. …”Bluesky · Aug 28, 2026 · 6 likes
- @osaurus.ai“Your chats shouldn't start from zero. Projects are live in Osaurus. Related chats share one set of …”Bluesky · Aug 19, 2026 · 5 likes
The biggest 5 of 17 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 17
Talked about on Bluesky and GitHub (17 times).
On Bluesky · 11
- Jul 4, 2026You've been renting your AI. This is what owning it looks like. Local model. No account. No API key. Free. Open source. No Electron.… — @osaurus.ai34 likes and reposts · 1 reply
- Sep 3, 2026Most Macs have 8 or 16GB. Model releases pretend they don't. Raptor 0.5: a local agent model built for the Macs everyone actually owns. 8B… — @osaurus.ai16 likes and reposts
- Aug 14, 2026Qwen3.8 27B, hours after the weights dropped: writing and testing its own code, fully local on a Mac. Pure Swift. No Electron. No cloud… — @osaurus.aisays it tested it9 likes and reposts · 2 replies
- Aug 28, 2026Osaurus now has an Orchestrator. Talk to it and it configures the app, creates agents, and schedules work. Every change shows an approval… — @osaurus.ai6 likes and reposts
- Aug 19, 2026Your chats shouldn't start from zero. Projects are live in Osaurus. Related chats share one set of instructions, knowledge, and memory.… — @osaurus.ai5 likes and reposts
6 more on Bluesky
- Jul 12, 2026We're launching on Product Hunt this Monday. 7K+ GitHub stars. 175K+ downloads. Zero ads. All word of mouth. Monday we find out how far a… — @osaurus.ai5 likes and reposts · 1 reply
- Jul 24, 2026A 9B model just checked my Amazon shopping cart. Opened a real browser. Signed in. Read the page. Reported back. Running locally on a Mac.… — @osaurus.ai3 likes and reposts
- Jul 20, 2026Osaurus is free forever and fully open source. MIT licensed. — @osaurus.ai3 likes and reposts
- Aug 4, 2026Osaurus can now import your chat history from ChatGPT, Claude, Grok, Gemini, and Open WebUI. Export from the app, drop the file in,… — @osaurus.ai2 likes and reposts
- Jul 28, 2026Every bot in your Slack runs on someone else's GPUs. This one runs on my Mac. Ornith 1.0 9B, open weights, answering a mention in our team… — @osaurus.ai2 likes and reposts
- Aug 5, 2026公式READMEを開くと、OsaurusはMac上のAIハーネス。ローカルモデルなら完全オフラインで動く一方、必要ならクラウドモデルにも接続できる設計です。 https://github.com/osaurus-ai/osaurus… — @mint-echosphere.bsky.social0 likes and reposts · 1 reply
On GitHub · 6
- Sep 29, 2026Validate prepared logits and propagate preparation failures — osaurus-ai/vmlx-swift0 reactions · 6 comments
- Sep 28, 2026Improve gathered Metal matmul and fix dynamic batch and media cache boundaries — osaurus-ai/vmlx-swift0 reactions · 1 comment
- Sep 14, 2026Integrate MLX 0.32.2 with fork-safe JANG and runtime lifetimes — osaurus-ai/vmlx-swift0 reactions · 3 comments
- Jul 21, 2026Add native Nemotron Audex 2B and 30B audio runtimes — osaurus-ai/vmlx-swift0 reactions · 3 comments
- May 27, 2026feat(model-browser): add Newest / Oldest sort options (upstream #1269) — therahul-yo/osaurus0 reactions · 1 comment
1 more on GitHub
- Mar 5, 2026Add qwen3_5_text model type support — ml-explore/mlx-swift-lm0 reactions
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository2 other files it gives its agents.
- .cursor/rules/settings-catalog.mdcCursor rule
- .cursor/rules/testing-workflow.mdcCursor rule
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Add or update the row in Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift: id, tab, section, exact UI title, …
- Very specific: line 59
Put the same id on the control (settingsLandingAnchor / anchorId) so search scrolls and glows.
- Very specific: line 61
Update Packages/OsaurusCore/Resources/Guide/guide-settings.md (and any topic that names the old path).
- Very specific: line 64
Add the on-screen label to Packages/OsaurusCore/Tests/Configuration/SettingsSearchSelfFindProbe.swift.
- Distinctive: line 66
Do not invent a second list in the orchestrator prompt.
- Distinctive: line 97
Run the relevant focused regression suites and the applicable full OsaurusEvals lanes, including AgentLoop and AgentLoopFrontier when …
- Distinctive: line 101
If an external judge key is unavailable, preserve the raw artifacts and grade the named rows manually rather than silently omitting them.
- Distinctive: line 103
Every GitHub PR proof/status comment must include the exact tested source SHA, app/vMLX pin, model bundle and generation defaults, …
- Distinctive: line 115
Never add forced thinking tags, parser repair, hidden sampler defaults, repetition-penalty rescues, close-token bias, or prompt/template …
- Distinctive: line 118
Never add fake guards, placeholder gates, hardcoded model allowlists, synthetic output filters, or "same behavior" enforcement to make a …
- Distinctive: line 140
Every generation row must record token/s.
- Very specific: line 177
If settings conflict or do not compose for a model family, question the compatibility contract, fix the real wiring, or document the row as …
- Distinctive: line 180
Treat every implementation change as a cross-function and cross-settings compatibility change until proven otherwise.
- Very specific: line 212
Do not spawn recursive local "agent" workers, Python subagents, or delegated helper agents for Gemma/Osaurus release work unless the user …
- Distinctive: line 214
Do not use Python or shell wrappers as an orchestration layer to farm work out to Codex, Claude, local LLMs, or other helper agents.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Codex Configuration - osaurus-staging
See ~/AGENTS.md for the global Codex environment, wiki protocol, hard rules,
machine context, and useful commands.
Build & Test
Running tests and builds is encouraged — they're how we keep quality high. The
canonical lanes live in Makefile:
make test—swift test --package-path Packages/OsaurusCore(fast unit loop).make ci-test— mirrors the CItest-corexcodebuild job (xcbeautifyoutput, xcresult bundle atbuild/Tests.xcresult).make cli/make app— build the CLI and the embedded app viaxcodebuildagainstosaurus.xcworkspace.make evals/make evals-all— run OsaurusEvals suites underPackages/OsaurusEvals/Suites/*.- Live-app smoke:
scripts/live-proof/launch-keychain-free-osaurus.sh.
Keychain tip (optional)
Some tests touch Osaurus Keychain wrappers. If a test doesn't need real Keychain access, prefer running it in keychain-disabled mode to avoid unrelated "wants to use your confidential information" prompts:
OSAURUS_DISABLE_KEYCHAIN_FOR_TESTS=1 \
OSAURUS_TEST_ROOT=/tmp/osaurus-test \
OSU_MODELS_DIR=/tmp/osaurus-test-models \
make testIn that mode, Keychain wrappers should return nil / no-op on reads, writes,
and deletes rather than calling SecItemCopyMatching / SecItemAdd /
SecItemUpdate / SecItemDelete against the login Keychain.
OSU_MODELS_DIR (pointed at an empty dir) matters on machines with real
models in ~/MLXModels: dispatch-style tests start real ChatSession.send
turns, and without the override they resolve the user's installed models and
try to load them inside the SwiftPM harness — which has no Metal kernels and
dies with MLX/MLXArray.swift precondition failed. With the override those
sends fail fast with modelUnavailable, matching CI behavior. Keychain-gated
suites (e.g. PluginAgentScopingTests) still fail by design under
OSAURUS_DISABLE_KEYCHAIN_FOR_TESTS=1; run those without the flag when you
need real Keychain proof.
Settings catalog (required with every setting change)
SettingsSearchIndex is the single catalog for Management search and the
Orchestrator (osaurus_help action find). If you add, remove, rename, move,
or change the on-screen label of a user-facing setting:
- Add or update the row in
Packages/OsaurusCore/Models/Configuration/SettingsSearchIndex.swift: id, tab, section, exact UI title, keywords/aliases,subTabwhen the destination has inner nav, plusdisambiguation/declarativeSectionwhen the setting is easy to confuse or writable viaosaurus_config. - Put the same id on the control (
settingsLandingAnchor/anchorId) so search scrolls and glows. - Update
Packages/OsaurusCore/Resources/Guide/guide-settings.md(and any topic that names the old path). Do not leave stale “Settings → Chat → …” leftovers. - Add the on-screen label to
Packages/OsaurusCore/Tests/Configuration/SettingsSearchSelfFindProbe.swift. - Do not invent a second list in the orchestrator prompt. The model queries the catalog.
A control that is not in the catalog is not shipped. A guide path that disagrees with the catalog is a bug.
Osaurus Release Proof and PR Reporting
For every change that can affect a runtime, parser, tool call, agent loop, subagent/delegation path, cache, model setting, or user-facing execution lifecycle, source inspection and focused unit tests are necessary but never sufficient:
- Build a fresh isolated Release development app and exercise the real Chat and Settings UI. Click every control touched by the change, save it, navigate away and back, relaunch when persistence is part of the contract, and prove the effective request/runtime state changed. Inspect the complete turn until reasoning closes, every tool/subagent card settles, Stop disappears, input unlocks, and a follow-up turn completes.
- During a user-authorized live UI proof, when Osaurus shows its first-use permission popup for a newly exercised tool kind, choose Always Allow for that tool in the isolated test agent. Record the granted tool kind and verify the choice survives the intended follow-up/relaunch. This does not authorize unrelated macOS, browser, account, or external-service grants.
- For batching/delegation specifically, live-test the allowed agent/local/cloud target pool, add/remove/save/relaunch, target notes, permission modes, worker tools, child budgets, per-agent maximum fan-out, Server Continuous Batching, Concurrent Sessions, RAM-safety clamp/refusal, same-model batching, different-model handoff/restore, mixed local/remote fan-out, ordering, cancellation at each lifecycle phase, cache reuse, and parent continuation. A visible control or source-wired value is not proof that it is effective.
- Run the relevant focused regression suites and the applicable full OsaurusEvals lanes, including AgentLoop and AgentLoopFrontier when agent-loop behavior can change. Add efficient deterministic eval cases for new delegation, batching, parser, completion, cancellation, or cache contracts. If an external judge key is unavailable, preserve the raw artifacts and grade the named rows manually rather than silently omitting them.
- Every GitHub PR proof/status comment must include the exact tested source SHA, app/vMLX pin, model bundle and generation defaults, suite/eval names, raw scores and denominators, failed-case attribution, and paths or hashes for local evidence. Never post images to the repository. Never report only the favorable model rows or summarize a non-perfect score as passing.
- Re-run the affected full matrix after rebase, merge-conflict resolution, or
any source/config change. If any required source trace, automated score, or
live UI row is missing, report
PARTIALorBLOCKEDand do not describe the PR as fixed, proven, release-ready, or regression-free.
Model Runtime Non-Negotiables
- Never add forced thinking tags, parser repair, hidden sampler defaults, repetition-penalty rescues, close-token bias, or prompt/template coercion to make a model appear coherent.
- Never add fake guards, placeholder gates, hardcoded model allowlists,
synthetic output filters, or "same behavior" enforcement to make a runtime
row look safe. If JANG, JANGTQ, MXFP, VL/audio/video, hybrid cache, SWA,
speed, coherency, leaking tool parser output, reasoning boundaries, or RAM
policy is wrong, trace the root cause and fix the real function/path. If the
root cause is not fixed yet, document the row as
PARTIALorBLOCKEDwith exact evidence instead of forcing behavior in prompts, parsers, samplers, or UI state. - Chat/API defaults must come from the active model bundle's
generation_config.jsonor equivalent runtime config unless a user explicitly overrides them. Native-trained defaults such as top-k matter for quality and speed; do not replace them with synthetic Osaurus defaults. - Reasoning, tool, and chat-template behavior must be auto-detected from the bundle/tokenizer/template/runtime config. Do not fake thinking envelopes, strip visible output to hide parser bugs, or coerce one model family into another family's template.
- Runtime proof must separate proven, partial, failed, and unproven rows. A load-only result, single prompt, or source-only assertion is not enough to call a model family working.
- RAM proof means Activity Monitor physical footprint stays within the intended low-RAM gate. A row that reaches full model size in physical footprint is a failure even if generation is coherent.
- Every generation row must record token/s. Missing token/s is a blocked or failed row, not production proof.
- Multi-turn coherency is required: visible answer, reasoning channel behavior, no looping, no hidden reasoning-only output, no length-cap fake pass, and no raw parser marker leak.
- Reasoning fixes must preserve the model's real contract. Do not inject fake closers/openers, hide leaked reasoning markers by stripping visible text, or treat a parser cleanup as correctness unless the live output, structured reasoning field, and user-visible answer all prove the boundary is correct.
- Cache proof must match the model architecture:
- Full-attention models need real KV, prefix/paged, L2 disk, and TurboQuant KV proof when enabled.
- Qwen-style hybrid SSM needs KV plus SSM companion rederive/hit proof; a KV hit alone is not enough.
- ZAYA/CCA and HY3-style models need companion cache and pooling proof.
- DeepSeek-V4 CSA/HSA/SWA hybrid pool needs prefix/L2 plus pool restore/hit proof and must not use TurboQuant KV as a substitute.
- VL/video rows require real media payloads, media cache salts, and cache-hit validation; text-path evidence does not prove media-path correctness.
- Big-model load cancellation must be live-proven before promotion: if the user stops generation, closes chat, or exits during first load, startup must cancel and cleanup must prevent zombie loads and OOM growth.
- Qwen/JANG/JANGTQ RAM regressions require end-to-end Osaurus proof with physical footprint, stop status, cache telemetry, token/s, and visible multi-turn output before being called fixed.
- Memory limits must apply only through documented user/runtime settings and the resolved runtime plan. Do not add hidden RAM percentage blocks or fake load refusals. If a selected setting or true runtime limit prevents a load or context request, fail before unsafe MLX/Metal allocation with a clear typed API/app error that tells the user what setting or resource limit applied.
- Server settings are part of runtime proof, not a source-only contract. For
every claimed model/runtime row, verify the relevant server setting wiring
through live Osaurus panel/API state: generation defaults and overrides,
reasoning mode, tool mode, memory enablement, prefix cache, paged KV, L2 disk
cache, TurboQuant KV when applicable, media/cache settings, concurrency, and
memory-safety settings. Toggle the setting, speak to the model, and confirm
the runtime behavior, telemetry, and user-visible state changed as intended.
If settings conflict or do not compose for a model family, question the
compatibility contract, fix the real wiring, or document the row as
PARTIAL/BLOCKEDwith the exact incompatible setting combination. - Treat every implementation change as a cross-function and cross-settings compatibility change until proven otherwise. Trace every shared value from persisted global and per-agent configuration through UI editing, save and relaunch, request/schema composition, runtime admission, execution, telemetry, cancellation, and finalization. Test precedence and composition with adjacent controls (including model defaults, explicit request overrides, reasoning, tools, cache, batching, concurrency, and RAM safety) and remove duplicate, stale, or unwired consumers instead of adding a second source of truth. A direct unit test of the changed function is not sufficient when another consumer or setting can alter the effective behavior.
- For every touched or behaviorally related user setting, use the real built app to change or toggle it, save it, exercise the affected workflow, and visually inspect the complete result. Relaunch when persistence or next-load-only behavior is part of the contract. Reading a stored value, source default, or test fixture is never a substitute for this live proof.
- Tool, memory, and cache setting proof must exercise the live user flow after
the setting changes. Required tool proof includes exact tool args, tool-result
history grounding, a second tool call after history, and no parser/protocol
leakage. Memory proof, when the shipped flow exposes memory context or memory
toggles, must include multi-turn chat that depends on the memory state. Cache
proof must include baseline, changed setting, reload when next-load-only,
live chat,
/admin/cache-stats, and typed incompatibility rather than silent ignore for unsupported combinations. - For the active Gemma 4 QAT checkpoint, every OsaurusAI MXFP4 and JANG_4M bundle must prove real Osaurus tool use before harness or benchmark results are treated as meaningful. A row needs load, at least one executed tool with exact name and parseable JSON arguments, tool-result continuation, clean visible text, no protocol/reasoning/tool marker leakage, cache telemetry with paged KV off and disk/L2 behavior recorded, and a scored AgentLoop harness artifact with every failed case attributed. Decent non-perfect scores are acceptable for teammate testing only when the failures are documented; source or BF16 Gemma folders do not count for this QAT checkpoint.
- Do not spawn recursive local "agent" workers, Python subagents, or delegated helper agents for Gemma/Osaurus release work unless the user explicitly asks. Do not use Python or shell wrappers as an orchestration layer to farm work out to Codex, Claude, local LLMs, or other helper agents. Work directly in the current session, keep status artifacts current, and use normal shell, test, build, and proof commands for evidence. Python is allowed for deterministic parsing or proof harnesses, but never to recursively run another agent.
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.

