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 (any of these commands work)
co init # Short alias
cokodo init # Full name
cokodo-agent init # Package name
# Or specify a path
co init ./new-project
Usage
Interactive Mode (Default)
$ co init
Cokodo Agent v1.0.0
====================
Fetching protocol...
OK Protocol 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 (at least one required):
[x] Cokodo (Protocol Only) # Default - only .agent/
[ ] Cursor
[ ] GitHub Copilot
[ ] Claude Projects
[ ] Google Antigravity
Generating .agent/
OK Created .agent/
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 mode - protocol only)
co init --yes
# Specify options directly
co init --name "my-app" --stack python -y
Commands
| Command | Alias | Description |
|---|---|---|
co init [path] |
cokodo init |
Create .agent in target directory |
co version |
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
Cokodo Mode (Default)
Only generates .agent/ directory:
my-project/
+-- .agent/ # Protocol directory
+-- start-here.md # * Entry point
+-- quick-reference.md # Cheat sheet
+-- core/ # Governance rules
+-- project/ # Project-specific (customized)
+-- skills/ # Skill modules
+-- adapters/ # Tool adapter templates
+-- scripts/ # Helper scripts
With AI Tool Adapters
Additional files based on selected tools:
| Tool | Generated File |
|---|---|
| Cursor | .cursorrules |
| GitHub Copilot | .github/copilot-instructions.md |
| Claude Projects | .claude/instructions.md |
| Google Antigravity | .agent/rules/ directory |
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
- Complete Usage Guide - Detailed usage instructions
- 使用指南 (中文) - Chinese documentation
- Agent Protocol Documentation
- Report Issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cokodo_agent-1.1.0.tar.gz.
File metadata
- Download URL: cokodo_agent-1.1.0.tar.gz
- Upload date:
- Size: 51.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbcf8fb5e515a34587e326be39da038735c7a66dc8f5299e7f1800d6fb405116
|
|
| MD5 |
65ed9c0b86d1e79297287152844f3c04
|
|
| BLAKE2b-256 |
07c4a8dc88100012b933045d14a0bd91c9bbfe85d3631fabba8698410ac882af
|
Provenance
The following attestation bundles were made for cokodo_agent-1.1.0.tar.gz:
Publisher:
release.yml on dinwind/agent_protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cokodo_agent-1.1.0.tar.gz -
Subject digest:
bbcf8fb5e515a34587e326be39da038735c7a66dc8f5299e7f1800d6fb405116 - Sigstore transparency entry: 849866888
- Sigstore integration time:
-
Permalink:
dinwind/agent_protocol@636079927f5b864ace566c23722254a0d39147c5 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/dinwind
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@636079927f5b864ace566c23722254a0d39147c5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cokodo_agent-1.1.0-py3-none-any.whl.
File metadata
- Download URL: cokodo_agent-1.1.0-py3-none-any.whl
- Upload date:
- Size: 78.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
455e66936ea94bb78ab1e79d2e0442108dda38dbfa300ff3451ad0a8644f7751
|
|
| MD5 |
12cfada2b5e5deb2b095fe851761e944
|
|
| BLAKE2b-256 |
3603c48b8cb612be5ceda6f0cb0cae734def8306e0c564ae0f10c20947d2585c
|
Provenance
The following attestation bundles were made for cokodo_agent-1.1.0-py3-none-any.whl:
Publisher:
release.yml on dinwind/agent_protocol
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cokodo_agent-1.1.0-py3-none-any.whl -
Subject digest:
455e66936ea94bb78ab1e79d2e0442108dda38dbfa300ff3451ad0a8644f7751 - Sigstore transparency entry: 849866890
- Sigstore integration time:
-
Permalink:
dinwind/agent_protocol@636079927f5b864ace566c23722254a0d39147c5 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/dinwind
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@636079927f5b864ace566c23722254a0d39147c5 -
Trigger Event:
push
-
Statement type: