TARS
AGENTS.md38 starsChanged 11 months agoMITView on GitHub
Desktop app for managing Claude Code configuration (skills, agents, commands, hooks, MCP servers, plugins, profiles). See README for features and usage. - Frontend lives in apps/tars-desktop: bun install, then bun run tauri dev / bun run tauri build. - Debug builds (dev, cargo test) use ~/.tars-dev/ instead of ~/.tars/ (tars_core::util::DATA_DIR_NAME); never hardcode .tars. - Rust workspace: cargo build, cargo test, cargo run -p tars-cli -- scan. - tars env check|plan|import|verify|quarantine|uranus-import (tars-cli) replaced ~/bin/env2op; logic in tars_core::onepassword::{dotenv,import}. Tests that need the…
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.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Never execute code from scanned configs.
≈ “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
TARS — agent notes
Desktop app for managing Claude Code configuration (skills, agents, commands, hooks, MCP servers, plugins, profiles). See README for features and usage.
Build & test
- Frontend lives in
apps/tars-desktop:bun install, thenbun run tauri dev/bun run tauri build. - Debug builds (dev,
cargo test) use~/.tars-dev/instead of~/.tars/(tars_core::util::DATA_DIR_NAME); never hardcode.tars. - Rust workspace:
cargo build,cargo test,cargo run -p tars-cli -- scan. tars env check|plan|import|verify|quarantine|uranus-import(tars-cli) replaced~/bin/env2op; logic intars_core::onepassword::{dotenv,import}. Tests that need the real vault are#[ignore]d:cargo test -- --ignored real_.- Frontend tests:
bun run test:run(Vitest + React Testing Library,*.test.ts(x)), e2ebun run test:e2e(Playwright). - Coverage:
bun run test:coverage(v8). There is no cargo tarpaulin setup. - Lint/typecheck before commit:
bun run lint,bun run typecheck,cargo fmt --all,cargo clippy --all -- -D warnings. - There is no
formatscript — Prettier runs via the pre-commit hook. Enable hooks after clone:git config core.hooksPath .githooks.
Modules
crates/tars-scanner— non-destructive discovery of config across scopes, collision detection.crates/tars-core— profiles, diff/apply/rollback engine, SQLite storage.crates/tars-providers— AI provider integrations (key validation, model discovery, pricing); consumed bysrc-tauri/src/commands/api_keys.rs.crates/tars-cli— CLI wrapper for the scanner.apps/tars-desktop/src-tauri— Tauri IPC backend over the crates.
Invariants
- Tauri commands return
Result<T, String>; frontend shows failures withtoast.error()(Sonner). Never panic in library code. unsafe_code = "forbid"workspace-wide via[workspace.lints]; clippy must pass with-D warnings.- IPC types live in
apps/tars-desktop/src/lib/types/— keep Rust and TS shapes in sync when changing commands. - Never execute code from scanned configs; validate paths against traversal and sanitize anything passed to a shell.
- Secrets live in 1Password, reached only through
tars_core::onepassword(opCLI, desktop integration). Values travel asSecretValue/SecretBytes/FullItemand go toopon stdin or a named pipe, never argv or disk. Onlyreveal_api_key,get_project_secret,reveal_developer_credentialandreveal_uranus_envmay return one;commands/response_audit.rsenforces it. The old AES store is read only bytars_core::secrets_migration. - Discovery-first, safe-by-default: scan before modifying; changes get diff preview, backup, and rollback.
Configuration scopes
Precedence high → low: Managed > Local > Project > User. The full per-OS path table lives in README ("Configuration Scopes") — single source, don't duplicate it here.
Architecture diagram
docs/architecture.json is the Archify spec for the system overview
(webview UI, Tauri backend, scanner, core engine, providers, SQLite, the
apply-a-profile path, the webview and Rust-process trust boundaries, and the
external services), with file:line sources pinned to a commit. If a change
adds, removes, or rewires a top-level component, external service, trust
boundary, or the deploy shape, update the spec after committing it: re-pin
meta.repository.revision to that commit, fix the affected nodes, edges, and
sources, re-render with the archify skill (finalize ... --repo-root .), and
commit the spec. Internal refactors and shifted line numbers don't need it.
Rendered HTML goes in .archify/ (gitignored).
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.

