Support for Content Exclusion Files in Apple Intelligence

I am writing to inquire about content exclusion capabilities within Apple Intelligence, particularly regarding the use of configuration files such as .aiignore or .aiexclude—similar to what exists in other AI-assisted coding tools. These mechanisms are highly valuable in managing what content AI systems can access, especially in environments that involve sensitive code or proprietary frameworks.

I would appreciate it if anyone could clarify whether Apple Intelligence currently supports any exclusion configuration for AI-assisted features. If so, could you kindly provide documentation or guidance on how developers can implement these controls? If not, Is there any plan to include such feature in future updates?

Hi @Soumen1990, can you clarify which specific framework this is in regards to?

If you're asking about Foundation Models Framework, this on-device model only has access to data provided by your app, for example in the prompt or via your tool calling implementation. It is also worth noting that Foundation Models is not intended or recommended for code generation. (See suitability recommendations here)

Let me know if you have any additional clarifying information so that we can assist.

Best,

-J

Hi @Soumen1990, I'm still having trouble understanding what you're asking. You said:

If external models are integrated into Apple Intelligence either via Private Cloud Compute or third-party APIs does the system ever scan the entire codebase automatically? Or does it still rely solely on developer-provided input?

I'm not sure what you mean by "system" or "entire codebase" here.

Are you attempting to use a developer framework and having trouble implementing something? Can you please provide any links to articles or documentation that you have questions about?

For general information about Apple Intelligence: https://www.apple.com/apple-intelligence/

Best,

-J

Hi,

I am talking about Xcode Intelligence feature where we can access ChatGPT or any other external model providers. I am referring to this link https://developer.apple.com/documentation/Xcode/writing-code-with-intelligence-in-xcode

I would like to know if Xcode Intelligence supports any configuration files such as .aiignore or .aiexclude for content exclusion? If not, Is there any plan to include such feature in future updates?

This feature is useful when we need to restrict Xcode Intelligence from accessing specific resources within our codebase.

Hi @Soumen1990, thank you for clarifying! I understand now that you are asking about the coding intelligence feature in Xcode.

The primary way to specify the extent of the context provided to the model is by toggling the Project Context button, which looks like a small binocular icon in the lower right of the coding assistant sidebar.

But what you're asking for is more granular control using a file that lists specific files or directories to be excluded from the coding assistant's context. If this is a feature you'd like to request, file an enhancement request using Feedback Assistant, and please reply here with the FB number so that I can ensure it gets routed to the right place.

Best,

-J

Support for Content Exclusion Files in Apple Intelligence
 
 
Q