R_REDDYX.XYZ
AgentsTypeScript★ 208⑂ 18 forksMIT

erensrtky/cogit

GIT FOR INTENT OF AGENT CODE

Plugin for AI coding agents that records every dialogue as a 'thought commit'. Links code commits to reasons for changes, allowing `cogit why` to find justification for any line.

// KEY FEATURES

  • Each agent message becomes a thought commit with decisions and rejected alternatives
  • Session graph with branches, incoming tasks, and Resume/Fork buttons to continue
  • Commands cogit show/blame/why follow Thought: trailer from code to change reason
  • Intent/Shape/Code mode shows intent, change diagram, and diff in one place

// DEEP DIVE: HOW IT WORKS

Cogit embeds into the AI agent via hooks and intercepts every message exchange. Each dialogue becomes a 'thought commit' with question, outcome, decisions with reasoning, rejected alternatives, and link to previous message. Git commits receive a `Thought:` trailer linking code to intent; `cogit show`, `blame`, `why` commands trace the line from code to reason.

Unlike agent memory (Mem0), token savers (RTK), code maps (graphify), orchestrators (Herdr), planners (BMAD), or review bots (CodeRabbit), Cogit focuses solely on 'why' traceability. It does not manage agents or assess code, but builds a session Git graph with branches, incoming tasks, and triple Intent/Shape/Code view: intent, change schematic, diff.

Works as a plugin for terminal agents (Claude Code), recording in real time. Unfinished task capture (`cogit captures`) is off by default, enabled via config. No specific hardware, API key, or OS requirements mentioned in README — depends on agent environment.

// USE CASES

Best for: Developers using multiple AI agents in parallel who lose track of decision context

  • Restore reason for a code line change via `cogit why` during review or debugging
  • Navigate multi-agent session history through graph with branches and tasks
  • Generate PR description with goals, decisions, and rejected alternatives via `cogit pr`
#ai-coding#claude#claude-code#claude-code-plugin#cli#coding-agents#developer-tools#git#llm#typescript
Open on GitHub →

New repositories every 30 minutes

REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.

Join on Telegram
← Full catalog·Full index

// SIMILAR REPOSITORIES

AI AGENT SKILLS FOR 2D AND 3D★ 210AGENT SKILL: AI-SLOP AUDIT AND TREATMENT★ 204DESKTOP AI AGENT WITH LOCAL MODELS★ 213SKILL SET FOR CLAUDE CODE AND CODEX★ 201BROWSER EXTENSION TO CONNECT AI TO VS CODE VIA MCP★ 218AI AGENTS FOR STOCK TRADING WITH NEWS BACKTESTING★ 222

← FULL CATALOG

erensrtky/cogit — Git For Intent OF Agent Code | REDDYX AI