Skip to content

telepat-io/agent-integrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Agent Integration Manual for CLI Projects

This manual documents best practices for integrating a CLI tool with modern coding-agent ecosystems, based on:

  • reference implementation patterns.
  • a companion state service integration pattern for MCP and lifecycle hooks.
  • official platform docs for Claude Code/Desktop, ChatGPT, Codex, Gemini, MCP, VS Code customization surfaces (skills, hooks, MCP, plugins), and Context7.

Audience

  • Maintainers building a new CLI that should be agent-compatible from day one.
  • Platform integrators maintaining hooks, instruction files, and skills across tools.
  • Security and infra reviewers validating trust boundaries around tool execution.

Quick start selector

Choose your starting guide by host and setup goal:

Goal Start here
Claude Code project integration with hooks and MCP frameworks/claude-code.md
Claude Desktop local MCP setup frameworks/claude-desktop.md
Codex + skill-oriented workflow frameworks/codex.md
Gemini CLI/API integration frameworks/gemini.md
Pi agent integration frameworks/pi.md
VS Code MCP host setup frameworks/vscode.md
Cross-host architecture first (before framework specifics) topics/architecture-patterns.md

If unsure, run this order first: references/new-cli-checklist.mdtopics/instructions-and-skills.md → one framework guide.

What this manual covers

  • Platform-specific setup and installation flows.
  • Instruction layering (AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, skill files).
  • Skills marketplace discovery and skill intake governance.
  • Skill authoring lifecycle: quickstart, SKILL.md contract, scripts, and versioning.
  • Trigger-quality and output-quality skill evaluation loops.
  • Hook lifecycle and guardrails.
  • MCP server design and transport choices.
  • Security and approvals strategy.
  • Observability and integration testing patterns.
  • Copy-paste snippets and project bootstrap checklist.

Skill artifact taxonomy

Keep these concepts separate during implementation:

  • Installable skill package: end-user/agent-facing bundle (for example <tool>-skill/ with SKILL.md).
  • Internal contract metadata: validation/readiness descriptors used by sync checks.

Do not use internal metadata identifiers as installable skill package names.

Manual map

Framework guides

Deep technical topics

References

External references used

Key skill docs to start with:

Implementation model used in this manual

The recommended integration stack for a CLI tool has four layers:

  1. Runtime interface layer: CLI commands, config paths, install/uninstall commands.
  2. Instruction layer: persistent files that influence agent behavior (AGENTS.md and platform-specific variants).
  3. Lifecycle layer: hooks that fire before and after tool execution and at stop/compaction boundaries.
  4. Context exchange layer: MCP server for discoverable tools and structured argument schemas.

Design goals

  • Deterministic installation and idempotent reinstall behavior.
  • Clear boundaries between policy, execution, and transport.
  • Minimal surprise for users switching between agent frameworks.
  • Explicit fallback behavior for frameworks with partial hook support.
  • Testable integration contracts, not only happy-path docs.

Current status

This is v1 of the manual and is intentionally implementation-heavy. If you are starting from scratch, use the checklist first, then implement one framework end-to-end before expanding to others.

About

Integrate Your Tool With All The Agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors