navi-core 0.1.0

Local agentic engine and terminal-first coding agent.
Documentation
pub mod benchmark;
pub mod branch_race;
pub mod cancel;
pub mod capability;
pub mod compact;
pub mod config;
pub mod context;
pub mod credentials;
pub mod dataset;
pub mod effect;
pub mod eval;
pub mod event;
pub mod file_lock;
mod fs_util;
pub mod goal;
pub mod harness;
pub mod logging;
pub mod mcp_firewall;
pub mod memory;
pub mod model;
pub mod model_router;
pub mod operational_memory;
pub mod patch;
pub mod prompt;
mod provider_id;
pub mod registry;
pub mod repetition;
pub mod replay_gate;
pub mod repo_intelligence;
pub mod runtime;
pub mod runtime_components;
pub mod sandbox;
pub mod security;
pub mod session;
pub mod setup;
pub mod skill_mining;
pub mod skills;
pub mod tool;
pub mod trace;
pub mod turn;
pub mod verifier;

pub mod background_model;

pub use branch_race::{
    BranchCandidate, BranchHypothesis, BranchRacePlanner, BranchRaceReport, BranchRaceRequest,
    BranchStrategy, ScoredBranchCandidate,
};
pub use capability::{
    Capability, CapabilityDecision, CapabilityGrant, CapabilityLedger, CapabilityLedgerEntry,
    CapabilityScope, capabilities_from_tool_metadata,
};
pub use compact::{CompactState, CompactThreshold};
pub use config::{
    BackgroundModelEntry, BackgroundModelsConfig, HarnessProfile, LoadedConfig, McpConfig,
    McpServerConfig, ModelOption, ModelTaskSize, NaviConfig, PluginConfig, ProviderConfig,
    ProviderKind, ProviderModelConfig, ProviderRequestOptions, SecurityConfig, ToolCallingMode,
    ToolPromptManifest, WasmPluginConfig, available_model_options, canonical_provider_id,
    default_request_options_for, effective_context_window, effective_tool_calling_mode,
    is_free_model_name, model_can_run_publicly, provider_catalog, provider_request_model_name,
    resolve_provider_config, save_global_config, save_project_config, set_registry_store,
};
pub use context::{ContextPacket, ContextSource};
pub use credentials::{
    CommandCodeCredentialMetadata, CredentialAccountInfo, CredentialSource, CredentialStatus,
    CredentialStore, resolve_provider_api_key, resolve_provider_api_key_for_project,
    resolve_provider_credential_status,
};
pub use dataset::{
    DatasetRow, DatasetRowType, export_jsonl, trace_to_dataset_rows, traces_to_eval_candidates,
};
pub use effect::{BlastRadius, EffectAnalyzer, EffectReport, PostDecision};
pub use eval::{
    EvalCase, EvalCaseMetrics, EvalCaseResult, EvalMode, EvalRun, EvalRunMetrics, EvalRunner,
    EvalSuite, eval_case_from_trace,
};
pub use event::{
    AgentEvent, ApprovalDecision, ApprovalRequest, ApprovalRisk, QuestionOption, QuestionRequest,
    QuestionResponse, RuntimeEvent, RuntimeEventKind, SubagentTranscriptItem,
    SubagentTranscriptKind,
};
pub use file_lock::{FileLockInfo, FileLockManager, LockGuard};
pub use goal::{
    CreateGoalTool, GetGoalTool, GoalExtension, GoalId, GoalRuntimeHandle, GoalService, GoalStatus,
    SessionGoal, UpdateGoalTool, goal_tool_definitions,
};
pub use harness::{
    AgentRunState, HarnessPolicy, build_system_prompt, build_system_prompt_with_memory,
    compact_tool_observation, record_tool_call, select_harness_policy, tool_error_result,
};
pub use logging::{LoggingGuard, LoggingRuntimeConfig, init_logging, log_dir, log_path};
pub use mcp_firewall::{McpFirewallDecision, McpFirewallPolicy, McpProvenance, McpTaint};
pub use model::{
    ContentPart, ModelMessage, ModelProvider, ModelRequest, ModelResponse, ModelRole, ModelStream,
    ModelStreamEvent, ThinkingConfig, ThinkingRequest,
};
pub use model_router::{ModelRoute, ModelRouteRole, ModelRouter, ModelScorecard};
pub use operational_memory::{MemoryScope, OperationalMemoryEntry, OperationalMemoryStore};
pub use patch::PatchProposal;
pub use prompt::{PromptCache, SystemPromptInput, SystemPromptRenderer};
pub use provider_id::ProviderId;
pub use replay_gate::{
    ReplayGateConfig, ReplayGateReport, SuperiorityGateReport, evaluate_replay_gate,
    evaluate_superiority_gate, unsafe_guarded_auto_approval_count,
};
pub use repo_intelligence::{
    ChurnRecord, DependencyEdge, ImportRecord, IndexedFile, RankedSymbolRecord, ReferenceRecord,
    RepoIndex, RepoIntelligenceCache, SymbolRecord, TestTarget, TextMatchRecord, build_index,
    dependency_edges, discover_tests, goto_symbol, ranked_symbol_matches, references,
    search_symbols, search_text_matches,
};
pub use runtime::{
    AgentRuntime, AgentRuntimeOptions, ApprovalResolver, QuestionResolver, TurnCanceller,
};
pub use runtime_components::{
    CompactionStrategy, DefaultCompactionStrategy, DefaultHarnessDriver, DefaultPromptBuilder,
    DefaultToolSecurityPolicy, HarnessDriver, LearningHarness, LearningHarnessConfig,
    NoopSessionHooks, PermissiveSecurityPolicy, PromptBuilder, RuntimeComponents, SessionHooks,
    StudyCompactionConfig, StudyCompactionStrategy, ToolSecurityPolicy, TutorPromptBuilder,
    TutorPromptOptions, learning_runtime_components,
};
pub use security::{SecurityDecision, SecurityPolicy};
pub use session::{
    SessionId, SessionRuntime, SessionSnapshot, SessionStore, clean_session_title,
    session_title_from_events,
};
pub use setup::{SETUP_INTERVIEW_COMPLETE_MARKER, SETUP_INTERVIEW_PROMPT};
pub use skill_mining::{
    SkillDraft, SkillReplayReport, activate_skill_after_replay, draft_skill_from_traces,
};
pub use skills::{SkillManifest, active_skills, discover_configured_skills};
pub use tool::background::{BackgroundCommandSnapshot, BackgroundTaskStatus};
pub use tool::registry::{ToolRegistry, ToolSet, phases};
pub use tool::{
    AgentProfile, ApprovalMode, ProviderBuilderFn, RepoExploreTool, SubagentTool, Tool,
    ToolDefinition, ToolExecutor, ToolExposure, ToolInvocation, ToolKind, ToolMetadata, ToolResult,
    ToolRisk, capabilities,
};
pub use trace::{
    ApprovalTrace, ToolCallTrace, TraceStore, TurnMetrics, TurnOutcome, TurnTrace, VerifierTrace,
    turn_traces_from_events,
};

pub use background_model::{BackgroundModelResolver, ResolvedBackgroundModel};
pub use benchmark::{
    BenchAgentConfig, BenchCase, BenchCaseMetrics, BenchCaseResult, BenchCompareConfig,
    BenchComparison, BenchRun, BenchRunMetrics, BenchSuite, aggregate_bench_metrics,
    compare_bench_runs,
};
pub use memory::{HistoryStore, MemoryManager, MemoryStore, SessionCheckpoint};
pub use verifier::{VerificationStore, VerifierResult, VerifierRunner, VerifierSpec};