SuperAPI AI Directory

codealmanac

Self-updating repo wiki for AI coding agents that tracks project conversations and context locally, lives in your repo, and is free to use.

Open website

About this tool

CodeAlmanac is a "living wiki" maintained for AI coding agents, intended to provide agents with context that the code itself cannot carry: why the system was designed this way, what problems occurred in the past, which invariants matter, and how workflows span files and services. The wiki is stored in your repository as plain Markdown, indexed locally, and reviewed in Git like any other code change.

Purpose

CodeAlmanac solves the problem of AI coding agents lacking project background knowledge. It captures what the code cannot say: decisions, processes, invariants, and error-prone points. The wiki is maintained by AI coding agents and continuously updated as the project evolves.

Main capabilities

  • Generate and maintain a Markdown wiki within the repository, with pages located in the almanac/ directory, topics.yaml organizing pages across folders, and README.md serving as the landing page for a folder.
  • Provide local read commands, with agents and humans using the same commands to read wiki content.
  • Lifecycle commands update the wiki through three types of agents: build, ingest, and garden: ingest folds selected local materials (files, directories, Git diffs, commit ranges, GitHub PRs or issues, URLs, local agent conversation records) into the wiki; garden improves the existing wiki graph, handling outdated pages, links, topics, weak clues, duplicate pages, and unsupported claims.
  • Sync and automation: Sync scans local Codex and Claude conversation records and queues conversations associated with the repository as ordinary ingest tasks; Garden periodically queues maintenance tasks for each registered wiki; Update keeps the local CLI up to date. Automation is implemented through local macOS launchd tasks, with logs stored in ~/.codealmanac/logs/.
  • Provide a read-only viewer that renders pages, search, topics, backlinks, and file reference navigation, and can be opened in a browser via codealmanac serve.
  • Job management: init, ingest, and garden create queued runs and start a local worker, which can be viewed visually with codealmanac serve, or tracked in the terminal with codealmanac jobs attach <run-id>.

Usage

Currently supports Codex or Claude Code on macOS, requires Python 3.12+. After installation, run setup to configure, which installs the global agent instructions for the selected tool and three local macOS launchd tasks. You can use --runner claude to switch to Claude. --target only selects which global agent instruction files are installed, not the AI runner.

Daily read commands are shared with the agent. Use --wiki <name> to read another registered local wiki. By default, commands target the current directory (when it is a registered repository root).

Lifecycle commands run three types of explicit agents—build, ingest, and garden—through the public Yoke SDK. Lifecycle agents are trusted local coding agents that run with the same broad, non-interactive filesystem permissions that CodeAlmanac has historically provided, so the almanac/ boundary is an instruction and commit policy, not an OS sandbox. Only run lifecycle commands in repositories that accept this trust model, and review the generated Git diff when auto-commit is disabled.

Configuration: User configuration is located under ~/.codealmanac/. Use codealmanac config set <key> <value> for routine changes, which immediately applies automation changes to launchd. After directly editing the file, run codealmanac config apply. auto_commit means the lifecycle prompt may instruct the selected agent to use ordinary Git commands for wiki source changes; CodeAlmanac does not internally stage files, split diffs, or commit.

Migrating from the npm CLI: The legacy codealmanac npm package has been retired, and PyPI is the only supported distribution. You must first remove the old global installation and the hooks and agent instructions it set up, then install from PyPI and set up the Python CLI.

When to Use

Suitable for teams or individuals who develop with AI coding agents and want to provide agents with persistent project context and decision records. Wiki content is committed with the repository and can be reviewed and collaborated on like code.

Limitations

  • Currently runs only locally, with no hosted login/connect/upload commands.
  • Currently only supports Codex or Claude Code on macOS, and requires Python 3.12+.
  • No public SDK or MCP package.
  • Repository wikiroot directory is limited to almanac/, with no alternate root directory.
  • Except for the supported ca shorthand, there are no legacy compatibility aliases.
  • Optional anonymous usage and sanitized crash telemetry can be disabled with codealmanac config set telemetry.enabled false or --no-telemetry in setup. Wikis, source code, prompts, conversation logs, paths, or command arguments are not uploaded.
  • Read commands do not require provider credentials; writable lifecycle commands require the selected harness to be available and authenticated.
  • Troubleshooting: If a harness codex failed or harness claude failed error occurs, check whether the corresponding CLI is broken or missing, and reinstall it or switch the default harness; codealmanac doctor reports harness availability.