Install
openclaw skills install auto-context-managerAutomatically detects and manages the active project context based on user messages to provide relevant project-aware assistance.
openclaw skills install auto-context-managerAI-powered automatic project context management. Detects which project the user is referring to and maintains context awareness.
Auto-detect on: Use at session start or when context is unclear. Manual call: When user asks about projects or context switching.
Run from the skill directory:
# Detect project from message
python acm.py detect "your message here"
# List all projects
python acm.py list
# Get current active project
python acm.py current
# Switch to different project
python acm.py switch <project_id>
When user message contains project keywords:
python acm.py detect "<message>" to identify contextExample:
User: "Check my portfolio"
-> Detect: financial/trading project
-> Use relevant financial skills
-> Check trading-related memory files
Projects are stored in ~/.auto-context/projects.json and can be customized:
{
"projects": {
"my-project": {
"name": "My Project",
"description": "Project description",
"keywords": ["keyword1", "keyword2", "keyword3"]
}
},
"current_project": "default"
}
auto_context_manager.py - Core moduleacm.py - CLI wrapper~/.auto-context/projects.json - Project config (auto-created)from auto_context_manager import AutoContextManager
acm = AutoContextManager()
acm.create_project('project_id', 'Project Name', ['keyword1', 'keyword2'], 'Description')
~/.auto-context/