Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ structured-coding-with-ai/
├── cline/ # .clinerules/ (14 files)
├── cursor/ # .cursorrules + .cursor/rules/ (14 files)
├── gemini-cli/ # GEMINI.md
├── graze-cli/ # GRAZE.md — Open Paws opencode fork (multi-provider failover, advocacy kernel)
├── github-copilot/ # .github/ instructions, prompts, chat modes (23 files)
├── jetbrains-junie/ # .junie/guidelines.md
├── kilo-code/ # .kilocode/rules/ + Memory Bank (21 files)
Expand Down
12 changes: 9 additions & 3 deletions graze-cli/GRAZE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## What is graze and why use it?

Graze-CLI is Open Paws' fork of [opencode](https://github.com/anomalyco/opencode), an agentic coding CLI for advocacy developers. It supports automatic failover across 9 LLM providers (7 with free tiers: Gemini, Groq, Cerebras, SambaNova, DeepInfra, Ollama, Mistral/CodeStral). Key differences from upstream:

- Advocacy-aware system prompts (neutral mode for external repos, full kernel for Open Paws)
- Pre-configured NAV/desloppify hooks
- India bootcamp / global south optimized (free-tier providers, Colab secrets)
Expand All @@ -14,22 +15,26 @@ Copy this `graze-cli/` directory to your project root. Graze auto-detects it.
**NOT** `npm i -g opencode` (upstream, lacks advocacy rules).

### Global install (recommended for Guild devs)

```bash
git clone https://github.com/Open-Paws/graze-cli.git
cd graze-cli
npm install
npm run build
npm link # or `bun link`
```

Test: `graze --version`

### Colab / no-install (India bootcamp)

```bash
git clone https://github.com/Open-Paws/graze-cli.git
cd graze-cli
npm install
npx graze --version # or add to $PATH
```
Comment thread
coderabbitai[bot] marked this conversation as resolved.

Use Colab secrets for API keys: `GOOGLE_GENERATIVE_AI_API_KEY`, `GROQ_API_KEY`, etc.

**npm package pending** (@open-paws/graze publishing tracked [#74](https://github.com/Open-Paws/graze-cli/issues/74)).
Expand All @@ -47,8 +52,8 @@ Use Colab secrets for API keys: `GOOGLE_GENERATIVE_AI_API_KEY`, `GROQ_API_KEY`,

## Advocacy Workflow Rules

1. **Pre-commit**: Always `desloppify scan .` + `semgrep --config=p/open-paws/semgrep-rules-no-animal-violence`
2. **Economic test**: Before implementing, ask: \"Does this make exploitation less profitable or alternatives more competitive?\"
1. **Pre-commit**: Always `desloppify scan .` + `semgrep --config semgrep-no-animal-violence.yaml`
2. **Economic test**: Before implementing, ask: "Does this make exploitation less profitable or alternatives more competitive?"
3. **Quest submission** (Guild): `platform_submit_quest_completion` when done
4. **Two-state prompts**: Advocacy kernel auto-injects in Open Paws repos; neutral elsewhere
5. **Token discipline**: Large context (strategy docs) — `graze run --max-tokens 32k`
Expand All @@ -61,8 +66,9 @@ Use Colab secrets for API keys: `GOOGLE_GENERATIVE_AI_API_KEY`, `GROQ_API_KEY`,
- **India networks**: Gemini blocked? Fallback: `graze herd list | grep free`.

## Links

- [Graze-CLI Repo](https://github.com/Open-Paws/graze-cli)
- [India Bootcamp Module 1](https://github.com/Open-Paws/c4c-bootcamp/issues/10)
- [Desloppify OP Fork](https://github.com/Open-Paws/desloppify)

Comment on lines +68 to +73
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Searching README/index files for GRAZE.md cross-reference..."
fd -i 'readme\.md$|index\.md$' --exec rg -n -i 'graze-cli/GRAZE\.md|GRAZE\.md'

Repository: Open-Paws/structured-coding-with-ai

Length of output: 140


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Step 1: Find all README/index files in repository ==="
fd -i 'readme|index' -e md

echo ""
echo "=== Step 2: Specifically check graze-cli directory ==="
ls -la graze-cli/ 2>/dev/null | grep -i readme || echo "No README in graze-cli/"

echo ""
echo "=== Step 3: Check repository root for README ==="
ls -la | grep -i readme || echo "No README in root"

Repository: Open-Paws/structured-coding-with-ai

Length of output: 582


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Step 4: Verify GRAZE.md content for speciesist language ==="
# First, try to install semgrep and run the check
pip install semgrep -q 2>/dev/null || echo "Semgrep installation may have issues"

# Attempt the semgrep check on GRAZE.md
if command -v semgrep &> /dev/null; then
  echo "Running semgrep check on GRAZE.md..."
  semgrep --config semgrep-no-animal-violence.yaml graze-cli/GRAZE.md 2>&1 || true
else
  echo "Semgrep not available; checking content manually for obvious issues..."
  cat -n graze-cli/GRAZE.md | head -70 | tail -15
fi

Repository: Open-Paws/structured-coding-with-ai

Length of output: 342


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Step 5: Check root README.md for graze-cli mention ==="
rg -n 'graze' README.md -i

echo ""
echo "=== Step 6: Read GRAZE.md around lines 63-67 for context ==="
cat -n graze-cli/GRAZE.md | sed -n '55,75p'

Repository: Open-Paws/structured-coding-with-ai

Length of output: 1165


Add GRAZE.md to README or establish graze-cli discovery path.

Root README mentions the graze-cli repo (lines 189, 195, 254) but doesn't link to or reference the GRAZE.md file itself. graze-cli/ has no README. The file is currently unreachable from the discovery layer — either add an entry to root README linking to graze-cli/GRAZE.md, or create a README in graze-cli/ that chains back.

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 63-63: Headings should be surrounded by blank lines
Expected: 1; Actual: 0; Below

(MD022, blanks-around-headings)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@graze-cli/GRAZE.md` around lines 63 - 67, The repo's discovery lacks a link
to graze-cli/GRAZE.md; either add an entry in the root README that links to
graze-cli/GRAZE.md (so references at lines mentioning graze-cli point directly
to the GRAZE.md) or create a new README.md inside the graze-cli directory that
summarizes the CLI and includes a link back to graze-cli/GRAZE.md and the root
README; update whichever file you choose (root README or graze-cli/README.md) to
include descriptive text and the link so the GRAZE.md becomes discoverable.

**Last updated**: 2026-04-26
**Last updated**: 2026-04-26
Loading