A production-ready template for teams shipping with AI coding agents.
agent-project is a practical starter template built around an AGENTS.md entrypoint and an "everything as code" workflow. Standards, plans, PR records, issues, boards, and review policies live in the repository as versioned markdown filesβaccessible to both humans and AI agents.
The philosophy is simple: Point any agent at AGENTS.md, and it knows exactly how to work in your repo.
The template provides a complete development workflow from local development through CI/CD deployment, with AI-powered code reviews at every stage:
flowchart TB
accTitle: Agent Project System Architecture
accDescr: Complete architecture showing local development, CI/CD pipelines, agent workflows, and deployment paths.
subgraph LocalDevelopment["π» Local Development Environment"]
direction LR
VSCode["π VS Code<br/>IDE + Terminal"]
AgentTools["π€ Agent Tools<br/>OpenCode / Claude Code / Roo Code / Copilot"]
LocalCI["β‘ Local CI Runner<br/>./scripts/ci-local.sh"]
Memory["π§ Review Memory<br/>./scripts/memory.sh"]
VSCode --> AgentTools --> LocalCI --> Memory
end
subgraph SourceControl["π¦ Source Control & Standards"]
direction LR
AgentsMD["π AGENTS.md<br/>Entry Point"]
Standards["π Agentic Standards<br/>Style Guides & Templates"]
ADRs["ποΈ Architecture Decisions<br/>agentic/adr/"]
Tracking["π Project Tracking<br/>docs/project/"]
AgentsMD --> Standards
Standards --> ADRs
Standards --> Tracking
end
subgraph CI_CD["π CI/CD Pipeline"]
direction TB
subgraph Validation["β
Validation Phase"]
direction LR
Lint["π Lint & Format"]
TypeCheck["π Type Check"]
Test["π§ͺ Tests"]
Lint --> TypeCheck --> Test
end
subgraph Deploy["π Deploy Phase"]
direction LR
Build["π¦ Build"] --> Cloudflare["βοΈ Cloudflare Pages"]
end
subgraph Review["π₯ Review Phase"]
direction LR
CrewAI["π€ CrewAI Review"]
Quick["β‘ Quick Mode"]
Full["π¬ Full Mode"]
Complete["π― Complete-Full Mode"]
CrewAI --> Quick
CrewAI --> Full
CrewAI --> Complete
end
Validation --> Deploy
Deploy --> Review
end
subgraph GitHubPlatform["βοΈ GitHub Platform"]
Actions["π· GitHub Actions<br/>CI/CD Workflows"]
Secrets["π Key Management<br/>Repository Secrets"]
PRs["π₯ PRs & Reviews<br/>Collaboration Hub"]
end
LocalDevelopment --> SourceControl
SourceControl --> CI_CD
CI_CD --> Cloudflare
CI_CD --> GitHubPlatform
classDef local fill:#dbeafe,stroke:#2563eb,stroke-width:2px,color:#1e3a5f
classDef source fill:#fef3c7,stroke:#d97706,stroke-width:2px,color:#78350f
classDef cicd fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
classDef github fill:#fce7f3,stroke:#db2777,stroke-width:2px,color:#831843
classDef phase fill:#f3f4f6,stroke:#6b7280,stroke-width:2px,color:#374151
class LocalDevelopment,VSCode,AgentTools,LocalCI,Memory local
class SourceControl,AgentsMD,Standards,ADRs,Tracking source
class CI_CD,Validation,Review,Deploy,Build,Cloudflare cicd
class GitHubPlatform,Actions,Secrets,PRs github
class Lint,TypeCheck,Test,CrewAI,Quick,Full,Complete phase
Get up and running in minutes:
# Clone the template
git clone https://github.com/borealBytes/agent-project.git
cd agent-project
# Install dependencies
pnpm install
# Run local CI to validate everything works
./scripts/ci-local.shAgent review modes:
# Quick review - fast triage for daily iteration
./scripts/ci-local.sh --review
# Full review - deeper analysis with specialists
./scripts/ci-local.sh --full-review --step review
# Complete-full review - maximum coverage for critical changes
./scripts/ci-local.sh --complete-full-review --step reviewThis template is designed for teams using any AI coding agent:
| Tool | How It Works |
|---|---|
| OpenCode | Reads AGENTS.md at startup, follows instructions for PRs, issues, and kanban |
| Claude Code | Ingests repo rules from AGENTS.md, applies conventions automatically |
| Roo Code | Uses AGENTS.md as system context for all operations |
| GitHub Copilot | References AGENTS.md for code style and conventions |
| Perplexity/Other Web Agents | Point to AGENTS.md URL as entrypoint |
Perfect for teams that want:
- β Auditable, repo-native process standards (not UI-only metadata)
- β AI agents that follow the same rules as humans
- β Versioned project tracking in git
- β Local-first CI with optional GitHub Actions integration
This template treats process records as first-class code artifacts:
flowchart TB
accTitle: Everything as Code Philosophy
accDescr: All project management data lives in versioned markdown files, not external tools.
subgraph ADRs["ποΈ Decisions"]
direction LR
A1["ADR-001-architecture.md"]
A2["ADR-002-standards.md"]
end
subgraph Kanban["π Kanban Boards"]
direction LR
K1["sprint-w07.md"]
K2["release-v2.0.md"]
end
subgraph Issues["π Issues"]
direction LR
I1["issue-00000001-bug.md"]
I2["issue-00000002-feature.md"]
end
subgraph PRs["π Pull Requests"]
direction LR
PR1["pr-00000001-feature.md"]
PR2["pr-00000002-fix.md"]
end
ADRs --> Kanban
Kanban --> Issues
Issues --> PRs
classDef file fill:#dbeafe,stroke:#2563eb,stroke-width:2px,color:#1e3a5f
class PR1,PR2,I1,I2,K1,K2,A1,A2 file
Why this matters:
- Portable: Your project history travels with the repo
- Versioned: Git tracks every change with attribution
- Accessible: Both humans and agents read the same files
- Offline: No dependency on external platforms
How agents work with this template from task to completion:
sequenceDiagram
accTitle: Agent Task Completion Workflow
accDescr: Sequence showing how an agent processes a task from intake through completion.
actor Human
participant Agent as AI Agent
participant AGENTS as AGENTS.md
participant Instructions as agentic/instructions.md
participant Standards as Style Guides
participant Work as Implementation
participant CI as Local CI
participant PR as PR Record
Human->>Agent: Submit task
Agent->>AGENTS: Read entry point
AGENTS->>Instructions: Load workflow
Instructions->>Standards: Load style guides
Standards->>Agent: Return conventions
Agent->>Work: Create branch
Agent->>Work: Write code
Agent->>PR: Update PR record
Agent->>CI: Run local CI
CI-->>Agent: Pass/Fail
alt CI Pass
Agent->>PR: Mark ready for review
PR-->>Human: PR record updated
else CI Fail
Agent->>Work: Fix issues
Agent->>CI: Re-run CI
end
Human->>Agent: Approve & merge
Agent->>PR: Update status to done
The local CI runner validates code before it reaches GitHub:
flowchart TB
accTitle: Local CI Pipeline Stages
accDescr: Flow showing the stages of local CI validation.
Start([Start]) --> Phase1
subgraph Phase1["Phase 1: Validation"]
direction LR
Lint["π Lint & Format"]
TypeCheck["π Type Check"]
Lint --> TypeCheck
end
Phase1 --> Phase2
subgraph Phase2["Phase 2: Testing"]
direction LR
Test["π§ͺ Run Tests"]
Build["π¦ Build Check"]
Test --> Build
end
Phase2 --> Phase3
subgraph Phase3["Phase 3: Review"]
direction LR
Review["π€ CrewAI Review"]
Quick["β‘ Quick Mode"]
Full["π¬ Full Mode"]
Complete["π― Complete-Full"]
Review --> Quick
Review --> Full
Review --> Complete
end
Phase3 --> End([End])
classDef phase fill:#dbeafe,stroke:#2563eb,stroke-width:2px,color:#1e3a5f
classDef review fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
class Phase1,Phase2,Phase3 phase
class Review,Quick,Full,Complete review
| Mode | Command | What It Does | When to Use |
|---|---|---|---|
| Quick | ./scripts/ci-local.sh --review |
Fast triage-oriented review | Day-to-day iteration |
| Full | ./scripts/ci-local.sh --full-review --step review |
Deeper synthesis + specialists | Risky or broad changes |
| Complete-Full | ./scripts/ci-local.sh --complete-full-review --step review |
All specialists, full-repo scope | Pre-merge hardening |
Layered assurance: Speed when you need flow, depth when you need confidence, complete coverage when touching multiple risk domains.
The monorepo layout supports polyglot development:
graph TD
accTitle: Repository Structure
accDescr: Visual overview of the repository directory structure.
root["π agent-project/"] --> agentic["π agentic/<br/>Agent Framework"]
root --> crewai["π .crewai/<br/>Review System"]
root --> apps["π apps/<br/>Deployable Apps"]
root --> services["π services/<br/>Background Services"]
root --> packages["π packages/<br/>Shared Libraries"]
root --> data["π data/sql/<br/>Database Schemas"]
root --> docs["π docs/<br/>Documentation"]
root --> scripts["π scripts/<br/>CI Scripts"]
agentic --> agf1["instructions.md"]
agentic --> agf2["AGENTS.md"]
agentic --> agf3["adr/"]
agentic --> agf4["markdown_templates/"]
crewai --> crw1["crews/"]
crewai --> crw2["config/"]
crewai --> crw3["adr/"]
apps --> web["web/<br/>Next.js Site"]
apps --> api["api/<br/>API Server"]
docs --> pr["project/pr/<br/>PR Records"]
docs --> issues["project/issues/<br/>Issue Records"]
docs --> kanban["project/kanban/<br/>Kanban Boards"]
classDef root fill:#fee2e2,stroke:#dc2626,stroke-width:3px,color:#7f1d1d
classDef framework fill:#dbeafe,stroke:#2563eb,stroke-width:2px,color:#1e3a5f
classDef workspace fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
classDef docs fill:#fef3c7,stroke:#d97706,stroke-width:2px,color:#78350f
class root root
class agentic,crewai framework
class apps,services,packages,data workspace
class docs,scripts docs
| Directory | Purpose | Key Files |
|---|---|---|
agentic/ |
Agent framework and standards | AGENTS.md, instructions.md, style guides |
.crewai/ |
CrewAI review system | Agent definitions, task contracts, crews |
apps/ |
Deployable applications | web/, api/, cli/ |
services/ |
Background services/workers | Long-running processes |
packages/ |
Shared libraries/modules | Reusable code |
data/sql/ |
Database schemas/migrations | SQL files |
docs/project/ |
Project tracking | PRs, issues, kanban boards |
scripts/ |
CI and utility scripts | ci-local.sh, memory.sh |
GitHub Actions secrets are cleanly managed:
flowchart TB
accTitle: GitHub Secrets Management
accDescr: How secrets flow from GitHub to workflows and applications.
subgraph GitHub["βοΈ GitHub Platform"]
Secrets["π Repository Secrets<br/>Settings > Secrets"]
Environments["π Environment Secrets<br/>Production / Staging"]
end
subgraph Workflows["βοΈ GitHub Workflows"]
CI["π CI Workflow"]
Deploy["π Deploy Workflow"]
Review["π₯ Review Workflow"]
end
subgraph Runtime["π Runtime"]
CrewAI["π€ CrewAI Review<br/>API Keys"]
DeployTarget["π¦ Deployment Target<br/>Vercel / AWS / etc"]
end
Secrets --> Workflows
Environments --> Workflows
CI --> Runtime
Deploy --> Runtime
Review --> Runtime
classDef secrets fill:#fee2e2,stroke:#dc2626,stroke-width:2px,color:#7f1d1d
classDef workflow fill:#dbeafe,stroke:#2563eb,stroke-width:2px,color:#1e3a5f
classDef runtime fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
class Secrets,Environments secrets
class CI,Deploy,Review workflow
class CrewAI,DeployTarget runtime
Required Secrets:
OPENROUTER_API_KEY- For CrewAI reviews (orNVIDIA_API_KEYfor NVIDIA NIM)- Deployment tokens for your hosting platform (Vercel, AWS, etc.)
Perfect for Perplexity, Claude web, or other hosted agents:
- Point the agent to
AGENTS.mdas the entrypoint - Connect the repository (or provide diffs)
- Work in branches with PR records in
docs/project/pr/ - Track progress in kanban boards
For OpenCode, Roo Code, Claude Code, Copilot:
- Clone locally and open in your IDE
- Agent reads
AGENTS.mdautomatically - Run local CI before committing
- Push to GitHub for team review
Best of both worlds:
- Local development with agent assistance
- Local CI validation before push
- GitHub Actions for team CI/CD
- CrewAI review for quality gates
Specialists are configured in .crewai/ and can be adapted to your domain:
# .crewai/config/agents.yaml
security_specialist:
role: Security Specialist
goal: Identify security vulnerabilities
backstory: Expert in application security...Add organization-specific context:
# agentic/custom-instructions.md
## Our Team Standards
- We use tabs, not spaces
- Maximum line length: 100 characters
- Required reviewers: 2 for all PRsStart here based on what you're doing:
| If you want to... | Start here |
|---|---|
| Use an agent | AGENTS.md |
| Understand the framework | agentic/README.md |
| Customize CI/CD | .github/workflows/README.md |
| Add specialists | .crewai/README.md |
| Create a PR | docs/project/pr/ |
| Track work | docs/project/kanban/ |
| Document decisions | agentic/adr/ |
| Run scripts | scripts/README.md |
- License: Apache-2.0 (see
LICENSEandNOTICE) - Author: Clayton Young (@borealBytes), Superior Byte Works, LLC
- Contributing: See
CONTRIBUTING.md
Built for agents. Designed for humans. Versioned in git.