经 AI Skill Hub 精选评估,代码百科 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
代码百科 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
代码百科 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:pip 安装(推荐)
pip install codealmanac
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install codealmanac
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/AlmanacCode/codealmanac
cd codealmanac
pip install -e .
# 验证安装
python -c "import codealmanac; print('安装成功')"
# 命令行使用
codealmanac --help
# 基本用法
codealmanac input_file -o output_file
# Python 代码中调用
import codealmanac
# 示例
result = codealmanac.process("input")
print(result)
# codealmanac 配置文件示例(config.yml) app: name: "codealmanac" debug: false log_level: "INFO" # 运行时指定配置文件 codealmanac --config config.yml # 或通过环境变量配置 export CODEALMANAC_API_KEY="your-key" export CODEALMANAC_OUTPUT_DIR="./output"
<p align="center"> <img src="docs/assets/readme-hero.png" alt="CodeAlmanac - A living wiki for your codebase"> </p>
<p align="center"> <a href="https://pypi.org/project/codealmanac/"><img alt="PyPI version" src="https://img.shields.io/pypi/v/codealmanac?label=pypi&color=ef6c35"></a> <a href="https://pepy.tech/projects/codealmanac"><img alt="PyPI downloads" src="https://static.pepy.tech/badge/codealmanac"></a> <a href="https://github.com/AlmanacCode/codealmanac"><img alt="GitHub stars" src="https://img.shields.io/github/stars/AlmanacCode/codealmanac?style=social"></a> <a href="https://discord.com/invite/jjuxtrGvJ"><img alt="Discord" src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white"></a> <a href="https://www.linkedin.com/company/codealmanac/"><img alt="LinkedIn" src="https://img.shields.io/badge/LinkedIn-CodeAlmanac-0A66C2?logo=linkedin&logoColor=white"></a> <a href="https://www.ycombinator.com"><img alt="Y Combinator S26" src="https://img.shields.io/badge/Y%20Combinator-S26-f26625?logo=ycombinator&logoColor=white"></a> <a href="./LICENSE.md"><img alt="License: Apache-2.0" src="https://img.shields.io/badge/license-Apache--2.0-df7b40"></a> </p>
Install global agent instructions for the local tools you use:
```bash
codealmanac setup
codealmanac setup --yes
codealmanac setup --yes --runner claude
Setup installs agent instructions for your chosen tools and three local macOS
`launchd` jobs. The jobs and all wiki work run locally.
| Job | Default schedule | What it does |
| --- | ---: | --- |
| Sync | Every 5 hours | Scans recent Codex and Claude conversations and queues useful knowledge for the relevant registered wiki. |
| Garden | Every 24 hours | Reviews every registered wiki for stale, duplicated, or poorly connected knowledge. |
| Update | Every 24 hours | Checks for and installs CodeAlmanac CLI updates when it is safe to do so. |
These schedules run locally in the background. Use
`codealmanac automation status` to see what is installed.
The final setup step asks about anonymous telemetry and recommends Yes so we can
see which commands work and where the CLI breaks. It sends controlled command
and lifecycle outcomes plus sanitized unhandled crashes under a random install
UUID. It never sends code, paths, arguments, queries, prompts, transcripts,
repository/run IDs, locals, or credentials; GeoIP is disabled. Choose No in
setup, pass `setup --no-telemetry`, set `telemetry.enabled` to `false`, or use
`DO_NOT_TRACK=1` at any time. Without a future login, the UUID profile has no
name or email.
If you don't have Codex or prefer Claude, use `--runner claude`.
`--target` only chooses which global agent instruction files to install; it does
not choose the AI runner:
bash codealmanac setup --yes --target codex codealmanac setup --yes --target claude
Customize automatic work during setup:
bash
codealmanac setup --yes --sync-off
codealmanac setup --yes --garden-off
codealmanac setup --yes --no-auto-update
To uninstall CodeAlmanac-owned local artifacts:
bash codealmanac uninstall --yes ```
codealmanac automation status
uv tool install codealmanac@latest
codealmanac setup
See Setup for configuration options.
Once CodeAlmanac is set up:
cd your-repo
codealmanac init # Makes your wiki, if you don't have one
codealmanac search "getting started" # Shows matching wiki pages.
codealmanac show getting-started # Opens one page in the terminal
codealmanac serve # Shows the wiki in local web viewer.
User config lives at:
~/.codealmanac/config.toml
The supported defaults are:
auto_commit = true
[harness]
default = "codex"
model = "gpt-5.5"
[automation.sync]
enabled = true
every = "5h"
[automation.garden]
enabled = true
every = "24h"
[automation.update]
enabled = true
every = "24h"
CLI flags still win over config.
Use codealmanac config set <key> <value> for normal changes. It applies automation changes to launchd immediately. Direct file edits are supported but must be followed by:
codealmanac config apply
auto_commit means lifecycle prompts may tell the selected agent to use normal Git commands for wiki source changes. CodeAlmanac does not stage files, split diffs, or commit internally.
codealmanac setup --no-auto-commit
codealmanac config set auto_commit false
codealmanac config set auto_commit true
代码百科是一个开源的AI工作流项目,具有较高的实用价值
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:代码百科 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | codealmanac |
| 原始描述 | 开源AI工作流:A codebase wiki for AI coding agents. Captures what the code can't say: decision。⭐148 · Python |
| Topics | aiclaudeclicodebasecodexpython |
| GitHub | https://github.com/AlmanacCode/codealmanac |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-07-03 · 更新时间:2026-07-04 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端