agentic-hub
AGENTS.md4 starsChanged 5 months agoMITView on GitHub
Tauri 2.x desktop app that manages shared agentic capabilities — skills, agents, rules — across Codex, Claude Code, Cursor, OpenClaw, the OpenStandard ~/.agents root, and opt-in tools (Kiro, Copilot, Antigravity, Grok Build) from one window. Rust core (agentic-core) owns the projection engine; React + Vite + TypeScript UI is a thin view over typed Tauri IPC. See docs/tech/development/getting-started.md for the full workflow. The Rust core owns every filesystem mutation. The WebView is untrusted.
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,196 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 repository3 other files it gives its agents.
- rust-best-practicesSkill
- tauri-v2Skill
- vercel-react-best-practicesSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 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.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 64
Never overwrite real files or directories.
- Very specific: line 90
Read the matching docs/tech/modules/*.md before touching code
- Very specific: line 94
Run cargo test --workspace and cargo clippy --all-targets --all-features --locked -- -D warnings — both must stay green.
- Very specific: line 95
Update the matching docs/ if behavior or contract changes
- Very specific: line 104
Every IPC command must appear in src-tauri/capabilities/default.json.
- Distinctive: line 105
Every path parameter is canonicalized via the central validator before any FS op.
≈ “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
agentic-hub
Tauri 2.x desktop app that manages shared agentic capabilities — skills, agents, rules — across Codex, Claude Code, Cursor, OpenClaw, the OpenStandard ~/.agents root, and opt-in tools (Kiro, Copilot, Antigravity, Grok Build) from one window. Rust core (agentic-core) owns the projection engine; React + Vite + TypeScript UI is a thin view over typed Tauri IPC.
Directory map
| Path | Purpose |
crates/agentic-core/ | Pure domain crate: scanner, adapter_registry, planner, applier, rule_sync, suite_store, workspace_inventory, scaffold. No Tauri dependency. |
crates/agentic-hub/ | Tauri 2.x bin crate: #[tauri::command] wrappers, window mgmt, capability JSON files. Depends on agentic-core. |
src/ | React + Vite + TypeScript UI. components/ui/ (shadcn primitives), components/* (feature views), state/ (Zustand stores — all UI logic, unit-tested), lib/utils.ts, index.css (Tailwind v4 tokens). Main window + Suite Manager window. |
src-tauri/capabilities/ | Tauri 2.x capability JSON files. Scope = FS-restricted; shell plugin not loaded. |
resources/agentic-demo/ | Bundled demo scaffold tree, embedded via include_dir!. |
tests/integration/ | Cross-crate FS integration tests against tempdirs. |
docs/ | Detailed docs (features, tech.modules, tech.reference, tech.development). |
PRODUCT.md | Product requirements. |
ARCHITECTURE.md | Root architecture + three companion domain docs. |
Top-level docs
- PRODUCT.md — what we are building and why
- DESIGN.md — UI design system (tokens, components, do's/don'ts; the source of truth for styling)
- ARCHITECTURE.md — system design (start here for implementation)
- ARCHITECTURE.permissions.md — Tauri capability model + Windows symlink constraint
- ARCHITECTURE.projection.md — projection engine (the bulk of the system)
- ARCHITECTURE.workspace.md — workspace patch hard-copy lifecycle
- CHANGELOG.md — cumulative version history (Keep a Changelog format)
- RELEASE.md — the current release's notes only; the release workflow publishes it verbatim as the GitHub Release body
- docs/README.md — full doc index
Tech stack
- Tauri 2.x (Rust core + WebView shell)
- Rust workspace:
agentic-core(domain) +agentic-hub(bin) - React 18 + Vite + TypeScript + Zustand
- Tailwind v4 + shadcn/ui (components-first UI; tokens in
DESIGN.md) lucide-reactfor all icons (the only icon source — seeDESIGN.mdIconography)- pnpm 9.x, Rust stable, Node 20.x
ts-rsfor Rust → TS type codegentauri-plugin-dialog,tauri-plugin-store(noshellplugin)
Commands
| Command | Purpose |
pnpm tauri dev | Dev server (Vite + Tauri shell, hot reload) |
pnpm tauri build | Release bundle (.dmg / .deb / .AppImage) |
cargo test --workspace | Rust unit + integration tests |
pnpm test | Vitest unit tests for UI logic (src/state/ stores) |
pnpm test:watch | Vitest in watch mode (TDD loop) |
cargo test -p agentic-core --features=ts-export | Regenerate TS types from Rust |
cargo clippy --all && pnpm lint | Lint everything |
cargo fmt --all && pnpm format | Format everything |
See docs/tech/development/getting-started.md for the full workflow.
Core philosophy
The Rust core owns every filesystem mutation. The WebView is untrusted.
- Filesystem state is the source of truth. No shadow database.
- Plan-then-apply is mandatory. Stage in memory, plan from disk, apply explicitly.
- Apply is partial-tolerant. One failing op never aborts the rest.
- Never overwrite real files or directories. Conflicts surface as
skip_conflict, never silent. - Symlink semantics live in one place (
applier). Layout decisions live in one place (adapter_registry).
Code style
- Rust: TDD is the default for the core — write the failing test first (see docs/tech/development/testing-strategy.md). Strict
clippy,cargo fmt, nounwrap()/expect()/panic!outside tests (the Taurirun()entrypoint is the sole exception), errors viathiserrorenums. Follow therust-best-practicesskill. The lint bar is enforced by[workspace.lints]inCargo.toml, not by convention. - TS: strict
tsconfig, noany, types mirrored from Rust viats-rs(never hand-edited) - UI is components-first: compose shadcn primitives from
components/ui/; never hand-roll a styled element when a primitive exists. Style only throughDESIGN.mdtokens (CSS variables), never ad-hoc colors. - UI logic lives in Zustand stores under
src/state/, not in components. Components stay thin (render + event wiring). The IPC layer (src/ipc.ts) is the only place that talks to Rust. - File size cap: 600 lines per source file (Arno workspace convention)
- Comments explain non-obvious intent; never narrate what the code does
Testing & TDD
Tests are the cheapest safety net. Logic with defined inputs → outputs is tested; visual layout is verified by eye.
- Two suites, one discipline. The Rust core uses
cargo test(unit + integration); the UI uses Vitest over thesrc/state/stores. Both stay green before any change lands. - TDD is the default for logic (stores, planners, pure helpers): Red → Green → Refactor. Write the failing test first, make it pass with the minimum, then clean up. Skip TDD for pure layout/styling and framework wiring — verify those visually.
- Prove-it for bugs. Reproduce a bug as a failing test before fixing it; the passing test is the proof and the regression guard. "Seems fixed" is not done.
- Test the behavior, not the internals. Assert on store outputs and observable state (
getState()), not private helpers. If a refactor that preserves behavior breaks a test, the test was too coupled. - Mock at the boundary only. Store tests mock the Tauri IPC module (
@/ipc) and Sonner toasts; everything else runs for real. Reset each store between tests withsetState(getInitialState(), true). Keep tests in Node env — no DOM needed for store logic. - Name by scenario, one behavior per test (
"reload falls back to the first target when no active id is persisted"), and follow Arrange-Act-Assert. Prefer DAMP (readable, self-contained) over DRY in tests.
When making changes
- Identify the right module (use
docs/README.md"how to read this" guide) - Read the matching
docs/tech/modules/*.mdbefore touching code - Touch the Rust core first if the change is FS-related; touch UI only after the IPC contract is stable
- For core logic, start with a failing test (Red → Green → Refactor); for bug fixes, write the reproducing test before the fix
- Regenerate TS types if Rust shared types changed
- Run
cargo test --workspaceandcargo clippy --all-targets --all-features --locked -- -D warnings— both must stay green. If you touchedsrc/state/, add/extend the Vitest store tests first and runpnpm test - Update the matching
docs/if behavior or contract changes
Hard rules
- Markdown managed-block markers stay verbatim:
<!-- agentic-hub:start -->/:end(heading## Agentic Hub Managed Rules). Migration parity with the rebranded VS Code extension. Managed-copy metadata lives in a per-root.agentic-hub-managed.jsonmanifest; hook entries carry the_agenticHubmarker keyed by the bare manifest id. Do not reintroduce the legacye-studio-*names. - Suite storage path stays
~/.agentic-suites.json. Same reason. - Workspace scope is read-only — it scans a project's own tool dirs and reports what each tool already has. The scan never writes. Do not reintroduce a workspace apply / patch / manifest path. One opt-in exception: when the skills.sh source is enabled, the user may explicitly install a starred skill into a workspace via
cmd_install_skill. This is the only workspace write path — explicit, user-initiated, never automatic, never part of scanning. It runs the source CLI via a controlledstd::process::Command(validatedowner/reporef, cwd = the remembered workspace dir); the hub keeps no install state and re-scans the read-only inventory afterward. Still notauri-plugin-shell(a login shell is used only to readPATH, never to run the install). See docs/tech/modules/skill-sources.md. RELEASE.mdholds only the current release's notes. The release workflow publishes it verbatim as the GitHub Release body (body_path: RELEASE.mdin.github/workflows/release.yml), so any older versions left in the file show up on every release. When cutting a release, replaceRELEASE.mdwith the new version's notes — never prepend. The cumulative history lives inCHANGELOG.md(append there, newest first).tauri-plugin-shellis never added toCargo.toml. If a feature seems to need it, raise security review first.- Every IPC command must appear in
src-tauri/capabilities/default.json. - Every path parameter is canonicalized via the central validator before any FS op.
- New
agentic-corebehavior lands test-first (Red → Green → Refactor). The thin#[tauri::command]wrappers inagentic-hubare marshalling-only and exempt — keep logic inagentic-corewhere it can be unit-tested. Never weaken[workspace.lints]or#[allow]a lint to land code; fix the cause or use a documented local#[expect(...)].
Migration from VS Code extension
This product is a Tauri-native port of the Unified Agentic Capability Manager originally shipping inside e-studio-copilot/packages/vs-code/. The product semantics are preserved 1:1:
- Same
~/.agenticshared root contract - Same per-tool projection rules (flat for Claude skills, managed copy for Cursor agents, markdown section for Codex/Claude/OpenClaw rules)
- Same
~/.agentic-suites.jsonfor suites - Same managed-block markers
- Workspace scope is the one intentional divergence: the VS Code extension hard-copied suites into a project; the hub instead treats each workspace as a read-only inventory of what its tools already have.
Users coming from the VS Code extension keep working without reconfiguring their tools.
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.

