Persistent memory, compounding knowledge, and autonomous skills for Claude Code.
Repo vakra-dev/forge, read from GitHub 14 min ago. vakra-dev has not joined Take My Repo.
vakra-dev/forge is a public repo on GitHub by vakra-dev. Persistent memory, compounding knowledge, and autonomous skills for Claude Code. It declares the MIT license on GitHub. It is written mainly in Shell, has 0 stars and last changed on 2026-11-01. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-24.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Persistent memory, compounding knowledge, and autonomous skills for Claude Code.
Most real projects span multiple repos that talk to each other. A frontend calls a backend, the backend calls a shared library, an SDK wraps the API. Claude Code treats each session as a blank slate. forge gives it a brain that persists across sessions and understands your entire workspace as one system.
Clone it. Run setup. Context loads automatically. The wiki gets smarter every session.
MIT licensed. Built by vakra-dev.
Automatic context loading. Hooks inject your project's rules, wiki index, state, backlog, and learnings into every session automatically. Even after context compaction, the essential context is re-injected. No manual steps.
A self-improving wiki about your work. /compile-wiki reads your codebase and builds a structured knowledge base: architecture, APIs, data flow, service integrations. Every session contributes to it. The wiki is structured specifically for LLM consumption: scannable tables, concrete file references, one-line summaries for routing. After a few sessions, it knows your system better than any doc you'd write by hand.
Multi-repo awareness. forge sees all repos in your workspace as one system. When a bug in service A is actually caused by service B's API contract, forge traces it across the boundary. The wiki captures how your repos integrate: shared schemas, internal API contracts, event flows, dependency chains.
Project rules that persist. /rule never add co-authored-by to commits saves the rule permanently. It's loaded into every future session via hooks and enforced automatically on git commits. Rules accumulate over time.
Autonomous debugging and fixing. /test-fix runs your tests, investigates failures, fixes bugs with atomic commits, and verifies fixes, in a loop, unattended. Safety gates prevent runaway changes.
# Clone into your workspace (the directory that contains your repos)
cd your-workspace
git clone https://github.com/vakra-dev/forge.git
# Run setup
./forge/setup
Setup does four things:
{project}-context/, your persistent knowledge base (its own git repo).claude/commands/.claude/settings.json (auto-context loading)CLAUDE.md (a template is provided)No dependencies. No build step. Pure markdown, bash, and git.
/compile-wiki Build the knowledge base from your codebase
/rule Add project-specific rules
/status Check workspace health
# Context loads automatically via hooks. Just start working.
# For a full structured briefing:
/recall
# Fix bugs autonomously:
/test-fix
# Save progress:
/checkpoint
cd forge && git pull && ./forge/setup
forge uses Claude Code hooks to automatically manage context. No manual loading required.
| Hook | When it fires | What it does |
|---|---|---|
| SessionStart | Session start + after compaction | Injects RULES, INDEX, STATE, BACKLOG, learnings (with confidence decay) |
| PreToolUse | Before git commit |
Checks RULES.md and blocks commits that violate project rules |
| SessionEnd | Session ends | Appends timeline entry for session tracking |
This means:
/recall is still available for the full structured briefing, but basic context is always thereRules are persistent, non-negotiable instructions for your project. They accumulate over time.
# Add rules
/rule never add co-authored-by to commits
/rule always run lint before committing
/rule use pnpm not npm
/rule never modify files in legacy/ without approval
# View rules
/rule list
# Remove a rule
/rule remove never add co-authored-by to commits
Rules are stored in {project}-context/RULES.md, git-tracked, and loaded automatically via hooks into every session.
forge is built for the way real projects work: multiple repos in one workspace, tightly coupled through APIs, shared types, and deployment dependencies.
your-workspace/
frontend/ # React app
backend-api/ # Express/FastAPI
shared-lib/ # Shared types, utils
worker/ # Background jobs
project-context/ # forge's persistent brain (tracks ALL repos)
forge/ # The tool
The wiki doesn't just document each repo in isolation. It captures the connections:
The wiki/architecture/integrations.md article is the single most valuable artifact for multi-repo debugging.
forge ships with 8 skills. Each is a detailed prompt (400-960 lines) encoding an autonomous workflow with safety gates, wiki contribution, and escalation rules.
Reads the entire codebase and compiles structured wiki articles optimized for LLM consumption:
wiki/architecture/overview.md: Service topology, ports, dependencieswiki/architecture/integrations.md: How repos connect (the most valuable article)wiki/architecture/{service}.md: Per-service deep divewiki/api/endpoints.md: Every endpoint with request/response shapeswiki/bugs/{slug}.md: Investigation articles for known bugswiki/patterns/: Recurring patterns discovered during workINDEX.md: Master index (~2K tokens, loaded by hooks automatically)The wiki is structured for agents, not humans:
Pre-landing code review with a structured checklist. Finds real bugs and security issues, not style preferences.
Checklist categories:
Only flags findings at 8/10+ confidence. Reports CRITICAL and HIGH by default.
Adds persistent project rules. Rules are loaded by hooks into every session and enforced on git commits automatically. See Project Rules.
Checks every service, every repo's git state, test results. Cross-references with known issues.
Full structured session briefing: stack health, known issues, what not to retry, remaining work. Waits for direction.
Captures complete session state: git state across all repos, what was done, what failed and why, decisions made, remaining work. The "What Failed" section prevents future sessions from retrying dead ends.
Systematic root cause analysis. No fixes without root cause. 3-strike escalation rule. Scope-locks to the affected repo.
The main autonomy skill. Run it and walk away. Runs tests, investigates failures, fixes with atomic commits, verifies fixes. Self-regulates with WTF-likelihood scoring. 20-fix hard cap.
Session 1: /compile-wiki reads codebase -> writes 15 wiki articles
Session 2: /test-fix finds bug -> writes wiki/bugs/worker-crash.md
Session 3: /investigate traces root cause -> updates the bug article
Session 4: New session reads INDEX.md (via hooks) -> skips re-investigation
Session 10: Wiki has 50+ articles. Deep context on demand.
Session 20: Agent knows every decision, every past bug, every failed approach.
Learnings are institutional knowledge stored in LEARNINGS.jsonl. Each entry has a confidence score (1-10). Confidence decays by 1 point per 30 days. A learning scored 8 two months ago has effective confidence 6. Learnings below confidence 3 are filtered out when loaded.
This prevents stale advice from six months ago carrying the same weight as yesterday's discovery.
{project}-context/
INDEX.md # Master index (loaded by hooks, ~2K tokens)
STATE.md # Live health of all services/repos
BACKLOG.md # Known issues + what was tried
RULES.md # Project rules (loaded by hooks)
LEARNINGS.jsonl # Institutional knowledge (confidence-decayed)
timeline.jsonl # Skill event history
SESSIONS/ # Session checkpoint files
wiki/
architecture/ # Service topology, internals, data flow, integrations
api/ # Endpoints, error codes, contracts
bugs/ # Per-issue investigation articles
decisions/ # Architectural decision records
patterns/ # Recurring patterns and approaches
raw/ # Source material for compilation
All layers are git-tracked. Every update is a commit. Full history and diffs.
forge is designed to be left alone. Every autonomous skill has explicit safety gates:
| Gate | What it prevents |
|---|---|
| Root cause required | No fixes without confirmed root cause. No guessing. |
| 3-strike rule | 3 failed attempts on same bug -> stop, log, move on |
| 20-fix cap | Hard stop at 20 fixes per session |
| WTF-likelihood | Risk score every 5 fixes. >20% -> stop and report |
| Regression check | Full re-run after fixes. Fixes must not break passing tests |
| Scope lock | Edits restricted to affected repo/directory |
| Atomic commits | One commit per fix. Each independently revertable |
| Never retry | Reads BACKLOG first. Won't retry documented failed approaches |
| Never merge | Creates commits. Never merges or pushes without approval |
| Rule enforcement | Pre-commit hook checks RULES.md and blocks violations |
| Layer | File | Purpose |
|---|---|---|
| Index | INDEX.md |
Navigate the wiki (loaded by hooks) |
| State | STATE.md |
Current health of all services and repos |
| Backlog | BACKLOG.md |
Known issues + what was tried (prevents retry loops) |
| Rules | RULES.md |
Project-specific instructions (loaded by hooks) |
| Wiki | wiki/**/*.md |
Deep knowledge articles |
| Learnings | LEARNINGS.jsonl |
Institutional knowledge (confidence-decayed) |
| Timeline | timeline.jsonl |
Skill event history |
| Checkpoints | SESSIONS/*.md |
Session snapshots |
forge is designed to be cloned, adapted, and extended. Here's how to get started with your own project.
cd your-workspace # the directory that contains your repos
git clone https://github.com/vakra-dev/forge.git
./forge/setup
Setup creates a template at CLAUDE.md. Fill in your architecture, repos, ports, and test commands. This is how forge learns the shape of your project.
/compile-wiki
This reads your entire codebase and compiles a structured wiki. The wiki is optimized for LLM consumption: scannable tables, file:line references, one-line summaries for routing.
/rule always run tests before committing
/rule use pnpm not npm
/rule never force push to main
Rules persist across sessions and are enforced automatically via hooks.
From here, forge is self-sustaining. Every session loads context automatically. Every skill updates the wiki as a side effect. The knowledge base compounds.
All skills are plain markdown files in forge/commands/. Read them, modify them, add new ones. They're detailed prompts (400-960 lines) encoding autonomous workflows. You can:
.md file in commands/ with YAML frontmatterHook scripts live in forge/hooks/. They're plain bash. Edit them to match your stack:
cd forge && git pull && ./forge/setup
Your context repo is untouched (it's a separate git repo). Updates only affect skill prompts and hooks.
vakra-dev/forge is a public repo on GitHub by vakra-dev. Persistent memory, compounding knowledge, and autonomous skills for Claude Code.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-01. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run forge. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-11-01. It has 0 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.