agentleFS
thiagodmontthiagodmont/keynobi/.claude/CLAUDE.md

keynobi

CLAUDE.md201 starsChanged 7 months agoMITView on GitHub

Project rules shared by all coding agents: @../AGENTS.md State assumptions explicitly. If a request is ambiguous between a frontend (SolidJS) change and a backend (Rust/Tauri) change, ask. Surface the trade-off between touching the Tauri command layer vs. keeping logic in the frontend before choosing one. Never silently pick an architecture — especially for anything crossing the Tauri IPC boundary. Minimum code that solves the problem. No speculative generalization, no new abstractions unless the task demands it. Before adding a new…

The file

We split this CLAUDE.md into the rules it gives an agent

9 rules. About 0 are common, 0 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Every Tauri command change has two sides: the Rust handler in src-tauri and the TypeScript wrapper in src/lib/tauri-api.ts.

    line 25
  2. Very specific:

    Before editing any of these files, call get_risk() and proceed with extra care:

    line 29
  3. Very specific:

    MUST call get_context(targets=["path/to/file.py"]): before reading or editing any file — faster and richer than reading source directly.

    line 89
  4. Very specific:

    MUST call get_risk(targets=["path/to/file.py"]): before making changes — especially for hotspot files.

    line 90
  5. Very specific:

    Don't know where something lives?

    line 91
  6. Very specific:

    Call update_decision_records(action="create", title="...", decision="...", rationale="...", affected_files=[...]) to record any new …

    line 94
  7. Very specific:

    Call update_decision_records(action="update", decision_id="...", ...) to update existing decisions affected by your changes.

    line 95
  8. Very specific:

    Call update_decision_records(action="update_status", decision_id="...", status="deprecated") if your changes invalidate an existing …

    line 96
  9. Very specific:

    Before cleanup tasks, call get_dead_code() to find confirmed unused code.

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
CLAUDE.md

CLAUDE.md

Project rules shared by all coding agents: @../AGENTS.md

Behavioral Guidelines

1. Think Before Coding

State assumptions explicitly. If a request is ambiguous between a frontend (SolidJS) change and a backend (Rust/Tauri) change, ask. Surface the trade-off between touching the Tauri command layer vs. keeping logic in the frontend before choosing one. Never silently pick an architecture — especially for anything crossing the Tauri IPC boundary.

2. Simplicity First

Minimum code that solves the problem. No speculative generalization, no new abstractions unless the task demands it. Before adding a new Tauri command, ask: can this be done with an existing command + frontend logic? Before adding a new SolidJS signal or store, ask: is a derived value enough? A senior engineer should not say "this is overcomplicated."

3. Surgical Changes

Touch only what you must. When editing lib.rs, file_system.rs, or mcp_server.rs (high-churn hotspots), do not reformat unrelated code, rename variables for style, or restructure working logic. Diff noise in hot files creates review risk. Only remove code that YOUR change made obsolete.

4. Goal-Driven Execution

Define success criteria before writing code. For UI work: what does the component render in the happy path? For Tauri commands: what does the Rust function return and what does tauri-api.ts expose? Verify both sides of the IPC contract before claiming done. Loop until the criteria are met — do not report success on compile alone.

5. IPC Contract Discipline

Every Tauri command change has two sides: the Rust handler in src-tauri and the TypeScript wrapper in src/lib/tauri-api.ts. Always update both in the same change. Never leave a stale TypeScript wrapper calling a renamed or removed command.

6. Hotspot Awareness

Before editing any of these files, call get_risk() and proceed with extra care:

  • src-tauri/src/lib.rs
  • src/lib/tauri-api.ts
  • src-tauri/src/commands/file_system.rs
  • src/App.tsx
  • src-tauri/src/services/mcp_server.rs
<!-- Add your custom instructions below. Repowise will never modify anything outside the REPOWISE markers. --><!-- Examples: coding style rules, test commands, workflow preferences, constraints --><!-- REPOWISE:START — Do not edit below this line. Auto-generated by Repowise. -->

IMPORTANT: Codebase Intelligence Instructions for keynobi

CRITICAL: This repository is indexed by Repowise. You MUST use the repowise MCP tools below instead of reading raw source files. They deliver richer context — documentation, ownership, history, decisions — in a single call. Raw read_file calls are a last resort only.

Last indexed: 2026-04-25. Confidence: 100%.

Architecture

repo is a high-performance monorepo project leveraging a modern hybrid architecture. It combines a SolidJS frontend for a reactive, efficient user interface with a Tauri backend written in Rust to provide native system capabilities. The project is designed for scalability and maintainability, utilizing a component-driven UI library and a robust testing infrastructure. With over 50,000 lines of code and a clean dependency graph (zero circular dependencies), the repository is structured to support complex application logic while maintaining high development velocity.

Key Modules

ModulePurposeOwner
srcThe src module serves as the primary frontend codebase for the application, buil—
src-tauriThe src-tauri module serves as the core Rust backend for the application, provid—
rootThe root module serves as the foundational configuration layer for the project—
scriptsThe scripts module serves as the automation and utility hub for the project's re—
e2eThe e2e module serves as the end-to-end testing suite for the application—

Entry Points

  • src/App.tsx
  • e2e/fixtures/app.ts
  • src-tauri/src/lib.rs
  • src-tauri/src/main.rs
  • src/components/ui/Alert/index.ts
  • src/components/ui/Badge/index.ts
  • src/components/ui/Button/index.ts
  • src/components/ui/Checkbox/index.ts
  • src/components/ui/CommandPalette/index.ts
  • src/components/ui/CopyableText/index.ts

Tech Stack

Languages: Node.js, TypeScript

Infra: Vite### Hotspots (High Churn)

FileChurn90d CommitsOwner
src-tauri/src/lib.rs99.7th %ile31Thiago M. Dolabella
src/App.tsx99.4th %ile26Thiago M. Dolabella
src/lib/tauri-api.ts99.1th %ile25Thiago M. Dolabella
src/components/logcat/LogcatPanel.tsx98.8th %ile25Thiago M. Dolabella
src-tauri/src/services/mcp_server.rs98.6th %ile23Thiago M. Dolabella

Repowise MCP Tools

This project has a Repowise MCP server configured. ALWAYS use these tools before reading source files — they provide documentation, ownership, architectural decisions, and risk signals in a single call.

MANDATORY workflow:

  1. ALWAYS start with get_overview() on any new task to orient yourself.
  2. MUST call get_context(targets=["path/to/file.py"]) before reading or editing any file — faster and richer than reading source directly.
  3. MUST call get_risk(targets=["path/to/file.py"]) before making changes — especially for hotspot files.
  4. Don't know where something lives? Call search_codebase(query="authentication flow") — prefer over grep/find.
  5. Need to understand why code is structured a certain way? MUST call get_why(query="why JWT over sessions") before any architectural change.
  6. After completing any code changes, MUST call update_decision_records(action="list") to review existing decisions, then:
    • Call update_decision_records(action="create", title="...", decision="...", rationale="...", affected_files=[...]) to record any new architectural decisions you made.
    • Call update_decision_records(action="update", decision_id="...", ...) to update existing decisions affected by your changes.
    • Call update_decision_records(action="update_status", decision_id="...", status="deprecated") if your changes invalidate an existing decision. This is not optional — keeping decision records current is a required part of every coding task.
  7. Need to understand how two modules connect? Call get_dependency_path(source="src/auth", target="src/db").
  8. Before cleanup tasks, call get_dead_code() to find confirmed unused code.
  9. For documentation or diagrams, call get_architecture_diagram(scope="src/auth").
ToolWHEN you MUST use it
get_overview()FIRST call on every new task
get_context(targets=[...])Before reading or modifying any file
get_risk(targets=[...])Before changing files — REQUIRED for hotspots
get_why(query="...")Before architectural changes — REQUIRED
update_decision_records(action=...)After every coding task — record and update decisions
search_codebase(query="...")When locating code — prefer over grep/find
get_dependency_path(source=..., target=...)When tracing module connections
get_dead_code()Before any cleanup or removal
get_architecture_diagram(scope=...)For visual structure or documentation

Codebase Conventions

Architectural Decisions:

  • Auto-apply package:mine filter in LogcatPanel after successful deploy: Using a timestamp in the existing build store follows the same pattern as deployPhase — service layer.
  • Auto-reconnect logcat stream on unexpected ADB server restart: ADB uses a server-client model: only one ADB server runs at a time, and Android Studio ships its own.
  • Batch-flush build log lines every 50ms instead of immediate per-line updates: Batching coalesces many rapid store writes into a single reactive update, reducing render pressure.
  • Build history side panel — left-strip layout (Android Studio style): Side-panel layout mirrors Android Studio's build output experience which Android developers are already familiar with.
  • Cumulative scrollCompensate accumulator for VirtualList eviction compensation: A reset-to-zero approach (passing the delta directly) would fail when the same eviction size repeats.
  • LogEntryDetailPanel renders outside VirtualList (sibling in flex column): Rendering inside the VirtualList would require measuring DOM heights to recalculate totalHeight and break virtualization.
  • Re-sync package:mine filter when applicationId resolves after startup race: projectState.applicationId is already a reactive SolidJS store value updated by setApplicationId() in the Tauri layer.
  • Reset PipelineContext fully on logcat clear (not preserve pre-seeded PIDs): Clear is meant to be a fresh start, matching Android Studio semantics where clear resets everything. Commands:
  • Build: npm run build
  • Test: npm run test
  • Lint: npm run lint
  • Dev: npm run dev
  • Format: npm run format
<!-- REPOWISE:END -->

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.