Skip to content

feat: Support for importing rules #540

@wsxiaoys

Description

@wsxiaoys

Is your feature request related to a problem? Please describe.

Currently, all rules must be in a single README.pochi.md or AGENTS.md file. This can become unwieldy for large or complex sets of rules. It would be beneficial to be able to split rules into multiple files and import them.

Describe the solution you'd like

A clear and concise description of what you want to happen.
I would like to be able to import other markdown files from within README.pochi.md. The syntax should be similar to how Claude handles it, using the @ prefix. For example: @./path/to/other/rules.md.

The imported rules should be processed just like any other rules, including being displayed in the rules menu as shown in the provided screenshot.

Describe alternatives you've considered

Keeping all rules in one file, but this is not scalable.

Additional context

This would improve modularity and organization of rules.

Here are some relevant code pointers for the current implementation:


🤖 Generated with Pochi

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions