Spaces:
Build error
Build error
Download headroom/memory/writers/__init__.py from minhtudragon/headroom_3: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/minhtudragon/headroom_3/resolve/823b8dc3bb2c57bc3f7b6cabcbacaa82ef77d077/headroom/memory/writers/__init__.py
- Command line
-
hf download hf://spaces/minhtudragon/headroom_3@823b8dc3bb2c57bc3f7b6cabcbacaa82ef77d077/headroom/memory/writers/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/minhtudragon/headroom_3/resolve/823b8dc3bb2c57bc3f7b6cabcbacaa82ef77d077/headroom/memory/writers/__init__.py
1.27 kB
| """Agent-native memory writers — export Headroom memories to each agent's format. | |
| Each writer knows how to produce memory files in the format that a specific | |
| coding agent reads on startup. Writers handle: | |
| - Format constraints (YAML frontmatter, heading levels, line limits) | |
| - Token budget management (prioritize by importance × recency) | |
| - Deduplication against existing content | |
| - Marker-delimited sections for safe updates | |
| Supported agents: | |
| - Claude Code: MEMORY.md (auto-memory) + per-topic files | |
| - Cursor: .cursor/rules/*.mdc (YAML frontmatter + markdown) | |
| - Codex: AGENTS.md / ~/.codex/instructions.md | |
| - Aider: Convention files referenced in .aider.conf.yml | |
| - Gemini: GEMINI.md | |
| - Generic: Plain markdown (any agent) | |
| """ | |
| from headroom.memory.writers.base import AgentWriter, ExportResult, MemoryEntry | |
| from headroom.memory.writers.claude_writer import ClaudeCodeMemoryWriter | |
| from headroom.memory.writers.codex_writer import CodexMemoryWriter | |
| from headroom.memory.writers.cursor_writer import CursorMemoryWriter | |
| from headroom.memory.writers.generic_writer import GenericMemoryWriter | |
| __all__ = [ | |
| "AgentWriter", | |
| "ClaudeCodeMemoryWriter", | |
| "CodexMemoryWriter", | |
| "CursorMemoryWriter", | |
| "ExportResult", | |
| "GenericMemoryWriter", | |
| "MemoryEntry", | |
| ] | |