agentleFS
thewaifucorpthewaifucorp/bastion-agent/skills/proactive-engine/SKILL.md

bastion/proactive-engine

Skill8 starsChanged 4 months agoMITView on GitHub

Proactive intelligence engine — detects inactivity, stale memories, CVEs, and temporal patterns, then generates context-aware suggestions via LLM. Replaces the deprecated bastion/proactive skill.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Degraded mode: if memupalace is unavailable, engine continues without persistence

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill 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
SKILL.md

Skill: bastion/proactive-engine

Objective

Monitor the user's interaction patterns across personas and generate proactive suggestions without requiring the user to ask.


Architecture

Layer 0 (Detectors)           Layer 1 (Generators)
─────────────────────         ──────────────────────
InactivityDetector     ──┐
MemoryStalenessDetector──┤→ EventBus → SuggestionGenerator → memupalace
TemporalPatternDetector──┤                                  → LLM call
CVEDetector            ──┘            WeeklySynthesizer
IntentTracker
  • EventBus: deduplicates events (6h default, 24h for CVE/staleness)
  • SuggestionGenerator: single LLM call per cycle via OpenRouter
  • Degraded mode: if memupalace is unavailable, engine continues without persistence

CLI Commands

Invoke via exec python3 skills/proactive-engine/main.py <command>

run-cycle (every 2h)

python3 skills/proactive-engine/main.py run-cycle \
  --personas '["carreira","estudos","projetos-pessoais"]' \
  --skills '["bastion/life-log","bastion/guardrails"]'

run-cve-check (every 24h)

python3 skills/proactive-engine/main.py run-cve-check \
  --skills '["bastion/life-log","bastion/guardrails"]'

run-weekly

python3 skills/proactive-engine/main.py run-weekly \
  --personas '["carreira","estudos"]'

Environment Variables

VariableDefaultDescription
PROACTIVE_ENABLEDtrueSet to false to disable entirely
PROACTIVE_LLM_MODELgoogle/gemini-flash-1.5OpenRouter model
PROACTIVE_INACTIVITY_DAYS3Days before marking persona inactive
PROACTIVE_STALENESS_DAYS14Days before marking memory stale
PROACTIVE_LIFELOG_WINDOW50Records to include in LLM context
PROACTIVE_DEDUP_WINDOW_HOURS6Event dedup window (hours)
BASTION_SKILL_REGISTRY_URL(empty)Optional compatible skill-vulnerability registry; CVE checks are disabled if unset
BASTION_SKILL_REGISTRY_TOKEN(empty)Bearer token for that registry
OPENROUTER_API_KEY(required)OpenRouter API key for LLM calls

Persistence

FilePurpose
db/proactive-engine/pending-events.jsonUnprocessed detection events
db/proactive-engine/intent-queue.jsonIntent queue (when memupalace offline)
db/proactive-engine/heartbeat-state.jsonLast run timestamps per task

Memupalace Wings

WingContent
proactive/suggestionsGenerated suggestions
proactive/intentTracked user intents
proactive/weeklyWeekly summaries

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.