Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.17 KB

File metadata and controls

49 lines (32 loc) · 1.17 KB

中文 | English

AGENTS.md

Scope

This file applies to src/crates/core. Use the top-level AGENTS.md for repository-wide rules.

What matters here

bitfun-core is the shared product-logic center.

Main areas:

  • src/agentic/: agents, prompts, tools, sessions, execution, persistence
  • src/service/: config, filesystem, terminal, git, LSP, MCP, remote connect, project context, AI memory
  • src/infrastructure/: AI clients, app paths, event system, storage, debug log server

Agent runtime mental model:

SessionManager → Session → DialogTurn → ModelRound

Local rules

  • Keep shared core platform-agnostic
  • Avoid host-specific APIs such as tauri::AppHandle
  • Use shared abstractions such as bitfun_events::EventEmitter
  • Desktop-only integrations belong in src/apps/desktop, then flow through transport/API layers

Narrower rules already exist:

  • src/crates/ai-adapters/AGENTS.md
  • src/agentic/execution/AGENTS.md

Commands

cargo check --workspace
cargo test --workspace
cargo test -p bitfun-core <test_name> -- --nocapture

Verification

cargo check --workspace && cargo test --workspace