asi-core-integration
Skill2 starsChanged 39 days agoApache-2.0View on GitHub
Use when building or extending ASI Core native tool layer.
In this repository303 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a2a-brain-meshlearn-verifySkill
- apple-notesSkill
- apple-remindersSkill
- findmySkill
- imessageSkill
- asi-integration-architectureSkill
- asi-narrativeSkill
- asi-research-labSkill
- asi-capability-summarySkill
- asi-coreSkill
- asi-identitySkill
- auto-env-checkerSkill
- auto-best-practice-from-officialSkill
- auto-competitor-intelligence-ai-codingSkill
- auto-competitor-intelligence-an-aiSkill
- auto-competitor-intelligence-autogpt-improvemSkill
- auto-competitor-intelligence-claudepowered-aiSkill
- auto-competitor-intelligence-contractmd-theSkill
- auto-competitor-intelligence-crush-glamourousSkill
- auto-competitor-intelligence-devin-aiSkill
- auto-competitor-intelligence-electricity-useSkill
- auto-competitor-intelligence-intent-weavingSkill
- auto-competitor-intelligence-jetbrains-idesSkill
- auto-competitor-intelligence-jetbrains-zedSkill
- auto-competitor-intelligence-layerfs-aSkill
- auto-competitor-intelligence-mouse-precisionSkill
- auto-competitor-intelligence-okf-agentSkill
- auto-competitor-intelligence-opencode-aiSkill
- auto-competitor-intelligence-opencode-openSkill
- auto-competitor-intelligence-openhands-agentSkill
- auto-competitor-intelligence-pythonopenaichatSkill
- auto-competitor-intelligence-some-uncomfortabSkill
- auto-competitor-intelligence-stack-overflowSkill
- auto-competitor-intelligence-the-secretSkill
- auto-competitor-intelligence-things-iSkill
- auto-competitor-intelligence-undisclosed-addiSkill
- auto-competitor-intelligence-we-askedSkill
- auto-competitor-intelligence-what-iSkill
- auto-efficiency-learning-advanced-quantizatioSkill
- auto-efficiency-learning-a-visualSkill
- auto-efficiency-learning-edge-aiSkill
- auto-efficiency-learning-efficientqat-llmSkill
- auto-efficiency-learning-finetuning-llmsSkill
- auto-efficiency-learning-ondevice-llmSkill
- auto-efficiency-learning-pushing-theSkill
- auto-efficiency-learning-quantization-techniqSkill
- auto-efficiency-learning-quip-2bitSkill
- auto-efficiency-learning-ragkit-withSkill
- auto-efficiency-learning-show-hnSkill
- auto-efficiency-learning-small-languageSkill
- auto-efficiency-learning-splitquantv2-enhanciSkill
- auto-efficiency-learning-towards-optimalSkill
- auto-efficiency-learning-vptq-extremeSkill
- auto-explain-how-sleep-consolidationSkill
- auto-how-does-energy-efficiencySkill
- auto-internet-learning-40-ofSkill
- auto-internet-learning-ai-agentSkill
- auto-internet-learning-ai-agentsSkill
- auto-internet-learning-amazon-ceoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 88
Add tools to _OPENAMER_CORE_TOOLS (or per-platform toolset):
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
ASI Core Integration — Native Tools, Not External Scripts
Purpose
The ASI Core (tools/asi_core.py) wraps all 16 ASI capabilities as native agent tools with a unified lifecycle. Instead of calling python scripts/training/xxx.py as external processes, the model interacts through registered tools: asi_status, asi_think, asi_learn, asi_remember, asi_trigger.
Architecture
tools/asi_core.py ← Main module: ASICore class + tool registrations
└── tools/asi/ ← Subsystem subpackage (direct imports, no subprocess)
├── __init__.py ← Imports all subsystems
├── self_model.py ← Wraps scripts/training/self_model.py
├── world_model.py ← Wraps scripts/training/world_model.py
├── reasoning.py ← Wraps scripts/training/reasoning_loop.py
├── prediction.py ← Wraps scripts/training/predict_validate.py
├── improvement.py ← Wraps scripts/training/self_improve.py
└── heartbeat.py ← Central ASI Heartbeat (10 subsystems, 104 legacy jobs)Layer 1: ASICore — Native Tools
Each capability now calls the training script's core functions directly via import, not subprocess. The script files still exist and work standalone (for cron/legacy), but the ASICore bypasses them:
# BEFORE (subprocess bridge — now obsolete):
import subprocess
subprocess.run([sys.executable, "scripts/training/self_model.py"])
# AFTER (direct import):
from tools.asi import self_model as asi_self_model
state = asi_self_model.gather_state()Layer 2: ASI Heartbeat — Unified Lifecycle
Replaces 104 separate cron jobs with a single tools/asi/heartbeat.py module and one cron job (asi-heartbeat-tick every 5 min).
Heartbeat ─┬─ darwin (every 15m) — Evolution, Grid, AutoPatch, Publish, Probe
├─ swarm (every 30m) — Swarm Intelligence, Autonomous Loop
├─ a2a (every 240m) — Brain Export, Peer Communication
├─ learning (every 5m) — Internet Learner, Active Learn, KTA, etc.
├─ senses (every 30m) — Circadian, Watchtower, Trend Scout
├─ system (every 5m) — Self-Healer, Resource Monitor, Traffic Cop
├─ security (every 240m) — Bugbot, CVE Scan, Pen Tester, Code Review
├─ outreach (every 180m) — Social, GitHub, Growth Report, Funding
├─ infra (every 30m) — Env Check, Browser, Plugin, Mesh, Cache
└─ meta (every 60m) — Reflection, Self-Rewriter, Goal, ResearchEach subsystem stores its last-run timestamp in memory/asi_heartbeat.json for process-persistent state across cron ticks. The tick() method checks is_due() before executing — subsystems only run when their cadence timer has elapsed.
Registered Tools
| Tool | Emoji | Schema | Purpose |
asi_status | 🧬 | ASI_STATUS_SCHEMA | Full ASI system status + Heartbeat subsystem health |
asi_think | 🧠 | ASI_THINK_SCHEMA | Deep recursive reasoning (in-process) |
asi_learn | 📚 | ASI_LEARN_SCHEMA | Internet learning cycle (in-process) |
asi_remember | 💭 | ASI_REMEMBER_SCHEMA | Episodic memory + world model recall (in-process) |
asi_trigger | ⚡ | ASI_TRIGGER_SCHEMA | Fire any specific capability + Heartbeat tick |
asi_trigger accepts a capability enum with 17 values (incl. heartbeat) and optional params dict. The heartbeat capability calls get_heartbeat().tick(system=params.get('system'), force=params.get('force')) to run the central ASI Heartbeat.
asi_status now also shows the Heartbeat subsystem states (10 subsystems with their cadence and due-status).
asi_trigger accepts a capability enum with 16 values and optional params dict. The method_map dict in the handler routes each capability to the correct ASICore method.
Toolset Integration
Add to toolsets.py:
- Define the
"asi"toolset:
"asi": {
"description": "Integrated ASI Core — 16 capabilities...",
"tools": ["asi_status", "asi_think", "asi_learn", "asi_remember", "asi_trigger"],
"includes": []
}- Add tools to
_OPENAMER_CORE_TOOLS(or per-platform toolset):
"asi_status", "asi_think", "asi_learn", "asi_remember", "asi_trigger",Registry Integration
The module auto-registers via registry.register() at module level:
from tools.registry import registry
registry.register(
name="asi_status",
toolset="asi",
schema=ASI_STATUS_SCHEMA,
handler=handle_asi_status,
check_fn=check_asi_requirements,
emoji="🧬",
)The check_fn verifies scripts/training/ exists. Discovery is automatic — discover_builtin_tools() finds the file because it contains registry.register( at the top level.
Pitfalls
- Import order: The
tools/asi/subpackage must import beforeasi_core.pycalls subsystem methods. Module-level registration handles this (Python import system ensures subpackage init runs first). - Script legacy: Old scripts in
scripts/training/are still used by legacy cron jobs and subprocess fallback. Don't delete them until all cron jobs migrate to the Heartbeat. - Heartbeat state file:
memory/asi_heartbeat.jsonis written by the cronasi-heartbeat-tickjob and read byasi_trigger(capability='heartbeat'). If a subsystem'slast_runis stale, it will run on the next tick. Corrupted state → delete file, subsystems reset to "never run". - Timeout: The subprocess fallback (for scripts that can't be imported directly) has a 120s timeout. Most subsystems now use direct imports and are instant.
- State loading:
_load_state()readsmemory/self_model/current_state.json. If the file is missing or corrupt, it returns defaults. - Singleton:
get_asi_core()returns a module-level singleton. Do not instantiateASICoredirectly outside this pattern. - Tool visibility: Tools only appear after the module is imported. The registry's
discover_builtin_tools()handles this automatically on agent start. - Heartbeat ticks: The cron job runs every 5 min, but each subsystem only fires when its cadence timer has elapsed. A 5-min tick with no due subsystems produces no work — that's correct.
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
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.

