Skip to content

jhcook/agentic-dev

Repository files navigation

Agent

An AI-powered governance and workflow CLI for software development teams. Agent automates story creation, implementation planning, code review, and compliance enforcement — all from the command line.

Introduction

Read our core philosophy on how agentic-dev approaches AI-assisted engineering:

What It Does

  • Story & Runbook Management — Create, track, and implement user stories with structured workflows and state transitions.
  • AI Governance Panel — Multi-role preflight checks (Security, Architect, QA, Compliance, Observability) that validate your changes before commit.
  • Parallel ADK Engine — Blazing fast governance evaluation leveraging the Google Agent Development Kit for concurrent multi-agent analysis.
  • Oracle Preflight Pattern — Advanced context retrieval fusing Notion, NotebookLM via MCP, and an embedded zero-server Vector database for high fidelity AI decisions.
  • Multi-Provider AI — Works with Gemini, Vertex AI, OpenAI, Anthropic, GitHub Copilot, and Ollama (local). Automatic fallback between providers on rate limits.
  • Smart Test Selection — Performs real-time Python impact analysis to intelligently group and selectively execute necessary tests.
  • User Journey Testing — Define user journeys as YAML, auto-generate test stubs, enforce implementation gates, and track test coverage.
  • Voice UX Reviews — Analyze hands-free voice sessions (agent review-voice) to grade agent latency, accuracy, tone, and interruption handling.
  • Automated License Headers — Enforces and automatically generates required copyright headers across specific file types in the project.

Quick Start

See Getting Started for full instructions on prerequisites, how to get .agent into your repository, configuration, and running agent onboard.

Run

The standard Agentic Development workflow follows a strict requirements-to-code pipeline:

# 1. Create a tracking story
agent new-story INFRA-001

# 2. Automatically generate an implementation plan (Runbook)
agent new-runbook INFRA-001

# 3. Have the AI implement the approved Runbook
agent implement INFRA-001

# 4. Run the Parallel Governance Council checks
# (Architect, Security, QA, Compliance, etc.)
agent preflight --story INFRA-001

# 5. Commit with story tracking and automated message
agent commit

Code Quality

We enforce a 500 LOC ceiling per file and circular dependency checks. To run locally:

agent preflight --gate quality
# OR
python3 scripts/check_loc.py
python3 scripts/check_imports.py

Core Workflows

Command Description
agent new-story Create a new user story
agent new-runbook Generate an implementation runbook
agent new-plan Create a new implementation plan
agent new-journey Create a new user journey
agent new-adr Create a new ADR
agent implement Implement from a runbook
agent preflight Run governance checks
agent commit Commit with story tracking
agent pr Create a pull request

Governance & Review

Command Description
agent panel Convene the AI governance panel
agent impact Run impact analysis
agent review-voice Analyze a completed voice session and generate UX feedback
agent audit Generate audit report
agent lint Run linters (ruff, shellcheck, eslint)
agent validate-story Validate story schema
agent validate-journey Validate journey YAML
agent match-story Match staged files to a story
agent run-ui-tests Run UI test suite

Voice UX Reviews

The agent review-voice command enables you to evaluate the quality of a voice agent session. It analyzes latency, accuracy, tone, and interruption handling to provide structured UX feedback on the voice bot's performance.

AI & Query

Command Description
agent query Ask AI about the codebase
agent list-models List available AI models

Listing & Discovery

Command Description
agent list-stories List all stories
agent list-plans List all plans
agent list-runbooks List all runbooks
agent list-journeys List all journeys

Sub-Apps

Command Description
agent sync Distributed sync (push/pull/status/scan/janitor/init/flush)
agent journey Journey management (coverage, backfill-tests)
agent config Manage configuration
agent secret Manage encrypted secrets
agent admin Launch management console
agent console Interactive terminal TUI for AI-assisted development (guide)
agent mcp Manage MCP servers
agent import Import artifacts from external sources
agent onboard Interactive onboarding wizard

MCP Authentication

The agent mcp auth command manages authentication for MCP servers (e.g., NotebookLM). See the NotebookLM Integration Guide for full setup and configuration.

  • --auto: Automatically extracts session cookies from a supported local browser using the OS-native keychain (requires explicit GDPR consent).
  • --file <path>: Uses a file-based cookie import from the provided path instead of launching Chrome interactively.
  • --no-auto-launch: Prints instructions for manual cookie extraction instead of launching the interactive browser script.
  • --clear-session: Clears the saved authentication session cookies for this server from the secure storage.

Syncing MCP Server Context

The agent sync notebooklm command syncs notebook context into the local database cache using the MCP functionality.

  • --reset: Clears internal caching state only, forcing a fresh fetch on the next sync.
  • --flush: Clears both internal caching state and deletes all previously tracked artifacts and sources from the database cache.

Ollama (Local AI Provider)

Ollama enables fully local, self-hosted AI inference with no data leaving your machine. Any model available in Ollama can be used.

# Start Ollama and pull a model
ollama serve && ollama pull llama3

# Use with any agent command
agent query "how does the router work?" --provider ollama
Variable Default Description
OLLAMA_HOST http://localhost:11434 Ollama server address (localhost only)
OLLAMA_MODEL llama3 Default model to use

OpenTelemetry Tracing

OpenTelemetry instrumentation is available for LLM flows and spans.

Variable Default Description
ENABLE_OTEL_TRACING false Enable/disable tracing. Needs OTEL_EXPORTER_OTLP_ENDPOINT.

Standardized Retries & Backoff

To provide robust execution, a standardized @with_retry and retry_async / retry_sync utility is available. By default, it uses exponential backoff and safely interacts with telemetry. If a non-transient error occurs, raise NonRetryableError to immediately abort the retry loop.

Documentation

License

Apache License 2.0

Copyright

Copyright 2026 Justin Cook

About

Agentic Dev Framework

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors