Skip to main content

AI Agent Collaboration Protocol Generator - Create standardized .agent protocol for your projects

Project description

Cokodo Agent

A CLI tool to generate standardized AI collaboration protocol (.agent) for your projects.

Similar to create-react-app, this tool helps you quickly set up an .agent directory with best practices for AI-assisted development.


Installation

# Install globally
pip install cokodo-agent

# Or use pipx (recommended)
pipx install cokodo-agent

Quick Start

# Navigate to your project
cd my-project

# Run the generator
cokodo init

# Or specify a path
cokodo init ./new-project

Usage

Interactive Mode (Default)

$ cokodo init

  Cokodo Agent v1.0.0
  ====================

  Fetching protocol...
    [1/2] GitHub Release... OK (v2.1.0)

? Project name: my-awesome-app
? Brief description: A task management web application

? Primary tech stack:
  > Python
    Rust
    Qt/C++
    Mixed
    Other

? AI tools to configure: (space to select)
  [x] Cursor
  [x] GitHub Copilot
  [ ] Claude Projects

  Generating .agent/
  [========================================] 100%

  Success! Created .agent in /path/to/my-awesome-app

  Next steps:
    1. Review .agent/project/context.md
    2. Start coding with AI assistance!

Quick Mode

# Use defaults, skip prompts
cokodo init --yes

# Specify options directly
cokodo init --name "my-app" --stack python

Commands

Command Description
cokodo init [path] Create .agent in target directory
cokodo version Show version information

Options

Option Description
--yes, -y Skip prompts, use defaults
--name Project name
--stack Tech stack (python/rust/qt/mixed/other)
--force Overwrite existing .agent directory
--offline Use built-in protocol (no network)

Protocol Sources

The tool fetches the latest protocol from multiple sources with fallback:

Priority Source Description
1 GitHub Release Latest version from repository
2 Remote Server Backup server [reserved]
3 Built-in Bundled version in package
Priority 1: GitHub Release
    |
    | [unavailable]
    v
Priority 2: Remote Server [reserved, not implemented]
    |
    | [unavailable]
    v
Priority 3: Built-in (offline fallback)

Generated Structure

your-project/
+-- .agent/                     # Protocol directory
|   +-- start-here.md           # * Entry point
|   +-- quick-reference.md      # Cheat sheet
|   +-- index.md                # Navigation
|   +-- manifest.json           # Config
|   +-- core/                   # Governance rules
|   +-- project/                # Project-specific
|   |   +-- context.md          # <- Customized
|   |   +-- tech-stack.md       # <- Customized
|   +-- skills/                 # Skill modules
|   +-- adapters/               # Tool adapters
|   +-- meta/                   # Protocol evolution
|   +-- scripts/                # Helper scripts
|
+-- .cursorrules                # [Optional] Cursor config
+-- .github/
    +-- copilot-instructions.md # [Optional] Copilot config

Configuration

Environment Variables

Variable Description
COKODO_OFFLINE Force offline mode (1 or true)
COKODO_CACHE_DIR Custom cache directory

Cache Location

Downloaded protocols are cached at:

  • Linux/macOS: ~/.cache/cokodo/
  • Windows: %LOCALAPPDATA%\cokodo\cache\

Development

# Clone repository
git clone https://github.com/dinwind/agent_protocol.git
cd agent_protocol/cokodo-agent

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

License

MIT License - see LICENSE for details.


Documentation

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

cokodo_agent-1.0.0.tar.gz (50.4 kB view details)

Uploaded Source

Built Distribution

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

cokodo_agent-1.0.0-py3-none-any.whl (77.8 kB view details)

Uploaded Python 3

File details

Details for the file cokodo_agent-1.0.0.tar.gz.

File metadata

  • Download URL: cokodo_agent-1.0.0.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cokodo_agent-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c33a663e39186c83e977ca1e1c0a954b42905c61aa66d8e7036efd1e271c2623
MD5 ef07a92f65b8ac9486d64143265c5d0c
BLAKE2b-256 f9a68809d9275e27da8130c4449e137509410e0bae60b78ee82b06ad89ae8493

See more details on using hashes here.

Provenance

The following attestation bundles were made for cokodo_agent-1.0.0.tar.gz:

Publisher: release.yml on dinwind/agent_protocol

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

File details

Details for the file cokodo_agent-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: cokodo_agent-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 77.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cokodo_agent-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 573aca3c210812c32e1509e32846c9ac77556eeaef902d5e1e025bbd56d530d6
MD5 e20ac68c53cb0d17925d9ddcf658def1
BLAKE2b-256 a45df8de0b9092bea6e56c66bf2a288773572d88389b52c129ab23d35f5e6694

See more details on using hashes here.

Provenance

The following attestation bundles were made for cokodo_agent-1.0.0-py3-none-any.whl:

Publisher: release.yml on dinwind/agent_protocol

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