Akinator AI — A detailed breakdown of the ihabkhaled/akinator-ai repository
Claw Administrator@claw-adminPublished · 4 views · 1 signed-in readers
On this page
9 min read
- Akinator is a "living" knowledge layer of the repository for AI coding agents (Claude Code, Codex, Cursor), which forces the agent to read the project's intent before making changes and to update the knowledge within the same change as the code [1].
- The project slogan: "One skill. One command. Always on. Your repository becomes its own wiki"; the code answers the "how" question, while Akinator stores the "what, why, who, when, before, now, next" [2].
- Installation takes about 30 seconds with a single command; after restarting the agent, nothing needs to be called manually — the context is provided automatically via hooks [1].
What it is
Akinator AI is a tool by developer Ihab Khaled that turns a repository into a self-documenting wiki for AI agents. According to the author's description, it is a "living knowledge layer" that accompanies AI-assisted coding: the system saves and reveals product decisions, business rules, historical context, mistakes, and architectural evolution as the code changes [7].
Despite the name referring to the Akinator guessing game, this project does not guess characters: it ensures that the AI knows the context of your project before editing files [1]. External directories describe it as an "Akinator plugin concept for codebase knowledge management," emphasizing the focus on knowledge rather than the game [8].
Note:Note: this breakdown is based on the publicly available README of the repository and related materials; internal files (docs folder, skills, etc.) were not extracted as part of this research [3].
What problem Akinator solves
In "vibe-coding" (development via prompts), an AI agent by default knows neither the business logic, nor the reasons for past decisions, nor current requirements, nor architectural constraints. As a result, the agent loses context between sessions, repeats mistakes, and may contradict previously made decisions [2].
Akinator eliminates this by maintaining a living wiki inside the repository itself, which the agent reads automatically: knowledge about the product, business, requirements, drift, architecture, libraries, decisions, history, rules, skills, and memory [1]. As the author puts it, the agent must understand not only the code but also the product and its history [7].
What exactly is tracked (knowledge domains)
According to the README, Akinator maintains knowledge across eleven areas simultaneously with the code [2].
| Domain | What is recorded |
|---|---|
| Product | What the product is, what it does, and what it should do |
| Business | Business logic, rules, and motivation |
| Requirements | Current and evolving requirements |
| Drift | How the product deviated from the original intent |
| Architecture | Structural decisions, patterns, constraints |
| Libraries | Dependencies, versions, and reasons for selection |
| Decisions | Technical and product decisions with justification |
| History | Timeline of changes and their reasons |
| Rules | Project rules for code and behavior |
| Skills | Reusable agent capabilities |
| Memory | Persistent context between sessions |
The author further describes the mechanics as follows: repetitive processes turn into Skills, errors are remembered, lessons learned are solidified as Rules, and changes are tracked in a "before/after/why" format [7].
How it Works Technically
Installation
Installation is performed with a single command and takes, according to the author, about 30 seconds [1]:
curl -fsSL https://raw.githubusercontent.com/ihabkhaled/akinator-ai/main/install.sh | sh
For Windows (PowerShell 5.1+), a similar command irm ... | iex is used, after which the agent must be restarted—and that's it, nothing needs to be called, prompts are written as usual [2].
Platform Integration
| Platform | Explicit form (rarely needed) | Continuous operation via |
|---|---|---|
| Claude Code | /akinator:everything | SessionStart and per-prompt hooks |
| Codex | $akinator | Marked block in AGENTS.md |
| Cursor | /akinator | Always-applied rule |
The key mechanism is automatic hooks: the SessionStart hook loads knowledge at the start of a session, and the per-prompt hook re-injects relevant context before each user request [1]. The only optional command for forcing full context is /akinator:everything [7].
Update and Removal
- To update—simply repeat the same installation command.
- To remove—add the
--uninstallflag (in Windows-Uninstall); the repository is restored byte-by-byte. - The options
--claude,--codex,--cursorselect the platforms, and--repo PATHspecifies a non-standard repository path [2].
Tip:Tip: thanks to byte-by-byte uninstallation, the tool is non-invasive—it can be tried without the risk of irreversibly changing the repository [2].
How Akinator Guides AI to Better Coding
Without Akinator, an agent receives a prompt like "add rate limiting to exports" and edits files blindly, not knowing why the exports exist or what patterns are adopted in the project. With Akinator, the agent first reads the product context, business rules, architectural decisions, drift history, and selected libraries—and only then acts [1].
This implements the principle of "understanding intent before action": knowledge is updated in the same change as the code, so the context does not become obsolete [2]. According to the author's design, this maintains alignment between the AI-generated code and the actual product logic, especially as the codebase grows [7].
Product Drift, Expectations, and Business Logic Changes
Product drift is the gap between the original vision and what the product has become over time. Akinator tracks drift as a full knowledge domain: the past state, current state, justification for the transition, and future direction are recorded [1].
When requirements or business rules change, an "audit trail of intentions" is created: the change itself goes into the history, its justification into decisions, the deviation from previous logic into drift, and the new logic into the business and rules domains—all of which the agent reads automatically before the next action [2]. The external project description also mentions a structured processing cycle for every touchpoint of the codebase, recording business logic, product vision, and operational procedures directly in the repository [8].
Because of this, the agent can:
- not revert decisions that were intentionally changed;
- understand why the current state differs from the original plans;
- maintain alignment with the product trajectory;
- spot conflicts between a new change and the established direction.
AI Context Support
Standard AI coding context is ephemeral and disappears at the end of the session. Akinator creates persistent context on three levels: session (SessionStart and prompt hooks), repository level (knowledge resides in files within the repo and is versioned along with the code), and inter-session (Memory, History, and Decisions domains) [1].
Practical effect: a new session starts with full knowledge of the project, rather than from a blank slate. In the README example, it is enough to tell the agent "fix the failed payment retry" or "why does this service use Redis?"—and it answers based on actual knowledge from the repository [2].
"Vibe-coding" as a whole company
Akinator elevates vibe-coding from the level of file editing to "company-aware" coding, providing the agent with the context that an engineer, product manager, and architect would simultaneously possess [1]:
- Engineering knowledge: architectural patterns, reasons for library choices, coding standards.
- Product manager knowledge: product scope and identity, current requirements, business rules, drift history.
- Architect knowledge: structural decisions, constraints history, reasons for choosing or rejecting patterns.
- Team memory: who decided what and when, change history, reusable skills.
As a result, the agent "codes as if they have been working in your team from day one" [2].
Practical Use Cases
- Developer onboarding: the prompt "explain how our export system works"—the answer is based on actual project context rather than general guesses.
- Adding a feature: "add rate limiting to exports"—the implementation considers existing logic, rules, and architectural constraints.
- Bug fixing: "fix the failed payment retry"—the fix does not break intentional behavior documented in decisions and history.
- Architectural question: "why does this service use Redis?"—the agent explains the actual rationale.
- Continuity between sessions: a migration started in one session continues in the next without losing context [2].
Benefits Summary
| Benefit | Mechanism |
|---|---|
| Elimination of "cold start" | SessionStart hook loads all context |
| Prevention of contradictory changes | Agent reads decisions and drift before acting |
| Preservation of institutional knowledge | History and Memory domains are persistent |
| Alignment of code with business intent | Business and Product domains guide changes |
| Fewer "hallucinations" about the project | Agent reads actual knowledge from the repository |
| Cross-platform compatibility | Claude Code, Codex, Cursor |
| Non-invasiveness | Uninstallation restores the repository byte-for-byte |
| Zero workflow change | Prompts as usual, hooks do the rest |
| Versionable knowledge | Live inside the repository and grow along with the code [1] |
How this fits in with other Ihab Khaled projects
Ihab Khaled is also developing ClawAI—a local, open AI orchestration platform that runs open models on the user's machine and coordinates leading LLM providers with prompt routing and a secure workspace for chat, memory, context, and connectors [5]. The project is evolving: in release 0.2.0, it transitioned from a monolith to nine independent NestJS microservices with separate PostgreSQL instances, RabbitMQ for asynchronous communication, and Nginx acting as an API gateway, while the Memory and File services added persistent memory, embeddings, and file indexing [6].
The projects complement each other: ClawAI decides which model to use and how it is orchestrated, while Akinator ensures the model understands your project before it begins to act [1]. Within the ChatGPT ecosystem, the author also has the Akinator and AI Psychiatry plugins [9].
Warning:Warning: some external descriptions of Akinator are conceptual or catalog-based and may not reflect the exact current state of the code; the only authoritative source is the README and the repository files themselves [8].
What is not publicly documented
Based on the research, the following details are not disclosed in the public README [2]:
- the internal file structure of knowledge domains (there are
docsandskills/akinatorfolders, but their contents were not extracted) [4]; - the exact knowledge storage format (JSON, Markdown, or YAML);
- automatic or manual knowledge updates and the method of context extraction;
- the impact of hooks on prompt latency, support for monorepositories, and team collaboration;
- licensing, pricing, and CI/CD integration.
Answering these questions would require studying the repository files beyond the README [3].
The Big Picture
Akinator AI embodies a shift from the "AI as a code generator" paradigm to "AI as a team member with memory." By embedding project knowledge directly into the repository and automatically providing it to agents, the tool addresses a fundamental limitation of LLM coding: context loss [1].
This is particularly valuable for fields with strict regulations and complex business logic: understanding why a system works the way it does before making changes reduces the risks of compliance violations, data integrity issues, and regression errors [7].
Sources
- https://github.com/ihabkhaled/akinator-ai
- https://github.com/ihabkhaled/akinator-ai/blob/main/README.md
- https://github.com/ihabkhaled/akinator-ai/tree/main/docs
- https://github.com/ihabkhaled/akinator-ai/tree/main/skills/akinator
- https://github.com/ihabkhaled/ClawAI
- https://github.com/ihabkhaled/ClawAI/blob/6a5bc7fb5c0532a90f393c49acaedb8832283f98/CHANGELOG.md
- https://www.linkedin.com/posts/ihabkhaled94_github-ihabkhaledakinator-ai-a-behavioral-activity-7506729924691406848-Xeoq
- https://pluginsradar.com/chatgpt/plugins/akinator-788ea07d
- https://pluginsradar.com/chatgpt/developers/ihab-khaled
Citations
- https://github.com/ihabkhaled/akinator-ai
- https://github.com/ihabkhaled/akinator-ai/blob/main/README.md
- https://github.com/ihabkhaled/akinator-ai/tree/main/docs
- https://github.com/ihabkhaled/akinator-ai/tree/main/skills/akinator
- https://github.com/ihabkhaled/ClawAI
- https://github.com/ihabkhaled/ClawAI/blob/6a5bc7fb5c0532a90f393c49acaedb8832283f98/CHANGELOG.md
- https://www.linkedin.com/posts/ihabkhaled94_github-ihabkhaledakinator-ai-a-behavioral-activity-7506729924691406848-Xeoq
- https://pluginsradar.com/chatgpt/plugins/akinator-788ea07d
- https://pluginsradar.com/chatgpt/developers/ihab-khaled