A knowledge management API that synchronizes AI context management with human project management.
AI coding assistants are stateless. Every session starts fresh. Knowledge is constantly lost:
- Issues discovered but forgotten next session
- Learnings not recorded for future AI instances
- Script output invisible to other agents
- Project vision drifts without protection
- Multiple AI instances can't coordinate
IdlerGear provides a command-based API that manages this knowledge across sessions, machines, and teams.
IdlerGear works identically across all major AI coding assistants:
| Assistant | Integration | Status |
|---|---|---|
| Claude Code | MCP + CLAUDE.md | ✅ Full support |
| Gemini CLI | MCP + GEMINI.md | ✅ Full support |
| GitHub Copilot CLI | MCP + agents | ✅ Full support |
| OpenAI Codex CLI | MCP + AGENTS.md | ✅ Full support |
| Aider | CLI + .aider.conf.yml | ✅ CLI support |
| Block's Goose | MCP + .goosehints | ✅ Full support |
Same commands, same knowledge, any assistant. Switch between assistants without losing context.
- Tasks - Track work items with status
- Notes - Capture quick insights and learnings
- Vision - Maintain project direction and goals
- Plans - Organize work into phases
- References - Store documentation and resources
- Session State - Perfect continuity across AI sessions
- Filesystem - 11 tools (read, write, tree, search, checksums)
- Git + Task Integration - 18 tools (commit-task linking, status, diff, branches)
- Process Management - 11 tools (list, monitor, IdlerGear runs integration)
- Environment Detection - 4 tools (auto-detect Python/Node/Rust/.NET/venv)
- OpenTelemetry Logs - 3 tools (query, stats, recent errors)
- Session Management - 4 tools (start, save, end, status)
Total: 51 MCP Tools | 100% Python | 0 Node.js Dependencies
- Local - JSON file storage in
.idlergear/ - GitHub - Issues, Projects, Wiki integration via
ghCLI
- MCP Server - 51 tools via Model Context Protocol (universal)
- Claude Code Hooks - Lifecycle hooks for 100% enforcement
- Goose Integration - CLI + GUI support with
.goosehints - Token Efficiency - 97% context reduction (17K → 570 tokens!)
- Session Persistence - Perfect state restoration across sessions
- Auto Error Capture - OpenTelemetry errors → tasks/notes automatically
AGENTS.md defines file conventions: "look for vision in docs/VISION.md"
IdlerGear provides a command-based API:
idlergear vision show # Returns authoritative vision, wherever it's storedThe difference:
- Backend-agnostic - Same command whether data is in local file, GitHub, or Jira
- Configurable - Project decides where data lives, command stays the same
- Deterministic - No AI interpretation needed, just run the command
# Install
git clone https://github.com/marctjones/idlergear.git
cd idlergear
pip install -e .
# Initialize a project
cd my-project
idlergear init
idlergear install # Adds CLAUDE.md, AGENTS.md, .mcp.json
# Set up AI assistant integration
idlergear hooks install # Claude Code lifecycle hooks
idlergear goose init # Generate .goosehints for Goose
# Use it
idlergear vision show
idlergear task create "Implement feature X"
idlergear task list
idlergear note create "Found that API requires auth header"
idlergear context --mode minimal # Get project context (97% token savings!)
# Session management (via MCP or CLI)
idlergear session-start # Load context + previous state
idlergear session-save # Save progress during work
idlergear session-end # End with smart suggestions
# Start collecting logs
idlergear otel start # ERROR logs → notes, FATAL → tasks automatically!idlergear --version # Show version
idlergear init # Initialize IdlerGear in project
idlergear install # Install AI integration files
idlergear uninstall # Remove AI integration files
# Knowledge Management
idlergear task create TEXT # Create a task
idlergear task list # List all tasks
idlergear task close ID # Close a task
idlergear task show ID # Show task details
idlergear note create TEXT # Capture a note
idlergear note list # List all notes
idlergear note promote ID --to task # Promote note to task
idlergear vision show # Show project vision
idlergear vision edit # Edit vision (opens editor)
idlergear reference add TITLE # Add reference documentation
idlergear reference list # List all references
idlergear reference show TITLE # Show a reference
idlergear search QUERY # Search across all knowledge types
# Context Management (Token-Efficient!)
idlergear context # Show context (default: minimal, ~570 tokens)
idlergear context --mode standard # Standard verbosity (~7K tokens)
idlergear context --mode detailed # Detailed (~11.5K tokens)
idlergear context --mode full # Full context (~17K tokens)
# Session Management
idlergear session-start # Load context + previous state
idlergear session-save # Save current work state
idlergear session-end # End with smart suggestions
idlergear session-status # View current session state
idlergear session-clear # Clear session state
# AI Assistant Integration
idlergear hooks install # Install Claude Code lifecycle hooks
idlergear hooks test # Test hooks work correctly
idlergear hooks list # List installed hooks
idlergear goose init # Generate .goosehints for Goose
idlergear goose register # Show Goose GUI registration instructions
# OpenTelemetry Logging
idlergear otel start # Start OTel collector daemon
idlergear otel stop # Stop collector
idlergear otel status # Show collector status
idlergear otel logs # Query collected logs
idlergear otel config # Manage configuration
# Configuration
idlergear config set KEY VAL # Configure settings
idlergear config get KEY # Get config valueSee MCP Tools Reference below for complete details.
IdlerGear provides 51 MCP tools across 6 categories. All tools are 100% Python with zero Node.js dependencies.
| Tool | Description |
|---|---|
idlergear_session_start |
⚡ Call first! Load context + previous state + recommendations |
idlergear_session_save |
Save current work state (task ID, files, notes) |
idlergear_session_end |
End session with smart suggestions for next time |
idlergear_session_status |
View current session state |
Example:
# Start of EVERY AI session
result = idlergear_session_start(context_mode="minimal")
# Returns: vision, plan, tasks, notes + previous session state + recommendationsBenefits: Perfect continuity, ~570 tokens (vs 17K!), eliminates "where did we leave off?" questions
| Tool | Description |
|---|---|
idlergear_fs_read_file |
Read file contents |
idlergear_fs_read_multiple |
Batch read multiple files |
idlergear_fs_write_file |
Write file contents |
idlergear_fs_create_directory |
Create directories |
idlergear_fs_list_directory |
List directory contents |
idlergear_fs_directory_tree |
Recursive tree structure (gitignore-aware) |
idlergear_fs_move_file |
Move/rename files |
idlergear_fs_search_files |
Pattern search (respects .gitignore) |
idlergear_fs_file_info |
File metadata (size, modified, permissions) |
idlergear_fs_file_checksum |
Calculate checksums (MD5, SHA1, SHA256) |
idlergear_fs_allowed_directories |
View security boundaries |
Replaces: @modelcontextprotocol/server-filesystem (Node.js)
| Tool | Description |
|---|---|
| Core Git Operations | |
idlergear_git_status |
Structured status (branch, staged, modified, untracked) |
idlergear_git_diff |
Configurable diffs (staged/unstaged, context lines) |
idlergear_git_log |
Commit history with filtering |
idlergear_git_add |
Stage files or all changes |
idlergear_git_commit |
Create commits |
idlergear_git_reset |
Unstage files or hard reset |
idlergear_git_show |
Show commit details with diff |
idlergear_git_branch_list |
List branches |
idlergear_git_branch_create |
Create branches |
idlergear_git_branch_checkout |
Switch branches |
idlergear_git_branch_delete |
Delete branches |
| IdlerGear-Specific 🔥 | |
idlergear_git_commit_task |
Auto-link commits to tasks |
idlergear_git_status_for_task |
Filter status by task files |
idlergear_git_task_commits |
Find all commits mentioning a task |
idlergear_git_sync_tasks |
Update task status from commit messages |
Replaces: cyanheads/git-mcp-server (Node.js)
Unique: First MCP git server with automatic commit-task linking!
Example:
# Commit and link to task in one operation
idlergear_git_commit_task(
task_id=42,
message="Fix authentication bug",
files=["auth.py"]
)
# Creates commit with "Task: #42" in message| Tool | Description |
|---|---|
idlergear_pm_list |
List running processes |
idlergear_pm_get |
Get specific process info |
idlergear_pm_kill |
Kill a process |
idlergear_pm_run_start |
Start IdlerGear run |
idlergear_pm_run_list |
List IdlerGear runs |
idlergear_pm_run_status |
Get run status |
idlergear_pm_run_logs |
Get run logs |
idlergear_pm_run_stop |
Stop a run |
idlergear_pm_system_info |
CPU, memory, disk usage |
idlergear_pm_cpu_percent |
Current CPU usage |
idlergear_pm_memory_info |
Memory usage breakdown |
Replaces: pm-mcp (Node.js)
Integrates: IdlerGear's existing runs system for task-aware process management
| Tool | Description |
|---|---|
idlergear_env_info |
Consolidated environment snapshot (Python, Node, venv, PATH) |
idlergear_env_which |
Enhanced which showing ALL PATH matches |
idlergear_env_detect |
Project type detection (Python, Node, Rust, .NET, Go, etc.) |
idlergear_env_find_venv |
Find virtual environments (venv, poetry, conda) |
Fills Gap: No other MCP server provides this! Token Savings: ~60% vs multiple shell commands
Example:
# One call instead of 10+ shell commands
idlergear_env_info()
# Returns: Python 3.11, venv active, Node 20.x, Rust 1.75, etc.| Tool | Description |
|---|---|
idlergear_otel_query_logs |
Query logs with filters (severity, service, time range, full-text search) |
idlergear_otel_stats |
Statistics breakdown by severity/service |
idlergear_otel_recent_errors |
Quick error checking |
Killer Feature: ERROR logs automatically become notes, FATAL logs become high-priority tasks!
Example:
# Start OTel collector (via CLI)
$ idlergear otel start
# Configure Goose to send logs
$ export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
# Run Goose - errors automatically create tasks!
# ERROR logs → idlergear note create (tagged 'error', 'otel')
# FATAL logs → idlergear task create (labeled 'bug', 'automated')
# Query logs later
idlergear_otel_query_logs(severity="ERROR", service="goose", limit=20)All 51 MCP tools integrate with IdlerGear's knowledge system:
- Context-aware operations
- Task linkage where relevant
- Automatic knowledge capture (OTel)
- Token-efficient outputs
Configure backends in .idlergear/config.toml:
[backends]
task = "github" # Use GitHub Issues for tasks
note = "local" # Keep notes local
vision = "github" # Sync vision to repo- Getting Started - Installation and setup
- Knowledge Types - All 6 knowledge types
- Commands Reference - Full CLI reference
- MCP Server - 35+ MCP tools
- AI Assistant Comparison - Feature comparison
- Built-in Tools Comparison - What each assistant provides
- Claude Code Integration - Full setup guide
- Slash Commands -
/ig-*command reference
- GitHub Integration - GitHub backend setup
See DESIGN.md for the full knowledge model and architecture.
Context management is an AI problem. Project management is a human problem. IdlerGear synchronizes them.
All Rights Reserved. This code is not open source. No license is granted for use, modification, or distribution without explicit written permission from the author.