Skip to content

About

AI-driven colonist advisor: autonomous decision cycle, player approval flow & tool calling feedback

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

RimMind-Advisor 💡

Autonomous Colonist Advice, Player Approval & Feedback Loop for RimWorld 1.6 & 1.7

English | 简体中文

RimWorld 1.6 | 1.7 Dependency: RimMind-Core Unit Tests License: MIT

Transform AI thoughts into meaningful colonist advice with 5-domain autonomy policies, player approval, and real-time execution feedback.


📖 Overview

RimMind-Advisor empowers colonists to formulate insightful suggestions based on their current psychological thoughts, environmental stresses, and colony-wide macro alerts. Instead of blindly overriding player commands, colonists evaluate domain-specific autonomy policies and either execute low-risk actions directly or present structured advice proposals with clear rationale.

Core Features

  • 5-Domain Autonomy Policy & AdvisorToolRiskResolver: Manifest- and classifier-driven (IToolPolicyClassifier) evaluation across 5 autonomy domains (EmergencySurvival, ResourceMarking, WorktableBills, BlueprintPlacement, HighRiskOperations) with Disabled, RequireApproval, and FullAutonomous modes.
  • Player Approval Flow & ApprovalManager: Advice surfaces via a non-intrusive floating HUD card displaying colonist reasoning, urgency, and proposed actions with [Approve] and [Reject] buttons, plus automatic active-cycle and pending-request cleanup (CancelActiveCycle / CancelPendingForPawn) when a pawn despawns or dies.
  • ColonyMacroPerceiver & ApprovalSubmissionPipeline Cabinet Proposals: Detects colony-wide food, temperature, shelter, corpse, resource, and threat bottlenecks and bundles multi-tool approval-gated plans into a single CabinetProposal card.
  • Dedicated ScenarioIds.AdvisorDecision & 3-Round Feedback Loop: Isolates Advisor context from Core's AgentDecision scenario, attaches compact scoped tools, collapses idle HUD cards into a mini status pill, and tracks outcomes across up to 3 feedback rounds.

🎮 In-Game Showcase

RimMind-Advisor Showcase In-game advice approval card ([+] 1.2x ZOOM): Triggered by colonist frustration over nutrient paste ("Bella's Hunger Strike"), the floating multi-line proposal card presents zero-truncation [Approve] and [Reject] controls alongside the active colony lodge and [RimMind-Dialogue] HUD.


🏛️ Architecture & Clean Dependencies

flowchart TD
    Pawn["Colonist State & ColonyMacroPerceiver"] --> Thought["Pawn Thoughts & Macro Alerts"]
    Thought --> Advisor["RimMind-Advisor (AdvisorCycleCoordinator)"]
    Advisor --> Policy{"AdvisorToolRiskResolver (5 Autonomy Domains)"}
    Policy -- FullAutonomous --> Execute["Dispatch via Core ToolCall"]
    Policy -- RequireApproval --> Overlay["ApprovalManager / CabinetProposal (UI)"]
    Overlay --> Decision{"Player Decision"}
    Decision -- Approve --> Execute
    Decision -- Reject --> Cooldown["Record Feedback & Enter Cooldown"]
    Execute --> Feedback["Aggregated Feedback & 3-Round Evaluation"]
Loading

🛠️ Installation & Load Order

1. Harmony
2. Core (Vanilla RimWorld)
3. RimMind-Core
4. RimMind-Advisor

🧪 Developer Guide & Testing

Run unit tests directly:

dotnet test RimMind-Advisor/Tests/RimMindAdvisor.Tests.csproj -c Release

📜 License

Licensed under the MIT License.

About

AI-driven colonist advisor: autonomous decision cycle, player approval flow & tool calling feedback

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages