Skip to main content

GuideAI developer tooling and task orchestration helpers

Project description

GuideAI — The Behavior Engine for AI Agents

CI Python 3.10+ License Platforms

Turn your LLM chains-of-thought into a reusable procedural handbook — cut reasoning tokens by up to 46% while maintaining or improving quality.

GuideAI captures recurring AI reasoning patterns as named behaviors and conditions agents to reuse them, inspired by Meta AI's Metacognitive Reuse research.


Get Started in 30 Seconds

Cloud — zero install:

→ https://amprealize.ai (sign up and go)

CLI — for developers:

pipx install guideai
guideai init

Desktop app: not shipped from this repository yet; use the cloud console, CLI, VS Code extension, or MCP today. Watch GitHub Releases for future desktop builds.


What Is GuideAI?

GuideAI is a behavior-driven AI workflow platform that extracts, stores, and retrieves procedural knowledge — reusable how-to strategies — from successful AI reasoning traces. Instead of re-deriving common patterns on every prompt, agents consult a behavior handbook and allocate their compute budget to novel subproblems.

The platform serves three roles:

  • Student — consumes behaviors in-context for efficient task execution
  • Teacher — validates behaviors, creates examples, and reviews quality
  • Metacognitive Strategist — discovers patterns, proposes new behaviors, and curates the handbook

GuideAI works across multiple surfaces: Web Console, CLI, VS Code Extension, and MCP Server — with consistent behavior retrieval and execution tracking everywhere.


Features

  • Behavior Engine — extract, version, retrieve, and apply reusable reasoning patterns
  • MCP Server — 220+ tools for behaviors, runs, compliance, actions, metrics, and more
  • Multi-Surface Parity — CLI, REST API, MCP, Web UI, and VS Code extension share the same backend
  • Agent Orchestration — run agents with behavior-conditioned inference (BCI) for token-efficient execution
  • Compliance & Audit — full action logging, hash-chained audit trails, and policy enforcement
  • Structured Logging (Raze) — centralized, queryable, context-enriched telemetry
  • Environment Management (Amprealize) — blueprint-driven container orchestration with compliance hooks
  • Multi-Tenant — org-scoped or personal projects with role-based access control
  • OAuth & Device Flow Auth — GitHub, Google, Microsoft providers with token vault
  • Billing Tiers — OSS → Starter → Pro → Team → Enterprise

Architecture

┌─────────────┐  ┌─────────────┐  ┌─────────────┐
│  Web Console │  │  VS Code    │  │    CLI      │
│  (React)     │  │  Extension  │  │  (Click)    │
└──────┬───────┘  └──────┬───────┘  └──────┬───────┘
       │                 │                 │
       └─────────────────┴────────┬────────┘
                                  │
                         ┌────────▼────────┐
                         │   FastAPI + MCP  │
                         │   Server         │
                         └────────┬────────┘
                                  │
         ┌────────────────────────┼────────────────────────┐
         │                        │                        │
  ┌──────▼──────┐  ┌──────────────▼──────────────┐  ┌─────▼──────┐
  │  Behavior   │  │  RunService / ActionService  │  │  Raze      │
  │  Service    │  │  ComplianceService           │  │  Telemetry │
  └─────────────┘  └─────────────────────────────┘  └────────────┘

Project Structure

guideai/
├── guideai/              # Core Python package
│   ├── mcp_tool_manifests/  # Bundled MCP tool JSON (sync from mcp/tools for releases)
│   ├── behaviors/        # Behavior engine
│   ├── mcp/              # MCP server (220+ tools)
│   ├── services/         # Run, Action, Compliance services
│   ├── auth/             # OAuth, device flow, token vault
│   ├── cli/              # CLI commands (Click)
│   ├── config/           # Configuration loader
│   └── storage/          # Storage adapters (SQLite, Postgres)
├── packages/
│   ├── raze/             # Structured logging (standalone)
│   ├── amprealize/       # Environment orchestration (standalone)
│   ├── midnighter/       # Background task scheduler
│   ├── notify/           # Notification service
│   ├── observability/    # Metrics pipeline
│   └── billing/          # Billing & tier management
├── web-console/          # React web UI
├── extension/            # VS Code extension
├── dashboard/            # Grafana metrics dashboard
├── docs/
│   ├── contracts/        # Service contract specs
│   ├── agents/           # Agent role documentation
│   └── research/         # Research papers & references
├── infra/                # Docker, deployment, CI/CD configs
├── tests/                # Test suite
├── scripts/              # Dev & CI scripts
├── mcp/                  # MCP tool JSON schemas
├── migrations/           # Alembic database migrations
└── schema/               # Database schema definitions

Documentation

Document Description
AGENTS.md Behavior handbook — roles, behaviors, triggers, checklists
MCP Client Setup Portable GuideAI MCP setup for VS Code, Cursor, Claude, and other clients
Installation Plan v3.1 plan with 6 tracks, 39 stories
MCP Server Design MCP tool catalog and service contracts
API Contracts ActionService, RunService, BehaviorService contracts
Audit Log Storage Hash-chained audit trail design
Build Timeline Chronological build log

OSS install profiles

Profile What you need Notes
Minimal (solo / local) Python 3.10+, pip install guideai or pipx install guideai, optional .env Use SQLite via guideai init and guideai db migrate. MCP tools ship in the wheel (guideai mcp-server doctor to verify).
Full stack (Postgres, telemetry, etc.) Docker or Podman, Postgres, Redis, and the variables in .env.example See infra/docker-compose.postgres.yml for reference service layout. Heavy dependencies (e.g. Podman, DB clients) are installed with the default package; trim via optional extras only where the project already exposes them.
Contributors (this monorepo) Git clone + editable install (below) Canonical MCP tool JSON lives in mcp/tools/; run python scripts/sync_mcp_tool_manifests.py after changing manifests so guideai/mcp_tool_manifests/ stays aligned (CI enforces this).

Development

# Clone and set up
git clone https://github.com/SandRiseStudio/guideai.git
cd guideai
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

# Install pre-commit hooks
./scripts/install_hooks.sh

# Run tests
pytest

# Generate local MCP configs for VS Code/Cursor/Claude/Codex and smoke-test them
guideai mcp-server init
guideai mcp-server doctor

# Keep GUIDEAI_* runtime settings in .env / .env.local / .env.mcp
# instead of embedding DSNs into editor MCP configs

# Start the server
uvicorn guideai.api:app --reload

# Run secret scan
bash scripts/scan_secrets.sh

Contributing

See CONTRIBUTING.md for development setup, PR process, commit conventions, and the behavior handbook reference.

Please read our Code of Conduct before contributing.


Security

To report security vulnerabilities, please see SECURITY.md. Do NOT use GitHub Issues for security reports.


Canonical GitHub repository

Public source of truth: github.com/SandRiseStudio/guideai.

Maintainers (after org or repo moves): point PyPI Trusted Publishing at SandRiseStudio/guideai, confirm GitHub Actions secrets and environments still apply to this repository, and re-check branch protection and Dependabot on the default branch.


License

Apache License 2.0

Copyright 2026 GuideAI Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

guideai-0.1.0.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guideai-0.1.0-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file guideai-0.1.0.tar.gz.

File metadata

  • Download URL: guideai-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for guideai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ccfc75ded83260f2fdad0bfcdd5aa6cdde08bdacab28f915da0650de4bf3423c
MD5 56c7aba38655751798c508a2a5c7e283
BLAKE2b-256 3feb777ee881ea777a0fe1a838ef99cd0449b59b89ef4a274c6bf5573c6caf15

See more details on using hashes here.

Provenance

The following attestation bundles were made for guideai-0.1.0.tar.gz:

Publisher: publish-pypi.yml on SandRiseStudio/guideai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guideai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: guideai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for guideai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af3e6f07ebdda7cc34d12be7f6b62e5c6a428affa69935aae25f16621038fd24
MD5 73867d1e929d9c0aade3c3f9bd3eba06
BLAKE2b-256 a502e6d7b9d1ae34300d3e5310a49dc5efd27edda1c4aa573689de126341f45f

See more details on using hashes here.

Provenance

The following attestation bundles were made for guideai-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on SandRiseStudio/guideai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page